com.appnexus.oas.mobilesdk.utilities.XUtility.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appnexusoasmobileadsdk-test Show documentation
Show all versions of appnexusoasmobileadsdk-test Show documentation
AppNexus OpenAdStream Android Advertising Libraries
???? 2= -com/appnexus/oas/mobilesdk/utilities/XUtility java/lang/Object TAG Ljava/lang/String; KITKAT_JS_METHOD Ljava/lang/reflect/Method; KITKAT_JS_PARAMTYPES [Ljava/lang/Class; Signature [Ljava/lang/Class<*>;
USER_AGENT DEFAULT_USER_AGENT Z$SWITCH_TABLE$com$appnexus$oas$mobilesdk$configuration$XAdSlotConfiguration$LABEL_POSITION [I ()V Code XUtility java/lang/Class java/lang/String android/webkit/ValueCallback !
#
% ?Mozilla/5.0 (Linux; U; Android 4.3; de-de; GT-I9100 Build/GRH78) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1 ' LineNumberTable LocalVariableTable
, * this /Lcom/appnexus/oas/mobilesdk/utilities/XUtility; getUserAgent -(Landroid/content/Context;)Ljava/lang/String; RuntimeInvisibleAnnotations !Landroid/annotation/SuppressLint; value NewApi 6 8 7 android/os/Build$VERSION 9 : SDK_INT I < android/webkit/WebView
; > * ? (Landroid/content/Context;)V
; A B C getSettings ()Landroid/webkit/WebSettings;
E G F android/webkit/WebSettings H I getUserAgentString ()Ljava/lang/String;
; K L destroy
E N O 0 getDefaultUserAgent Q java/lang/StringBuilder S UserAgent:
P U * V (Ljava/lang/String;)V
P X Y Z append -(Ljava/lang/String;)Ljava/lang/StringBuilder;
P \ ] I toString
_ a ` -com/appnexus/oas/mobilesdk/utilities/XLogUtil b c d '(Ljava/lang/String;Ljava/lang/String;)V e java/lang/Exception context Landroid/content/Context; w Landroid/webkit/WebView; e Ljava/lang/Exception;
StackMapTable writeToDisk P(Ljava/io/InputStream;Ljava/io/File;Landroid/content/Context;)Ljava/lang/String;
Exceptions q java/lang/IllegalStateException s java/io/IOException u WriteToDisk
w y x java/io/File z I getName
| ~ } android/content/Context ? openFileOutput /(Ljava/lang/String;I)Ljava/io/FileOutputStream;
? ? ? java/io/InputStream ? ? read ([B)I
? ? ? java/io/FileOutputStream ? ? write ([BII)V
? ? ? close ? NULL input stream in writeToDisk
r U
? ? ? flush
? ?
w ? ? I getPath in Ljava/io/InputStream; writeFile Ljava/io/File; buff [B out Ljava/io/FileOutputStream; numread ? devicePixelToMraidPoint (ILandroid/content/Context;)I
| ? ? ? getResources !()Landroid/content/res/Resources;
? ? ? android/content/res/Resources ? ? getDisplayMetrics ()Landroid/util/DisplayMetrics; ? ? ? android/util/DisplayMetrics ? ? density F
? ? ? java/lang/Math ? ? round (F)I pixelSize points evaluateJavascript -(Landroid/webkit/WebView;Ljava/lang/String;)V ? android.webkit.WebView
? ? ? forName %(Ljava/lang/String;)Ljava/lang/Class; ?
? ? ? getDeclaredMethod @(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
? ? ? java/lang/reflect/Method ? ?
setAccessible (Z)V ? 1Running in KITKAT mode with new Chromium webview!
_ ? ? c i ? TFATAL ERROR: Could not invoke Android 4.4 Chromium WebView method evaluateJavascript
_ ? j ? <(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V ? javascript:
; ? ? V loadUrl
? ? ? ? invoke 9(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; webView
javascript e0 getExpandedSizeInDP (Landroid/content/Context;I)I
? ? ? ?com/appnexus/oas/mobilesdk/requestenrichment/XDeviceInformation ? ?
getDensity (Landroid/content/Context;)F
? ? ? ?
getDensityDpi (Landroid/content/Context;)I scale sizeInDP getSizeInDP getPixelSize convertStringtoSeconds (Ljava/lang/String;)I ? :
? ? ? split '(Ljava/lang/String;)[Ljava/lang/String;
java/lang/Integer ? parseInt java/lang/NumberFormatException timestampStr tokens [Ljava/lang/String; duration hours minutes seconds getExtensionFromUrl &(Ljava/lang/String;)Ljava/lang/String;
lastIndexOf (I)I
substring (I)Ljava/lang/String; url extension getVASTVideoURL *(Ljava/util/ArrayList;I)Ljava/lang/String; ](Ljava/util/ArrayList;I)Ljava/lang/String;
"! java/util/ArrayList#$ size ()I
,
'() get (I)Ljava/lang/Object;+ /com/appnexus/oas/mobilesdk/model/MediaFileModel
*-. I getUrl
02 mp4
456
startsWith (Ljava/lang/String;)Z8 MP4
:;< add (Ljava/lang/Object;)Z> 8com/appnexus/oas/mobilesdk/utilities/MediaFileComparator
= ,
ACB java/util/CollectionsDE sort )(Ljava/util/List;Ljava/util/Comparator;)V
*GH I getWidthJ 'Rendition Selected- using player width:
PL YM (I)Ljava/lang/StringBuilder;O , selected rendition width:Q , URL: arrayList Ljava/util/ArrayList;
frameWidth mediaUrl count mp4Videos lastObjwidth currentObjWidth index LocalVariableTypeTable HLjava/util/ArrayList; getVastEventURLList 9(Ljava/util/ArrayList;Ljava/lang/String;)Ljava/util/List; (Ljava/util/ArrayList;Ljava/lang/String;)Ljava/util/List;
acb -com/appnexus/oas/mobilesdk/admanager/XCachingde getInstance 1()Lcom/appnexus/oas/mobilesdk/admanager/XCaching; aghS linearAdModelArrayList
jkl iterator ()Ljava/util/Iterator;npo java/util/Iteratorqr next ()Ljava/lang/Object;t .com/appnexus/oas/mobilesdk/model/LinearAdModel
svwx getTrackingEventArrayList ()Ljava/util/ArrayList;z .com/appnexus/oas/mobilesdk/model/TrackingModel
y|} I getEvent
?6 equalsIgnoreCase? TRACKING EVENT - ? | URL -
y?? I getURLn??? hasNext ()Z trackingEventArrayList eventType urlList linearModel 0Lcom/appnexus/oas/mobilesdk/model/LinearAdModel; a 0Lcom/appnexus/oas/mobilesdk/model/TrackingModel; GLjava/util/ArrayList; )Ljava/util/ArrayList; getVastClickURLList ()Ljava/util/List; &()Ljava/util/List;
s??x getVideoClicksArrayList? 0com/appnexus/oas/mobilesdk/model/VideoClickModel
???x getClickTrackingArrayList? 3com/appnexus/oas/mobilesdk/model/ClickTrackingModel? Video Click Tracking url -
??? vast click url exception:
d?? I
getMessage
_? j c 2Lcom/appnexus/oas/mobilesdk/model/VideoClickModel; clickTrackingModel 5Lcom/appnexus/oas/mobilesdk/model/ClickTrackingModel;
isNullOrEmpty
??< equals input getLocal
??? java/util/Locale??
getDefault ()Ljava/util/Locale;
? \? _
?? concat? -com/appnexus/oas/mobilesdk/utilities/XLocales
? ,
??? getClass ()Ljava/lang/Class;
??? getField -(Ljava/lang/String;)Ljava/lang/reflect/Field;
??? java/lang/reflect/Field(? &(Ljava/lang/Object;)Ljava/lang/Object;? _en_US
??? java/lang/IllegalAccessException? printStackTrace
??? java/lang/NoSuchFieldException
??? "java/lang/IllegalArgumentException textId locale displayText localeTextId locales /Lcom/appnexus/oas/mobilesdk/utilities/XLocales; filedVal Ljava/lang/reflect/Field; Ljava/lang/NoSuchFieldException; e1 "Ljava/lang/IllegalAccessException; $Ljava/lang/IllegalArgumentException; getTimerPosition m(Lcom/appnexus/oas/mobilesdk/configuration/XAdSlotConfiguration;)Landroid/widget/RelativeLayout$LayoutParams;? *android/widget/RelativeLayout$LayoutParams
?? *? (II)V
? ? ()[I
??? =com/appnexus/oas/mobilesdk/configuration/XAdSlotConfiguration?? getCountdownLabelPosition P()Lcom/appnexus/oas/mobilesdk/configuration/XAdSlotConfiguration$LABEL_POSITION;
??? Lcom/appnexus/oas/mobilesdk/configuration/XAdSlotConfiguration$LABEL_POSITION?$ ordinal
? addRule (I)V adSlotConfig ?Lcom/appnexus/oas/mobilesdk/configuration/XAdSlotConfiguration; params ,Landroid/widget/RelativeLayout$LayoutParams; convertIntToHHSS %02d:%02d
valueOf (I)Ljava/lang/Integer;
format 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; aDuration result
? values Q()[Lcom/appnexus/oas/mobilesdk/configuration/XAdSlotConfiguration$LABEL_POSITION; ?
BOTTOM_CENTER NLcom/appnexus/oas/mobilesdk/configuration/XAdSlotConfiguration$LABEL_POSITION; ? BOTTOM_LEFT ?"# BOTTOM_RIGHT ?%&
TOP_CENTER ?() TOP_LEFT ?+, TOP_RIGHT. java/lang/NoSuchFieldError
SourceFile
XUtility.java InnerClasses4 android/os/Build VERSION7 android/widget/RelativeLayout LayoutParams LABEL_POSITION; :com/appnexus/oas/mobilesdk/utilities/XUtility$StorePicture StorePicture !
\ $? ? ? YSYS? ? "$? &? ( - . / 0 / 1 2 ) * / *? +? ( * ) - . / 0 1 2 3[ s 4 ? W? "? P? 5? )? ;Y*? =L+? @? D? "+? JL? L? &? "?
*? M? "? ? PYR? T? "? W? [? ^? "? ' * d ( 2 i k m n ! o % p ' q + r 1 t 4 u ; w S y ) W f g h i + j k l
j d m n o p r 0 q ?N:*? I? ? PYt? T+? v? W? [? ^,+? v? {:*-? ?6? ? -? ????*? ??
? rY?? ???
? ?? ?+? ?? ( N ~ ?
? &