· 10 years ago · Sep 21, 2016, 07:46 PM
1import android.accounts.AccountManager;
2import android.animation.ObjectAnimator;
3import android.animation.ValueAnimator.AnimatorUpdateListener;
4import android.annotation.SuppressLint;
5import android.annotation.TargetApi;
6import android.app.Activity;
7import android.app.ActivityManager;
8import android.app.ActivityManager.RunningAppProcessInfo;
9import android.app.AlertDialog;
10import android.app.AppOpsManager;
11import android.app.Application;
12import android.app.Notification;
13import android.app.Notification.Action;
14import android.app.Notification.Builder;
15import android.app.Notification.MessagingStyle;
16import android.app.Notification.MessagingStyle.Message;
17import android.app.NotificationManager;
18import android.app.PendingIntent;
19import android.app.RemoteInput;
20import android.content.ComponentName;
21import android.content.ContentResolver;
22import android.content.ContentValues;
23import android.content.Context;
24import android.content.Intent;
25import android.content.SharedPreferences;
26import android.content.SharedPreferences.Editor;
27import android.content.pm.ActivityInfo;
28import android.content.pm.PackageManager;
29import android.content.pm.PackageManager.NameNotFoundException;
30import android.content.pm.ServiceInfo;
31import android.content.res.ColorStateList;
32import android.content.res.Configuration;
33import android.content.res.Resources;
34import android.content.res.Resources.NotFoundException;
35import android.content.res.Resources.Theme;
36import android.content.res.TypedArray;
37import android.database.Cursor;
38import android.database.sqlite.SQLiteDatabase;
39import android.graphics.Bitmap;
40import android.graphics.Bitmap.Config;
41import android.graphics.Canvas;
42import android.graphics.Color;
43import android.graphics.ColorMatrix;
44import android.graphics.PorterDuff.Mode;
45import android.graphics.Rect;
46import android.graphics.Typeface;
47import android.graphics.drawable.Drawable;
48import android.net.ConnectivityManager;
49import android.net.NetworkInfo;
50import android.net.Uri;
51import android.os.AsyncTask;
52import android.os.Binder;
53import android.os.Build;
54import android.os.Build.VERSION;
55import android.os.Bundle;
56import android.os.CancellationSignal;
57import android.os.Environment;
58import android.os.Handler;
59import android.os.IBinder;
60import android.os.Looper;
61import android.os.OperationCanceledException;
62import android.os.Parcel;
63import android.os.ParcelFileDescriptor;
64import android.os.Parcelable;
65import android.os.Parcelable.Creator;
66import android.os.PowerManager;
67import android.os.PowerManager.WakeLock;
68import android.os.Process;
69import android.os.RemoteException;
70import android.os.SystemClock;
71import android.provider.ContactsContract.CommonDataKinds.Phone;
72import android.provider.ContactsContract.Contacts;
73import android.provider.ContactsContract.QuickContact;
74import android.provider.Settings.Global;
75import android.provider.Settings.System;
76import android.support.v7.preference.Preference;
77import android.support.v7.widget.Toolbar;
78import android.system.Os;
79import android.text.SpannableStringBuilder;
80import android.text.TextUtils;
81import android.text.format.DateFormat;
82import android.text.format.DateUtils;
83import android.text.style.ForegroundColorSpan;
84import android.text.style.StyleSpan;
85import android.text.style.TextAppearanceSpan;
86import android.transition.Transition;
87import android.transition.TransitionManager;
88import android.transition.TransitionSet;
89import android.util.AttributeSet;
90import android.util.Base64;
91import android.util.DisplayMetrics;
92import android.util.JsonReader;
93import android.util.Log;
94import android.util.Patterns;
95import android.util.StateSet;
96import android.util.TypedValue;
97import android.util.Xml;
98import android.view.ContextThemeWrapper;
99import android.view.Gravity;
100import android.view.KeyEvent;
101import android.view.LayoutInflater;
102import android.view.LayoutInflater.Factory;
103import android.view.Menu;
104import android.view.MenuItem;
105import android.view.MotionEvent;
106import android.view.ScaleGestureDetector;
107import android.view.SubMenu;
108import android.view.VelocityTracker;
109import android.view.View;
110import android.view.View.AccessibilityDelegate;
111import android.view.ViewConfiguration;
112import android.view.ViewGroup;
113import android.view.ViewGroup.LayoutParams;
114import android.view.ViewGroup.MarginLayoutParams;
115import android.view.ViewParent;
116import android.view.accessibility.AccessibilityEvent;
117import android.view.accessibility.AccessibilityManager;
118import android.view.accessibility.AccessibilityNodeInfo;
119import android.view.accessibility.AccessibilityNodeInfo.AccessibilityAction;
120import android.view.accessibility.AccessibilityNodeInfo.CollectionInfo;
121import android.view.accessibility.AccessibilityNodeInfo.CollectionItemInfo;
122import android.view.accessibility.AccessibilityRecord;
123import android.view.animation.Interpolator;
124import android.webkit.MimeTypeMap;
125import android.widget.ArrayAdapter;
126import android.widget.CompoundButton;
127import android.widget.EdgeEffect;
128import android.widget.FrameLayout;
129import android.widget.ListAdapter;
130import android.widget.ListView;
131import android.widget.OverScroller;
132import android.widget.PopupWindow;
133import android.widget.RemoteViews;
134import android.widget.TextView;
135import com.google.android.apps.fireball.ui.BlockedParticipantsActivity;
136import com.google.android.apps.fireball.ui.BlockedParticipantsFragment;
137import com.google.android.apps.fireball.ui.ConfidentialActivity;
138import com.google.android.apps.fireball.ui.ForcedUpgradeActivity;
139import com.google.android.apps.fireball.ui.PermissionCheckActivity;
140import com.google.android.apps.fireball.ui.YouTubeMessageView;
141import com.google.android.apps.fireball.ui.appsettings.ApplicationSettingsActivity;
142import com.google.android.apps.fireball.ui.contact.ContactListItemView;
143import com.google.android.apps.fireball.ui.conversation.ComposeMessageView;
144import com.google.android.apps.fireball.ui.conversation.ConversationActivity;
145import com.google.android.apps.fireball.ui.conversation.EditConversationThemeActivity;
146import com.google.android.apps.fireball.ui.conversation.EditConversationThemeFragment;
147import com.google.android.apps.fireball.ui.conversation.MessageDetailsActivity;
148import com.google.android.apps.fireball.ui.conversation.ThemePickerView;
149import com.google.android.apps.fireball.ui.conversationlist.AutolinkAccountView;
150import com.google.android.apps.fireball.ui.conversationlist.ConversationListActivity;
151import com.google.android.apps.fireball.ui.conversationlist.ConversationListFragment;
152import com.google.android.apps.fireball.ui.conversationlist.ForwardMessageActivity;
153import com.google.android.apps.fireball.ui.conversationlist.ShareIntentActivity;
154import com.google.android.apps.fireball.ui.conversationsettings.ConversationInfoActivity;
155import com.google.android.apps.fireball.ui.conversationsettings.ConversationInfoFragment;
156import com.google.android.apps.fireball.ui.createconversation.CreateConversationActivity;
157import com.google.android.apps.fireball.ui.createconversation.StartCreateConversationButton;
158import com.google.android.apps.fireball.ui.createconversation.intentapi.ExternalCreateConversationActivity;
159import com.google.android.apps.fireball.ui.feedback.CustomFeedbackActivity;
160import com.google.android.apps.fireball.ui.gmsupdate.GmsUpdateActivity;
161import com.google.android.apps.fireball.ui.mediapicker.MediaPicker;
162import com.google.android.apps.fireball.ui.photoviewer.FireballPhotoViewActivity;
163import com.google.android.apps.fireball.ui.profile.ProfileActivity;
164import com.google.android.apps.fireball.ui.profile.SelfProfileActivity;
165import com.google.android.apps.fireball.ui.profile.SelfProfileFragment;
166import com.google.android.apps.fireball.ui.sticker.StickerMarketActivity;
167import com.google.android.apps.fireball.ui.sticker.StickerMarketFragment;
168import com.google.android.apps.fireball.ui.sticker.StickerSetFullListItemView;
169import com.google.android.apps.fireball.ui.sticker.StickerSetListViewPager;
170import com.google.android.apps.fireball.ui.sticker.StickerSetMyListItemView;
171import com.google.android.apps.fireball.ui.sticker.StickerSetOverviewActivity;
172import com.google.android.apps.fireball.ui.suggestedactions.SuggestedActionItemView;
173import com.google.android.apps.fireball.ui.welcome.EditPin;
174import com.google.android.apps.fireball.ui.welcome.WelcomeActivity;
175import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
176import com.google.android.gms.droidguard.DroidGuardResultsRequest;
177import com.google.android.gms.internal.zzyz;
178import com.google.android.gms.maps.model.CameraPosition;
179import com.google.android.gms.phenotype.Flag;
180import dalvik.system.DexFile;
181import io.grpc.internal.ei;
182import java.io.ByteArrayOutputStream;
183import java.io.Closeable;
184import java.io.File;
185import java.io.IOException;
186import java.io.InputStream;
187import java.io.OutputStream;
188import java.io.PrintWriter;
189import java.io.RandomAccessFile;
190import java.io.StringReader;
191import java.io.StringWriter;
192import java.io.UnsupportedEncodingException;
193import java.io.Writer;
194import java.lang.annotation.Annotation;
195import java.lang.reflect.Array;
196import java.lang.reflect.Field;
197import java.lang.reflect.InvocationHandler;
198import java.lang.reflect.InvocationTargetException;
199import java.lang.reflect.Method;
200import java.lang.reflect.Proxy;
201import java.lang.reflect.Type;
202import java.net.ProtocolException;
203import java.net.SocketException;
204import java.net.URLEncoder;
205import java.net.UnknownHostException;
206import java.nio.ByteBuffer;
207import java.nio.ByteOrder;
208import java.security.KeyPair;
209import java.security.KeyPairGenerator;
210import java.security.MessageDigest;
211import java.security.NoSuchAlgorithmException;
212import java.text.ParseException;
213import java.text.SimpleDateFormat;
214import java.util.ArrayList;
215import java.util.Arrays;
216import java.util.Calendar;
217import java.util.Collection;
218import java.util.Collections;
219import java.util.Comparator;
220import java.util.Date;
221import java.util.HashMap;
222import java.util.HashSet;
223import java.util.IllegalFormatException;
224import java.util.Iterator;
225import java.util.LinkedHashMap;
226import java.util.List;
227import java.util.ListIterator;
228import java.util.Locale;
229import java.util.Map;
230import java.util.Map.Entry;
231import java.util.Random;
232import java.util.RandomAccess;
233import java.util.Set;
234import java.util.SortedSet;
235import java.util.TreeSet;
236import java.util.UUID;
237import java.util.concurrent.CancellationException;
238import java.util.concurrent.ConcurrentHashMap;
239import java.util.concurrent.ExecutionException;
240import java.util.concurrent.Executor;
241import java.util.concurrent.ExecutorService;
242import java.util.concurrent.Executors;
243import java.util.concurrent.Future;
244import java.util.concurrent.ScheduledExecutorService;
245import java.util.concurrent.ThreadFactory;
246import java.util.concurrent.TimeUnit;
247import java.util.concurrent.TimeoutException;
248import java.util.concurrent.atomic.AtomicBoolean;
249import java.util.concurrent.atomic.AtomicLong;
250import java.util.concurrent.atomic.AtomicReference;
251import java.util.jar.JarFile;
252import java.util.regex.Matcher;
253import java.util.zip.CRC32;
254import java.util.zip.ZipException;
255import java.util.zip.ZipFile;
256import javax.net.ssl.SSLPeerUnverifiedException;
257import org.json.JSONArray;
258import org.json.JSONException;
259import org.json.JSONObject;
260import org.xmlpull.v1.XmlPullParser;
261import org.xmlpull.v1.XmlPullParserException;
262
263@TargetApi(14)
264/* compiled from: PG */
265public class ux implements zzyz, kl, ur {
266 public static final int A = 2130968654;
267 public static final int B = 2130968655;
268 public static final int C = 2131820902;
269 public static final int D = 2131821045;
270 public static final int E = 2131821047;
271 public static final int F = 2131821048;
272 public static final int G = 2131821049;
273 public static final int H = 2131821050;
274 public static final int I = 2131821051;
275 public static Field J = null;
276 public static boolean K = false;
277 public static Field L = null;
278 public static boolean M = false;
279 public static final int N = 2131296256;
280 public static final int O = 2131296260;
281 public static final int P = 2130837504;
282 public static final int Q = 2130837506;
283 public static final int R = 2130837507;
284 public static final int S = 2130837510;
285 public static final int T = 2130837511;
286 public static final int U = 2130837512;
287 public static final int V = 2130837517;
288 public static final int W = 2130837518;
289 public static final int X = 2130837519;
290 public static final int Y = 2130837521;
291 public static final int Z = 2130837522;
292 public static final int a = 2131034125;
293 public static final int aA = 2130837579;
294 public static final int aB = 2131755011;
295 public static final int aC = 2131755014;
296 public static final int aD = 2131755015;
297 public static final int aE = 2131755036;
298 public static final int aF = 2131755037;
299 public static final int aG = 2131361885;
300 public static final int aH = 2131361886;
301 public static final int aI = 2131361887;
302 public static final int aJ = 2131361888;
303 public static final int aK = 2131427426;
304 public static final int aL = 2131820695;
305 public static final int aM = 2131361889;
306 public static final int aN = 2131361890;
307 public static final int aO = 2131361897;
308 public static final int aP = 2131427431;
309 public static final int aQ = 2131427434;
310 public static final int aR = 2131427435;
311 public static final int aS = 2131427436;
312 public static final int aT = 2131427437;
313 public static final int aU = 2131427440;
314 public static final int aV = 2131427638;
315 public static final int aW = 2130838530;
316 public static final int aX = 2130838539;
317 public static final int aY = 2131558591;
318 public static final int aZ = 2131558588;
319 public static final int aa = 2130837523;
320 public static final int ab = 2130837526;
321 public static final int ac = 2130837528;
322 public static final int ad = 2130837529;
323 public static final int ae = 2130837531;
324 public static final int af = 2130837532;
325 public static final int ag = 2130837533;
326 public static final int ah = 2130837544;
327 public static final int ai = 2130837555;
328 public static final int aj = 2130837556;
329 public static final int ak = 2130837557;
330 public static final int al = 2130837558;
331 public static final int am = 2130837559;
332 public static final int an = 2130837565;
333 public static final int ao = 2130837566;
334 public static final int ap = 2130837567;
335 public static final int aq = 2130837568;
336 public static final int ar = 2130837569;
337 public static final int as = 2130837570;
338 public static final int at = 2130837571;
339 public static final int au = 2130837572;
340 public static final int av = 2130837574;
341 public static final int aw = 2130837575;
342 public static final int ax = 2130837576;
343 public static final int ay = 2130837577;
344 public static final int az = 2130837578;
345 public static final int b = 2131034126;
346 public static final int bA = 2131558883;
347 public static final int bB = 2131558885;
348 public static final int bC = 2131558886;
349 public static final int bD = 2131558884;
350 public static final int bE = 2131558882;
351 public static final int bF = 2131558890;
352 public static final int bG = 2131623957;
353 public static final int bH = 2130968719;
354 public static final int bI = 2130968720;
355 public static final int bJ = 2131755303;
356 public static final int bK = 2131755486;
357 public static final int bL = 2131755613;
358 public static final int bM = 2131230722;
359 public static final int bN = 2131230723;
360 public static final int bO = 2131230724;
361 public static final int bP = 2131230725;
362 public static final int bQ = 2131230726;
363 public static final int bR = 2131230728;
364 public static final int bS = 2131230730;
365 public static final int bT = 2131230731;
366 public static final int bU = 2131492864;
367 public static final int bV = 2131886080;
368 public static final int bW = 2131886081;
369 public static final int bX = 2131886082;
370 public static final int bY = 2131886083;
371 public static final int bZ = 2131886084;
372 public static final int ba = 2131558593;
373 public static final int bb = 2131558592;
374 public static final int bc = 2131558590;
375 public static final int bd = 2131558589;
376 public static final int be = 2131623943;
377 public static final int bf = 2130968614;
378 public static final int bg = 2130968615;
379 public static final int bh = 2130968703;
380 public static final int bi = 2131755039;
381 public static final int bj = 2131755040;
382 public static final int bk = 2131755060;
383 public static final int bl = 2131755148;
384 public static final int bm = 2131755149;
385 public static final int bn = 2131755272;
386 public static final int bo = 2131296262;
387 public static final int bp = 2131362120;
388 public static final int bq = 2131362121;
389 public static final int br = 2131427725;
390 public static final int bs = 2131427726;
391 public static final int bt = 2131427727;
392 public static final int bu = 2130837657;
393 public static final int bv = 2131558888;
394 public static final int bw = 2131558889;
395 public static final int bx = 2131558887;
396 public static final int by = 2131558881;
397 public static final int bz = 2131558880;
398 public static final int c = 2131034127;
399 public static final int cA = 2131165193;
400 public static final int cB = 2131165194;
401 public static final int cC = 2131165196;
402 public static final int cD = 2131099648;
403 public static final int cE = 2131755675;
404 public static final int cF = 2130837603;
405 public static final int cG = 2130837624;
406 public static Set<evy> cH = null;
407 public static Set<evy> cI = null;
408 public static gbi cJ = null;
409 public static giu cK = null;
410 public static gnl cL = null;
411 public static volatile boolean cM = false;
412 public static final int cN = 2131362242;
413 public static final int cO = 2131427625;
414 public static final int cP = 2131427626;
415 public static final int cQ = 2131427627;
416 public static final int cR = 2131427628;
417 public static final int cS = 2131427629;
418 public static final int cT = 2131427630;
419 public static final int cU = 2131427631;
420 public static final int cV = 2131427635;
421 public static final int cW = 2131427636;
422 public static final int cX = 2131558407;
423 public static final int cY = 2131558408;
424 public static final int cZ = 2131558409;
425 public static final int ca = 2131886086;
426 public static final int cb = 2131886087;
427 public static final int cc = 2131886088;
428 public static final int cd = 2131886089;
429 public static final int ce = 2130903040;
430 public static final int cf = 2131689475;
431 public static final int cg = 2131689477;
432 public static final int ch = 2131689478;
433 public static final int ci = 2131689479;
434 public static final int cj = 2131689480;
435 public static final int ck = 2131689481;
436 public static final int cl = 2131689482;
437 public static final int cm = 2131689483;
438 public static final int cn = 2131689484;
439 public static final int co = 2131689485;
440 public static final int cp = 2131689487;
441 public static final int cq = 2131689488;
442 public static final int cr = 2131689489;
443 public static final int cs = 2131689490;
444 public static final int ct = 2131689491;
445 public static final int cu = 2131165184;
446 public static final int cv = 2131165185;
447 public static final int cw = 2131165187;
448 public static final int cx = 2131165190;
449 public static final int cy = 2131165191;
450 public static final int cz = 2131165192;
451 public static final int d = 2131034128;
452 public static final int da = 2131558410;
453 public static final int db = 2131623953;
454 public static final int dc = 2130968772;
455 public static final int dd = 2131755368;
456 public static final int de = 2131427649;
457 public static final int df = 2131427650;
458 public static final int dg = 2131427651;
459 public static final int dh = 2131427652;
460 public static final int di = 2131427653;
461 public static final int dj = 2131427654;
462 public static final int dk = 2131427655;
463 public static final int dl = 2131427656;
464 public static final int dm = 2131427657;
465 public static final int dn = 2131821061;
466 public static final int do = 2131755497;
467 public static Method dp = null;
468 public static volatile Thread dq = null;
469 public static volatile Handler dr = null;
470 public static final int ds = 2131362067;
471 public static final int dt = 2131427611;
472 public static final int du = 2131427612;
473 public static final int dv = 2130838611;
474 public static final int dw = 2131755164;
475 public static final int e = 2130772014;
476 public static final int f = 2130772015;
477 public static final int g = 2131361982;
478 public static final int h = 2131361983;
479 public static final int i = 2131361984;
480 public static final int j = 2131361985;
481 public static final int k = 2131361986;
482 public static final int l = 2131361987;
483 public static final int m = 2131361988;
484 public static final int n = 2131427541;
485 public static final int o = 2131427542;
486 public static final int p = 2131427543;
487 public static final int q = 2131427547;
488 public static final int r = 2131427550;
489 public static final int s = 2131427558;
490 public static final int t = 2131427559;
491 public static final int u = 2130968645;
492 public static final int v = 2130968646;
493 public static final int w = 2130968650;
494 public static final int x = 2130968651;
495 public static final int y = 2130968652;
496 public static final int z = 2130968653;
497 private Toolbar dx;
498 private Drawable dy;
499 private CharSequence dz;
500
501 public static java.util.List<bii> w(java.lang.String r5) {
502 /* JADX: method processing error */
503/*
504 Error: java.lang.NullPointerException
505 at jadx.core.dex.visitors.ssa.SSATransform.placePhi(SSATransform.java:82)
506 at jadx.core.dex.visitors.ssa.SSATransform.process(SSATransform.java:50)
507 at jadx.core.dex.visitors.ssa.SSATransform.visit(SSATransform.java:42)
508 at jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)
509 at jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)
510 at jadx.core.ProcessClass.process(ProcessClass.java:37)
511 at jadx.core.ProcessClass.processDependencies(ProcessClass.java:59)
512 at jadx.core.ProcessClass.process(ProcessClass.java:42)
513 at jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:281)
514 at jadx.api.JavaClass.decompile(JavaClass.java:59)
515 at jadx.api.JadxDecompiler$1.run(JadxDecompiler.java:161)
516*/
517 /*
518 r1 = new android.util.JsonReader;
519 r0 = new java.io.StringReader;
520 r0.<init>(r5);
521 r1.<init>(r0);
522 r0 = a(r1); Catch:{ IOException -> 0x001a, all -> 0x0032 }
523 r2 = 1;
524 jll.a(r1, r2); Catch:{ IOException -> 0x0013 }
525 L_0x0012:
526 return r0;
527 L_0x0013:
528 r0 = move-exception;
529 r1 = new java.lang.AssertionError;
530 r1.<init>(r0);
531 throw r1;
532 L_0x001a:
533 r0 = move-exception;
534 r2 = "FireballComponentView"; Catch:{ IOException -> 0x001a, all -> 0x0032 }
535 r3 = "Error whilst parsing metadata"; Catch:{ IOException -> 0x001a, all -> 0x0032 }
536 r4 = 0; Catch:{ IOException -> 0x001a, all -> 0x0032 }
537 r4 = new java.lang.Object[r4]; Catch:{ IOException -> 0x001a, all -> 0x0032 }
538 bhf.c(r2, r0, r3, r4); Catch:{ IOException -> 0x001a, all -> 0x0032 }
539 r0 = 1;
540 jll.a(r1, r0); Catch:{ IOException -> 0x002b }
541 r0 = 0;
542 goto L_0x0012;
543 L_0x002b:
544 r0 = move-exception;
545 r1 = new java.lang.AssertionError;
546 r1.<init>(r0);
547 throw r1;
548 L_0x0032:
549 r0 = move-exception;
550 r2 = 1;
551 jll.a(r1, r2); Catch:{ IOException -> 0x0038 }
552 throw r0;
553 L_0x0038:
554 r0 = move-exception;
555 r1 = new java.lang.AssertionError;
556 r1.<init>(r0);
557 throw r1;
558 */
559 throw new UnsupportedOperationException("Method not decompiled: ux.w(java.lang.String):java.util.List<bii>");
560 }
561
562 public final void a(Drawable drawable, int i) {
563 this.dx.b(drawable);
564 b(i);
565 }
566
567 public final void b(int i) {
568 if (i == 0) {
569 this.dx.c(this.dz);
570 } else {
571 this.dx.c(i);
572 }
573 }
574
575 public final Drawable a() {
576 return this.dy;
577 }
578
579 public final Context b() {
580 return this.dx.getContext();
581 }
582
583 public final boolean c() {
584 return true;
585 }
586
587 public static m b(Parcel parcel, ClassLoader classLoader) {
588 return new m(parcel, classLoader);
589 }
590
591 public static m[] c(int i) {
592 return new m[i];
593 }
594
595 public /* synthetic */ Object[] a(int i) {
596 return c(i);
597 }
598
599 public /* synthetic */ Object a(Parcel parcel, ClassLoader classLoader) {
600 return b(parcel, classLoader);
601 }
602
603 public static int a(int i, int i2, int i3) {
604 if (i < i2) {
605 return i2;
606 }
607 return i > i3 ? i3 : i;
608 }
609
610 public static float a(float f, float f2, float f3) {
611 if (f < 0.0f) {
612 return 0.0f;
613 }
614 return f > 1.0f ? 1.0f : f;
615 }
616
617 public static float[] a(float[] fArr, int i, int i2) {
618 if (i > i2) {
619 throw new IllegalArgumentException();
620 }
621 int length = fArr.length;
622 if (i < 0 || i > length) {
623 throw new ArrayIndexOutOfBoundsException();
624 }
625 int i3 = i2 - i;
626 length = Math.min(i3, length - i);
627 Object obj = new float[i3];
628 System.arraycopy(fArr, i, obj, 0, length);
629 return obj;
630 }
631
632 public static cz[] a(String str) {
633 if (str == null) {
634 return null;
635 }
636 ArrayList arrayList = new ArrayList();
637 int i = 1;
638 int i2 = 0;
639 while (i < str.length()) {
640 int a = a(str, i);
641 String trim = str.substring(i2, a).trim();
642 if (trim.length() > 0) {
643 a(arrayList, trim.charAt(0), b(trim));
644 }
645 i = a + 1;
646 i2 = a;
647 }
648 if (i - i2 == 1 && i2 < str.length()) {
649 a(arrayList, str.charAt(i2), new float[0]);
650 }
651 return (cz[]) arrayList.toArray(new cz[arrayList.size()]);
652 }
653
654 public static cz[] a(cz[] czVarArr) {
655 if (czVarArr == null) {
656 return null;
657 }
658 cz[] czVarArr2 = new cz[czVarArr.length];
659 for (int i = 0; i < czVarArr.length; i++) {
660 czVarArr2[i] = new cz(czVarArr[i]);
661 }
662 return czVarArr2;
663 }
664
665 public static int a(String str, int i) {
666 while (i < str.length()) {
667 char charAt = str.charAt(i);
668 if (((charAt - 65) * (charAt - 90) <= 0 || (charAt - 97) * (charAt - 122) <= 0) && charAt != 'e' && charAt != 'E') {
669 break;
670 }
671 i++;
672 }
673 return i;
674 }
675
676 public static void a(ArrayList<cz> arrayList, char c, float[] fArr) {
677 arrayList.add(new cz(c, fArr));
678 }
679
680 public static float[] b(String str) {
681 if (((str.charAt(0) == 'z' ? 1 : 0) | (str.charAt(0) == 'Z' ? 1 : 0)) != 0) {
682 return new float[0];
683 }
684 try {
685 float[] fArr = new float[str.length()];
686 cy cyVar = new cy();
687 int length = str.length();
688 int i = 0;
689 int i2 = 1;
690 while (i2 < length) {
691 int i3;
692 a(str, i2, cyVar);
693 int i4 = cyVar.a;
694 if (i2 < i4) {
695 i3 = i + 1;
696 fArr[i] = Float.parseFloat(str.substring(i2, i4));
697 } else {
698 i3 = i;
699 }
700 if (cyVar.b) {
701 i2 = i4;
702 i = i3;
703 } else {
704 i2 = i4 + 1;
705 i = i3;
706 }
707 }
708 return a(fArr, 0, i);
709 } catch (Throwable e) {
710 throw new RuntimeException("error in parsing \"" + str + "\"", e);
711 }
712 }
713
714 /* JADX WARNING: inconsistent code. */
715 /* Code decompiled incorrectly, please refer to instructions dump. */
716 public static void a(java.lang.String r7, int r8, cy r9) {
717 /*
718 r1 = 0;
719 r5 = 1;
720 r9.b = r1;
721 r0 = r1;
722 r2 = r1;
723 r3 = r1;
724 r4 = r8;
725 L_0x0008:
726 r6 = r7.length();
727 if (r4 >= r6) goto L_0x0033;
728 L_0x000e:
729 r6 = r7.charAt(r4);
730 switch(r6) {
731 case 32: goto L_0x001b;
732 case 44: goto L_0x001b;
733 case 45: goto L_0x001e;
734 case 46: goto L_0x0027;
735 case 69: goto L_0x0031;
736 case 101: goto L_0x0031;
737 default: goto L_0x0015;
738 };
739 L_0x0015:
740 r0 = r1;
741 L_0x0016:
742 if (r3 != 0) goto L_0x0033;
743 L_0x0018:
744 r4 = r4 + 1;
745 goto L_0x0008;
746 L_0x001b:
747 r0 = r1;
748 r3 = r5;
749 goto L_0x0016;
750 L_0x001e:
751 if (r4 == r8) goto L_0x0015;
752 L_0x0020:
753 if (r0 != 0) goto L_0x0015;
754 L_0x0022:
755 r9.b = r5;
756 r0 = r1;
757 r3 = r5;
758 goto L_0x0016;
759 L_0x0027:
760 if (r2 != 0) goto L_0x002c;
761 L_0x0029:
762 r0 = r1;
763 r2 = r5;
764 goto L_0x0016;
765 L_0x002c:
766 r9.b = r5;
767 r0 = r1;
768 r3 = r5;
769 goto L_0x0016;
770 L_0x0031:
771 r0 = r5;
772 goto L_0x0016;
773 L_0x0033:
774 r9.a = r4;
775 return;
776 */
777 throw new UnsupportedOperationException("Method not decompiled: ux.a(java.lang.String, int, cy):void");
778 }
779
780 public static boolean a(XmlPullParser xmlPullParser, String str) {
781 return xmlPullParser.getAttributeValue("http://schemas.android.com/apk/res/android", str) != null;
782 }
783
784 public static float a(TypedArray typedArray, XmlPullParser xmlPullParser, String str, int i, float f) {
785 return !a(xmlPullParser, str) ? f : typedArray.getFloat(i, f);
786 }
787
788 public static boolean a(TypedArray typedArray, XmlPullParser xmlPullParser, String str, int i, boolean z) {
789 return !a(xmlPullParser, str) ? z : typedArray.getBoolean(5, z);
790 }
791
792 public static int a(TypedArray typedArray, XmlPullParser xmlPullParser, String str, int i, int i2) {
793 if (a(xmlPullParser, str)) {
794 return typedArray.getInt(i, -1);
795 }
796 return -1;
797 }
798
799 public static int b(TypedArray typedArray, XmlPullParser xmlPullParser, String str, int i, int i2) {
800 return !a(xmlPullParser, str) ? i2 : typedArray.getColor(i, i2);
801 }
802
803 public static void a(ClassLoader classLoader, List<File> list, File file) {
804 Object obj = dj.a(classLoader, "pathList").get(classLoader);
805 dj.a(obj, "dexElements", a(obj, new ArrayList(list), file));
806 }
807
808 public static Object[] a(Object obj, ArrayList<File> arrayList, File file) {
809 return (Object[]) dj.a(obj, "makeDexElements", ArrayList.class, File.class).invoke(obj, new Object[]{arrayList, file});
810 }
811
812 public static void a(ClassLoader classLoader, List<File> list) {
813 int size = list.size();
814 Field a = dj.a(classLoader, "path");
815 StringBuilder stringBuilder = new StringBuilder((String) a.get(classLoader));
816 Object[] objArr = new String[size];
817 Object[] objArr2 = new File[size];
818 Object[] objArr3 = new ZipFile[size];
819 Object[] objArr4 = new DexFile[size];
820 ListIterator listIterator = list.listIterator();
821 while (listIterator.hasNext()) {
822 File file = (File) listIterator.next();
823 String absolutePath = file.getAbsolutePath();
824 stringBuilder.append(':').append(absolutePath);
825 int previousIndex = listIterator.previousIndex();
826 objArr[previousIndex] = absolutePath;
827 objArr2[previousIndex] = file;
828 objArr3[previousIndex] = new ZipFile(file);
829 objArr4[previousIndex] = DexFile.loadDex(absolutePath, absolutePath + ".dex", 0);
830 }
831 a.set(classLoader, stringBuilder.toString());
832 dj.a((Object) classLoader, "mPaths", objArr);
833 dj.a((Object) classLoader, "mFiles", objArr2);
834 dj.a((Object) classLoader, "mZips", objArr3);
835 dj.a((Object) classLoader, "mDexs", objArr4);
836 }
837
838 public static long a(File file) {
839 RandomAccessFile randomAccessFile = new RandomAccessFile(file, "r");
840 try {
841 long a = a(randomAccessFile, a(randomAccessFile));
842 return a;
843 } finally {
844 randomAccessFile.close();
845 }
846 }
847
848 public static dm a(RandomAccessFile randomAccessFile) {
849 long j = 0;
850 long length = randomAccessFile.length() - 22;
851 if (length < 0) {
852 throw new ZipException("File too short to be a zip file: " + randomAccessFile.length());
853 }
854 long j2 = length - 65536;
855 if (j2 >= 0) {
856 j = j2;
857 }
858 int reverseBytes = Integer.reverseBytes(101010256);
859 j2 = length;
860 do {
861 randomAccessFile.seek(j2);
862 if (randomAccessFile.readInt() != reverseBytes) {
863 j2--;
864 } else {
865 randomAccessFile.skipBytes(2);
866 randomAccessFile.skipBytes(2);
867 randomAccessFile.skipBytes(2);
868 randomAccessFile.skipBytes(2);
869 dm dmVar = new dm();
870 dmVar.b = ((long) Integer.reverseBytes(randomAccessFile.readInt())) & 4294967295L;
871 dmVar.a = ((long) Integer.reverseBytes(randomAccessFile.readInt())) & 4294967295L;
872 return dmVar;
873 }
874 } while (j2 >= j);
875 throw new ZipException("End Of Central Directory signature not found");
876 }
877
878 public static long a(RandomAccessFile randomAccessFile, dm dmVar) {
879 CRC32 crc32 = new CRC32();
880 long j = dmVar.b;
881 randomAccessFile.seek(dmVar.a);
882 byte[] bArr = new byte[16384];
883 int read = randomAccessFile.read(bArr, 0, (int) Math.min(16384, j));
884 while (read != -1) {
885 crc32.update(bArr, 0, read);
886 j -= (long) read;
887 if (j == 0) {
888 break;
889 }
890 read = randomAccessFile.read(bArr, 0, (int) Math.min(16384, j));
891 }
892 return crc32.getValue();
893 }
894
895 public static void a(Activity activity) {
896 activity.finishAfterTransition();
897 }
898
899 public static void b(Activity activity) {
900 activity.invalidateOptionsMenu();
901 }
902
903 public static void a(Context context, Intent intent, Bundle bundle) {
904 context.startActivity(intent, bundle);
905 }
906
907 public static void a(Activity activity, Intent intent, int i, Bundle bundle) {
908 activity.startActivityForResult(intent, i, bundle);
909 }
910
911 public static void c(Activity activity) {
912 activity.finishAffinity();
913 }
914
915 public static String c(String str) {
916 return AppOpsManager.permissionToOp(str);
917 }
918
919 public static int a(Context context, String str, String str2) {
920 return ((AppOpsManager) context.getSystemService(AppOpsManager.class)).noteProxyOp(str, str2);
921 }
922
923 public static void a(Bundle bundle, String str, IBinder iBinder) {
924 if (VERSION.SDK_INT >= 18) {
925 cb.a(bundle, str, iBinder);
926 } else {
927 etr.putBinder(bundle, str, iBinder);
928 }
929 }
930
931 public static String a(View view) {
932 return view.getTransitionName();
933 }
934
935 public static Object a(Object obj) {
936 if (obj != null) {
937 return ((Transition) obj).clone();
938 }
939 return obj;
940 }
941
942 public static Object a(Object obj, View view, ArrayList<View> arrayList, Map<String, View> map, View view2) {
943 if (obj == null) {
944 return obj;
945 }
946 a((ArrayList) arrayList, view);
947 if (map != null) {
948 arrayList.removeAll(map.values());
949 }
950 if (arrayList.isEmpty()) {
951 return null;
952 }
953 arrayList.add(view2);
954 b((Transition) obj, (ArrayList) arrayList);
955 return obj;
956 }
957
958 public static void a(Object obj, View view, boolean z) {
959 ((Transition) obj).excludeTarget(view, z);
960 }
961
962 public static void a(ViewGroup viewGroup, Object obj) {
963 TransitionManager.beginDelayedTransition(viewGroup, (Transition) obj);
964 }
965
966 public static void a(Object obj, View view) {
967 ((Transition) obj).setEpicenterCallback(new fi(b(view)));
968 }
969
970 public static Object b(Object obj) {
971 if (obj == null) {
972 return null;
973 }
974 Transition transition = (Transition) obj;
975 if (transition == null) {
976 return null;
977 }
978 Object transitionSet = new TransitionSet();
979 transitionSet.addTransition(transition);
980 return transitionSet;
981 }
982
983 public static void a(Transition transition, Transition transition2, ArrayList<View> arrayList, boolean z) {
984 if (transition != null) {
985 int size = transition2 == null ? 0 : arrayList.size();
986 for (int i = 0; i < size; i++) {
987 transition.excludeTarget((View) arrayList.get(i), z);
988 }
989 }
990 }
991
992 public static void a(Object obj, Object obj2, Object obj3, ArrayList<View> arrayList, boolean z) {
993 Transition transition = (Transition) obj2;
994 Transition transition2 = (Transition) obj3;
995 a((Transition) obj, transition2, (ArrayList) arrayList, z);
996 a(transition, transition2, (ArrayList) arrayList, z);
997 }
998
999 public static void a(Object obj, Object obj2, Object obj3, View view, fn fnVar, View view2, fm fmVar, Map<String, String> map, ArrayList<View> arrayList, ArrayList<View> arrayList2, Map<String, View> map2, Map<String, View> map3, ArrayList<View> arrayList3) {
1000 Transition transition = (Transition) obj;
1001 Transition transition2 = (Transition) obj3;
1002 Transition transition3 = (Transition) obj2;
1003 a(transition, transition2, (ArrayList) arrayList2, true);
1004 if (obj != null || obj2 != null) {
1005 if (transition != null) {
1006 transition.addTarget(view2);
1007 }
1008 if (obj2 != null) {
1009 a((Object) transition3, view2, (Map) map2, (ArrayList) arrayList3);
1010 a(transition, transition3, (ArrayList) arrayList3, true);
1011 a(transition2, transition3, (ArrayList) arrayList3, true);
1012 }
1013 view.getViewTreeObserver().addOnPreDrawListener(new fj(view, transition, view2, fnVar, map, map3, arrayList, transition2));
1014 a(transition, fmVar);
1015 }
1016 }
1017
1018 public static Object a(Object obj, Object obj2, Object obj3, boolean z) {
1019 Transition transition = (Transition) obj;
1020 Transition transition2 = (Transition) obj2;
1021 Transition transition3 = (Transition) obj3;
1022 if (transition == null || transition2 == null) {
1023 z = true;
1024 }
1025 Object transitionSet;
1026 if (z) {
1027 transitionSet = new TransitionSet();
1028 if (transition != null) {
1029 transitionSet.addTransition(transition);
1030 }
1031 if (transition2 != null) {
1032 transitionSet.addTransition(transition2);
1033 }
1034 if (transition3 == null) {
1035 return transitionSet;
1036 }
1037 transitionSet.addTransition(transition3);
1038 return transitionSet;
1039 }
1040 Transition transition4 = null;
1041 if (transition2 != null && transition != null) {
1042 transition4 = new TransitionSet().addTransition(transition2).addTransition(transition).setOrdering(1);
1043 } else if (transition2 != null) {
1044 transition4 = transition2;
1045 } else if (transition != null) {
1046 transition4 = transition;
1047 }
1048 if (transition3 == null) {
1049 return transition4;
1050 }
1051 transitionSet = new TransitionSet();
1052 if (transition4 != null) {
1053 transitionSet.addTransition(transition4);
1054 }
1055 transitionSet.addTransition(transition3);
1056 return transitionSet;
1057 }
1058
1059 public static void a(Object obj, View view, Map<String, View> map, ArrayList<View> arrayList) {
1060 obj = (TransitionSet) obj;
1061 arrayList.clear();
1062 arrayList.addAll(map.values());
1063 List targets = obj.getTargets();
1064 targets.clear();
1065 int size = arrayList.size();
1066 for (int i = 0; i < size; i++) {
1067 a(targets, (View) arrayList.get(i));
1068 }
1069 arrayList.add(view);
1070 b(obj, (ArrayList) arrayList);
1071 }
1072
1073 public static void a(List<View> list, View view) {
1074 int size = list.size();
1075 if (!a((List) list, view, size)) {
1076 list.add(view);
1077 for (int i = size; i < list.size(); i++) {
1078 View view2 = (View) list.get(i);
1079 if (view2 instanceof ViewGroup) {
1080 ViewGroup viewGroup = (ViewGroup) view2;
1081 int childCount = viewGroup.getChildCount();
1082 for (int i2 = 0; i2 < childCount; i2++) {
1083 View childAt = viewGroup.getChildAt(i2);
1084 if (!a((List) list, childAt, size)) {
1085 list.add(childAt);
1086 }
1087 }
1088 }
1089 }
1090 }
1091 }
1092
1093 public static boolean a(List<View> list, View view, int i) {
1094 for (int i2 = 0; i2 < i; i2++) {
1095 if (list.get(i2) == view) {
1096 return true;
1097 }
1098 }
1099 return false;
1100 }
1101
1102 public static void a(Transition transition, fm fmVar) {
1103 if (transition != null) {
1104 transition.setEpicenterCallback(new fk(fmVar));
1105 }
1106 }
1107
1108 public static Rect b(View view) {
1109 Rect rect = new Rect();
1110 int[] iArr = new int[2];
1111 view.getLocationOnScreen(iArr);
1112 rect.set(iArr[0], iArr[1], iArr[0] + view.getWidth(), iArr[1] + view.getHeight());
1113 return rect;
1114 }
1115
1116 public static void a(ArrayList<View> arrayList, View view) {
1117 if (view.getVisibility() != 0) {
1118 return;
1119 }
1120 if (view instanceof ViewGroup) {
1121 ViewGroup viewGroup = (ViewGroup) view;
1122 if (viewGroup.isTransitionGroup()) {
1123 arrayList.add(viewGroup);
1124 return;
1125 }
1126 int childCount = viewGroup.getChildCount();
1127 for (int i = 0; i < childCount; i++) {
1128 a((ArrayList) arrayList, viewGroup.getChildAt(i));
1129 }
1130 return;
1131 }
1132 arrayList.add(view);
1133 }
1134
1135 public static void a(Map<String, View> map, View view) {
1136 if (view.getVisibility() == 0) {
1137 String transitionName = view.getTransitionName();
1138 if (transitionName != null) {
1139 map.put(transitionName, view);
1140 }
1141 if (view instanceof ViewGroup) {
1142 ViewGroup viewGroup = (ViewGroup) view;
1143 int childCount = viewGroup.getChildCount();
1144 for (int i = 0; i < childCount; i++) {
1145 a((Map) map, viewGroup.getChildAt(i));
1146 }
1147 }
1148 }
1149 }
1150
1151 public static void a(View view, View view2, Object obj, ArrayList<View> arrayList, Object obj2, ArrayList<View> arrayList2, Object obj3, ArrayList<View> arrayList3, Object obj4, ArrayList<View> arrayList4, Map<String, View> map) {
1152 Transition transition = (Transition) obj;
1153 Transition transition2 = (Transition) obj2;
1154 Transition transition3 = (Transition) obj3;
1155 Transition transition4 = (Transition) obj4;
1156 if (transition4 != null) {
1157 view.getViewTreeObserver().addOnPreDrawListener(new fl(view, transition, arrayList, transition2, arrayList2, transition3, arrayList3, map, arrayList4, transition4, view2));
1158 }
1159 }
1160
1161 public static void a(Object obj, ArrayList<View> arrayList) {
1162 Transition transition = (Transition) obj;
1163 int transitionCount;
1164 if (transition instanceof TransitionSet) {
1165 TransitionSet transitionSet = (TransitionSet) transition;
1166 transitionCount = transitionSet.getTransitionCount();
1167 for (int i = 0; i < transitionCount; i++) {
1168 a(transitionSet.getTransitionAt(i), (ArrayList) arrayList);
1169 }
1170 } else if (!a(transition)) {
1171 List targets = transition.getTargets();
1172 if (targets != null && targets.size() == arrayList.size() && targets.containsAll(arrayList)) {
1173 for (transitionCount = arrayList.size() - 1; transitionCount >= 0; transitionCount--) {
1174 transition.removeTarget((View) arrayList.get(transitionCount));
1175 }
1176 }
1177 }
1178 }
1179
1180 public static void b(Object obj, ArrayList<View> arrayList) {
1181 int i = 0;
1182 Transition transition = (Transition) obj;
1183 int transitionCount;
1184 if (transition instanceof TransitionSet) {
1185 TransitionSet transitionSet = (TransitionSet) transition;
1186 transitionCount = transitionSet.getTransitionCount();
1187 while (i < transitionCount) {
1188 b(transitionSet.getTransitionAt(i), (ArrayList) arrayList);
1189 i++;
1190 }
1191 } else if (!a(transition) && a(transition.getTargets())) {
1192 int size = arrayList.size();
1193 for (transitionCount = 0; transitionCount < size; transitionCount++) {
1194 transition.addTarget((View) arrayList.get(transitionCount));
1195 }
1196 }
1197 }
1198
1199 public static boolean a(Transition transition) {
1200 return (a(transition.getTargetIds()) && a(transition.getTargetNames()) && a(transition.getTargetTypes())) ? false : true;
1201 }
1202
1203 public static boolean a(List list) {
1204 return list == null || list.isEmpty();
1205 }
1206
1207 public static Intent d(Activity activity) {
1208 return activity.getParentActivityIntent();
1209 }
1210
1211 public static boolean a(Activity activity, Intent intent) {
1212 return activity.shouldUpRecreateTask(intent);
1213 }
1214
1215 public static void b(Activity activity, Intent intent) {
1216 activity.navigateUpTo(intent);
1217 }
1218
1219 public static String a(ActivityInfo activityInfo) {
1220 return activityInfo.parentActivityName;
1221 }
1222
1223 public static void a(Builder builder, gx gxVar) {
1224 Bundle bundle;
1225 Action.Builder builder2 = new Action.Builder(gxVar.a(), gxVar.b(), gxVar.c());
1226 if (gxVar.f() != null) {
1227 for (RemoteInput addRemoteInput : a(gxVar.f())) {
1228 builder2.addRemoteInput(addRemoteInput);
1229 }
1230 }
1231 if (gxVar.d() != null) {
1232 bundle = new Bundle(gxVar.d());
1233 } else {
1234 bundle = new Bundle();
1235 }
1236 bundle.putBoolean("android.support.allowGeneratedReplies", gxVar.e());
1237 builder2.addExtras(bundle);
1238 builder.addAction(builder2.build());
1239 }
1240
1241 public static void a(ga gaVar, CharSequence charSequence, CharSequence charSequence2, List<CharSequence> list, List<Long> list2, List<CharSequence> list3, List<String> list4, List<Uri> list5) {
1242 MessagingStyle conversationTitle = new MessagingStyle(charSequence).setConversationTitle(charSequence2);
1243 for (int i = 0; i < list.size(); i++) {
1244 Message message = new Message((CharSequence) list.get(i), ((Long) list2.get(i)).longValue(), (CharSequence) list3.get(i));
1245 if (list4.get(i) != null) {
1246 message.setData((String) list4.get(i), (Uri) list5.get(i));
1247 }
1248 conversationTitle.addMessage(message);
1249 }
1250 conversationTitle.setBuilder(gaVar.a());
1251 }
1252
1253 public static Notification a(Notification notification, Context context, CharSequence charSequence, CharSequence charSequence2, PendingIntent pendingIntent) {
1254 notification.setLatestEventInfo(context, charSequence, charSequence2, pendingIntent);
1255 return notification;
1256 }
1257
1258 public static Notification a(Notification notification, Context context, CharSequence charSequence, CharSequence charSequence2, PendingIntent pendingIntent, PendingIntent pendingIntent2) {
1259 notification.setLatestEventInfo(context, charSequence, charSequence2, pendingIntent);
1260 notification.fullScreenIntent = pendingIntent2;
1261 return notification;
1262 }
1263
1264 public static Notification a(Context context, Notification notification, CharSequence charSequence, CharSequence charSequence2, CharSequence charSequence3, RemoteViews remoteViews, int i, PendingIntent pendingIntent, PendingIntent pendingIntent2, Bitmap bitmap) {
1265 boolean z;
1266 boolean z2 = true;
1267 Builder ongoing = new Builder(context).setWhen(notification.when).setSmallIcon(notification.icon, notification.iconLevel).setContent(notification.contentView).setTicker(notification.tickerText, remoteViews).setSound(notification.sound, notification.audioStreamType).setVibrate(notification.vibrate).setLights(notification.ledARGB, notification.ledOnMS, notification.ledOffMS).setOngoing((notification.flags & 2) != 0);
1268 if ((notification.flags & 8) != 0) {
1269 z = true;
1270 } else {
1271 z = false;
1272 }
1273 ongoing = ongoing.setOnlyAlertOnce(z);
1274 if ((notification.flags & 16) != 0) {
1275 z = true;
1276 } else {
1277 z = false;
1278 }
1279 Builder deleteIntent = ongoing.setAutoCancel(z).setDefaults(notification.defaults).setContentTitle(charSequence).setContentText(charSequence2).setContentInfo(charSequence3).setContentIntent(pendingIntent).setDeleteIntent(notification.deleteIntent);
1280 if ((notification.flags & 128) == 0) {
1281 z2 = false;
1282 }
1283 return deleteIntent.setFullScreenIntent(pendingIntent2, z2).setLargeIcon(bitmap).setNumber(i).getNotification();
1284 }
1285
1286 public static Bundle a(Notification notification) {
1287 return notification.extras;
1288 }
1289
1290 public static void a(NotificationManager notificationManager, String str, int i) {
1291 notificationManager.cancel(str, i);
1292 }
1293
1294 public static void a(NotificationManager notificationManager, String str, int i, Notification notification) {
1295 notificationManager.notify(str, i, notification);
1296 }
1297
1298 public static RemoteInput[] a(hs[] hsVarArr) {
1299 if (hsVarArr == null) {
1300 return null;
1301 }
1302 RemoteInput[] remoteInputArr = new RemoteInput[hsVarArr.length];
1303 for (int i = 0; i < hsVarArr.length; i++) {
1304 hs hsVar = hsVarArr[i];
1305 remoteInputArr[i] = new RemoteInput.Builder(hsVar.a()).setLabel(hsVar.b()).setChoices(hsVar.c()).setAllowFreeFormInput(hsVar.d()).addExtras(hsVar.e()).build();
1306 }
1307 return remoteInputArr;
1308 }
1309
1310 public static Bundle a(hs hsVar) {
1311 Bundle bundle = new Bundle();
1312 bundle.putString("resultKey", hsVar.a());
1313 bundle.putCharSequence("label", hsVar.b());
1314 bundle.putCharSequenceArray("choices", hsVar.c());
1315 bundle.putBoolean("allowFreeFormInput", hsVar.d());
1316 bundle.putBundle("extras", hsVar.e());
1317 return bundle;
1318 }
1319
1320 public static Bundle[] b(hs[] hsVarArr) {
1321 if (hsVarArr == null) {
1322 return null;
1323 }
1324 Bundle[] bundleArr = new Bundle[hsVarArr.length];
1325 for (int i = 0; i < hsVarArr.length; i++) {
1326 bundleArr[i] = a(hsVarArr[i]);
1327 }
1328 return bundleArr;
1329 }
1330
1331 public static PendingIntent a(Context context, int i, Intent[] intentArr, int i2) {
1332 return PendingIntent.getActivities(context, i, intentArr, i2);
1333 }
1334
1335 public static Cursor a(ContentResolver contentResolver, Uri uri, String[] strArr, String str, String[] strArr2, String str2, Object obj) {
1336 return contentResolver.query(uri, strArr, str, strArr2, str2, (CancellationSignal) obj);
1337 }
1338
1339 public static boolean a(Exception exception) {
1340 return exception instanceof OperationCanceledException;
1341 }
1342
1343 public static Drawable a(Context context, int i) {
1344 return context.getDrawable(i);
1345 }
1346
1347 public static ColorStateList b(Context context, int i) {
1348 return context.getColorStateList(i);
1349 }
1350
1351 public static void a(Context context, Intent[] intentArr) {
1352 context.startActivities(intentArr);
1353 }
1354
1355 public static void a(Context context, Intent[] intentArr, Bundle bundle) {
1356 context.startActivities(intentArr, bundle);
1357 }
1358
1359 public static void a(Editor editor) {
1360 try {
1361 editor.apply();
1362 } catch (AbstractMethodError e) {
1363 editor.commit();
1364 }
1365 }
1366
1367 public static Intent a(ComponentName componentName) {
1368 return Intent.makeMainActivity(componentName);
1369 }
1370
1371 public static int a(Context context, String str, int i, int i2, String str2) {
1372 if (context.checkPermission(str, i, i2) == -1) {
1373 return -1;
1374 }
1375 String a = dv.a.a(str);
1376 if (a == null) {
1377 return 0;
1378 }
1379 if (str2 == null) {
1380 String[] packagesForUid = context.getPackageManager().getPackagesForUid(i2);
1381 if (packagesForUid == null || packagesForUid.length <= 0) {
1382 return -1;
1383 }
1384 str2 = packagesForUid[0];
1385 }
1386 return dv.a.a(context, a, str2) != 0 ? -2 : 0;
1387 }
1388
1389 public static int a(Context context, String str) {
1390 return a(context, str, Process.myPid(), Process.myUid(), context.getPackageName());
1391 }
1392
1393 public static int a(Resources resources) {
1394 DisplayMetrics displayMetrics = resources.getDisplayMetrics();
1395 return (int) (((float) displayMetrics.heightPixels) / displayMetrics.density);
1396 }
1397
1398 public static int b(Resources resources) {
1399 DisplayMetrics displayMetrics = resources.getDisplayMetrics();
1400 return (int) (((float) displayMetrics.widthPixels) / displayMetrics.density);
1401 }
1402
1403 public static int c(Resources resources) {
1404 return Math.min(b(resources), a(resources));
1405 }
1406
1407 public static Drawable a(Resources resources, int i, Theme theme) {
1408 if (VERSION.SDK_INT >= 21) {
1409 return etr.getDrawable(resources, i, theme);
1410 }
1411 return resources.getDrawable(i);
1412 }
1413
1414 public static boolean a(TypedArray typedArray, int i, int i2, boolean z) {
1415 return typedArray.getBoolean(i, typedArray.getBoolean(i2, z));
1416 }
1417
1418 public static Drawable a(TypedArray typedArray, int i, int i2) {
1419 Drawable drawable = typedArray.getDrawable(i);
1420 if (drawable == null) {
1421 return typedArray.getDrawable(i2);
1422 }
1423 return drawable;
1424 }
1425
1426 public static int a(TypedArray typedArray, int i, int i2, int i3) {
1427 return typedArray.getInt(i, typedArray.getInt(i2, Preference.DEFAULT_ORDER));
1428 }
1429
1430 public static int b(TypedArray typedArray, int i, int i2, int i3) {
1431 return typedArray.getResourceId(i, typedArray.getResourceId(i2, i3));
1432 }
1433
1434 public static String b(TypedArray typedArray, int i, int i2) {
1435 String string = typedArray.getString(i);
1436 if (string == null) {
1437 return typedArray.getString(i2);
1438 }
1439 return string;
1440 }
1441
1442 public static CharSequence[] c(TypedArray typedArray, int i, int i2) {
1443 CharSequence[] textArray = typedArray.getTextArray(i);
1444 if (textArray == null) {
1445 return typedArray.getTextArray(i2);
1446 }
1447 return textArray;
1448 }
1449
1450 public static int a(Context context, int i, int i2) {
1451 TypedValue typedValue = new TypedValue();
1452 context.getTheme().resolveAttribute(i, typedValue, true);
1453 return typedValue.resourceId != 0 ? i : i2;
1454 }
1455
1456 public static boolean b(Drawable drawable, int i) {
1457 return drawable.setLayoutDirection(i);
1458 }
1459
1460 public static int a(Drawable drawable) {
1461 return drawable.getLayoutDirection();
1462 }
1463
1464 public static void c(Drawable drawable, int i) {
1465 if (drawable instanceof ke) {
1466 ((ke) drawable).setTint(i);
1467 }
1468 }
1469
1470 public static void a(Drawable drawable, ColorStateList colorStateList) {
1471 if (drawable instanceof ke) {
1472 ((ke) drawable).setTintList(colorStateList);
1473 }
1474 }
1475
1476 public static void a(Drawable drawable, Mode mode) {
1477 if (drawable instanceof ke) {
1478 ((ke) drawable).setTintMode(mode);
1479 }
1480 }
1481
1482 public static Drawable b(Drawable drawable) {
1483 if (drawable instanceof ke) {
1484 return drawable;
1485 }
1486 return new jt(drawable);
1487 }
1488
1489 public static void a(Drawable drawable, Resources resources, XmlPullParser xmlPullParser, AttributeSet attributeSet) {
1490 drawable.inflate(resources, xmlPullParser, attributeSet);
1491 }
1492
1493 public static <Params, Progress, Result> AsyncTask<Params, Progress, Result> a(AsyncTask<Params, Progress, Result> asyncTask, Params... paramsArr) {
1494 if (VERSION.SDK_INT >= 11) {
1495 b((AsyncTask) asyncTask, (Object[]) paramsArr);
1496 } else {
1497 asyncTask.execute(paramsArr);
1498 }
1499 return asyncTask;
1500 }
1501
1502 public static <Params, Progress, Result> void b(AsyncTask<Params, Progress, Result> asyncTask, Params... paramsArr) {
1503 asyncTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, paramsArr);
1504 }
1505
1506 public static boolean d() {
1507 return VERSION.SDK_INT >= 24;
1508 }
1509
1510 public static Object e() {
1511 return new CancellationSignal();
1512 }
1513
1514 public static void c(Object obj) {
1515 ((CancellationSignal) obj).cancel();
1516 }
1517
1518 public static <T> Creator<T> a(kl<T> klVar) {
1519 if (VERSION.SDK_INT >= 13) {
1520 return b((kl) klVar);
1521 }
1522 return new kk(klVar);
1523 }
1524
1525 public static <T> Creator<T> b(kl<T> klVar) {
1526 return new km(klVar);
1527 }
1528
1529 public static void d(String str) {
1530 if (VERSION.SDK_INT >= 18) {
1531 etr.beginSection(str);
1532 }
1533 }
1534
1535 public static void f() {
1536 if (VERSION.SDK_INT >= 18) {
1537 etr.endSection();
1538 }
1539 }
1540
1541 public static int a(Locale locale) {
1542 return TextUtils.getLayoutDirectionFromLocale(locale);
1543 }
1544
1545 public static void a(Object obj, StringBuilder stringBuilder) {
1546 if (obj == null) {
1547 stringBuilder.append("null");
1548 return;
1549 }
1550 String simpleName = obj.getClass().getSimpleName();
1551 if (simpleName == null || simpleName.length() <= 0) {
1552 simpleName = obj.getClass().getName();
1553 int lastIndexOf = simpleName.lastIndexOf(46);
1554 if (lastIndexOf > 0) {
1555 simpleName = simpleName.substring(lastIndexOf + 1);
1556 }
1557 }
1558 stringBuilder.append(simpleName);
1559 stringBuilder.append('{');
1560 stringBuilder.append(Integer.toHexString(System.identityHashCode(obj)));
1561 }
1562
1563 public static Object g() {
1564 return new AccessibilityDelegate();
1565 }
1566
1567 public static Object a(mh mhVar) {
1568 return new mg(mhVar);
1569 }
1570
1571 public static boolean a(Object obj, View view, AccessibilityEvent accessibilityEvent) {
1572 return ((AccessibilityDelegate) obj).dispatchPopulateAccessibilityEvent(view, accessibilityEvent);
1573 }
1574
1575 public static void b(Object obj, View view, AccessibilityEvent accessibilityEvent) {
1576 ((AccessibilityDelegate) obj).onInitializeAccessibilityEvent(view, accessibilityEvent);
1577 }
1578
1579 public static void a(Object obj, View view, Object obj2) {
1580 ((AccessibilityDelegate) obj).onInitializeAccessibilityNodeInfo(view, (AccessibilityNodeInfo) obj2);
1581 }
1582
1583 public static void c(Object obj, View view, AccessibilityEvent accessibilityEvent) {
1584 ((AccessibilityDelegate) obj).onPopulateAccessibilityEvent(view, accessibilityEvent);
1585 }
1586
1587 public static boolean a(Object obj, ViewGroup viewGroup, View view, AccessibilityEvent accessibilityEvent) {
1588 return ((AccessibilityDelegate) obj).onRequestSendAccessibilityEvent(viewGroup, view, accessibilityEvent);
1589 }
1590
1591 public static void a(Object obj, View view, int i) {
1592 ((AccessibilityDelegate) obj).sendAccessibilityEvent(view, i);
1593 }
1594
1595 public static void d(Object obj, View view, AccessibilityEvent accessibilityEvent) {
1596 ((AccessibilityDelegate) obj).sendAccessibilityEventUnchecked(view, accessibilityEvent);
1597 }
1598
1599 public static Object a(mj mjVar) {
1600 return new mi(mjVar);
1601 }
1602
1603 public static Object b(Object obj, View view) {
1604 return ((AccessibilityDelegate) obj).getAccessibilityNodeProvider(view);
1605 }
1606
1607 public static boolean a(Object obj, View view, int i, Bundle bundle) {
1608 return ((AccessibilityDelegate) obj).performAccessibilityAction(view, i, bundle);
1609 }
1610
1611 public static int a(int i, int i2) {
1612 return Gravity.getAbsoluteGravity(i, i2);
1613 }
1614
1615 public static void a(int i, int i2, int i3, Rect rect, Rect rect2, int i4) {
1616 Gravity.apply(i, i2, i3, rect, rect2, i4);
1617 }
1618
1619 public static void a(KeyEvent keyEvent) {
1620 keyEvent.startTracking();
1621 }
1622
1623 public static int d(int i) {
1624 return KeyEvent.normalizeMetaState(i);
1625 }
1626
1627 public static boolean b(int i, int i2) {
1628 return KeyEvent.metaStateHasModifiers(i, i2);
1629 }
1630
1631 public static boolean e(int i) {
1632 return KeyEvent.metaStateHasNoModifiers(i);
1633 }
1634
1635 public static boolean b(KeyEvent keyEvent) {
1636 return keyEvent.isCtrlPressed();
1637 }
1638
1639 public static void a(LayoutInflater layoutInflater, ng ngVar) {
1640 layoutInflater.setFactory(ngVar != null ? new ne(ngVar) : null);
1641 }
1642
1643 public static ng a(LayoutInflater layoutInflater) {
1644 Factory factory = layoutInflater.getFactory();
1645 if (factory instanceof ne) {
1646 return ((ne) factory).a;
1647 }
1648 return null;
1649 }
1650
1651 public static int a(MarginLayoutParams marginLayoutParams) {
1652 return marginLayoutParams.getMarginStart();
1653 }
1654
1655 public static int b(MarginLayoutParams marginLayoutParams) {
1656 return marginLayoutParams.getMarginEnd();
1657 }
1658
1659 public static void a(MarginLayoutParams marginLayoutParams, int i) {
1660 marginLayoutParams.setMarginStart(i);
1661 }
1662
1663 public static void a(MenuItem menuItem, int i) {
1664 menuItem.setShowAsAction(i);
1665 }
1666
1667 public static MenuItem a(MenuItem menuItem, View view) {
1668 return menuItem.setActionView(view);
1669 }
1670
1671 public static MenuItem b(MenuItem menuItem, int i) {
1672 return menuItem.setActionView(i);
1673 }
1674
1675 public static View a(MenuItem menuItem) {
1676 return menuItem.getActionView();
1677 }
1678
1679 public static boolean b(MenuItem menuItem) {
1680 return menuItem.expandActionView();
1681 }
1682
1683 public static boolean c(MenuItem menuItem) {
1684 return menuItem.isActionViewExpanded();
1685 }
1686
1687 public static MenuItem a(MenuItem menuItem, ns nsVar) {
1688 return menuItem.setOnActionExpandListener(new nr(nsVar));
1689 }
1690
1691 public static int a(MotionEvent motionEvent, int i) {
1692 return motionEvent.findPointerIndex(i);
1693 }
1694
1695 public static int b(MotionEvent motionEvent, int i) {
1696 return motionEvent.getPointerId(i);
1697 }
1698
1699 public static float c(MotionEvent motionEvent, int i) {
1700 return motionEvent.getX(i);
1701 }
1702
1703 public static float d(MotionEvent motionEvent, int i) {
1704 return motionEvent.getY(i);
1705 }
1706
1707 public static int a(MotionEvent motionEvent) {
1708 return motionEvent.getPointerCount();
1709 }
1710
1711 public static int b(MotionEvent motionEvent) {
1712 return motionEvent.getSource();
1713 }
1714
1715 public static float e(MotionEvent motionEvent, int i) {
1716 return motionEvent.getAxisValue(i);
1717 }
1718
1719 public static boolean d(Object obj) {
1720 return ((ScaleGestureDetector) obj).isQuickScaleEnabled();
1721 }
1722
1723 public static float a(VelocityTracker velocityTracker, int i) {
1724 return velocityTracker.getXVelocity(i);
1725 }
1726
1727 public static float b(VelocityTracker velocityTracker, int i) {
1728 return velocityTracker.getYVelocity(i);
1729 }
1730
1731 public static ColorStateList d(View view) {
1732 return view instanceof oj ? ((oj) view).c() : null;
1733 }
1734
1735 public static void a(View view, ColorStateList colorStateList) {
1736 if (view instanceof oj) {
1737 ((oj) view).a(colorStateList);
1738 }
1739 }
1740
1741 public static Mode e(View view) {
1742 return view instanceof oj ? ((oj) view).d() : null;
1743 }
1744
1745 public static void a(View view, Mode mode) {
1746 if (view instanceof oj) {
1747 ((oj) view).a(mode);
1748 }
1749 }
1750
1751 public static boolean f(View view) {
1752 return view.getWidth() > 0 && view.getHeight() > 0;
1753 }
1754
1755 public static int g(View view) {
1756 if (!K) {
1757 try {
1758 J = View.class.getDeclaredField("mMinWidth");
1759 J.setAccessible(true);
1760 } catch (NoSuchFieldException e) {
1761 }
1762 K = true;
1763 }
1764 if (J != null) {
1765 try {
1766 return ((Integer) J.get(view)).intValue();
1767 } catch (Exception e2) {
1768 }
1769 }
1770 return 0;
1771 }
1772
1773 public static int h(View view) {
1774 if (!M) {
1775 try {
1776 L = View.class.getDeclaredField("mMinHeight");
1777 L.setAccessible(true);
1778 } catch (NoSuchFieldException e) {
1779 }
1780 M = true;
1781 }
1782 if (L != null) {
1783 try {
1784 return ((Integer) L.get(view)).intValue();
1785 } catch (Exception e2) {
1786 }
1787 }
1788 return 0;
1789 }
1790
1791 public static boolean i(View view) {
1792 return view.getWindowToken() != null;
1793 }
1794
1795 public static void a(View view, int i) {
1796 int top = view.getTop();
1797 view.offsetTopAndBottom(i);
1798 if (i != 0) {
1799 ViewParent parent = view.getParent();
1800 if (parent instanceof View) {
1801 int abs = Math.abs(i);
1802 ((View) parent).invalidate(view.getLeft(), top - abs, view.getRight(), (top + view.getHeight()) + abs);
1803 return;
1804 }
1805 view.invalidate();
1806 }
1807 }
1808
1809 public static void b(View view, int i) {
1810 int left = view.getLeft();
1811 view.offsetLeftAndRight(i);
1812 if (i != 0) {
1813 ViewParent parent = view.getParent();
1814 if (parent instanceof View) {
1815 int abs = Math.abs(i);
1816 ((View) parent).invalidate(left - abs, view.getTop(), (left + view.getWidth()) + abs, view.getBottom());
1817 return;
1818 }
1819 view.invalidate();
1820 }
1821 }
1822
1823 public static int j(View view) {
1824 return view.getOverScrollMode();
1825 }
1826
1827 public static boolean c(View view, int i) {
1828 return view.canScrollHorizontally(i);
1829 }
1830
1831 public static boolean d(View view, int i) {
1832 return view.canScrollVertically(i);
1833 }
1834
1835 public static void a(View view, Object obj) {
1836 view.setAccessibilityDelegate((AccessibilityDelegate) obj);
1837 }
1838
1839 public static void a(View view, AccessibilityEvent accessibilityEvent) {
1840 view.onInitializeAccessibilityEvent(accessibilityEvent);
1841 }
1842
1843 public static void b(View view, Object obj) {
1844 view.onInitializeAccessibilityNodeInfo((AccessibilityNodeInfo) obj);
1845 }
1846
1847 public static void a(View view, boolean z) {
1848 view.setFitsSystemWindows(z);
1849 }
1850
1851 public static boolean k(View view) {
1852 return view.hasOnClickListeners();
1853 }
1854
1855 public static int l(View view) {
1856 return view.getLayoutDirection();
1857 }
1858
1859 public static int m(View view) {
1860 return view.getPaddingStart();
1861 }
1862
1863 public static int n(View view) {
1864 return view.getPaddingEnd();
1865 }
1866
1867 public static void a(View view, int i, int i2, int i3, int i4) {
1868 view.setPaddingRelative(i, i2, i3, i4);
1869 }
1870
1871 public static int o(View view) {
1872 return view.getWindowSystemUiVisibility();
1873 }
1874
1875 public static boolean p(View view) {
1876 return view.isPaddingRelative();
1877 }
1878
1879 public static void a(View view, Rect rect) {
1880 view.setClipBounds(rect);
1881 }
1882
1883 public static int a(ViewConfiguration viewConfiguration) {
1884 return viewConfiguration.getScaledPagingTouchSlop();
1885 }
1886
1887 public static boolean b(ViewConfiguration viewConfiguration) {
1888 return viewConfiguration.hasPermanentMenuKey();
1889 }
1890
1891 public static void a(ViewGroup viewGroup, boolean z) {
1892 viewGroup.setMotionEventSplittingEnabled(z);
1893 }
1894
1895 public static void b(ViewGroup viewGroup, boolean z) {
1896 viewGroup.setTransitionGroup(z);
1897 }
1898
1899 public static boolean a(ViewParent viewParent, View view, AccessibilityEvent accessibilityEvent) {
1900 return viewParent.requestSendAccessibilityEvent(view, accessibilityEvent);
1901 }
1902
1903 public static boolean a(ViewParent viewParent, View view, View view2, int i) {
1904 try {
1905 return viewParent.onStartNestedScroll(view, view2, i);
1906 } catch (Throwable e) {
1907 Log.e("ViewParentCompat", "ViewParent " + viewParent + " does not implement interface " + "method onStartNestedScroll", e);
1908 return false;
1909 }
1910 }
1911
1912 public static void b(ViewParent viewParent, View view, View view2, int i) {
1913 try {
1914 viewParent.onNestedScrollAccepted(view, view2, i);
1915 } catch (Throwable e) {
1916 Log.e("ViewParentCompat", "ViewParent " + viewParent + " does not implement interface " + "method onNestedScrollAccepted", e);
1917 }
1918 }
1919
1920 public static void a(ViewParent viewParent, View view) {
1921 try {
1922 viewParent.onStopNestedScroll(view);
1923 } catch (Throwable e) {
1924 Log.e("ViewParentCompat", "ViewParent " + viewParent + " does not implement interface " + "method onStopNestedScroll", e);
1925 }
1926 }
1927
1928 public static void a(ViewParent viewParent, View view, int i, int i2, int i3, int i4) {
1929 try {
1930 viewParent.onNestedScroll(view, i, i2, i3, i4);
1931 } catch (Throwable e) {
1932 Log.e("ViewParentCompat", "ViewParent " + viewParent + " does not implement interface " + "method onNestedScroll", e);
1933 }
1934 }
1935
1936 public static void a(ViewParent viewParent, View view, int i, int i2, int[] iArr) {
1937 try {
1938 viewParent.onNestedPreScroll(view, i, i2, iArr);
1939 } catch (Throwable e) {
1940 Log.e("ViewParentCompat", "ViewParent " + viewParent + " does not implement interface " + "method onNestedPreScroll", e);
1941 }
1942 }
1943
1944 public static boolean a(ViewParent viewParent, View view, float f, float f2, boolean z) {
1945 try {
1946 return viewParent.onNestedFling(view, f, f2, z);
1947 } catch (Throwable e) {
1948 Log.e("ViewParentCompat", "ViewParent " + viewParent + " does not implement interface " + "method onNestedFling", e);
1949 return false;
1950 }
1951 }
1952
1953 public static boolean a(ViewParent viewParent, View view, float f, float f2) {
1954 try {
1955 return viewParent.onNestedPreFling(view, f, f2);
1956 } catch (Throwable e) {
1957 Log.e("ViewParentCompat", "ViewParent " + viewParent + " does not implement interface " + "method onNestedPreFling", e);
1958 return false;
1959 }
1960 }
1961
1962 public static void a(View view, long j) {
1963 view.animate().setDuration(j);
1964 }
1965
1966 public static void a(View view, float f) {
1967 view.animate().alpha(f);
1968 }
1969
1970 public static void b(View view, float f) {
1971 view.animate().translationX(f);
1972 }
1973
1974 public static void c(View view, float f) {
1975 view.animate().translationY(f);
1976 }
1977
1978 public static long q(View view) {
1979 return view.animate().getDuration();
1980 }
1981
1982 public static void a(View view, Interpolator interpolator) {
1983 view.animate().setInterpolator(interpolator);
1984 }
1985
1986 public static void b(View view, long j) {
1987 view.animate().setStartDelay(j);
1988 }
1989
1990 public static void r(View view) {
1991 view.animate().cancel();
1992 }
1993
1994 public static void s(View view) {
1995 view.animate().start();
1996 }
1997
1998 public static void a(View view, qo qoVar) {
1999 view.animate().setListener(new ql(qoVar, view));
2000 }
2001
2002 public static void a(View view, qq qqVar) {
2003 AnimatorUpdateListener animatorUpdateListener = null;
2004 if (qqVar != null) {
2005 animatorUpdateListener = new qn(qqVar, view);
2006 }
2007 view.animate().setUpdateListener(animatorUpdateListener);
2008 }
2009
2010 public static void a(AccessibilityEvent accessibilityEvent, int i) {
2011 accessibilityEvent.setContentChangeTypes(i);
2012 }
2013
2014 public static int a(AccessibilityEvent accessibilityEvent) {
2015 return accessibilityEvent.getContentChangeTypes();
2016 }
2017
2018 public static boolean a(AccessibilityManager accessibilityManager) {
2019 return accessibilityManager.isTouchExplorationEnabled();
2020 }
2021
2022 public static boolean a(Object obj, Object obj2) {
2023 return ((AccessibilityNodeInfo) obj).removeAction((AccessibilityAction) obj2);
2024 }
2025
2026 public static Object a(int i, int i2, boolean z, int i3) {
2027 return CollectionInfo.obtain(i, i2, z, i3);
2028 }
2029
2030 public static Object a(int i, int i2, int i3, int i4, boolean z, boolean z2) {
2031 return CollectionItemInfo.obtain(i, i2, i3, i4, z, z2);
2032 }
2033
2034 public static Object a(int i, CharSequence charSequence) {
2035 return new AccessibilityAction(i, charSequence);
2036 }
2037
2038 public static boolean e(Object obj) {
2039 return ((CollectionItemInfo) obj).isSelected();
2040 }
2041
2042 public static void b(Object obj, View view, int i) {
2043 ((AccessibilityNodeInfo) obj).setTraversalBefore(view, i);
2044 }
2045
2046 public static void c(Object obj, View view, int i) {
2047 ((AccessibilityNodeInfo) obj).setTraversalAfter(view, i);
2048 }
2049
2050 public static void d(Object obj, View view, int i) {
2051 ((AccessibilityNodeInfo) obj).addChild(view, i);
2052 }
2053
2054 public static void e(Object obj, View view, int i) {
2055 ((AccessibilityNodeInfo) obj).setSource(view, i);
2056 }
2057
2058 public static boolean f(Object obj) {
2059 return ((AccessibilityNodeInfo) obj).isVisibleToUser();
2060 }
2061
2062 public static void a(Object obj, boolean z) {
2063 ((AccessibilityNodeInfo) obj).setVisibleToUser(z);
2064 }
2065
2066 public static boolean g(Object obj) {
2067 return ((AccessibilityNodeInfo) obj).isAccessibilityFocused();
2068 }
2069
2070 public static void b(Object obj, boolean z) {
2071 ((AccessibilityNodeInfo) obj).setAccessibilityFocused(z);
2072 }
2073
2074 public static String h(Object obj) {
2075 return ((AccessibilityNodeInfo) obj).getViewIdResourceName();
2076 }
2077
2078 public static Object i(Object obj) {
2079 return ((AccessibilityNodeInfo) obj).getCollectionItemInfo();
2080 }
2081
2082 public static void b(Object obj, Object obj2) {
2083 ((AccessibilityNodeInfo) obj).setCollectionInfo((CollectionInfo) obj2);
2084 }
2085
2086 public static void c(Object obj, Object obj2) {
2087 ((AccessibilityNodeInfo) obj).setCollectionItemInfo((CollectionItemInfo) obj2);
2088 }
2089
2090 public static Object a(int i, int i2, boolean z) {
2091 return CollectionInfo.obtain(i, i2, z);
2092 }
2093
2094 public static Object a(int i, int i2, int i3, int i4, boolean z) {
2095 return CollectionItemInfo.obtain(i, i2, i3, i4, z);
2096 }
2097
2098 public static int j(Object obj) {
2099 return ((CollectionItemInfo) obj).getColumnIndex();
2100 }
2101
2102 public static int k(Object obj) {
2103 return ((CollectionItemInfo) obj).getColumnSpan();
2104 }
2105
2106 public static int l(Object obj) {
2107 return ((CollectionItemInfo) obj).getRowIndex();
2108 }
2109
2110 public static int m(Object obj) {
2111 return ((CollectionItemInfo) obj).getRowSpan();
2112 }
2113
2114 public static Object a(rp rpVar) {
2115 return new ro(rpVar);
2116 }
2117
2118 public static Object a(rr rrVar) {
2119 return new rq(rrVar);
2120 }
2121
2122 public static List<CharSequence> n(Object obj) {
2123 return ((AccessibilityRecord) obj).getText();
2124 }
2125
2126 public static void c(Object obj, boolean z) {
2127 ((AccessibilityRecord) obj).setChecked(z);
2128 }
2129
2130 public static void a(Object obj, CharSequence charSequence) {
2131 ((AccessibilityRecord) obj).setClassName(charSequence);
2132 }
2133
2134 public static void b(Object obj, CharSequence charSequence) {
2135 ((AccessibilityRecord) obj).setContentDescription(charSequence);
2136 }
2137
2138 public static void d(Object obj, boolean z) {
2139 ((AccessibilityRecord) obj).setEnabled(z);
2140 }
2141
2142 public static void a(Object obj, int i) {
2143 ((AccessibilityRecord) obj).setFromIndex(i);
2144 }
2145
2146 public static void b(Object obj, int i) {
2147 ((AccessibilityRecord) obj).setItemCount(i);
2148 }
2149
2150 public static void e(Object obj, boolean z) {
2151 ((AccessibilityRecord) obj).setPassword(z);
2152 }
2153
2154 public static void c(Object obj, int i) {
2155 ((AccessibilityRecord) obj).setScrollX(i);
2156 }
2157
2158 public static void d(Object obj, int i) {
2159 ((AccessibilityRecord) obj).setScrollY(i);
2160 }
2161
2162 public static void f(Object obj, boolean z) {
2163 ((AccessibilityRecord) obj).setScrollable(z);
2164 }
2165
2166 public static void c(Object obj, View view) {
2167 ((AccessibilityRecord) obj).setSource(view);
2168 }
2169
2170 public static void e(Object obj, int i) {
2171 ((AccessibilityRecord) obj).setToIndex(i);
2172 }
2173
2174 public static void f(Object obj, int i) {
2175 ((AccessibilityRecord) obj).setMaxScrollX(i);
2176 }
2177
2178 public static void g(Object obj, int i) {
2179 ((AccessibilityRecord) obj).setMaxScrollY(i);
2180 }
2181
2182 public static Interpolator a(float f, float f2, float f3, float f4) {
2183 if (VERSION.SDK_INT >= 21) {
2184 return etr.create(f, 0.0f, f3, 1.0f);
2185 }
2186 return cb.a(f, 0.0f, f3, 1.0f);
2187 }
2188
2189 public static Drawable a(CompoundButton compoundButton) {
2190 return compoundButton.getButtonDrawable();
2191 }
2192
2193 public static void a(CompoundButton compoundButton, ColorStateList colorStateList) {
2194 compoundButton.setButtonTintList(colorStateList);
2195 }
2196
2197 public static void a(CompoundButton compoundButton, Mode mode) {
2198 compoundButton.setButtonTintMode(mode);
2199 }
2200
2201 public static Object a(Context context) {
2202 return new EdgeEffect(context);
2203 }
2204
2205 public static void a(Object obj, int i, int i2) {
2206 ((EdgeEffect) obj).setSize(i, i2);
2207 }
2208
2209 public static boolean o(Object obj) {
2210 return ((EdgeEffect) obj).isFinished();
2211 }
2212
2213 public static void p(Object obj) {
2214 ((EdgeEffect) obj).finish();
2215 }
2216
2217 public static boolean a(Object obj, float f) {
2218 ((EdgeEffect) obj).onPull(f);
2219 return true;
2220 }
2221
2222 public static boolean q(Object obj) {
2223 EdgeEffect edgeEffect = (EdgeEffect) obj;
2224 edgeEffect.onRelease();
2225 return edgeEffect.isFinished();
2226 }
2227
2228 public static boolean h(Object obj, int i) {
2229 ((EdgeEffect) obj).onAbsorb(i);
2230 return true;
2231 }
2232
2233 public static boolean a(Object obj, Canvas canvas) {
2234 return ((EdgeEffect) obj).draw(canvas);
2235 }
2236
2237 public static boolean a(Object obj, float f, float f2) {
2238 ((EdgeEffect) obj).onPull(f, f2);
2239 return true;
2240 }
2241
2242 public static void a(ListView listView, int i) {
2243 if (VERSION.SDK_INT >= 19) {
2244 cb.a(listView, i);
2245 } else {
2246 etr.scrollListBy(listView, i);
2247 }
2248 }
2249
2250 public static void a(PopupWindow popupWindow, boolean z) {
2251 popupWindow.setOverlapAnchor(z);
2252 }
2253
2254 public static void a(PopupWindow popupWindow, int i) {
2255 popupWindow.setWindowLayoutType(i);
2256 }
2257
2258 public static void a(PopupWindow popupWindow, View view, int i, int i2, int i3) {
2259 popupWindow.showAsDropDown(view, i, i2, i3);
2260 }
2261
2262 public static float r(Object obj) {
2263 return ((OverScroller) obj).getCurrVelocity();
2264 }
2265
2266 public static void a(TextView textView, Drawable drawable, Drawable drawable2, Drawable drawable3, Drawable drawable4) {
2267 Drawable drawable5;
2268 Object obj = textView.getLayoutDirection() == 1 ? 1 : null;
2269 if (obj != null) {
2270 drawable5 = drawable3;
2271 } else {
2272 drawable5 = drawable;
2273 }
2274 if (obj == null) {
2275 drawable = drawable3;
2276 }
2277 textView.setCompoundDrawables(drawable5, drawable2, drawable, drawable4);
2278 }
2279
2280 public static ColorStateList a(Resources resources, XmlPullParser xmlPullParser, Theme theme) {
2281 int next;
2282 AttributeSet asAttributeSet = Xml.asAttributeSet(xmlPullParser);
2283 do {
2284 next = xmlPullParser.next();
2285 if (next == 2) {
2286 break;
2287 }
2288 } while (next != 1);
2289 if (next == 2) {
2290 return a(resources, xmlPullParser, asAttributeSet, theme);
2291 }
2292 throw new XmlPullParserException("No start tag found");
2293 }
2294
2295 public static ColorStateList a(Resources resources, XmlPullParser xmlPullParser, AttributeSet attributeSet, Theme theme) {
2296 String name = xmlPullParser.getName();
2297 if (name.equals("selector")) {
2298 return b(resources, xmlPullParser, attributeSet, theme);
2299 }
2300 throw new XmlPullParserException(xmlPullParser.getPositionDescription() + ": invalid color state list tag " + name);
2301 }
2302
2303 public static ColorStateList b(Resources resources, XmlPullParser xmlPullParser, AttributeSet attributeSet, Theme theme) {
2304 Object obj;
2305 int depth = xmlPullParser.getDepth() + 1;
2306 Object obj2 = new int[20][];
2307 int i = 0;
2308 Object obj3 = new int[20];
2309 while (true) {
2310 int next = xmlPullParser.next();
2311 if (next == 1) {
2312 break;
2313 }
2314 int depth2 = xmlPullParser.getDepth();
2315 if (depth2 < depth && next == 3) {
2316 break;
2317 } else if (next == 2 && depth2 <= depth && xmlPullParser.getName().equals("item")) {
2318 int i2;
2319 TypedArray a = a(resources, theme, attributeSet, xb.ColorStateListItem);
2320 int color = a.getColor(xb.ColorStateListItem_android_color, -65281);
2321 float f = 1.0f;
2322 if (a.hasValue(xb.ColorStateListItem_android_alpha)) {
2323 f = a.getFloat(xb.ColorStateListItem_android_alpha, 1.0f);
2324 } else if (a.hasValue(xb.ColorStateListItem_alpha)) {
2325 f = a.getFloat(xb.ColorStateListItem_alpha, 1.0f);
2326 }
2327 a.recycle();
2328 int i3 = 0;
2329 int attributeCount = attributeSet.getAttributeCount();
2330 int[] iArr = new int[attributeCount];
2331 int i4 = 0;
2332 while (i4 < attributeCount) {
2333 depth2 = attributeSet.getAttributeNameResource(i4);
2334 if (depth2 == 16843173 || depth2 == 16843551 || depth2 == etr.alpha) {
2335 depth2 = i3;
2336 } else {
2337 i2 = i3 + 1;
2338 if (!attributeSet.getAttributeBooleanValue(i4, false)) {
2339 depth2 = -depth2;
2340 }
2341 iArr[i3] = depth2;
2342 depth2 = i2;
2343 }
2344 i4++;
2345 i3 = depth2;
2346 }
2347 int[] trimStateSet = StateSet.trimStateSet(iArr, i3);
2348 i2 = a(color, f);
2349 if (i + 1 > obj3.length) {
2350 obj = new int[xf.a(i)];
2351 System.arraycopy(obj3, 0, obj, 0, i);
2352 } else {
2353 obj = obj3;
2354 }
2355 obj[i] = i2;
2356 if (i + 1 > obj2.length) {
2357 obj3 = (Object[]) Array.newInstance(obj2.getClass().getComponentType(), xf.a(i));
2358 System.arraycopy(obj2, 0, obj3, 0, i);
2359 } else {
2360 obj3 = obj2;
2361 }
2362 obj3[i] = trimStateSet;
2363 i++;
2364 obj2 = (int[][]) obj3;
2365 obj3 = obj;
2366 }
2367 }
2368 obj = new int[i];
2369 Object obj4 = new int[i][];
2370 System.arraycopy(obj3, 0, obj, 0, i);
2371 System.arraycopy(obj2, 0, obj4, 0, i);
2372 return new ColorStateList(obj4, obj);
2373 }
2374
2375 public static TypedArray a(Resources resources, Theme theme, AttributeSet attributeSet, int[] iArr) {
2376 if (theme == null) {
2377 return resources.obtainAttributes(attributeSet, iArr);
2378 }
2379 return theme.obtainStyledAttributes(attributeSet, iArr, 0, 0);
2380 }
2381
2382 public static int a(int i, float f) {
2383 return jj.b(i, Math.round(((float) Color.alpha(i)) * f));
2384 }
2385
2386 public static Menu a(Context context, kf kfVar) {
2387 if (VERSION.SDK_INT >= 14) {
2388 return new aar(context, kfVar);
2389 }
2390 throw new UnsupportedOperationException();
2391 }
2392
2393 public static MenuItem a(Context context, kg kgVar) {
2394 if (VERSION.SDK_INT >= 16) {
2395 return new aai(context, kgVar);
2396 }
2397 if (VERSION.SDK_INT >= 14) {
2398 return new aad(context, kgVar);
2399 }
2400 throw new UnsupportedOperationException();
2401 }
2402
2403 public static SubMenu a(Context context, kh khVar) {
2404 if (VERSION.SDK_INT >= 14) {
2405 return new aaw(context, khVar);
2406 }
2407 throw new UnsupportedOperationException();
2408 }
2409
2410 public static int a(agq agq, aft aft, View view, View view2, agg agg, boolean z, boolean z2) {
2411 if (agg.j() == 0 || agq.a() == 0 || view == null || view2 == null) {
2412 return 0;
2413 }
2414 int max;
2415 int min = Math.min(agg.a(view), agg.a(view2));
2416 int max2 = Math.max(agg.a(view), agg.a(view2));
2417 if (z2) {
2418 max = Math.max(0, (agq.a() - max2) - 1);
2419 } else {
2420 max = Math.max(0, min);
2421 }
2422 if (!z) {
2423 return max;
2424 }
2425 return Math.round((((float) max) * (((float) Math.abs(aft.b(view2) - aft.a(view))) / ((float) (Math.abs(agg.a(view) - agg.a(view2)) + 1)))) + ((float) (aft.b() - aft.a(view))));
2426 }
2427
2428 public static int a(agq agq, aft aft, View view, View view2, agg agg, boolean z) {
2429 if (agg.j() == 0 || agq.a() == 0 || view == null || view2 == null) {
2430 return 0;
2431 }
2432 if (!z) {
2433 return Math.abs(agg.a(view) - agg.a(view2)) + 1;
2434 }
2435 return Math.min(aft.e(), aft.b(view2) - aft.a(view));
2436 }
2437
2438 public static int b(agq agq, aft aft, View view, View view2, agg agg, boolean z) {
2439 if (agg.j() == 0 || agq.a() == 0 || view == null || view2 == null) {
2440 return 0;
2441 }
2442 if (!z) {
2443 return agq.a();
2444 }
2445 return (int) ((((float) (aft.b(view2) - aft.a(view))) / ((float) (Math.abs(agg.a(view) - agg.a(view2)) + 1))) * ((float) agq.a()));
2446 }
2447
2448 public static amf a(Context context, Class<? extends anb> cls) {
2449 return new amf(context, cls);
2450 }
2451
2452 public static amf b(Context context, Class<? extends Activity> cls) {
2453 return new amf(context, cls);
2454 }
2455
2456 public static int a(InputStream inputStream, long j) {
2457 if (inputStream == null) {
2458 return 0;
2459 }
2460 int i;
2461 int i2;
2462 int i3;
2463 anm anm = new anm(inputStream, 16, false);
2464 if (a(anm, -1, 1)) {
2465 if (anm.a(0) == -1 && anm.a(1) == -40) {
2466 i = 1;
2467 } else {
2468 boolean z = false;
2469 }
2470 if (i == 0) {
2471 return 0;
2472 }
2473 }
2474 i = 0;
2475 while (a(anm, -1, i + 3)) {
2476 i2 = i + 1;
2477 if ((anm.a(i) & 255) != 255) {
2478 i3 = i2;
2479 i2 = 0;
2480 break;
2481 }
2482 i3 = anm.a(i2) & 255;
2483 int a;
2484 if (i3 != 255) {
2485 i = i2 + 1;
2486 if (!(i3 == 216 || i3 == 1)) {
2487 if (i3 != 217 && i3 != 218) {
2488 a = a(anm, i, 2, false);
2489 if (a >= 2 && a(anm, -1, (i + a) - 1)) {
2490 if (i3 == 225 && a >= 8 && a(anm, i + 2, 4, false) == 1165519206 && a(anm, i + 6, 2, false) == 0) {
2491 i2 = i + 8;
2492 i = a - 8;
2493 anm.c(i2 - 4);
2494 i3 = i2;
2495 i2 = i;
2496 break;
2497 }
2498 i += a;
2499 anm.c(i - 4);
2500 } else {
2501 Log.e("CameraExif", "Invalid length");
2502 return 0;
2503 }
2504 }
2505 anm.c(i - 4);
2506 i2 = 0;
2507 i3 = i;
2508 break;
2509 }
2510 }
2511 i = i2;
2512 }
2513 i2 = 0;
2514 i3 = i;
2515 if (i2 <= 8) {
2516 return 0;
2517 }
2518 i = a(anm, i3, 4, false);
2519 if (i == 1229531648 || i == 1296891946) {
2520 z = i == 1229531648;
2521 int a2 = a(anm, i3 + 4, 4, z) + 2;
2522 if (a2 < 10 || a2 > i2) {
2523 Log.e("CameraExif", "Invalid offset");
2524 return 0;
2525 }
2526 i3 += a2;
2527 a2 = i2 - a2;
2528 anm.c(i3 - 4);
2529 i2 = a(anm, i3 - 2, 2, z);
2530 a = i3;
2531 i3 = a2;
2532 while (true) {
2533 a2 = i2 - 1;
2534 if (i2 <= 0 || i3 < 12) {
2535 return 0;
2536 }
2537 if (a(anm, a, 2, z) == 274) {
2538 break;
2539 }
2540 a += 12;
2541 i2 = i3 - 12;
2542 anm.c(a - 4);
2543 i3 = i2;
2544 i2 = a2;
2545 }
2546 switch (a(anm, a + 8, 2, z)) {
2547 case yu.RecyclerView_android_descendantFocusability /*1*/:
2548 return 0;
2549 case yu.RecyclerView_spanCount /*3*/:
2550 return 180;
2551 case yq.Toolbar_contentInsetEnd /*6*/:
2552 return 90;
2553 case yq.Toolbar_contentInsetRight /*8*/:
2554 return 270;
2555 default:
2556 return 0;
2557 }
2558 }
2559 Log.e("CameraExif", "Invalid byte order");
2560 return 0;
2561 }
2562
2563 public static int a(anm anm, int i, int i2, boolean z) {
2564 int i3 = 1;
2565 if (z) {
2566 i += i2 - 1;
2567 i3 = -1;
2568 }
2569 int i4 = 0;
2570 while (true) {
2571 int i5 = i2 - 1;
2572 if (i2 <= 0) {
2573 return i4;
2574 }
2575 i4 = (i4 << 8) | (anm.a(i) & 255);
2576 i += i3;
2577 i2 = i5;
2578 }
2579 }
2580
2581 public static boolean a(anm anm, long j, int i) {
2582 if (j >= 0) {
2583 return ((long) i) < j;
2584 } else {
2585 return anm.b(i);
2586 }
2587 }
2588
2589 public static boolean a(Uri uri) {
2590 return uri != null && "content".equals(uri.getScheme()) && "media".equals(uri.getAuthority());
2591 }
2592
2593 public static boolean b(Uri uri) {
2594 return uri.getPathSegments().contains("video");
2595 }
2596
2597 public static boolean c(Uri uri) {
2598 return a(uri) && b(uri);
2599 }
2600
2601 public static boolean d(Uri uri) {
2602 return a(uri) && !b(uri);
2603 }
2604
2605 public static boolean c(int i, int i2) {
2606 return i <= 512 && i2 <= 384;
2607 }
2608
2609 public static void a(boolean z, String str) {
2610 if (!z) {
2611 throw new IllegalArgumentException(str);
2612 }
2613 }
2614
2615 public static <T> T s(T t) {
2616 return a((Object) t, "Argument must not be null");
2617 }
2618
2619 public static <T> T a(T t, String str) {
2620 if (t != null) {
2621 return t;
2622 }
2623 throw new NullPointerException(str);
2624 }
2625
2626 public static String e(String str) {
2627 if (!TextUtils.isEmpty(str)) {
2628 return str;
2629 }
2630 throw new IllegalArgumentException("Must not be null or empty");
2631 }
2632
2633 public static <T extends Collection<Y>, Y> T a(T t) {
2634 if (!t.isEmpty()) {
2635 return t;
2636 }
2637 throw new IllegalArgumentException("Must not be empty.");
2638 }
2639
2640 public static ivy a(bdk bdk) {
2641 return bdk;
2642 }
2643
2644 public static fkp b(Context context) {
2645 return fkp.a(context);
2646 }
2647
2648 public static String c(Context context) {
2649 return context.getString(etr.app_name);
2650 }
2651
2652 public static hae d(Context context) {
2653 return hae.a(context);
2654 }
2655
2656 public static ejw a(ejp ejp, String str) {
2657 ejw a = ejp.a(str);
2658 long toSeconds = TimeUnit.MINUTES.toSeconds(5);
2659 ekm ekm = a.c;
2660 ekm.a = toSeconds * 1000;
2661 if (ekm.a >= 0) {
2662 ejg d = ekm.d.d();
2663 d.d.add(ekm.b.c);
2664 Context context = d.a.a;
2665 if (context instanceof Application) {
2666 Application application = (Application) context;
2667 if (VERSION.SDK_INT >= 14 && !d.e) {
2668 application.registerActivityLifecycleCallbacks(new ejr(d));
2669 d.e = true;
2670 }
2671 }
2672 } else {
2673 ejp d2 = ekm.d.d();
2674 d2.d.remove(ekm.b.c);
2675 }
2676 a.a = true;
2677 return a;
2678 }
2679
2680 public static ejp e(Context context) {
2681 return ejp.a(context);
2682 }
2683
2684 public static String h() {
2685 return "UA-75625772-2";
2686 }
2687
2688 public static String i() {
2689 return "GTM-THZGX6";
2690 }
2691
2692 public static int j() {
2693 return etr.gtm_container;
2694 }
2695
2696 public static eqd f(Context context) {
2697 return new eqe(context).a(eoq.b).b();
2698 }
2699
2700 public static String k() {
2701 return "FIREBALL_PRIMES";
2702 }
2703
2704 public static iin a(cgn cgn) {
2705 return new bdu(cgn);
2706 }
2707
2708 public static iie b(cgn cgn) {
2709 return new bdv(cgn);
2710 }
2711
2712 public static iix c(cgn cgn) {
2713 return new bdw(cgn);
2714 }
2715
2716 public static iio a(cgn cgn, bfb bfb) {
2717 return new bdx(cgn, bfb);
2718 }
2719
2720 public static iip d(cgn cgn) {
2721 return new iip(cgn.c(cgs.al));
2722 }
2723
2724 public static iim e(cgn cgn) {
2725 return new bdy(cgn);
2726 }
2727
2728 public static ipd f(cgn cgn) {
2729 return new bdz(cgn);
2730 }
2731
2732 public static String f(String str) {
2733 return new StringBuilder(String.valueOf(str).length() + 39).append("Fireball.DataModel.Protohandler.").append(str).append(".Status").toString();
2734 }
2735
2736 public static String g(String str) {
2737 return new StringBuilder(String.valueOf(str).length() + 37).append("Fireball.DataModel.Protohandler.").append(str).append(".Time").toString();
2738 }
2739
2740 public static String h(String str) {
2741 return new StringBuilder(String.valueOf(str).length() + 31).append("Fireball.DataModel.Action.").append(str).append(".Time").toString();
2742 }
2743
2744 public static epm l() {
2745 return epm.a;
2746 }
2747
2748 public static ept m() {
2749 return ept.a;
2750 }
2751
2752 public static bgv g(Context context) {
2753 return new bgw(context);
2754 }
2755
2756 public static ili n() {
2757 return ili.a();
2758 }
2759
2760 public static eqd h(Context context) {
2761 gtx gtx = new gtx();
2762 gtx.a = 552;
2763 b(gtx.a >= 0, (Object) "Must provide valid client application ID!");
2764 Object gtw = new gtw(gtx);
2765 eqe eqe = new eqe(context);
2766 Object obj = gtu.b;
2767 e(obj, (Object) "Api must not be null");
2768 e(gtw, (Object) "Null options are not permitted for this Api");
2769 eqe.d.put(obj, gtw);
2770 obj.a();
2771 Collection emptyList = Collections.emptyList();
2772 eqe.c.addAll(emptyList);
2773 eqe.b.addAll(emptyList);
2774 return eqe.b();
2775 }
2776
2777 public static File i(Context context) {
2778 return context.getDir("avatar", 0);
2779 }
2780
2781 public static File j(Context context) {
2782 return context.getCacheDir();
2783 }
2784
2785 public static String k(Context context) {
2786 return context.getString(cE);
2787 }
2788
2789 public static MessageDigest o() {
2790 try {
2791 return MessageDigest.getInstance("MD5");
2792 } catch (Throwable e) {
2793 bhf.c("Fireball", e, "MD5 algorithm not available.", new Object[0]);
2794 return null;
2795 }
2796 }
2797
2798 public static File j(String str) {
2799 File externalStoragePublicDirectory = Environment.getExternalStoragePublicDirectory(String.format(Locale.ENGLISH, "%s %s", new Object[]{str, "Media"}));
2800 if (!(externalStoragePublicDirectory.exists() || externalStoragePublicDirectory.mkdirs())) {
2801 bhf.c("FireballMedia", "Failed to create %s directory", r0);
2802 }
2803 return externalStoragePublicDirectory;
2804 }
2805
2806 public static File l(Context context) {
2807 return context.getExternalFilesDir("Media");
2808 }
2809
2810 public static File m(Context context) {
2811 return context.getDir("incognito", 0);
2812 }
2813
2814 public static bgl k(String str) {
2815 if (l(str)) {
2816 return bgl.TEXT;
2817 }
2818 if (r(str)) {
2819 return bgl.IMAGE;
2820 }
2821 if (s(str)) {
2822 return bgl.AUDIO;
2823 }
2824 if (t(str)) {
2825 return bgl.VIDEO;
2826 }
2827 if (m(str)) {
2828 return bgl.G_BOT;
2829 }
2830 if (n(str)) {
2831 return bgl.RICH_CARD;
2832 }
2833 if (o(str)) {
2834 return bgl.STICKER;
2835 }
2836 if (p(str)) {
2837 return bgl.LOCATION;
2838 }
2839 return bgl.OTHER;
2840 }
2841
2842 public static boolean l(String str) {
2843 return "text/plain".equals(str) || "text/html".equals(str) || "application/vnd.wap.xhtml+xml".equals(str);
2844 }
2845
2846 public static boolean m(String str) {
2847 return "application/gbot".equals(str);
2848 }
2849
2850 public static boolean n(String str) {
2851 return "application/richcard".equals(str);
2852 }
2853
2854 public static boolean o(String str) {
2855 return "application/sticker".equals(str);
2856 }
2857
2858 public static boolean p(String str) {
2859 return "application/latlong".equals(str);
2860 }
2861
2862 public static boolean q(String str) {
2863 return r(str) || t(str) || s(str);
2864 }
2865
2866 public static boolean r(String str) {
2867 return str != null && str.startsWith("image/");
2868 }
2869
2870 public static boolean s(String str) {
2871 return str != null && (str.startsWith("audio/") || str.equalsIgnoreCase("application/ogg"));
2872 }
2873
2874 public static boolean t(String str) {
2875 return str != null && str.startsWith("video/");
2876 }
2877
2878 public static boolean u(String str) {
2879 return s(str) || t(str) || r(str) || o(str) || p(str);
2880 }
2881
2882 public static String a(String str, String str2) {
2883 String mimeTypeFromExtension = MimeTypeMap.getSingleton().getMimeTypeFromExtension(MimeTypeMap.getFileExtensionFromUrl(str));
2884 return mimeTypeFromExtension == null ? str2 : mimeTypeFromExtension;
2885 }
2886
2887 public static String v(String str) {
2888 if ("video/mp4".equals(str)) {
2889 return "mp4";
2890 }
2891 if ("video/3gpp".equals(str)) {
2892 return "3gp";
2893 }
2894 return "dat";
2895 }
2896
2897 public static boolean a(bgl bgl) {
2898 return bgl == bgl.AUDIO || bgl == bgl.VIDEO || bgl == bgl.IMAGE || bgl == bgl.STICKER || bgl == bgl.LOCATION;
2899 }
2900
2901 @Deprecated
2902 public static <T extends kfl> T a(Class<T> cls, byte[] bArr) {
2903 if (bArr == null) {
2904 return null;
2905 }
2906 try {
2907 return a((kfl) cls.newInstance(), bArr);
2908 } catch (Throwable e) {
2909 throw new IllegalArgumentException("Unable to create instance of proto", e);
2910 } catch (Throwable e2) {
2911 throw new IllegalArgumentException("Unable to create instance of proto", e2);
2912 }
2913 }
2914
2915 public static <T extends kfl> T a(T t, byte[] bArr) {
2916 if (bArr == null || t == null) {
2917 return null;
2918 }
2919 try {
2920 kfl.a(t, bArr);
2921 return t;
2922 } catch (Throwable e) {
2923 bhf.b("Fireball", e, "Unable to deserialize proto of type [%s], using null instead", t.getClass());
2924 return null;
2925 }
2926 }
2927
2928 public static ivy a(bhc bhc) {
2929 return new bhg(bhc);
2930 }
2931
2932 public static bhc a(Context context, cgn cgn, Executor executor) {
2933 if (cgn.c(cgs.D)) {
2934 return new bhc(context, executor, cgn.b(cgs.E), cgn.b(cgs.F));
2935 }
2936 return null;
2937 }
2938
2939 public static String p() {
2940 return "fireball";
2941 }
2942
2943 public static SharedPreferences b(Context context, String str) {
2944 return context.getSharedPreferences(str, 0);
2945 }
2946
2947 public static String q() {
2948 return "FBAnalyticsPrefs";
2949 }
2950
2951 public static SharedPreferences c(Context context, String str) {
2952 return context.getSharedPreferences(str, 0);
2953 }
2954
2955 public static List<bii> a(JsonReader jsonReader) {
2956 Set hashSet = new HashSet();
2957 List<bii> arrayList = new ArrayList();
2958 try {
2959 jsonReader.beginArray();
2960 while (jsonReader.hasNext()) {
2961 bii a = a(jsonReader, hashSet);
2962 if (a != null) {
2963 arrayList.add(a);
2964 }
2965 }
2966 jsonReader.endArray();
2967 } catch (Throwable e) {
2968 bhf.c("FireballComponentView", e, "Error whilst parsing metadata", new Object[0]);
2969 }
2970 return arrayList;
2971 }
2972
2973 public static bii a(JsonReader jsonReader, Set<String> set) {
2974 jsonReader.beginObject();
2975 String str = null;
2976 String str2 = null;
2977 while (jsonReader.hasNext()) {
2978 String nextName = jsonReader.nextName();
2979 if (nextName.equals("id")) {
2980 str2 = jsonReader.nextString();
2981 if (set.contains(str2)) {
2982 b(jsonReader);
2983 } else {
2984 set.add(str2);
2985 }
2986 } else if (nextName.equals("ou")) {
2987 str = jsonReader.nextString();
2988 } else {
2989 jsonReader.skipValue();
2990 }
2991 }
2992 jsonReader.endObject();
2993 if (str2 != null && str != null) {
2994 return new bhr(str2, str);
2995 }
2996 Object[] objArr = new Object[]{str, str2};
2997 return null;
2998 }
2999
3000 public static void b(JsonReader jsonReader) {
3001 while (jsonReader.hasNext()) {
3002 jsonReader.skipValue();
3003 }
3004 jsonReader.endObject();
3005 }
3006
3007 public static jun r() {
3008 ThreadFactory threadFactory;
3009 AtomicLong atomicLong;
3010 juw a = new juw().a(true).a("Messaging Thread #%d").a(new bil());
3011 String str = a.a;
3012 Boolean bool = a.b;
3013 if (a.c != null) {
3014 threadFactory = a.c;
3015 } else {
3016 threadFactory = Executors.defaultThreadFactory();
3017 }
3018 if (str != null) {
3019 atomicLong = new AtomicLong(0);
3020 } else {
3021 atomicLong = null;
3022 }
3023 return a(Executors.newSingleThreadScheduledExecutor(new jux(threadFactory, str, atomicLong, bool, null, null)));
3024 }
3025
3026 public static jum a(jun jun) {
3027 return jun;
3028 }
3029
3030 public static jun s() {
3031 ThreadFactory threadFactory;
3032 AtomicLong atomicLong;
3033 juw a = new juw().a(true).a("Non-messaging Thread #%d").a(new bin());
3034 String str = a.a;
3035 Boolean bool = a.b;
3036 if (a.c != null) {
3037 threadFactory = a.c;
3038 } else {
3039 threadFactory = Executors.defaultThreadFactory();
3040 }
3041 if (str != null) {
3042 atomicLong = new AtomicLong(0);
3043 } else {
3044 atomicLong = null;
3045 }
3046 return a(Executors.newSingleThreadScheduledExecutor(new jux(threadFactory, str, atomicLong, bool, null, null)));
3047 }
3048
3049 public static jum b(jun jun) {
3050 return jun;
3051 }
3052
3053 public static boolean x(String str) {
3054 Throwable th;
3055 Cursor a;
3056 try {
3057 a = bdc.a.d().a("messages", new String[]{"crypto_message_id"}, "crypto_message_id=?", new String[]{str}, null, null, null);
3058 try {
3059 boolean z = a.getCount() > 0;
3060 if (a != null) {
3061 a.close();
3062 }
3063 return z;
3064 } catch (Throwable th2) {
3065 th = th2;
3066 if (a != null) {
3067 a.close();
3068 }
3069 throw th;
3070 }
3071 } catch (Throwable th3) {
3072 th = th3;
3073 a = null;
3074 if (a != null) {
3075 a.close();
3076 }
3077 throw th;
3078 }
3079 }
3080
3081 public static void a(bkl bkl, String str, lsn lsn) {
3082 bgo.b();
3083 ContentValues contentValues = new ContentValues();
3084 contentValues.put("sender", str);
3085 contentValues.put("identity_key", lsn.a());
3086 bkl.a("crypto_identity_keys", null, contentValues, 5);
3087 }
3088
3089 public static lsn a(bkl bkl, String str) {
3090 bgo.b();
3091 bkl bkl2 = bkl;
3092 Cursor a = bkl2.a("crypto_identity_keys", new String[]{"identity_key"}, "sender=?", new String[]{str}, null, null, null, null);
3093 if (a != null) {
3094 try {
3095 if (a.moveToFirst()) {
3096 lsn lsn = new lsn(a.getBlob(0), 0);
3097 if (a != null) {
3098 a.close();
3099 }
3100 return lsn;
3101 }
3102 } catch (lsp e) {
3103 bhf.b("CryptoDatabaseOperations", "EncryptionIdentityKey: Sender %s has invalid identity key", str);
3104 if (a == null) {
3105 return null;
3106 }
3107 a.close();
3108 return null;
3109 } catch (Throwable th) {
3110 if (a != null) {
3111 a.close();
3112 }
3113 }
3114 }
3115 if (a == null) {
3116 return null;
3117 }
3118 a.close();
3119 return null;
3120 }
3121
3122 public static void a(bkl bkl, int i, lty lty) {
3123 bgo.b();
3124 ContentValues contentValues = new ContentValues();
3125 contentValues.put("key_type", Integer.valueOf(0));
3126 contentValues.put("key_id", Integer.valueOf(i));
3127 contentValues.put("key_record", lty.a.c());
3128 bkl.a("crypto_pre_keys", null, contentValues, 5);
3129 }
3130
3131 public static void a(bkl bkl, int i, lue lue) {
3132 bgo.b();
3133 ContentValues contentValues = new ContentValues();
3134 contentValues.put("key_type", Integer.valueOf(1));
3135 contentValues.put("key_id", Integer.valueOf(i));
3136 contentValues.put("key_record", lue.a.c());
3137 bkl.a("crypto_pre_keys", null, contentValues, 5);
3138 }
3139
3140 public static Object a(bkl bkl, int i, int i2) {
3141 bkl bkl2 = bkl;
3142 Cursor a = bkl2.a("crypto_pre_keys", new String[]{"key_record"}, "key_type=? AND key_id=?", new String[]{String.valueOf(i), String.valueOf(i2)}, null, null, null, null);
3143 if (a != null) {
3144 try {
3145 if (a.moveToFirst()) {
3146 byte[] blob = a.getBlob(0);
3147 switch (i) {
3148 case yu.RecyclerView_android_orientation /*0*/:
3149 lty lty = new lty(blob);
3150 if (a != null) {
3151 a.close();
3152 }
3153 return lty;
3154 case yu.RecyclerView_android_descendantFocusability /*1*/:
3155 lue lue = new lue(blob);
3156 if (a != null) {
3157 a.close();
3158 }
3159 return lue;
3160 default:
3161 if (a == null) {
3162 return null;
3163 }
3164 a.close();
3165 return null;
3166 }
3167 bhf.b("CryptoDatabaseOperations", "EncryptionPreKey: IOException while deserializing PreKey or SignedPreKey", new Object[0]);
3168 if (a != null) {
3169 return null;
3170 }
3171 a.close();
3172 return null;
3173 }
3174 } catch (IOException e) {
3175 bhf.b("CryptoDatabaseOperations", "EncryptionPreKey: IOException while deserializing PreKey or SignedPreKey", new Object[0]);
3176 if (a != null) {
3177 return null;
3178 }
3179 a.close();
3180 return null;
3181 } catch (Throwable th) {
3182 if (a != null) {
3183 a.close();
3184 }
3185 }
3186 }
3187 if (a == null) {
3188 return null;
3189 }
3190 a.close();
3191 return null;
3192 }
3193
3194 public static lty a(bkl bkl, int i) {
3195 bgo.b();
3196 return (lty) a(bkl, 0, i);
3197 }
3198
3199 public static int a(bkl bkl) {
3200 bgo.b();
3201 bkl bkl2 = bkl;
3202 Cursor a = bkl2.a("crypto_pre_keys", new String[]{"key_id"}, null, null, null, null, "key_id DESC", "1");
3203 if (a != null) {
3204 try {
3205 if (a.moveToFirst()) {
3206 int i = a.getInt(0);
3207 if (a == null) {
3208 return i;
3209 }
3210 a.close();
3211 return i;
3212 }
3213 } catch (Throwable th) {
3214 if (a != null) {
3215 a.close();
3216 }
3217 }
3218 }
3219 if (a != null) {
3220 a.close();
3221 }
3222 return -1;
3223 }
3224
3225 public static lue b(bkl bkl, int i) {
3226 bgo.b();
3227 return (lue) a(bkl, 1, i);
3228 }
3229
3230 public static void b(bkl bkl, int i, int i2) {
3231 bkl.b("crypto_pre_keys", "key_type=? AND key_id=?", new String[]{"0", String.valueOf(i2)});
3232 }
3233
3234 public static void c(bkl bkl, int i) {
3235 bgo.b();
3236 b(bkl, 0, i);
3237 }
3238
3239 public static lua a(bkl bkl, String str, int i) {
3240 bgo.b();
3241 bkl bkl2 = bkl;
3242 Cursor a = bkl2.a("crypto_sessions", new String[]{"session_record"}, "user_id=? AND device_id=?", new String[]{str, String.valueOf(i)}, null, null, null, null);
3243 if (a != null) {
3244 try {
3245 if (a.moveToFirst()) {
3246 lua lua = new lua(a.getBlob(0));
3247 if (a != null) {
3248 a.close();
3249 }
3250 return lua;
3251 }
3252 } catch (IOException e) {
3253 bhf.b("CryptoDatabaseOperations", "EncryptionSession: IOException while deserializing SessionRecord", new Object[0]);
3254 if (a == null) {
3255 return null;
3256 }
3257 a.close();
3258 return null;
3259 } catch (Throwable th) {
3260 if (a != null) {
3261 a.close();
3262 }
3263 }
3264 }
3265 if (a == null) {
3266 return null;
3267 }
3268 a.close();
3269 return null;
3270 }
3271
3272 public static void a(bkl bkl, String str, int i, lua lua) {
3273 bgo.b();
3274 ContentValues contentValues = new ContentValues();
3275 contentValues.put("user_id", str);
3276 contentValues.put("device_id", Integer.valueOf(i));
3277 contentValues.put("session_record", lua.b());
3278 bkl.a("crypto_sessions", null, contentValues, 5);
3279 }
3280
3281 public static bjs t() {
3282 lta w = w();
3283 return new bjs(new lso(new lsn(w.a), w.b));
3284 }
3285
3286 public static byte[] a(byte[] bArr) {
3287 return a(bArr, 16);
3288 }
3289
3290 public static byte[] a(byte[] bArr, int i) {
3291 try {
3292 return Arrays.copyOfRange(MessageDigest.getInstance("SHA-256").digest(bArr), 0, i);
3293 } catch (NoSuchAlgorithmException e) {
3294 return null;
3295 }
3296 }
3297
3298 public static String b(byte[] bArr, int i) {
3299 byte[] a = a(bArr, 8);
3300 if (a == null) {
3301 return null;
3302 }
3303 StringBuilder stringBuilder = new StringBuilder();
3304 for (int i2 = 0; i2 < a.length; i2++) {
3305 stringBuilder.append(String.format("%02X", new Object[]{Byte.valueOf(a[i2])}));
3306 stringBuilder.append(i2 % 2 == 0 ? ":" : " ");
3307 }
3308 return stringBuilder.toString();
3309 }
3310
3311 public static void b(String str, String str2) {
3312 bkl d = bdc.a.d();
3313 ContentValues contentValues = new ContentValues();
3314 contentValues.put("crypto_message_id", str2);
3315 bkr.c(d, str, contentValues);
3316 }
3317
3318 public static byte[] y(String str) {
3319 return Base64.decode(str, 3);
3320 }
3321
3322 public static String b(byte[] bArr) {
3323 return Base64.encodeToString(bArr, 3);
3324 }
3325
3326 public static bkl a(bki bki) {
3327 return bki.b;
3328 }
3329
3330 public static void u() {
3331 bnk E = bdc.a.E();
3332 try {
3333 E.a();
3334 E.c("TACHYON_PRIVATE_KEY");
3335 E.c("TACHYON_PUBLIC_KEY");
3336 E.c.b();
3337 } finally {
3338 E.b();
3339 }
3340 }
3341
3342 public static void a(lta lta) {
3343 bnk E = bdc.a.E();
3344 try {
3345 E.a();
3346 E.a("TACHYON_PRIVATE_KEY", lta.b.a());
3347 E.a("TACHYON_PUBLIC_KEY", lta.a.a());
3348 E.c.b();
3349 } finally {
3350 E.b();
3351 }
3352 }
3353
3354 public static byte[] a(kxc kxc) {
3355 try {
3356 lta w = w();
3357 bfw.a((Object) w, "Key Pair is null", new Object[0]);
3358 return a(b(kxc), w);
3359 } catch (UnsupportedEncodingException e) {
3360 bhf.c("FireballNetwork", "failed to getBytes()", e);
3361 return null;
3362 }
3363 }
3364
3365 public static byte[] b(kxc kxc) {
3366 byte[] f = f(0);
3367 byte[] f2 = f(0);
3368 if (kxc.i != null) {
3369 f = c(f(kxc.i.a));
3370 f2 = c(kxc.i.b);
3371 }
3372 return a(c(kxc.b.c.getBytes("UTF-8")), c(f(kxc.b.a)), c(kxc.b.b.getBytes("UTF-8")), c(kxc.f.getBytes("UTF-8")), c(kxc.g), c(kxc.h.getBytes("UTF-8")), f, f2, c(a(kxc.c)));
3373 }
3374
3375 public static byte[] a(byte[] bArr, lta lta) {
3376 try {
3377 Object calculateSignature = etr.calculateSignature(lta.b, bArr);
3378 bfw.a(calculateSignature);
3379 if (!bgn.a() || etr.verifySignature(lta.a, bArr, calculateSignature)) {
3380 return calculateSignature;
3381 }
3382 bfw.a("unable to verify signature locally", new Object[0]);
3383 return calculateSignature;
3384 } catch (lsp e) {
3385 bhf.c("FireballNetwork", "failed to signBytes", e);
3386 return null;
3387 }
3388 }
3389
3390 public static lta v() {
3391 lta generateKeyPair = etr.generateKeyPair();
3392 a(generateKeyPair);
3393 return generateKeyPair;
3394 }
3395
3396 public static lta w() {
3397 try {
3398 bnk E = bdc.a.E();
3399 byte[] b = E.b("TACHYON_PRIVATE_KEY");
3400 byte[] b2 = E.b("TACHYON_PUBLIC_KEY");
3401 if (b != null && b2 != null) {
3402 return new lta(etr.decodePoint(b2, 0), etr.decodePrivatePoint(b));
3403 }
3404 bhf.b("FireballNetwork", "Missing key pair in network service metadata", new Object[0]);
3405 return null;
3406 } catch (Throwable e) {
3407 bhf.b("FireballNetwork", e, "cannot find valid Curve25519 key pair", new Object[0]);
3408 return null;
3409 }
3410 }
3411
3412 public static boolean x() {
3413 return w() != null;
3414 }
3415
3416 public static byte[] f(int i) {
3417 ByteBuffer allocate = ByteBuffer.allocate(4);
3418 allocate.order(ByteOrder.LITTLE_ENDIAN);
3419 allocate.putInt(i);
3420 return allocate.array();
3421 }
3422
3423 public static byte[] a(long j) {
3424 ByteBuffer allocate = ByteBuffer.allocate(8);
3425 allocate.order(ByteOrder.LITTLE_ENDIAN);
3426 allocate.putLong(j);
3427 return allocate.array();
3428 }
3429
3430 public static byte[] c(byte[] bArr) {
3431 if (bArr == null || bArr.length == 0) {
3432 return G(0);
3433 }
3434 return ByteBuffer.allocate(bArr.length + 4).put(f(bArr.length)).put(bArr).array();
3435 }
3436
3437 public static void a(String str, bwm bwm, bxh bxh) {
3438 Context a = bdc.a.a();
3439 if (eag.a(a) && bdc.a.b().a(str)) {
3440 Resources resources = a.getResources();
3441 String string = bwm == null ? resources.getString(etr.unknown_sender) : bwm.z();
3442 if (bxh == null || bxh.y == null) {
3443 string = resources.getString(etr.incoming_sender_content_description, new Object[]{string});
3444 } else {
3445 string = resources.getString(etr.incoming_message_announcement, new Object[]{string, bxh.y});
3446 }
3447 z(string);
3448 }
3449 }
3450
3451 public static void z(String str) {
3452 ecf.a.post(new bpl(str));
3453 }
3454
3455 public static cle a(btb btb) {
3456 return btb;
3457 }
3458
3459 public static String y() {
3460 return UUID.randomUUID().toString();
3461 }
3462
3463 public static String z() {
3464 return y();
3465 }
3466
3467 public static String g(int i) {
3468 String valueOf = String.valueOf(y());
3469 return new StringBuilder(String.valueOf(valueOf).length() + 13).append("+").append(i).append("-").append(valueOf).toString();
3470 }
3471
3472 public static Intent a(String str, String str2, boolean z, boolean z2) {
3473 Intent intent = new Intent("on_conversation_created_broadcast_intent_action");
3474 intent.putExtra("group_conversation_id_extra", str);
3475 intent.putExtra("conversation_id_extra", str2);
3476 if (z) {
3477 intent.putExtra("status_extra", let.OK.r);
3478 }
3479 intent.putExtra("conversation_created", z2);
3480 return intent;
3481 }
3482
3483 public static String a(Intent intent) {
3484 return intent.getStringExtra("conversation_id_extra");
3485 }
3486
3487 public static boolean b(Intent intent) {
3488 return intent.getBooleanExtra("conversation_created", false);
3489 }
3490
3491 public static String c(Intent intent) {
3492 return intent.getStringExtra("group_conversation_id_extra");
3493 }
3494
3495 public static void a(Intent intent, kfc<?> kfc_) {
3496 intent.putExtra("proto_extra", kfl.a((kfl) kfc_));
3497 intent.putExtra("proto_class_extra", kfc_.getClass().getName());
3498 }
3499
3500 public static kfc<?> d(Intent intent) {
3501 return a(intent.getByteArrayExtra("proto_extra"), g(intent));
3502 }
3503
3504 public static kfc<?> a(byte[] bArr, String str) {
3505 Object obj = (kfc) a(Class.forName(str).asSubclass(kfc.class), bArr);
3506 bfw.a(obj);
3507 return obj;
3508 }
3509
3510 public static kvu e(Intent intent) {
3511 return (kvu) kfl.a(new kvu(), intent.getByteArrayExtra("proto_extra"));
3512 }
3513
3514 public static kvu[] f(Intent intent) {
3515 int i = 0;
3516 if (intent.hasExtra("proto_array_extra")) {
3517 Parcelable[] parcelableArrayExtra = intent.getParcelableArrayExtra("proto_array_extra");
3518 kvu[] kvuArr = new kvu[parcelableArrayExtra.length];
3519 int length = parcelableArrayExtra.length;
3520 int i2 = 0;
3521 while (i < length) {
3522 int i3 = i2 + 1;
3523 kvuArr[i2] = (kvu) a(new kvu(), ((btm) parcelableArrayExtra[i]).a);
3524 i++;
3525 i2 = i3;
3526 }
3527 return kvuArr;
3528 }
3529 kvu[] kvuArr2 = new kvu[1];
3530 try {
3531 kvuArr2[0] = e(intent);
3532 return kvuArr2;
3533 } catch (Throwable e) {
3534 bhf.c("FireballNetwork", e, "unable to deserialize message", new Object[0]);
3535 kvuArr2[0] = null;
3536 return kvuArr2;
3537 }
3538 }
3539
3540 public static String g(Intent intent) {
3541 return intent.getStringExtra("proto_class_extra");
3542 }
3543
3544 public static Intent a(Context context, List<kvu> list) {
3545 Intent a = bkf.a(context, "receive_inbox_action", null);
3546 List<byte[]> arrayList = new ArrayList();
3547 for (kfl a2 : list) {
3548 arrayList.add(kfl.a(a2));
3549 }
3550 Parcelable[] parcelableArr = new Parcelable[arrayList.size()];
3551 int i = 0;
3552 for (byte[] btm : arrayList) {
3553 int i2 = i + 1;
3554 parcelableArr[i] = new btm(btm);
3555 i = i2;
3556 }
3557 a.putExtra("proto_array_extra", parcelableArr);
3558 return a;
3559 }
3560
3561 public static cld a(bts bts) {
3562 return bts;
3563 }
3564
3565 public static String c(String str, String str2) {
3566 return String.format(Locale.US, "https://www.gstatic.com/smart_messaging/contentwizard/%s/%s", new Object[]{str, str2});
3567 }
3568
3569 public static int d(String str, String str2) {
3570 int i = 0;
3571 String concat = String.valueOf(str2).concat(":");
3572 String[] split = str.split(",");
3573 int length = split.length;
3574 for (int i2 = i; i2 < length; i2++) {
3575 String str3 = split[i2];
3576 if (str3.startsWith(concat)) {
3577 try {
3578 return Integer.parseInt(str3.substring(concat.length()));
3579 } catch (NumberFormatException e) {
3580 new Object[1][i] = str3;
3581 return i;
3582 }
3583 }
3584 }
3585 return -1;
3586 }
3587
3588 public static String a(String str, String str2, String str3, int i) {
3589 return String.format(Locale.US, "%s-%s-v%d.%s", new Object[]{str, str2, Integer.valueOf(i), str3});
3590 }
3591
3592 public static bwe a(Context context, bfs bfs, ktg<bhl> ktg_bhl, ktg<bgx> ktg_bgx, cgn cgn) {
3593 return new bwe(context, bfs, ktg_bhl, ktg_bgx, cgn);
3594 }
3595
3596 public static eqd n(Context context) {
3597 return new eqe(context).a(gwf.d).a(gwf.c).b();
3598 }
3599
3600 public static cbl a(bzk bzk) {
3601 return bzk;
3602 }
3603
3604 public static cbl a(bzn bzn) {
3605 return bzn;
3606 }
3607
3608 public static cbl a(bzq bzq) {
3609 return bzq;
3610 }
3611
3612 public static cbl a(bzt bzt) {
3613 return bzt;
3614 }
3615
3616 public static cbl a(bzz bzz) {
3617 return bzz;
3618 }
3619
3620 public static cbl a(cac cac) {
3621 return cac;
3622 }
3623
3624 public static cbl a(cai cai) {
3625 return cai;
3626 }
3627
3628 public static cbl a(cal cal) {
3629 return cal;
3630 }
3631
3632 public static cbl a(cao cao) {
3633 return cao;
3634 }
3635
3636 public static cbl a(car car) {
3637 return car;
3638 }
3639
3640 public static cbl a(cau cau) {
3641 return cau;
3642 }
3643
3644 public static cbl a(cax cax) {
3645 return cax;
3646 }
3647
3648 public static cbl a(cbd cbd) {
3649 return cbd;
3650 }
3651
3652 public static cbl a(cbg cbg) {
3653 return cbg;
3654 }
3655
3656 public static cbl a(cbj cbj) {
3657 return cbj;
3658 }
3659
3660 public static cbl a(ccm ccm) {
3661 return ccm;
3662 }
3663
3664 public static cbl a(ccq ccq) {
3665 return ccq;
3666 }
3667
3668 public static cbl a(cct cct) {
3669 return cct;
3670 }
3671
3672 public static cbl a(ccz ccz) {
3673 return ccz;
3674 }
3675
3676 public static cbl a(cdc cdc) {
3677 return cdc;
3678 }
3679
3680 public static cbl a(cdf cdf) {
3681 return cdf;
3682 }
3683
3684 public static cbl a(cba cba) {
3685 return cba;
3686 }
3687
3688 public static cbl a(ccw ccw) {
3689 return ccw;
3690 }
3691
3692 public static cbl a(bzw bzw) {
3693 return bzw;
3694 }
3695
3696 public static cbl a(caf caf) {
3697 return caf;
3698 }
3699
3700 public static String a(kyq kyq, kyq kyq2) {
3701 String valueOf;
3702 String valueOf2;
3703 if (kyq2 != null) {
3704 valueOf = String.valueOf("BOT_CONSISTENCY_KEY_");
3705 valueOf2 = String.valueOf(kyq2.b);
3706 return valueOf2.length() != 0 ? valueOf.concat(valueOf2) : new String(valueOf);
3707 } else if (kyq == null || TextUtils.isEmpty(kyq.b)) {
3708 bhf.c("FireballNetwork", "No group or sender id to key the consistency token", new Object[0]);
3709 return null;
3710 } else {
3711 valueOf = String.valueOf("BOT_CONSISTENCY_KEY_");
3712 valueOf2 = String.valueOf(kyq.b);
3713 return valueOf2.length() != 0 ? valueOf.concat(valueOf2) : new String(valueOf);
3714 }
3715 }
3716
3717 public static jet<cdx> A(String str) {
3718 Object obj;
3719 jws jws = new jws();
3720 Type type = cdx[].class;
3721 if (str == null) {
3722 obj = null;
3723 } else {
3724 kbh kbh = new kbh(new StringReader(str));
3725 Object a = jws.a(kbh, type);
3726 jws.a(a, kbh);
3727 obj = a;
3728 }
3729 Class cls = (Class) jyu.a.get(cb.a((Object) type));
3730 if (cls == null) {
3731 cls = type;
3732 }
3733 Object[] objArr = (cdx[]) cls.cast(obj);
3734 int i = 1;
3735 for (cdx access$000 : objArr) {
3736 if (!access$000.validate()) {
3737 i = 0;
3738 }
3739 }
3740 if (i != 0) {
3741 return jet.a(objArr);
3742 }
3743 bhf.c("FireballStickers", "Parsed sticker metadata was invalid for JSON: %s", str);
3744 return jhm.a;
3745 }
3746
3747 public static eqd o(Context context) {
3748 return new eqe(context).a(gvl.b).b();
3749 }
3750
3751 public <T> T a(gvt<T> gvt_T) {
3752 if (gvt.b == null) {
3753 throw new IllegalStateException("Must call PhenotypeFlag.init() first");
3754 }
3755 T a;
3756 if (!((Boolean) gvt.d.b()).booleanValue()) {
3757 if (gvt_T.i != null) {
3758 SharedPreferences sharedPreferences = gvt.b.getSharedPreferences(gvt_T.i, 0);
3759 if (sharedPreferences.contains(gvt_T.g)) {
3760 return gvt_T.a(sharedPreferences);
3761 }
3762 }
3763 Flag a2;
3764 if (null == null) {
3765 a2 = gvt_T.j.a(gvt.b, gvt_T.f, gvt_T.g, gvt_T.h);
3766 } else {
3767 gvq gvq = gvt_T.j;
3768 gvr gvr = new gvr(gvt_T.f, gvt_T.g, gvt_T.h);
3769 gvs a3 = gvq.a(gvr);
3770 a2 = a3 != null ? (Flag) a3.a : gvq.a(null, gvr);
3771 }
3772 if (a2 != null) {
3773 a = gvt_T.a(a2);
3774 if (a != null) {
3775 return a;
3776 }
3777 }
3778 }
3779 String a4 = fui.a(gvt.b.getContentResolver(), gvt_T.e);
3780 if (a4 != null) {
3781 a = gvt_T.a(a4);
3782 if (a != null) {
3783 return a;
3784 }
3785 }
3786 return gvt_T.k;
3787 }
3788
3789 public ux(cfv cfv) {
3790 cfv.a();
3791 }
3792
3793 public static eqd p(Context context) {
3794 return new eqe(context).a(fkd.b).b();
3795 }
3796
3797 public static cgn a(Context context, jum jum) {
3798 return new cgp(context, jum);
3799 }
3800
3801 public static cgu a(cgw cgw) {
3802 return cgw;
3803 }
3804
3805 public static gdo A() {
3806 return gds.c;
3807 }
3808
3809 public static gfa B() {
3810 return gfg.f;
3811 }
3812
3813 public static gex C() {
3814 return gfg.e;
3815 }
3816
3817 public static eqd q(Context context) {
3818 return new eqe(context).a(gfg.d).a(gfg.c).a(gds.b).b();
3819 }
3820
3821 public static String a(int i, int i2, double d, double d2) {
3822 String valueOf = String.valueOf("AIzaSyDEG3F3Q4aovbmuvbPyUn-wj8PaRHiTi9A");
3823 return new StringBuilder(String.valueOf(valueOf).length() + 241).append("https://maps.googleapis.com/maps/api/staticmap?center=").append(d).append(",").append(d2).append("&zoom=18&size=").append(i).append("x").append(i2).append("&maptype=roadmap&markers=color:red%7Clabel:!%7C").append(d).append(",").append(d2).append("&key=").append(valueOf).toString();
3824 }
3825
3826 public static String a(double d, double d2) {
3827 return String.format(Locale.US, "geo:%f,%f?q=%f,%f", new Object[]{Double.valueOf(d), Double.valueOf(d2), Double.valueOf(d), Double.valueOf(d2)});
3828 }
3829
3830 public static fmg r(Context context) {
3831 return fmg.b(context);
3832 }
3833
3834 public static chm a(chn chn, ljh<cio> ljh_cio) {
3835 ipw ipw = bgm.e;
3836 return chn;
3837 }
3838
3839 public static kus a(chm chm) {
3840 return kuq.b(chm.a());
3841 }
3842
3843 public static kut b(chm chm) {
3844 return kuq.a(chm.a());
3845 }
3846
3847 public static CharSequence a(Context context, CharSequence charSequence) {
3848 if (charSequence == null) {
3849 return null;
3850 }
3851 CharSequence spannableStringBuilder = new SpannableStringBuilder();
3852 spannableStringBuilder.append(charSequence);
3853 spannableStringBuilder.setSpan(new ForegroundColorSpan(context.getResources().getColor(cb.cB)), 0, charSequence.length(), 33);
3854 return spannableStringBuilder;
3855 }
3856
3857 public static void D() {
3858 ean ean = null;
3859 Cursor a = bdc.a.d().a("messages", bxh.a, "(message_status = 6 AND seen = 0)", null, null, null, "conversation_id, received_timestamp asc");
3860 try {
3861 Context a2 = bdc.a.a();
3862 Resources resources = a2.getResources();
3863 if (a != null) {
3864 String str;
3865 bxe bxh = new bxh();
3866 HashSet hashSet = new HashSet();
3867 ArrayList arrayList = new ArrayList();
3868 a.moveToPosition(-1);
3869 int i = -1;
3870 while (a.moveToNext()) {
3871 bxh.a(a);
3872 str = bxh.k;
3873 if (!bdc.a.b().a(str)) {
3874 i = a.getPosition();
3875 arrayList.add(Integer.valueOf(i));
3876 hashSet.add(str);
3877 }
3878 }
3879 new Object[1][0] = Integer.valueOf(arrayList.size());
3880 if (arrayList.size() > 0) {
3881 PendingIntent a3;
3882 CharSequence charSequence;
3883 CharSequence string;
3884 gf gfVar = new gf(a2);
3885 if (arrayList.size() == 1) {
3886 a.moveToPosition(i);
3887 bxh.a(a);
3888 str = bxh.k;
3889 a3 = bdc.a.g().a(a2, str, null, null);
3890 ean = ean.a(str);
3891 charSequence = bxh.y;
3892 string = resources.getString(etr.notification_send_failures_line1_singular);
3893 } else {
3894 a3 = bdc.a.g().j(a2);
3895 string = resources.getString(etr.notification_send_failures_line1_plural);
3896 charSequence = resources.getQuantityString(cp, hashSet.size(), new Object[]{Integer.valueOf(arrayList.size()), Integer.valueOf(hashSet.size())});
3897 }
3898 string = a(a2, string);
3899 charSequence = a(a2, charSequence);
3900 gf a4 = gfVar.a(string).c(string).a(System.currentTimeMillis()).a(bdn.ic_failed_light).a(bdc.a.g().a(a2, 2, ean, 0));
3901 a4.d = a3;
3902 a4.a(ecj.a(a2, cz)).b(charSequence);
3903 ciu.a(bdc.a.a(), cit.b, gfVar.a());
3904 } else {
3905 ciu.a(bdc.a.a(), cit.b);
3906 }
3907 }
3908 if (a != null) {
3909 a.close();
3910 }
3911 } catch (Throwable th) {
3912 if (a != null) {
3913 a.close();
3914 }
3915 }
3916 }
3917
3918 public static CharSequence a(CharSequence charSequence, CharSequence charSequence2, bgl bgl, cdj cdj) {
3919 return a(charSequence, false, charSequence2, bgl, etr.notification_separator, cdj);
3920 }
3921
3922 public static CharSequence a(String str, CharSequence charSequence, bgl bgl, cdj cdj) {
3923 return a((CharSequence) str, true, charSequence, bgl, etr.notification_ticker_separator, cdj);
3924 }
3925
3926 public static CharSequence b(String str, CharSequence charSequence, bgl bgl, cdj cdj) {
3927 return a((CharSequence) str, true, charSequence, bgl, etr.notification_space_separator, cdj);
3928 }
3929
3930 public static CharSequence a(CharSequence charSequence, boolean z, CharSequence charSequence2, bgl bgl, int i, cdj cdj) {
3931 Context a = bdc.a.a();
3932 if (cdj == cdj.BACKCHANNEL) {
3933 return a.getResources().getString(etr.notification_incognito);
3934 }
3935 CharSequence spannableStringBuilder = new SpannableStringBuilder();
3936 if (!TextUtils.isEmpty(charSequence)) {
3937 spannableStringBuilder.append(charSequence);
3938 if (z) {
3939 spannableStringBuilder.setSpan(new StyleSpan(1), 0, charSequence.length(), 33);
3940 } else {
3941 spannableStringBuilder.setSpan(new TextAppearanceSpan(a, cb.dd), 0, charSequence.length(), 0);
3942 }
3943 }
3944 if (!TextUtils.isEmpty(charSequence2)) {
3945 if (spannableStringBuilder.length() > 0) {
3946 spannableStringBuilder.append(a.getString(i));
3947 }
3948 spannableStringBuilder.append(charSequence2);
3949 return spannableStringBuilder;
3950 } else if (!a(bgl)) {
3951 return spannableStringBuilder;
3952 } else {
3953 if (spannableStringBuilder.length() > 0) {
3954 spannableStringBuilder.append(a.getString(etr.notification_separator));
3955 }
3956 spannableStringBuilder.append(a(null, bgl));
3957 return spannableStringBuilder;
3958 }
3959 }
3960
3961 public static CharSequence a(String str, bgl bgl) {
3962 Object obj = null;
3963 Context a = bdc.a.a();
3964 TextAppearanceSpan textAppearanceSpan = new TextAppearanceSpan(a, cb.dc);
3965 CharSequence spannableStringBuilder = new SpannableStringBuilder();
3966 if (!TextUtils.isEmpty(obj)) {
3967 TextAppearanceSpan textAppearanceSpan2 = new TextAppearanceSpan(a, cb.dd);
3968 spannableStringBuilder.append(obj);
3969 spannableStringBuilder.setSpan(textAppearanceSpan2, 0, obj.length(), 0);
3970 spannableStringBuilder.append(a.getString(etr.notification_separator));
3971 }
3972 int length = spannableStringBuilder.length();
3973 spannableStringBuilder.append(a.getText(b(bgl)));
3974 spannableStringBuilder.setSpan(textAppearanceSpan, length, spannableStringBuilder.length(), 0);
3975 return spannableStringBuilder;
3976 }
3977
3978 public static int b(bgl bgl) {
3979 switch (cja.a[bgl.ordinal()]) {
3980 case yu.RecyclerView_android_descendantFocusability /*1*/:
3981 return etr.notification_audio;
3982 case yu.RecyclerView_layoutManager /*2*/:
3983 return etr.notification_video;
3984 case yu.RecyclerView_spanCount /*3*/:
3985 return etr.notification_sticker;
3986 case yu.RecyclerView_reverseLayout /*4*/:
3987 return etr.notification_location;
3988 default:
3989 return etr.notification_picture;
3990 }
3991 }
3992
3993 public static cis a(ciu ciu) {
3994 return ciu;
3995 }
3996
3997 public static cjv a(ek ekVar) {
3998 if (ekVar instanceof cjv) {
3999 return (cjv) ekVar;
4000 }
4001 String valueOf = String.valueOf(ekVar.getClass());
4002 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 230).append("Attempt to inject a Fragment wrapper of type com.google.android.apps.fireball.opa.actions.UdcCheckConsentFragmentPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4003 }
4004
4005 public static iol a(bfs bfs) {
4006 if (VERSION.SDK_INT >= 23) {
4007 return new ckl(bfs);
4008 }
4009 return new ioa();
4010 }
4011
4012 public static cld a(cla cla) {
4013 return cla;
4014 }
4015
4016 public static String a(cld cld) {
4017 boolean z;
4018 boolean z2 = true;
4019 if (TextUtils.isEmpty(cld.a())) {
4020 z = false;
4021 } else {
4022 z = true;
4023 }
4024 jcz.a(z);
4025 if (cld.a().contains("::")) {
4026 z = false;
4027 } else {
4028 z = true;
4029 }
4030 jcz.a(z);
4031 if (TextUtils.isEmpty(cld.c())) {
4032 z2 = false;
4033 }
4034 jcz.a(z2);
4035 return e(cld.a(), cld.c());
4036 }
4037
4038 public static String e(String str, String str2) {
4039 return new StringBuilder((String.valueOf(str).length() + 5) + String.valueOf(str2).length()).append("O::").append(str).append("::").append(str2).toString();
4040 }
4041
4042 public static String B(String str) {
4043 jcz.a(!TextUtils.isEmpty(str));
4044 return str.substring(3, str.indexOf("::", 3));
4045 }
4046
4047 public static BlockedParticipantsActivity e(Activity activity) {
4048 if (activity instanceof BlockedParticipantsActivity) {
4049 return (BlockedParticipantsActivity) activity;
4050 }
4051 String valueOf = String.valueOf(activity.getClass());
4052 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 225).append("Attempt to inject a Activity wrapper of type com.google.android.apps.fireball.ui.BlockedParticipantsActivityPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4053 }
4054
4055 public static BlockedParticipantsFragment b(ek ekVar) {
4056 if (ekVar instanceof BlockedParticipantsFragment) {
4057 return (BlockedParticipantsFragment) ekVar;
4058 }
4059 String valueOf = String.valueOf(ekVar.getClass());
4060 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 225).append("Attempt to inject a Fragment wrapper of type com.google.android.apps.fireball.ui.BlockedParticipantsFragmentPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4061 }
4062
4063 public static ConfidentialActivity f(Activity activity) {
4064 if (activity instanceof ConfidentialActivity) {
4065 return (ConfidentialActivity) activity;
4066 }
4067 String valueOf = String.valueOf(activity.getClass());
4068 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 218).append("Attempt to inject a Activity wrapper of type com.google.android.apps.fireball.ui.ConfidentialActivityPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4069 }
4070
4071 public static ForcedUpgradeActivity g(Activity activity) {
4072 if (activity instanceof ForcedUpgradeActivity) {
4073 return (ForcedUpgradeActivity) activity;
4074 }
4075 String valueOf = String.valueOf(activity.getClass());
4076 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 219).append("Attempt to inject a Activity wrapper of type com.google.android.apps.fireball.ui.ForcedUpgradeActivityPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4077 }
4078
4079 public static PermissionCheckActivity h(Activity activity) {
4080 if (activity instanceof PermissionCheckActivity) {
4081 return (PermissionCheckActivity) activity;
4082 }
4083 String valueOf = String.valueOf(activity.getClass());
4084 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 221).append("Attempt to inject a Activity wrapper of type com.google.android.apps.fireball.ui.PermissionCheckActivityPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4085 }
4086
4087 public static cop a(cor cor) {
4088 return cor;
4089 }
4090
4091 public static YouTubeMessageView t(View view) {
4092 if (view instanceof YouTubeMessageView) {
4093 return (YouTubeMessageView) view;
4094 }
4095 String valueOf = String.valueOf(view.getClass());
4096 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 212).append("Attempt to inject a View wrapper of type com.google.android.apps.fireball.ui.YouTubeMessageViewPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4097 }
4098
4099 public static ApplicationSettingsActivity i(Activity activity) {
4100 if (activity instanceof ApplicationSettingsActivity) {
4101 return (ApplicationSettingsActivity) activity;
4102 }
4103 String valueOf = String.valueOf(activity.getClass());
4104 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 237).append("Attempt to inject a Activity wrapper of type com.google.android.apps.fireball.ui.appsettings.ApplicationSettingsActivityPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4105 }
4106
4107 public static void a(isa isa, cpl cpl) {
4108 a((ek) isa, cqb.class, new cpr(cpl));
4109 a((ek) isa, cqa.class, new cps(cpl));
4110 }
4111
4112 public static cpk c(ek ekVar) {
4113 if (ekVar instanceof cpk) {
4114 return (cpk) ekVar;
4115 }
4116 String valueOf = String.valueOf(ekVar.getClass());
4117 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 237).append("Attempt to inject a Fragment wrapper of type com.google.android.apps.fireball.ui.appsettings.ApplicationSettingsFragmentPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4118 }
4119
4120 public static void a(Context context, View view, String str, String str2) {
4121 new AlertDialog.Builder(context).setTitle(context.getString(etr.block_confirmation_title, new Object[]{str2})).setMessage(context.getString(etr.block_confirmation_message)).setNegativeButton(17039360, null).setPositiveButton(etr.action_block, new cql(str, view, context)).create().show();
4122 }
4123
4124 public static cqp a(cqp cqp) {
4125 return cqp;
4126 }
4127
4128 public static cri a(cri cri) {
4129 return cri;
4130 }
4131
4132 public static vj a(Context context, bxz bxz, bkl bkl) {
4133 vk vkVar = new vk(context);
4134 ListAdapter arrayAdapter = new ArrayAdapter(context, 17367043);
4135 ipu ipu = bgm.j;
4136 arrayAdapter.add(cqx.a("Toggle Noise", new cqt()));
4137 arrayAdapter.add(cqx.a("Test Search...", new cqu(context, bxz, bkl)));
4138 arrayAdapter.add(cqx.a("Send RegisterRefresh", new cqv()));
4139 vkVar.a(arrayAdapter, new cqw(arrayAdapter));
4140 return vkVar.a();
4141 }
4142
4143 public static ContactListItemView u(View view) {
4144 if (view instanceof ContactListItemView) {
4145 return (ContactListItemView) view;
4146 }
4147 String valueOf = String.valueOf(view.getClass());
4148 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 221).append("Attempt to inject a View wrapper of type com.google.android.apps.fireball.ui.contact.ContactListItemViewPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4149 }
4150
4151 public static void a(isc isc, csh csh) {
4152 a((ek) isc, ctn.class, new csw(csh));
4153 a((ek) isc, ctl.class, new csx(csh));
4154 a((ek) isc, dih.class, new csy(csh));
4155 }
4156
4157 public static csg d(ek ekVar) {
4158 if (ekVar instanceof csg) {
4159 return (csg) ekVar;
4160 }
4161 String valueOf = String.valueOf(ekVar.getClass());
4162 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 227).append("Attempt to inject a Fragment wrapper of type com.google.android.apps.fireball.ui.contact.ContactPickerFragmentPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4163 }
4164
4165 public static ComposeMessageView v(View view) {
4166 if (view instanceof ComposeMessageView) {
4167 return (ComposeMessageView) view;
4168 }
4169 String valueOf = String.valueOf(view.getClass());
4170 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 225).append("Attempt to inject a View wrapper of type com.google.android.apps.fireball.ui.conversation.ComposeMessageViewPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4171 }
4172
4173 public static ConversationActivity j(Activity activity) {
4174 if (activity instanceof ConversationActivity) {
4175 return (ConversationActivity) activity;
4176 }
4177 String valueOf = String.valueOf(activity.getClass());
4178 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 231).append("Attempt to inject a Activity wrapper of type com.google.android.apps.fireball.ui.conversation.ConversationActivityPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4179 }
4180
4181 public static void a(isc isc, cvd cvd) {
4182 a((ek) isc, dbj.class, new cwp(cvd));
4183 a((ek) isc, czj.class, new cwq(cvd));
4184 a((ek) isc, czi.class, new cwr(cvd));
4185 }
4186
4187 public static cvc e(ek ekVar) {
4188 if (ekVar instanceof cvc) {
4189 return (cvc) ekVar;
4190 }
4191 String valueOf = String.valueOf(ekVar.getClass());
4192 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 231).append("Attempt to inject a Fragment wrapper of type com.google.android.apps.fireball.ui.conversation.ConversationFragmentPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4193 }
4194
4195 public static hwx a(hwx hwx) {
4196 return hwx;
4197 }
4198
4199 public static dbr a(dbs dbs) {
4200 return dbs;
4201 }
4202
4203 public static EditConversationThemeActivity k(Activity activity) {
4204 if (activity instanceof EditConversationThemeActivity) {
4205 return (EditConversationThemeActivity) activity;
4206 }
4207 String valueOf = String.valueOf(activity.getClass());
4208 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 240).append("Attempt to inject a Activity wrapper of type com.google.android.apps.fireball.ui.conversation.EditConversationThemeActivityPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4209 }
4210
4211 public static void a(isc isc, cyi cyi) {
4212 a((ek) isc, dbj.class, new cyk(cyi));
4213 }
4214
4215 public static EditConversationThemeFragment f(ek ekVar) {
4216 if (ekVar instanceof EditConversationThemeFragment) {
4217 return (EditConversationThemeFragment) ekVar;
4218 }
4219 String valueOf = String.valueOf(ekVar.getClass());
4220 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 240).append("Attempt to inject a Fragment wrapper of type com.google.android.apps.fireball.ui.conversation.EditConversationThemeFragmentPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4221 }
4222
4223 public static MessageDetailsActivity l(Activity activity) {
4224 if (activity instanceof MessageDetailsActivity) {
4225 return (MessageDetailsActivity) activity;
4226 }
4227 String valueOf = String.valueOf(activity.getClass());
4228 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 233).append("Attempt to inject a Activity wrapper of type com.google.android.apps.fireball.ui.conversation.MessageDetailsActivityPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4229 }
4230
4231 public static czx g(ek ekVar) {
4232 if (ekVar instanceof czx) {
4233 return (czx) ekVar;
4234 }
4235 String valueOf = String.valueOf(ekVar.getClass());
4236 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 233).append("Attempt to inject a Fragment wrapper of type com.google.android.apps.fireball.ui.conversation.MessageDetailsFragmentPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4237 }
4238
4239 public static dax w(View view) {
4240 if (view instanceof dax) {
4241 return (dax) view;
4242 }
4243 String valueOf = String.valueOf(view.getClass());
4244 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 223).append("Attempt to inject a View wrapper of type com.google.android.apps.fireball.ui.conversation.SuggestionButtonPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4245 }
4246
4247 public static ThemePickerView x(View view) {
4248 if (view instanceof ThemePickerView) {
4249 return (ThemePickerView) view;
4250 }
4251 String valueOf = String.valueOf(view.getClass());
4252 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 222).append("Attempt to inject a View wrapper of type com.google.android.apps.fireball.ui.conversation.ThemePickerViewPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4253 }
4254
4255 public static AutolinkAccountView y(View view) {
4256 if (view instanceof AutolinkAccountView) {
4257 return (AutolinkAccountView) view;
4258 }
4259 String valueOf = String.valueOf(view.getClass());
4260 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 230).append("Attempt to inject a View wrapper of type com.google.android.apps.fireball.ui.conversationlist.AutolinkAccountViewPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4261 }
4262
4263 public static ConversationListActivity m(Activity activity) {
4264 if (activity instanceof ConversationListActivity) {
4265 return (ConversationListActivity) activity;
4266 }
4267 String valueOf = String.valueOf(activity.getClass());
4268 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 239).append("Attempt to inject a Activity wrapper of type com.google.android.apps.fireball.ui.conversationlist.ConversationListActivityPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4269 }
4270
4271 public static void a(isc isc, ddv ddv) {
4272 a((ek) isc, dct.class, new dei(ddv));
4273 a((ek) isc, dvk.class, new dej(ddv));
4274 a((ek) isc, dvl.class, new dek(ddv));
4275 }
4276
4277 public static ConversationListFragment h(ek ekVar) {
4278 if (ekVar instanceof ConversationListFragment) {
4279 return (ConversationListFragment) ekVar;
4280 }
4281 String valueOf = String.valueOf(ekVar.getClass());
4282 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 239).append("Attempt to inject a Fragment wrapper of type com.google.android.apps.fireball.ui.conversationlist.ConversationListFragmentPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4283 }
4284
4285 public static ForwardMessageActivity n(Activity activity) {
4286 if (activity instanceof ForwardMessageActivity) {
4287 return (ForwardMessageActivity) activity;
4288 }
4289 String valueOf = String.valueOf(activity.getClass());
4290 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 237).append("Attempt to inject a Activity wrapper of type com.google.android.apps.fireball.ui.conversationlist.ForwardMessageActivityPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4291 }
4292
4293 public static ShareIntentActivity o(Activity activity) {
4294 if (activity instanceof ShareIntentActivity) {
4295 return (ShareIntentActivity) activity;
4296 }
4297 String valueOf = String.valueOf(activity.getClass());
4298 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 234).append("Attempt to inject a Activity wrapper of type com.google.android.apps.fireball.ui.conversationlist.ShareIntentActivityPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4299 }
4300
4301 public static ConversationInfoActivity p(Activity activity) {
4302 if (activity instanceof ConversationInfoActivity) {
4303 return (ConversationInfoActivity) activity;
4304 }
4305 String valueOf = String.valueOf(activity.getClass());
4306 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 243).append("Attempt to inject a Activity wrapper of type com.google.android.apps.fireball.ui.conversationsettings.ConversationInfoActivityPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4307 }
4308
4309 public static void a(isc isc, dfe dfe) {
4310 a((ek) isc, cra.class, new dgo(dfe));
4311 }
4312
4313 public static ConversationInfoFragment i(ek ekVar) {
4314 if (ekVar instanceof ConversationInfoFragment) {
4315 return (ConversationInfoFragment) ekVar;
4316 }
4317 String valueOf = String.valueOf(ekVar.getClass());
4318 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 243).append("Attempt to inject a Fragment wrapper of type com.google.android.apps.fireball.ui.conversationsettings.ConversationInfoFragmentPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4319 }
4320
4321 public static void a(cnf cnf, dgw dgw) {
4322 a((Activity) cnf, ctm.class, new dgy(dgw));
4323 a((Activity) cnf, cti.class, new dgz(dgw));
4324 a((Activity) cnf, ctj.class, new dha(dgw));
4325 a((Activity) cnf, cqy.class, new dhb(dgw));
4326 a((Activity) cnf, dih.class, new dhc(dgw));
4327 a((Activity) cnf, dhw.class, new dhd(dgw));
4328 }
4329
4330 public static CreateConversationActivity q(Activity activity) {
4331 if (activity instanceof CreateConversationActivity) {
4332 return (CreateConversationActivity) activity;
4333 }
4334 String valueOf = String.valueOf(activity.getClass());
4335 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 243).append("Attempt to inject a Activity wrapper of type com.google.android.apps.fireball.ui.createconversation.CreateConversationActivityPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4336 }
4337
4338 public static dhj j(ek ekVar) {
4339 if (ekVar instanceof dhj) {
4340 return (dhj) ekVar;
4341 }
4342 String valueOf = String.valueOf(ekVar.getClass());
4343 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 248).append("Attempt to inject a Fragment wrapper of type com.google.android.apps.fireball.ui.createconversation.CreateGroupConversationFragmentPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4344 }
4345
4346 public static StartCreateConversationButton z(View view) {
4347 if (view instanceof StartCreateConversationButton) {
4348 return (StartCreateConversationButton) view;
4349 }
4350 String valueOf = String.valueOf(view.getClass());
4351 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 242).append("Attempt to inject a View wrapper of type com.google.android.apps.fireball.ui.createconversation.StartCreateConversationButtonPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4352 }
4353
4354 public static ExternalCreateConversationActivity r(Activity activity) {
4355 if (activity instanceof ExternalCreateConversationActivity) {
4356 return (ExternalCreateConversationActivity) activity;
4357 }
4358 String valueOf = String.valueOf(activity.getClass());
4359 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 261).append("Attempt to inject a Activity wrapper of type com.google.android.apps.fireball.ui.createconversation.intentapi.ExternalCreateConversationActivityPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4360 }
4361
4362 public static diu k(ek ekVar) {
4363 if (ekVar instanceof diu) {
4364 return (diu) ekVar;
4365 }
4366 String valueOf = String.valueOf(ekVar.getClass());
4367 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 261).append("Attempt to inject a Fragment wrapper of type com.google.android.apps.fireball.ui.createconversation.intentapi.ExternalCreateConversationFragmentPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4368 }
4369
4370 public static CustomFeedbackActivity s(Activity activity) {
4371 if (activity instanceof CustomFeedbackActivity) {
4372 return (CustomFeedbackActivity) activity;
4373 }
4374 String valueOf = String.valueOf(activity.getClass());
4375 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 229).append("Attempt to inject a Activity wrapper of type com.google.android.apps.fireball.ui.feedback.CustomFeedbackActivityPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4376 }
4377
4378 public static djm l(ek ekVar) {
4379 if (ekVar instanceof djm) {
4380 return (djm) ekVar;
4381 }
4382 String valueOf = String.valueOf(ekVar.getClass());
4383 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 229).append("Attempt to inject a Fragment wrapper of type com.google.android.apps.fireball.ui.feedback.CustomFeedbackFragmentPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4384 }
4385
4386 public static GmsUpdateActivity t(Activity activity) {
4387 if (activity instanceof GmsUpdateActivity) {
4388 return (GmsUpdateActivity) activity;
4389 }
4390 String valueOf = String.valueOf(activity.getClass());
4391 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 225).append("Attempt to inject a Activity wrapper of type com.google.android.apps.fireball.ui.gmsupdate.GmsUpdateActivityPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4392 }
4393
4394 public static void a(isc isc, dmr dmr) {
4395 a((ek) isc, dli.class, new dnb(dmr));
4396 }
4397
4398 public static MediaPicker m(ek ekVar) {
4399 if (ekVar instanceof MediaPicker) {
4400 return (MediaPicker) ekVar;
4401 }
4402 String valueOf = String.valueOf(ekVar.getClass());
4403 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 221).append("Attempt to inject a Fragment wrapper of type com.google.android.apps.fireball.ui.mediapicker.MediaPickerPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4404 }
4405
4406 public static FireballPhotoViewActivity u(Activity activity) {
4407 if (activity instanceof FireballPhotoViewActivity) {
4408 return (FireballPhotoViewActivity) activity;
4409 }
4410 String valueOf = String.valueOf(activity.getClass());
4411 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 235).append("Attempt to inject a Activity wrapper of type com.google.android.apps.fireball.ui.photoviewer.FireballPhotoViewActivityPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4412 }
4413
4414 public static dpm n(ek ekVar) {
4415 if (ekVar instanceof dpm) {
4416 return (dpm) ekVar;
4417 }
4418 String valueOf = String.valueOf(ekVar.getClass());
4419 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 235).append("Attempt to inject a Fragment wrapper of type com.google.android.apps.fireball.ui.photoviewer.FireballPhotoViewFragmentPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4420 }
4421
4422 public static ProfileActivity v(Activity activity) {
4423 if (activity instanceof ProfileActivity) {
4424 return (ProfileActivity) activity;
4425 }
4426 String valueOf = String.valueOf(activity.getClass());
4427 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 221).append("Attempt to inject a Activity wrapper of type com.google.android.apps.fireball.ui.profile.ProfileActivityPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4428 }
4429
4430 public static void a(isc isc, dqb dqb) {
4431 a((ek) isc, cra.class, new drq(dqb));
4432 }
4433
4434 public static dpy o(ek ekVar) {
4435 if (ekVar instanceof dpy) {
4436 return (dpy) ekVar;
4437 }
4438 String valueOf = String.valueOf(ekVar.getClass());
4439 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 221).append("Attempt to inject a Fragment wrapper of type com.google.android.apps.fireball.ui.profile.ProfileFragmentPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4440 }
4441
4442 public static void a(Context context, boolean z, boolean z2, drv drv) {
4443 vk vkVar = new vk(new ContextThemeWrapper(context, cb.de));
4444 ListAdapter cqf = new cqf(context);
4445 if (z) {
4446 cqf.add(cqe.d().a(1).b(etr.profile_take_photo).c(bdn.ic_take_photo).a());
4447 }
4448 cqf.add(cqe.d().a(2).b(etr.profile_choose_photo).c(bdn.ic_cameraroll).a());
4449 if (z2) {
4450 cqf.add(cqe.d().a(3).b(etr.profile_remove_photo).c(bdn.ic_delete_bg600).a());
4451 }
4452 vkVar.a(cqf, new dru(drv, cqf)).a(true).b();
4453 }
4454
4455 public static SelfProfileActivity w(Activity activity) {
4456 if (activity instanceof SelfProfileActivity) {
4457 return (SelfProfileActivity) activity;
4458 }
4459 String valueOf = String.valueOf(activity.getClass());
4460 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 225).append("Attempt to inject a Activity wrapper of type com.google.android.apps.fireball.ui.profile.SelfProfileActivityPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4461 }
4462
4463 public static void a(isc isc, dsb dsb) {
4464 a((ek) isc, cra.class, new dsi(dsb));
4465 }
4466
4467 public static SelfProfileFragment p(ek ekVar) {
4468 if (ekVar instanceof SelfProfileFragment) {
4469 return (SelfProfileFragment) ekVar;
4470 }
4471 String valueOf = String.valueOf(ekVar.getClass());
4472 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 225).append("Attempt to inject a Fragment wrapper of type com.google.android.apps.fireball.ui.profile.SelfProfileFragmentPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4473 }
4474
4475 public static StickerMarketActivity x(Activity activity) {
4476 if (activity instanceof StickerMarketActivity) {
4477 return (StickerMarketActivity) activity;
4478 }
4479 String valueOf = String.valueOf(activity.getClass());
4480 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 227).append("Attempt to inject a Activity wrapper of type com.google.android.apps.fireball.ui.sticker.StickerMarketActivityPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4481 }
4482
4483 public static StickerMarketFragment q(ek ekVar) {
4484 if (ekVar instanceof StickerMarketFragment) {
4485 return (StickerMarketFragment) ekVar;
4486 }
4487 String valueOf = String.valueOf(ekVar.getClass());
4488 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 227).append("Attempt to inject a Fragment wrapper of type com.google.android.apps.fireball.ui.sticker.StickerMarketFragmentPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4489 }
4490
4491 public static StickerSetFullListItemView A(View view) {
4492 if (view instanceof StickerSetFullListItemView) {
4493 return (StickerSetFullListItemView) view;
4494 }
4495 String valueOf = String.valueOf(view.getClass());
4496 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 228).append("Attempt to inject a View wrapper of type com.google.android.apps.fireball.ui.sticker.StickerSetFullListItemViewPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4497 }
4498
4499 public static StickerSetListViewPager B(View view) {
4500 if (view instanceof StickerSetListViewPager) {
4501 return (StickerSetListViewPager) view;
4502 }
4503 String valueOf = String.valueOf(view.getClass());
4504 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 225).append("Attempt to inject a View wrapper of type com.google.android.apps.fireball.ui.sticker.StickerSetListViewPagerPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4505 }
4506
4507 public static StickerSetMyListItemView C(View view) {
4508 if (view instanceof StickerSetMyListItemView) {
4509 return (StickerSetMyListItemView) view;
4510 }
4511 String valueOf = String.valueOf(view.getClass());
4512 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 226).append("Attempt to inject a View wrapper of type com.google.android.apps.fireball.ui.sticker.StickerSetMyListItemViewPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4513 }
4514
4515 public static StickerSetOverviewActivity y(Activity activity) {
4516 if (activity instanceof StickerSetOverviewActivity) {
4517 return (StickerSetOverviewActivity) activity;
4518 }
4519 String valueOf = String.valueOf(activity.getClass());
4520 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 232).append("Attempt to inject a Activity wrapper of type com.google.android.apps.fireball.ui.sticker.StickerSetOverviewActivityPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4521 }
4522
4523 public static SuggestedActionItemView D(View view) {
4524 if (view instanceof SuggestedActionItemView) {
4525 return (SuggestedActionItemView) view;
4526 }
4527 String valueOf = String.valueOf(view.getClass());
4528 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 234).append("Attempt to inject a View wrapper of type com.google.android.apps.fireball.ui.suggestedactions.SuggestedActionItemViewPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4529 }
4530
4531 public static void a(isb isb, dvy dvy) {
4532 a((ej) isb, dwb.class, new dwe(dvy));
4533 }
4534
4535 public static dvx r(ek ekVar) {
4536 if (ekVar instanceof dvx) {
4537 return (dvx) ekVar;
4538 }
4539 String valueOf = String.valueOf(ekVar.getClass());
4540 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 225).append("Attempt to inject a Fragment wrapper of type com.google.android.apps.fireball.ui.welcome.CountryPickerDialogPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4541 }
4542
4543 public static EditPin E(View view) {
4544 if (view instanceof EditPin) {
4545 return (EditPin) view;
4546 }
4547 String valueOf = String.valueOf(view.getClass());
4548 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 209).append("Attempt to inject a View wrapper of type com.google.android.apps.fireball.ui.welcome.EditPinPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4549 }
4550
4551 public static dwo s(ek ekVar) {
4552 if (ekVar instanceof dwo) {
4553 return (dwo) ekVar;
4554 }
4555 String valueOf = String.valueOf(ekVar.getClass());
4556 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 229).append("Attempt to inject a Fragment wrapper of type com.google.android.apps.fireball.ui.welcome.LinkGaiaAccountFragmentPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4557 }
4558
4559 public static void a(isc isc, dxu dxu) {
4560 a((ek) isc, dwb.class, new dyf(dxu));
4561 }
4562
4563 public static dxt t(ek ekVar) {
4564 if (ekVar instanceof dxt) {
4565 return (dxt) ekVar;
4566 }
4567 String valueOf = String.valueOf(ekVar.getClass());
4568 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 226).append("Attempt to inject a Fragment wrapper of type com.google.android.apps.fireball.ui.welcome.RegistrationFragmentPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4569 }
4570
4571 public static dyj u(ek ekVar) {
4572 if (ekVar instanceof dyj) {
4573 return (dyj) ekVar;
4574 }
4575 String valueOf = String.valueOf(ekVar.getClass());
4576 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 224).append("Attempt to inject a Fragment wrapper of type com.google.android.apps.fireball.ui.welcome.SelfieTimeFragmentPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4577 }
4578
4579 public static void a(isc isc, dzd dzd) {
4580 a((ek) isc, dwk.class, new dzm(dzd));
4581 }
4582
4583 public static dzc v(ek ekVar) {
4584 if (ekVar instanceof dzc) {
4585 return (dzc) ekVar;
4586 }
4587 String valueOf = String.valueOf(ekVar.getClass());
4588 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 226).append("Attempt to inject a Fragment wrapper of type com.google.android.apps.fireball.ui.welcome.VerificationFragmentPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4589 }
4590
4591 public static void a(cnf cnf, dzq dzq) {
4592 a((Activity) cnf, dxc.class, new dzr(dzq));
4593 a((Activity) cnf, dxd.class, new dzs(dzq));
4594 }
4595
4596 public static WelcomeActivity z(Activity activity) {
4597 if (activity instanceof WelcomeActivity) {
4598 return (WelcomeActivity) activity;
4599 }
4600 String valueOf = String.valueOf(activity.getClass());
4601 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 221).append("Attempt to inject a Activity wrapper of type com.google.android.apps.fireball.ui.welcome.WelcomeActivityPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4602 }
4603
4604 public static dzx w(ek ekVar) {
4605 if (ekVar instanceof dzx) {
4606 return (dzx) ekVar;
4607 }
4608 String valueOf = String.valueOf(ekVar.getClass());
4609 throw new IllegalStateException(new StringBuilder(String.valueOf(valueOf).length() + 226).append("Attempt to inject a Fragment wrapper of type com.google.android.apps.fireball.ui.welcome.YourNameHereFragmentPeer, but the wrapper available is of type: ").append(valueOf).append(". Does your peer's @Inject constructor reference the wrong wrapper class?").toString());
4610 }
4611
4612 public static Integer d(int i, int i2) {
4613 if (2 == i) {
4614 if (1 == i2) {
4615 return Integer.valueOf(bdn.default_group_32);
4616 }
4617 return Integer.valueOf(bdn.default_group_40);
4618 } else if (1 == i) {
4619 if (1 == i2) {
4620 return Integer.valueOf(bdn.default_avatar_32);
4621 }
4622 if (2 == i2) {
4623 return Integer.valueOf(bdn.default_avatar_36);
4624 }
4625 return Integer.valueOf(bdn.default_avatar_40);
4626 } else if (3 != i) {
4627 throw new IllegalArgumentException("Invalid avatar type: " + i);
4628 } else if (1 == i2) {
4629 return Integer.valueOf(bdn.ic_default_bot_small);
4630 } else {
4631 return Integer.valueOf(bdn.ic_default_bot_large);
4632 }
4633 }
4634
4635 public static int C(String str) {
4636 return ebq.a().a(str);
4637 }
4638
4639 public static Context E() {
4640 return bdc.a.a();
4641 }
4642
4643 public static CharSequence b(long j) {
4644 return a(j, System.currentTimeMillis(), true, Locale.getDefault(), 32768, false);
4645 }
4646
4647 public static CharSequence c(long j) {
4648 return a(j, System.currentTimeMillis(), true, Locale.getDefault(), 0, true);
4649 }
4650
4651 public static CharSequence d(long j) {
4652 int i;
4653 Context E = E();
4654 if (DateFormat.is24HourFormat(E)) {
4655 i = 128;
4656 } else {
4657 i = 64;
4658 }
4659 return a(j, System.currentTimeMillis(), E, i);
4660 }
4661
4662 public static CharSequence e(long j) {
4663 int i;
4664 Context E = E();
4665 if (DateFormat.is24HourFormat(E)) {
4666 i = 128;
4667 } else {
4668 i = 64;
4669 }
4670 return c(j, E.getResources().getConfiguration().locale, false, i);
4671 }
4672
4673 public static CharSequence a(long j, long j2, Context context, int i) {
4674 Resources resources = context.getResources();
4675 Locale locale = resources.getConfiguration().locale;
4676 Calendar instance = Calendar.getInstance(Locale.getDefault());
4677 instance.setTimeInMillis(j);
4678 Calendar instance2 = Calendar.getInstance(Locale.getDefault());
4679 instance2.setTimeInMillis(j2);
4680 int i2 = instance.get(1);
4681 int i3 = instance2.get(1);
4682 int i4 = instance.get(2);
4683 int i5 = instance2.get(2);
4684 int i6 = instance.get(5);
4685 int i7 = instance2.get(5);
4686 if (i2 != i3) {
4687 return c(j, locale, false, i);
4688 }
4689 if (i4 == i5) {
4690 if (i6 == i7) {
4691 return resources.getString(etr.todayWithTime, new Object[]{DateFormat.getTimeFormat(context).format(new Date(j))});
4692 } else if (i6 + 1 == i7) {
4693 return resources.getString(etr.yesterdayWithTime, new Object[]{DateFormat.getTimeFormat(context).format(new Date(j))});
4694 }
4695 }
4696 return b(j, locale, false, i);
4697 }
4698
4699 public static CharSequence a(long j, long j2, boolean z, Locale locale, int i, boolean z2) {
4700 long j3 = j2 - j;
4701 if (j3 < 60000) {
4702 return a(true);
4703 }
4704 if (j3 < 3600000) {
4705 return a(j3, z2);
4706 }
4707 if (a(j, j2)) {
4708 return a(j, i);
4709 }
4710 if (j3 < 604800000) {
4711 return a(j, locale, true, i);
4712 }
4713 if (j3 < 31449600000L) {
4714 return b(j, locale, true, i);
4715 }
4716 return c(j, locale, true, i);
4717 }
4718
4719 public static CharSequence a(boolean z) {
4720 return E().getResources().getText(z ? etr.posted_just_now : etr.posted_now);
4721 }
4722
4723 public static CharSequence a(long j, boolean z) {
4724 int i;
4725 long j2 = j / 60000;
4726 Resources resources = E().getResources();
4727 if (z) {
4728 i = cg;
4729 } else {
4730 i = cq;
4731 }
4732 return String.format(resources.getQuantityString(i, (int) j2), new Object[]{Long.valueOf(j2)});
4733 }
4734
4735 public static CharSequence a(long j, int i) {
4736 return DateUtils.formatDateTime(E(), j, i | 1);
4737 }
4738
4739 public static CharSequence a(long j, int i, String str, String str2) {
4740 SimpleDateFormat simpleDateFormat;
4741 if ((i & 128) == 128) {
4742 simpleDateFormat = new SimpleDateFormat(str);
4743 } else {
4744 simpleDateFormat = new SimpleDateFormat(str2);
4745 }
4746 return simpleDateFormat.format(new Date(j));
4747 }
4748
4749 public static CharSequence a(long j, Locale locale, boolean z, int i) {
4750 Context E = E();
4751 if (z) {
4752 return DateUtils.formatDateTime(E, j, i | 2);
4753 }
4754 if (locale.equals(Locale.US)) {
4755 return a(j, i, "EEE HH:mm", "EEE h:mmaa");
4756 }
4757 return DateUtils.formatDateTime(E, j, 32771 | i);
4758 }
4759
4760 public static CharSequence b(long j, Locale locale, boolean z, int i) {
4761 Context E = E();
4762 if (z) {
4763 return DateUtils.formatDateTime(E, j, 65560 | i);
4764 }
4765 if (locale.equals(Locale.US)) {
4766 return a(j, i, "MMM d \u2022 HH:mm", "MMM d \u2022 h:mmaa");
4767 }
4768 return DateUtils.formatDateTime(E, j, 65561 | i);
4769 }
4770
4771 public static CharSequence c(long j, Locale locale, boolean z, int i) {
4772 Context E = E();
4773 if (z) {
4774 if (locale.equals(Locale.US)) {
4775 return a(j, i, "M/d/yy", "M/d/yy");
4776 }
4777 return DateUtils.formatDateTime(E, j, 131092);
4778 } else if (locale.equals(Locale.US)) {
4779 return a(j, i, "M/d/yy \u2022 HH:mm", "M/d/yy \u2022 h:mmaa");
4780 } else {
4781 return DateUtils.formatDateTime(E, j, 131093 | i);
4782 }
4783 }
4784
4785 public static boolean a(long j, long j2) {
4786 Calendar instance = Calendar.getInstance(Locale.getDefault());
4787 instance.setTimeInMillis(j);
4788 Calendar instance2 = Calendar.getInstance(Locale.getDefault());
4789 instance2.setTimeInMillis(j2);
4790 if (instance.get(1) == instance2.get(1) && instance.get(2) == instance2.get(2) && instance.get(5) == instance2.get(5)) {
4791 return true;
4792 }
4793 return false;
4794 }
4795
4796 public static boolean a(Parcel parcel) {
4797 return parcel.readByte() != null;
4798 }
4799
4800 public static void a(Parcel parcel, boolean z) {
4801 parcel.writeByte(z ? (byte) 1 : (byte) 0);
4802 }
4803
4804 public static bkd s(Context context) {
4805 Uri G;
4806 if (bgz.e) {
4807 G = G();
4808 } else {
4809 G = F();
4810 }
4811 return new bkd(context, G, ecd.a, null, null, null);
4812 }
4813
4814 public static bkd t(Context context) {
4815 return new bkv(context, ecc.a, null, null, null);
4816 }
4817
4818 public static void a(Context context, Rect rect, long j, String str) {
4819 boolean z = true;
4820 jcz.a(j > 0);
4821 if (TextUtils.isEmpty(str)) {
4822 z = false;
4823 }
4824 jcz.a(z);
4825 QuickContact.showQuickContact(context, rect, Contacts.getLookupUri(j, str), 3, null);
4826 }
4827
4828 public static Uri F() {
4829 return Phone.CONTENT_URI.buildUpon().appendQueryParameter("directory", "0").build();
4830 }
4831
4832 @TargetApi(21)
4833 public static Uri G() {
4834 return Phone.CONTENT_URI.buildUpon().appendQueryParameter("directory", "0").appendQueryParameter("android.provider.extra.ADDRESS_BOOK_INDEX", "true").build();
4835 }
4836
4837 public static eap a(Context context, bka bka) {
4838 if (bgz.d) {
4839 return new eap();
4840 }
4841 return new eaq(context, bka.a(1, null));
4842 }
4843
4844 public static String D(String str) {
4845 Matcher matcher = Patterns.WEB_URL.matcher(str);
4846 String str2 = null;
4847 while (matcher.find()) {
4848 if (str2 != null) {
4849 return null;
4850 }
4851 String group = matcher.group();
4852 if (!group.startsWith("http")) {
4853 String str3 = "http://";
4854 group = String.valueOf(group);
4855 group = group.length() != 0 ? str3.concat(group) : new String(str3);
4856 }
4857 if (!e(Uri.parse(group))) {
4858 group = str2;
4859 }
4860 str2 = group;
4861 }
4862 return str2;
4863 }
4864
4865 public static boolean e(Uri uri) {
4866 String host = uri.getHost();
4867 return "www.youtube.com".equalsIgnoreCase(host) || "youtube.com".equalsIgnoreCase(host) || "m.youtube.com".equalsIgnoreCase(host) || "youtube.googleapis.com".equalsIgnoreCase(host) || "youtu.be".equalsIgnoreCase(host);
4868 }
4869
4870 public static String E(String str) {
4871 String str2;
4872 if (str.startsWith("http")) {
4873 str2 = str;
4874 } else {
4875 String str3 = "http://";
4876 str2 = String.valueOf(str);
4877 str2 = str2.length() != 0 ? str3.concat(str2) : new String(str3);
4878 }
4879 Object f = f(Uri.parse(str2));
4880 if (TextUtils.isEmpty(f)) {
4881 return null;
4882 }
4883 str3 = String.valueOf("https://img.youtube.com/vi/");
4884 String valueOf = String.valueOf("/hqdefault.jpg");
4885 return new StringBuilder(((String.valueOf(str3).length() + 0) + String.valueOf(f).length()) + String.valueOf(valueOf).length()).append(str3).append(f).append(valueOf).toString();
4886 }
4887
4888 public static String f(Uri uri) {
4889 if (!e(uri)) {
4890 return null;
4891 }
4892 String path = uri.getPath();
4893 if (TextUtils.isEmpty(path)) {
4894 return null;
4895 }
4896 if (path.startsWith("/watch")) {
4897 return uri.getQueryParameter("v");
4898 }
4899 if (path.startsWith("/embed/")) {
4900 return f("/embed/", path);
4901 }
4902 if (path.startsWith("/v/")) {
4903 return f("/v/", path);
4904 }
4905 if (path.startsWith("/apiplayer")) {
4906 return uri.getQueryParameter("video_id");
4907 }
4908 if ("youtu.be".equalsIgnoreCase(uri.getHost())) {
4909 return f("/", path);
4910 }
4911 return null;
4912 }
4913
4914 public static String f(String str, String str2) {
4915 return str2.substring(str.length());
4916 }
4917
4918 public static baw H() {
4919 return (baw) ((baw) ((baw) baw.b(axl.d).a(true)).a(0.8f)).a(anw.LOW);
4920 }
4921
4922 public static baw u(Context context) {
4923 return (baw) ((baw) baw.b(context, new ecu(context, 20)).a(true)).a(aqx.a);
4924 }
4925
4926 public static ayq I() {
4927 return new ayq().a(new bbo(100));
4928 }
4929
4930 public static baw v(Context context) {
4931 return baw.b(context, ecv.a(context));
4932 }
4933
4934 public static baw w(Context context) {
4935 return (baw) baw.a(context).a(axl.d);
4936 }
4937
4938 public static baw J() {
4939 return (baw) ((baw) baw.b(true).a(aqx.a)).b();
4940 }
4941
4942 public static aoc x(Context context) {
4943 return ant.b(context);
4944 }
4945
4946 public static aoc a(aoc aoc) {
4947 return aoc;
4948 }
4949
4950 public static edj a(ktg<aoc> ktg_aoc, Executor executor, Executor executor2) {
4951 return new edk(ktg_aoc, executor, executor2);
4952 }
4953
4954 public static boolean a(bxh bxh) {
4955 if (!bxh.o()) {
4956 return false;
4957 }
4958 int b = bdc.a.e().b(cgs.I);
4959 int i = bxh.s;
4960 int i2 = bxh.t;
4961 if (i <= 0 || i2 <= 0) {
4962 ebi ebi = new ebi();
4963 try {
4964 ebi.a(bxh.q);
4965 i = ebi.a(18, i);
4966 i2 = ebi.a(18, i2);
4967 } catch (IOException e) {
4968 bhf.b("FireballDataModel", "Failed to extract dimensions from video %s", bxh.q);
4969 }
4970 }
4971 if (Math.max(i, i2) > b) {
4972 return true;
4973 }
4974 return ((long) bxh.u) > TimeUnit.SECONDS.toMillis((long) bdc.a.e().b(cgs.J));
4975 }
4976
4977 public static eeb K() {
4978 eeb eeb = new eeb();
4979 TimeUnit.SECONDS.toMillis((long) bdc.a.e().b(cgs.J));
4980 eeb.b = (long) bdc.a.e().b(cgs.I);
4981 eeb.d = bdc.a.e().b(cgs.K);
4982 eeb.c = bdc.a.e().b(cgs.L);
4983 return eeb;
4984 }
4985
4986 public static String h(int i) {
4987 int i2 = i & 268435455;
4988 Object obj = (268435456 & i) != 0 ? 1 : null;
4989 String valueOf = String.valueOf(i(i2));
4990 String valueOf2 = String.valueOf(obj != null ? "(external)" : "");
4991 return valueOf2.length() != 0 ? valueOf.concat(valueOf2) : new String(valueOf);
4992 }
4993
4994 public static String i(int i) {
4995 switch (i) {
4996 case yu.RecyclerView_android_descendantFocusability /*1*/:
4997 return "SUGGESTIONS";
4998 case yu.RecyclerView_layoutManager /*2*/:
4999 return "HISTORY";
5000 case yu.RecyclerView_spanCount /*3*/:
5001 return "FETCH_SEARCH_URI";
5002 case yu.RecyclerView_reverseLayout /*4*/:
5003 return "GAIA_AUTH";
5004 case yu.RecyclerView_stackFromEnd /*5*/:
5005 return "LOGGING";
5006 case yq.Toolbar_contentInsetEnd /*6*/:
5007 return "LARGE_PREVIEW";
5008 case yq.Toolbar_contentInsetLeft /*7*/:
5009 return "IMAGE";
5010 case yq.Toolbar_contentInsetRight /*8*/:
5011 return "SIDEKICK";
5012 case yq.Toolbar_contentInsetStartWithNavigation /*9*/:
5013 return "CONFIG";
5014 case yq.Toolbar_contentInsetEndWithActions /*10*/:
5015 return "PREFETCH";
5016 case yq.Toolbar_popupTheme /*11*/:
5017 return "SEARCH";
5018 case yq.Toolbar_titleTextAppearance /*12*/:
5019 return "ACTION_DISCOVERY";
5020 case yq.Toolbar_subtitleTextAppearance /*13*/:
5021 return "EXPCONFIG";
5022 case yq.Toolbar_titleMargin /*14*/:
5023 return "VOICE_SEARCH";
5024 case yq.Toolbar_titleMarginStart /*15*/:
5025 return "IN_APP_WEB_PAGE";
5026 case yq.Toolbar_titleMarginEnd /*16*/:
5027 return "DIAL_DISCOVERY";
5028 case yq.Toolbar_titleMarginTop /*17*/:
5029 return "HOTWORD_MODELS";
5030 case yq.Toolbar_titleMarginBottom /*18*/:
5031 return "NETWORK_IMAGE_LOADER_CONTENT_PROVIDER";
5032 case yq.Toolbar_titleMargins /*19*/:
5033 return "DOODLE_REFRESH";
5034 case yq.Toolbar_maxButtonHeight /*20*/:
5035 return "VELOUR";
5036 case yq.Toolbar_buttonGravity /*21*/:
5037 return "ATTEMPTED_SEARCH_HISTORY";
5038 case yq.Toolbar_collapseIcon /*22*/:
5039 return "VELOUR_ON_DEMAND";
5040 case yq.Toolbar_navigationContentDescription /*25*/:
5041 return "NOTIFICATION_ASSIST";
5042 case yq.Toolbar_titleTextColor /*27*/:
5043 return "HETERODYNE_REQUEST";
5044 case yq.Toolbar_subtitleTextColor /*28*/:
5045 return "MULTI_DEVICE_HOTWORD";
5046 case yq.AppCompatTheme_actionModeSplitBackground /*30*/:
5047 return "CAST_DEVICE_CONNECT";
5048 default:
5049 return String.format(Locale.US, "UNKNOWN[%d]", new Object[]{Integer.valueOf(i)});
5050 }
5051 }
5052
5053 public static void a(egw egw, String str) {
5054 if (egw.a != 200) {
5055 String a = egw.a("X-Speech-S3-Res-Code", "");
5056 Integer F = TextUtils.isEmpty(a) ? null : F(a);
5057 if (F != null) {
5058 f("S3NetworkUtils", "[%s] response code: %d, internal error header: %s", str, Integer.valueOf(egw.a), a);
5059 throw new eho(F.intValue());
5060 } else {
5061 f("S3NetworkUtils", "[%s] response code: %s", str, Integer.valueOf(egw.a));
5062 throw new ehn(egw.a);
5063 }
5064 }
5065 }
5066
5067 public static Integer F(String str) {
5068 try {
5069 return Integer.valueOf(Integer.parseInt(str));
5070 } catch (NumberFormatException e) {
5071 f("S3NetworkUtils", "Failed to parse error header: %s", str);
5072 return null;
5073 }
5074 }
5075
5076 public static egt a(ksf ksf, String str) {
5077 jcz.a((Object) ksf);
5078 jcz.a((Object) str);
5079 egu a = egt.a();
5080 String valueOf = String.valueOf(ksf.b);
5081 String valueOf2 = String.valueOf(str);
5082 if (valueOf2.length() != 0) {
5083 valueOf2 = valueOf.concat(valueOf2);
5084 } else {
5085 valueOf2 = new String(valueOf);
5086 }
5087 a = a.a(valueOf2);
5088 a.h = false;
5089 a.j = 14;
5090 for (int i = 0; i < ksf.c.length; i++) {
5091 a.a(ksf.c[i], ksf.d[i]);
5092 }
5093 if (!ksf.g) {
5094 a.a("X-S3-Send-Compressible", "1");
5095 }
5096 return a.a();
5097 }
5098
5099 public static kot c(byte[] bArr, int i) {
5100 kot M = M();
5101 M.a(kom.a, (Object) d(bArr, i));
5102 return M;
5103 }
5104
5105 public static kom d(byte[] bArr, int i) {
5106 kom kom = new kom();
5107 byte[] copyOfRange = Arrays.copyOfRange(bArr, 0, i);
5108 if (copyOfRange == null) {
5109 throw new NullPointerException();
5110 }
5111 kom.c = copyOfRange;
5112 kom.b |= 1;
5113 return kom;
5114 }
5115
5116 public static kot L() {
5117 kot M = M();
5118 M.c = true;
5119 M.a |= 8;
5120 return M;
5121 }
5122
5123 public static kot M() {
5124 boolean isRunningInTestHarness;
5125 if (VERSION.SDK_INT >= 11) {
5126 isRunningInTestHarness = ActivityManager.isRunningInTestHarness();
5127 } else {
5128 isRunningInTestHarness = false;
5129 }
5130 if ((ActivityManager.isUserAMonkey() || r0) && !Log.isLoggable("forceEmulatorServerLogs", 2)) {
5131 return new kot().a(false);
5132 }
5133 return new kot().a(true);
5134 }
5135
5136 public static int a(IOException iOException, int i) {
5137 if (iOException == null) {
5138 return i;
5139 }
5140 String message = iOException.getMessage();
5141 if (message == null) {
5142 return i;
5143 }
5144 if (iOException instanceof ProtocolException) {
5145 if (message.startsWith("Received HTTP_PROXY_AUTH")) {
5146 return 327681;
5147 }
5148 if (message.startsWith("expected") && message.contains("bytes but received")) {
5149 return 327702;
5150 }
5151 if (message.startsWith("unexpected end of stream")) {
5152 return 327682;
5153 }
5154 if (message.startsWith("version != 3")) {
5155 return 327683;
5156 }
5157 if (message.startsWith("content-length promised")) {
5158 return 327684;
5159 }
5160 if (message.startsWith("exceeded content-length limit")) {
5161 return 327685;
5162 }
5163 if (message.startsWith("Too many redirects:")) {
5164 return 327711;
5165 }
5166 if (message.startsWith("Expected a hex chunk size but was")) {
5167 return 327712;
5168 }
5169 if (message.startsWith("Expected ':status' header not present")) {
5170 return 327713;
5171 }
5172 if (message.startsWith("Expected ':version' header not present")) {
5173 return 327714;
5174 }
5175 if (message.startsWith("Unexpected status line")) {
5176 return 327715;
5177 }
5178 if (message.startsWith("This protocol does not support input")) {
5179 return 327716;
5180 }
5181 if (message.startsWith("No response body exists")) {
5182 return 327717;
5183 }
5184 if (message.startsWith("method does not support a request body") || message.endsWith("does not support writing")) {
5185 return 327718;
5186 }
5187 if (message.startsWith("cannot write request body after response has been read")) {
5188 return 327719;
5189 }
5190 if (message.startsWith("Expected one of ")) {
5191 return 327720;
5192 }
5193 return i;
5194 } else if (iOException instanceof SSLPeerUnverifiedException) {
5195 return 327721;
5196 } else {
5197 if (iOException instanceof UnknownHostException) {
5198 return 327722;
5199 }
5200 if (iOException instanceof SocketException) {
5201 if (message.startsWith("No route to ")) {
5202 return 327723;
5203 }
5204 return i;
5205 } else if (message.startsWith("Hostname") && message.contains(" not verified")) {
5206 return 327686;
5207 } else {
5208 if (message.startsWith("unexpected journal header")) {
5209 return 327688;
5210 }
5211 if (message.startsWith("unexpected journal line")) {
5212 return 327705;
5213 }
5214 if (message.startsWith("Cannot buffer entire body for content length")) {
5215 return 327689;
5216 }
5217 if (message.startsWith("Content-Length and stream length disagree")) {
5218 return 327690;
5219 }
5220 if (message.startsWith("not a readable directory")) {
5221 return 327691;
5222 }
5223 if (message.startsWith("failed to delete file")) {
5224 return 327707;
5225 }
5226 if (message.startsWith("expected \"\" but was")) {
5227 return 327692;
5228 }
5229 if (message.startsWith("shutdown")) {
5230 return 327694;
5231 }
5232 if (message.startsWith("stream closed")) {
5233 return 327695;
5234 }
5235 if (message.startsWith("stream finished")) {
5236 return 327696;
5237 }
5238 if (message.startsWith("stream was reset")) {
5239 return 327697;
5240 }
5241 if (message.startsWith("TYPE_GOAWAY")) {
5242 return 327698;
5243 }
5244 if (message.startsWith("numberOfPairs < 0")) {
5245 return 327699;
5246 }
5247 if (message.startsWith("numberOfPairs > 1024")) {
5248 return 327700;
5249 }
5250 if (message.startsWith("name.size == 0")) {
5251 return 327701;
5252 }
5253 if (message.startsWith("TLS tunnel")) {
5254 return 327703;
5255 }
5256 if (message.startsWith("Failed to authenticate with proxy")) {
5257 return 327704;
5258 }
5259 if (message.startsWith("unexpected end of stream")) {
5260 return 327682;
5261 }
5262 if (message.startsWith("Exception in connect")) {
5263 return 327708;
5264 }
5265 if (message.contains(" != ")) {
5266 return 327709;
5267 }
5268 if (message.equals("Canceled")) {
5269 return 327724;
5270 }
5271 if (message.startsWith("Unexpected protocol:")) {
5272 return 327706;
5273 }
5274 if (message.startsWith("Cannot retry streamed HTTP body")) {
5275 return 327725;
5276 }
5277 return i;
5278 }
5279 }
5280 }
5281
5282 public static int a(int i, String str) {
5283 if (str != null && i == 504 && str.equals("Unsatisfiable Request (only-if-cached)")) {
5284 return 327726;
5285 }
5286 return 0;
5287 }
5288
5289 public static int a(IOException iOException) {
5290 String message = iOException.getMessage();
5291 if (message != null && message.startsWith("Unexpected response code for CONNECT: ")) {
5292 return Integer.parseInt(message.substring(38));
5293 }
5294 return 0;
5295 }
5296
5297 public static int a(ByteBuffer byteBuffer, ByteBuffer byteBuffer2) {
5298 int limit = byteBuffer.limit();
5299 try {
5300 int min = Math.min(byteBuffer2.remaining(), byteBuffer.remaining());
5301 byteBuffer.limit(byteBuffer.position() + min);
5302 byteBuffer2.put(byteBuffer);
5303 return min;
5304 } finally {
5305 byteBuffer.limit(limit);
5306 }
5307 }
5308
5309 public static String f(long j) {
5310 return Base64.encodeToString(g(j), 11);
5311 }
5312
5313 public static <T> T a(Executor executor, Class<T> cls, T t) {
5314 jcz.a((Object) executor);
5315 return a(new ehr(executor, t, cls), (Class) cls, (Object) t);
5316 }
5317
5318 @Deprecated
5319 public static <T> T a(Executor executor, T t) {
5320 boolean z = true;
5321 jcz.a((Object) t);
5322 Class[] interfaces = t.getClass().getInterfaces();
5323 Class cls = interfaces[0];
5324 if (interfaces.length != 1) {
5325 z = false;
5326 }
5327 jcz.a(z, (Object) "Delegate must implement a single interface");
5328 return a(executor, cls, (Object) t);
5329 }
5330
5331 public static <T> T a(InvocationHandler invocationHandler, Class<T> cls, T t) {
5332 jcz.a((Object) invocationHandler);
5333 jcz.a((Object) cls);
5334 jcz.a((Object) t);
5335 return Proxy.newProxyInstance(cls.getClassLoader(), new Class[]{cls}, invocationHandler);
5336 }
5337
5338 public static Throwable a(Throwable th, Throwable th2) {
5339 if (th2 != null) {
5340 Throwable a = a(th);
5341 if (a != null) {
5342 Object stackTrace = a.getStackTrace();
5343 Object stackTrace2 = th2.getStackTrace();
5344 Object obj = new StackTraceElement[(stackTrace.length + stackTrace2.length)];
5345 System.arraycopy(stackTrace, 0, obj, 0, stackTrace.length);
5346 System.arraycopy(stackTrace2, 0, obj, stackTrace.length, stackTrace2.length);
5347 a.setStackTrace(obj);
5348 }
5349 }
5350 return th;
5351 }
5352
5353 public static List<String> a(Object[] objArr) {
5354 List<String> arrayList = new ArrayList();
5355 if (objArr != null) {
5356 for (Object obj : objArr) {
5357 if (obj == null) {
5358 arrayList.add("null");
5359 } else {
5360 arrayList.add(obj.getClass().toString());
5361 }
5362 }
5363 }
5364 return arrayList;
5365 }
5366
5367 public static Throwable a(Throwable th) {
5368 if (th != null) {
5369 while (th.getCause() != null) {
5370 th = th.getCause();
5371 }
5372 }
5373 return th;
5374 }
5375
5376 public static ehw O() {
5377 return new ehv();
5378 }
5379
5380 public static void t(Object obj) {
5381 jcz.b(Thread.holdsLock(obj));
5382 }
5383
5384 public static void a(String str, String str2, Object... objArr) {
5385 a(2, str, null, str2, false, objArr, false);
5386 }
5387
5388 public static void b(String str, String str2, Object... objArr) {
5389 a(3, str, null, str2, false, objArr, false);
5390 }
5391
5392 public static void c(String str, String str2, Object... objArr) {
5393 a(3, str, null, str2, false, objArr, true);
5394 }
5395
5396 public static void d(String str, String str2, Object... objArr) {
5397 a(4, str, null, str2, false, objArr, false);
5398 }
5399
5400 public static void e(String str, String str2, Object... objArr) {
5401 a(4, str, null, str2, false, objArr, true);
5402 }
5403
5404 public static void f(String str, String str2, Object... objArr) {
5405 a(5, str, null, str2, false, objArr, false);
5406 }
5407
5408 public static void a(String str, Throwable th, String str2, Object... objArr) {
5409 a(5, str, th, str2, false, objArr, false);
5410 }
5411
5412 public static void g(String str, String str2, Object... objArr) {
5413 a(6, str, null, str2, false, objArr, false);
5414 }
5415
5416 public static void b(String str, Throwable th, String str2, Object... objArr) {
5417 a(6, str, th, str2, false, objArr, false);
5418 }
5419
5420 public static void h(String str, String str2, Object... objArr) {
5421 a(5, str, null, str2, false, objArr, false);
5422 throw new RuntimeException(a(str2, objArr));
5423 }
5424
5425 public static void c(String str, Throwable th, String str2, Object... objArr) {
5426 a(5, str, th, str2, false, objArr, false);
5427 throw new RuntimeException(a(str2, objArr), th);
5428 }
5429
5430 public static boolean G(String str) {
5431 return b(str, 2);
5432 }
5433
5434 public static String H(String str) {
5435 if (str.length() <= 23) {
5436 return str;
5437 }
5438 String substring = str.substring(0, 23);
5439 a(5, substring, null, "Tag [%s] is too long; truncated to [%s]", false, new Object[]{str, substring}, false);
5440 return substring;
5441 }
5442
5443 public static boolean b(String str, int i) {
5444 String H = H(str);
5445 if (VERSION.SDK_INT == 23) {
5446 return !(i == 3 || i == 2) || Log.isLoggable(H, i);
5447 } else {
5448 return Log.isLoggable(H, i);
5449 }
5450 }
5451
5452 public static void a(int i, String str, Throwable th, String str2, boolean z, Object[] objArr, boolean z2) {
5453 String H = H(str);
5454 if (b(H, i)) {
5455 String a = a(str2, objArr);
5456 if (th == null && z2) {
5457 String str3;
5458 if (str2 == null) {
5459 str3 = "DEBUG: Not an Exception";
5460 } else {
5461 str3 = a;
5462 }
5463 th = new ehx(new StringBuilder((String.valueOf(H).length() + 2) + String.valueOf(str3).length()).append(H).append(": ").append(str3).toString());
5464 }
5465 switch (i) {
5466 case yu.RecyclerView_layoutManager /*2*/:
5467 if (th != null) {
5468 }
5469 case yu.RecyclerView_spanCount /*3*/:
5470 if (th != null) {
5471 }
5472 case yu.RecyclerView_reverseLayout /*4*/:
5473 if (th != null) {
5474 }
5475 case yu.RecyclerView_stackFromEnd /*5*/:
5476 if (th != null) {
5477 Log.w(H, a, th);
5478 } else {
5479 Log.w(H, a);
5480 }
5481 case yq.Toolbar_contentInsetEnd /*6*/:
5482 if (th != null) {
5483 Log.e(H, a, th);
5484 } else {
5485 Log.e(H, a);
5486 }
5487 case yq.Toolbar_contentInsetLeft /*7*/:
5488 if (th != null) {
5489 Log.wtf(H, a, th);
5490 } else {
5491 Log.wtf(H, a);
5492 }
5493 default:
5494 }
5495 }
5496 }
5497
5498 public static String a(String str, Object[] objArr) {
5499 if (str == null) {
5500 return "null";
5501 }
5502 if (objArr == null || objArr.length == 0) {
5503 return str;
5504 }
5505 int i = 0;
5506 while (i < objArr.length) {
5507 if (objArr[i] != null && objArr[i].getClass().isArray()) {
5508 String deepToString = Arrays.deepToString(new Object[]{objArr[i]});
5509 objArr[i] = deepToString.substring(1, deepToString.length() - 1);
5510 }
5511 i++;
5512 }
5513 try {
5514 return String.format(Locale.US, str, objArr);
5515 } catch (IllegalFormatException e) {
5516 String valueOf = String.valueOf(str);
5517 String valueOf2 = String.valueOf(Arrays.toString(objArr));
5518 return valueOf2.length() != 0 ? valueOf.concat(valueOf2) : new String(valueOf);
5519 }
5520 }
5521
5522 public static String a(Class<?> cls, String str, String str2) {
5523 String simpleName;
5524 b("ConcurrentUtils", "#getTaskName", new Object[0]);
5525 if (str == null) {
5526 Class<?> a = a((Class) cls);
5527 simpleName = a.getSimpleName();
5528 if (str2 == null && cls != a) {
5529 str2 = cls.getSimpleName();
5530 if (str2.isEmpty()) {
5531 str2 = cls.getName();
5532 try {
5533 str2 = str2.substring(str2.lastIndexOf(36));
5534 } catch (IndexOutOfBoundsException e) {
5535 }
5536 }
5537 }
5538 } else {
5539 simpleName = str;
5540 }
5541 if (str2 != null) {
5542 simpleName = new StringBuilder((String.valueOf(simpleName).length() + 2) + String.valueOf(str2).length()).append(simpleName).append("[").append(str2).append("]").toString();
5543 }
5544 b("ConcurrentUtils", "task name: %s", simpleName);
5545 return simpleName;
5546 }
5547
5548 public static ijc b(Class<?> cls, String str, String str2) {
5549 return new ehz(cls, str, str2);
5550 }
5551
5552 public static Class<?> a(Class<?> cls) {
5553 while (true) {
5554 Class<?> enclosingClass = cls.getEnclosingClass();
5555 if (enclosingClass == null) {
5556 return cls;
5557 }
5558 cls = enclosingClass;
5559 }
5560 }
5561
5562 public static int j(int i) {
5563 if (i == 1 || i == 2) {
5564 return i;
5565 }
5566 throw new IllegalArgumentException(String.format("Task priority flag %d does not contain exactly one of task priorities %d, %d", new Object[]{Integer.valueOf(i), Integer.valueOf(2), Integer.valueOf(1)}));
5567 }
5568
5569 public static int k(int i) {
5570 if ((i & -29) == 0) {
5571 return i;
5572 }
5573 throw new IllegalArgumentException(String.format("Task resources permissions flag %d contains invalid value %d outside of allowed set of flags %d, %d, %d, %d", new Object[]{Integer.valueOf(i), Integer.valueOf(i & -29), Integer.valueOf(8), Integer.valueOf(4), Integer.valueOf(16), Integer.valueOf(0)}));
5574 }
5575
5576 public static <T> T a(Future<T> future) {
5577 return a((Future) future, null);
5578 }
5579
5580 public static <T> T a(Future<T> future, T t) {
5581 if (future.isDone()) {
5582 try {
5583 return b((Future) future);
5584 } catch (CancellationException e) {
5585 } catch (ExecutionException e2) {
5586 }
5587 }
5588 return null;
5589 }
5590
5591 public static <T> juj<T> a(Iterable<? extends juj<? extends T>> iterable) {
5592 jet a = jet.a((Iterable) iterable);
5593 switch (a.size()) {
5594 case yu.RecyclerView_android_orientation /*0*/:
5595 throw new IllegalArgumentException("Expected at least one future, got 0.");
5596 case yu.RecyclerView_android_descendantFocusability /*1*/:
5597 return (juj) a.get(0);
5598 default:
5599 juj<T> eib = new eib(a);
5600 AtomicReference E = E((Object) eib);
5601 Iterator a2 = a.a();
5602 while (a2.hasNext()) {
5603 juj juj = (juj) a2.next();
5604 juj.a(new eia(E, juj), aN());
5605 }
5606 return eib;
5607 }
5608 }
5609
5610 public static byte[] g(long j) {
5611 byte[] bArr = new byte[8];
5612 for (int i = 7; i >= 0; i--) {
5613 bArr[i] = (byte) ((int) (255 & j));
5614 j >>= 8;
5615 }
5616 return bArr;
5617 }
5618
5619 public static int P() {
5620 try {
5621 return Integer.parseInt(VERSION.SDK);
5622 } catch (NumberFormatException e) {
5623 eml.a("Invalid version number", VERSION.SDK);
5624 return 0;
5625 }
5626 }
5627
5628 public static boolean I(String str) {
5629 if (P() < 9) {
5630 return false;
5631 }
5632 File file = new File(str);
5633 file.setReadable(false, false);
5634 file.setWritable(false, false);
5635 file.setReadable(true, true);
5636 file.setWritable(true, true);
5637 return true;
5638 }
5639
5640 public static String l(int i) {
5641 return c("cd", i);
5642 }
5643
5644 public static String m(int i) {
5645 return c("cm", i);
5646 }
5647
5648 public static String c(String str, int i) {
5649 if (i > 0) {
5650 return str + i;
5651 }
5652 eml.a("index out of range for prefix", str);
5653 return "";
5654 }
5655
5656 public static String n(int i) {
5657 return c("&pr", i);
5658 }
5659
5660 public static String o(int i) {
5661 return c("pr", i);
5662 }
5663
5664 public static String p(int i) {
5665 return c("&promo", i);
5666 }
5667
5668 public static String q(int i) {
5669 return c("promo", i);
5670 }
5671
5672 public static String r(int i) {
5673 return c("pi", i);
5674 }
5675
5676 public static String s(int i) {
5677 return c("&il", i);
5678 }
5679
5680 public static String t(int i) {
5681 return c("il", i);
5682 }
5683
5684 public static String u(int i) {
5685 return c("cd", i);
5686 }
5687
5688 public static String v(int i) {
5689 return c("cm", i);
5690 }
5691
5692 public static Cursor a(Cursor cursor, String str) {
5693 Bundle bundle = new Bundle(cursor.getExtras());
5694 bundle.putString("com.google.android.gms.appdatasearch.CONTENT_INCARNATION_KEY", str);
5695 return new enp(cursor, bundle);
5696 }
5697
5698 public static boolean a(SQLiteDatabase sQLiteDatabase) {
5699 c(sQLiteDatabase);
5700 int b = b(sQLiteDatabase);
5701 if (b >= 3) {
5702 return false;
5703 }
5704 if (b <= 0) {
5705 f(sQLiteDatabase);
5706 }
5707 if (b == 2) {
5708 sQLiteDatabase.execSQL(String.format("ALTER TABLE [%s] ADD COLUMN [%s] INTEGER", new Object[]{"incarnation_appdatasearch", "seqno_table_complete"}));
5709 }
5710 a(sQLiteDatabase, 3);
5711 return true;
5712 }
5713
5714 public static void a(SQLiteDatabase sQLiteDatabase, int i) {
5715 ContentValues contentValues = new ContentValues(1);
5716 contentValues.put("version", Integer.valueOf(3));
5717 sQLiteDatabase.update("version_appdatasearch", contentValues, null, null);
5718 }
5719
5720 public static void a(SQLiteDatabase sQLiteDatabase, enx enx) {
5721 ContentValues contentValues = new ContentValues(3);
5722 contentValues.put("corpus_name", enx.a);
5723 contentValues.put("incarnation", Q());
5724 contentValues.put("seqno_table_complete", Integer.valueOf(1));
5725 sQLiteDatabase.replace("incarnation_appdatasearch", null, contentValues);
5726 }
5727
5728 public static void b(SQLiteDatabase sQLiteDatabase, enx enx) {
5729 a(sQLiteDatabase, enx, true);
5730 }
5731
5732 public static void c(SQLiteDatabase sQLiteDatabase, enx enx) {
5733 a(sQLiteDatabase, enx, false);
5734 }
5735
5736 public static void a(SQLiteDatabase sQLiteDatabase, enx enx, boolean z) {
5737 int i;
5738 ContentValues contentValues = new ContentValues(1);
5739 String str = "seqno_table_complete";
5740 if (z) {
5741 i = 1;
5742 } else {
5743 i = 0;
5744 }
5745 contentValues.put(str, Integer.valueOf(i));
5746 sQLiteDatabase.update("incarnation_appdatasearch", contentValues, "corpus_name = ?", new String[]{enx.a});
5747 }
5748
5749 public static int b(SQLiteDatabase sQLiteDatabase) {
5750 if (!c(sQLiteDatabase, "version_appdatasearch")) {
5751 return 0;
5752 }
5753 SQLiteDatabase sQLiteDatabase2 = sQLiteDatabase;
5754 Cursor query = sQLiteDatabase2.query("version_appdatasearch", new String[]{"version"}, null, null, null, null, null);
5755 if (query == null) {
5756 Log.w("AppDataSearchHelper", "Empty version table.");
5757 return 0;
5758 }
5759 try {
5760 if (query.moveToNext()) {
5761 int i = query.getInt(query.getColumnIndex("version"));
5762 query.close();
5763 return i;
5764 }
5765 Log.w("AppDataSearchHelper", "Empty version table.");
5766 return 0;
5767 } finally {
5768 query.close();
5769 }
5770 }
5771
5772 public static String d(SQLiteDatabase sQLiteDatabase, enx enx) {
5773 String str = null;
5774 SQLiteDatabase sQLiteDatabase2 = sQLiteDatabase;
5775 Cursor query = sQLiteDatabase2.query("incarnation_appdatasearch", new String[]{"incarnation"}, "corpus_name = ?", new String[]{enx.a}, str, str, str);
5776 if (query != null) {
5777 try {
5778 if (query.moveToNext()) {
5779 str = query.getString(query.getColumnIndex("incarnation"));
5780 query.close();
5781 }
5782 } finally {
5783 query.close();
5784 }
5785 }
5786 return str;
5787 }
5788
5789 public static boolean e(SQLiteDatabase sQLiteDatabase, enx enx) {
5790 SQLiteDatabase sQLiteDatabase2 = sQLiteDatabase;
5791 Cursor query = sQLiteDatabase2.query("incarnation_appdatasearch", new String[]{"seqno_table_complete"}, "corpus_name = ?", new String[]{enx.a}, null, null, null);
5792 if (query == null) {
5793 return false;
5794 }
5795 try {
5796 if (!query.moveToNext()) {
5797 return false;
5798 }
5799 boolean z;
5800 if (query.getInt(query.getColumnIndex("seqno_table_complete")) == 1) {
5801 z = true;
5802 } else {
5803 z = false;
5804 }
5805 query.close();
5806 return z;
5807 } finally {
5808 query.close();
5809 }
5810 }
5811
5812 public static void c(SQLiteDatabase sQLiteDatabase) {
5813 if (!c(sQLiteDatabase, "version_appdatasearch")) {
5814 sQLiteDatabase.execSQL(String.format("CREATE TABLE [%s] ([%s] INTEGER)", new Object[]{"version_appdatasearch", "version"}));
5815 ContentValues contentValues = new ContentValues(1);
5816 contentValues.put("version", Integer.valueOf(3));
5817 sQLiteDatabase.insert("version_appdatasearch", null, contentValues);
5818 }
5819 if (!c(sQLiteDatabase, "incarnation_appdatasearch")) {
5820 sQLiteDatabase.execSQL(String.format("CREATE TABLE [%s] ([%s] STRING PRIMARY KEY, [%s] STRING, [%s] INTEGER)", new Object[]{"incarnation_appdatasearch", "corpus_name", "incarnation", "seqno_table_complete"}));
5821 }
5822 }
5823
5824 public static String Q() {
5825 return Long.toHexString(new Random().nextLong());
5826 }
5827
5828 public static String a(enx enx) {
5829 return enx.a + "_seqno_table_appdatasearch";
5830 }
5831
5832 public static String b(enx enx) {
5833 return enx.a + "_insert_trigger_appdatasearch";
5834 }
5835
5836 public static String c(enx enx) {
5837 return enx.a + "_delete_trigger_appdatasearch";
5838 }
5839
5840 public static String d(enx enx) {
5841 return enx.a + "_update_trigger_appdatasearch";
5842 }
5843
5844 public static Set<String> e(enx enx) {
5845 return new HashSet(Arrays.asList(new String[]{b(enx), c(enx), d(enx)}));
5846 }
5847
5848 public static Set<String> d(SQLiteDatabase sQLiteDatabase) {
5849 return a(sQLiteDatabase, "_seqno_table_appdatasearch");
5850 }
5851
5852 public static Set<String> e(SQLiteDatabase sQLiteDatabase) {
5853 return b(sQLiteDatabase, "_trigger_appdatasearch");
5854 }
5855
5856 public static void a(SQLiteDatabase sQLiteDatabase, String str) {
5857 sQLiteDatabase.execSQL("DROP TABLE IF EXISTS [" + str + "]");
5858 }
5859
5860 public static void b(SQLiteDatabase sQLiteDatabase, String str) {
5861 sQLiteDatabase.execSQL("DROP TRIGGER IF EXISTS [" + str + "]");
5862 }
5863
5864 public static boolean c(SQLiteDatabase sQLiteDatabase, String str) {
5865 SQLiteDatabase sQLiteDatabase2 = sQLiteDatabase;
5866 Cursor query = sQLiteDatabase2.query("sqlite_master", new String[]{"name"}, "type = ? AND name == ?", new String[]{"table", str}, null, null, null);
5867 if (query == null) {
5868 return false;
5869 }
5870 try {
5871 boolean moveToNext = query.moveToNext();
5872 return moveToNext;
5873 } finally {
5874 query.close();
5875 }
5876 }
5877
5878 public static Set<String> a(SQLiteDatabase sQLiteDatabase, String... strArr) {
5879 return a(sQLiteDatabase, "table", strArr);
5880 }
5881
5882 public static Set<String> b(SQLiteDatabase sQLiteDatabase, String... strArr) {
5883 return a(sQLiteDatabase, "trigger", strArr);
5884 }
5885
5886 public static Set<String> a(SQLiteDatabase sQLiteDatabase, String str, String... strArr) {
5887 StringBuilder stringBuilder = new StringBuilder(1024);
5888 stringBuilder.append("type").append(" = '").append(str).append('\'');
5889 if (strArr != null && strArr.length > 0) {
5890 stringBuilder.append(" AND (");
5891 String str2 = "name LIKE '%' || ?";
5892 stringBuilder.append(str2);
5893 for (int i = 1; i < strArr.length; i++) {
5894 stringBuilder.append(" OR ").append(str2);
5895 }
5896 stringBuilder.append(")");
5897 }
5898 SQLiteDatabase sQLiteDatabase2 = sQLiteDatabase;
5899 Cursor query = sQLiteDatabase2.query("sqlite_master", new String[]{"name"}, stringBuilder.toString(), strArr, null, null, null);
5900 Set<String> hashSet = new HashSet();
5901 if (query != null) {
5902 try {
5903 int columnIndex = query.getColumnIndex("name");
5904 while (query.moveToNext()) {
5905 hashSet.add(query.getString(columnIndex));
5906 }
5907 } finally {
5908 query.close();
5909 }
5910 }
5911 return hashSet;
5912 }
5913
5914 public static void f(SQLiteDatabase sQLiteDatabase) {
5915 for (String a : h(sQLiteDatabase)) {
5916 a(sQLiteDatabase, a);
5917 }
5918 for (String a2 : g(sQLiteDatabase)) {
5919 b(sQLiteDatabase, a2);
5920 }
5921 }
5922
5923 public static Set<String> g(SQLiteDatabase sQLiteDatabase) {
5924 return b(sQLiteDatabase, "_appdatasearch_insert_trigger", "_appdatasearch_delete_trigger", "_appdatasearch_update_trigger");
5925 }
5926
5927 public static Set<String> h(SQLiteDatabase sQLiteDatabase) {
5928 return a(sQLiteDatabase, "_appdatasearch_seqno_table");
5929 }
5930
5931 public static String w(int i) {
5932 switch (i) {
5933 case -1:
5934 return "SUCCESS_CACHE";
5935 case yu.RecyclerView_android_orientation /*0*/:
5936 return "SUCCESS";
5937 case yu.RecyclerView_android_descendantFocusability /*1*/:
5938 return "SERVICE_MISSING";
5939 case yu.RecyclerView_layoutManager /*2*/:
5940 return "SERVICE_VERSION_UPDATE_REQUIRED";
5941 case yu.RecyclerView_spanCount /*3*/:
5942 return "SERVICE_DISABLED";
5943 case yu.RecyclerView_reverseLayout /*4*/:
5944 return "SIGN_IN_REQUIRED";
5945 case yu.RecyclerView_stackFromEnd /*5*/:
5946 return "INVALID_ACCOUNT";
5947 case yq.Toolbar_contentInsetEnd /*6*/:
5948 return "RESOLUTION_REQUIRED";
5949 case yq.Toolbar_contentInsetLeft /*7*/:
5950 return "NETWORK_ERROR";
5951 case yq.Toolbar_contentInsetRight /*8*/:
5952 return "INTERNAL_ERROR";
5953 case yq.Toolbar_contentInsetStartWithNavigation /*9*/:
5954 return "SERVICE_INVALID";
5955 case yq.Toolbar_contentInsetEndWithActions /*10*/:
5956 return "DEVELOPER_ERROR";
5957 case yq.Toolbar_popupTheme /*11*/:
5958 return "LICENSE_CHECK_FAILED";
5959 case yq.Toolbar_subtitleTextAppearance /*13*/:
5960 return "ERROR";
5961 case yq.Toolbar_titleMargin /*14*/:
5962 return "INTERRUPTED";
5963 case yq.Toolbar_titleMarginStart /*15*/:
5964 return "TIMEOUT";
5965 case yq.Toolbar_titleMarginEnd /*16*/:
5966 return "CANCELED";
5967 case yq.Toolbar_titleMarginTop /*17*/:
5968 return "API_NOT_CONNECTED";
5969 case 3000:
5970 return "AUTH_API_INVALID_CREDENTIALS";
5971 case 3001:
5972 return "AUTH_API_ACCESS_FORBIDDEN";
5973 case 3002:
5974 return "AUTH_API_CLIENT_ERROR";
5975 case 3003:
5976 return "AUTH_API_SERVER_ERROR";
5977 case 3004:
5978 return "AUTH_TOKEN_ERROR";
5979 case 3005:
5980 return "AUTH_URL_RESOLUTION";
5981 default:
5982 return "unknown status code: " + i;
5983 }
5984 }
5985
5986 public static int b(Parcel parcel) {
5987 return parcel.readInt();
5988 }
5989
5990 public static int x(int i) {
5991 return 65535 & i;
5992 }
5993
5994 public static int a(Parcel parcel, int i) {
5995 return (i & -65536) != -65536 ? (i >> 16) & 65535 : parcel.readInt();
5996 }
5997
5998 public static void b(Parcel parcel, int i) {
5999 parcel.setDataPosition(a(parcel, i) + parcel.dataPosition());
6000 }
6001
6002 public static void a(Parcel parcel, int i, int i2) {
6003 int a = a(parcel, i);
6004 if (a != i2) {
6005 throw new em("Expected size " + i2 + " got " + a + " (0x" + Integer.toHexString(a) + ")", parcel);
6006 }
6007 }
6008
6009 public static void b(Parcel parcel, int i, int i2) {
6010 if (i != i2) {
6011 throw new em("Expected size " + i2 + " got " + i + " (0x" + Integer.toHexString(i) + ")", parcel);
6012 }
6013 }
6014
6015 public static int c(Parcel parcel) {
6016 int b = b(parcel);
6017 int a = a(parcel, b);
6018 int dataPosition = parcel.dataPosition();
6019 if (x(b) != 20293) {
6020 throw new em("Expected object header. Got 0x" + Integer.toHexString(b), parcel);
6021 }
6022 b = dataPosition + a;
6023 if (b >= dataPosition && b <= parcel.dataSize()) {
6024 return b;
6025 }
6026 throw new em("Size read is invalid start=" + dataPosition + " end=" + b, parcel);
6027 }
6028
6029 public static boolean c(Parcel parcel, int i) {
6030 a(parcel, i, 4);
6031 return parcel.readInt() != 0;
6032 }
6033
6034 public static byte d(Parcel parcel, int i) {
6035 a(parcel, i, 4);
6036 return (byte) parcel.readInt();
6037 }
6038
6039 public static short e(Parcel parcel, int i) {
6040 a(parcel, i, 4);
6041 return (short) parcel.readInt();
6042 }
6043
6044 public static int f(Parcel parcel, int i) {
6045 a(parcel, i, 4);
6046 return parcel.readInt();
6047 }
6048
6049 public static Integer g(Parcel parcel, int i) {
6050 int a = a(parcel, i);
6051 if (a == 0) {
6052 return null;
6053 }
6054 b(parcel, a, 4);
6055 return Integer.valueOf(parcel.readInt());
6056 }
6057
6058 public static long h(Parcel parcel, int i) {
6059 a(parcel, i, 8);
6060 return parcel.readLong();
6061 }
6062
6063 public static Long i(Parcel parcel, int i) {
6064 int a = a(parcel, i);
6065 if (a == 0) {
6066 return null;
6067 }
6068 b(parcel, a, 8);
6069 return Long.valueOf(parcel.readLong());
6070 }
6071
6072 public static float j(Parcel parcel, int i) {
6073 a(parcel, i, 4);
6074 return parcel.readFloat();
6075 }
6076
6077 public static Float k(Parcel parcel, int i) {
6078 int a = a(parcel, i);
6079 if (a == 0) {
6080 return null;
6081 }
6082 b(parcel, a, 4);
6083 return Float.valueOf(parcel.readFloat());
6084 }
6085
6086 public static double l(Parcel parcel, int i) {
6087 a(parcel, i, 8);
6088 return parcel.readDouble();
6089 }
6090
6091 public static String m(Parcel parcel, int i) {
6092 int a = a(parcel, i);
6093 int dataPosition = parcel.dataPosition();
6094 if (a == 0) {
6095 return null;
6096 }
6097 String readString = parcel.readString();
6098 parcel.setDataPosition(a + dataPosition);
6099 return readString;
6100 }
6101
6102 public static IBinder n(Parcel parcel, int i) {
6103 int a = a(parcel, i);
6104 int dataPosition = parcel.dataPosition();
6105 if (a == 0) {
6106 return null;
6107 }
6108 IBinder readStrongBinder = parcel.readStrongBinder();
6109 parcel.setDataPosition(a + dataPosition);
6110 return readStrongBinder;
6111 }
6112
6113 public static <T extends Parcelable> T a(Parcel parcel, int i, Creator<T> creator) {
6114 int a = a(parcel, i);
6115 int dataPosition = parcel.dataPosition();
6116 if (a == 0) {
6117 return null;
6118 }
6119 Parcelable parcelable = (Parcelable) creator.createFromParcel(parcel);
6120 parcel.setDataPosition(a + dataPosition);
6121 return parcelable;
6122 }
6123
6124 public static Bundle o(Parcel parcel, int i) {
6125 int a = a(parcel, i);
6126 int dataPosition = parcel.dataPosition();
6127 if (a == 0) {
6128 return null;
6129 }
6130 Bundle readBundle = parcel.readBundle();
6131 parcel.setDataPosition(a + dataPosition);
6132 return readBundle;
6133 }
6134
6135 public static byte[] p(Parcel parcel, int i) {
6136 int a = a(parcel, i);
6137 int dataPosition = parcel.dataPosition();
6138 if (a == 0) {
6139 return null;
6140 }
6141 byte[] createByteArray = parcel.createByteArray();
6142 parcel.setDataPosition(a + dataPosition);
6143 return createByteArray;
6144 }
6145
6146 public static byte[][] q(Parcel parcel, int i) {
6147 int a = a(parcel, i);
6148 int dataPosition = parcel.dataPosition();
6149 if (a == 0) {
6150 return null;
6151 }
6152 int readInt = parcel.readInt();
6153 byte[][] bArr = new byte[readInt][];
6154 for (int i2 = 0; i2 < readInt; i2++) {
6155 bArr[i2] = parcel.createByteArray();
6156 }
6157 parcel.setDataPosition(dataPosition + a);
6158 return bArr;
6159 }
6160
6161 public static int[] r(Parcel parcel, int i) {
6162 int a = a(parcel, i);
6163 int dataPosition = parcel.dataPosition();
6164 if (a == 0) {
6165 return null;
6166 }
6167 int[] createIntArray = parcel.createIntArray();
6168 parcel.setDataPosition(a + dataPosition);
6169 return createIntArray;
6170 }
6171
6172 public static double[] s(Parcel parcel, int i) {
6173 int a = a(parcel, i);
6174 int dataPosition = parcel.dataPosition();
6175 if (a == 0) {
6176 return null;
6177 }
6178 double[] createDoubleArray = parcel.createDoubleArray();
6179 parcel.setDataPosition(a + dataPosition);
6180 return createDoubleArray;
6181 }
6182
6183 public static String[] t(Parcel parcel, int i) {
6184 int a = a(parcel, i);
6185 int dataPosition = parcel.dataPosition();
6186 if (a == 0) {
6187 return null;
6188 }
6189 String[] createStringArray = parcel.createStringArray();
6190 parcel.setDataPosition(a + dataPosition);
6191 return createStringArray;
6192 }
6193
6194 public static ArrayList<Integer> u(Parcel parcel, int i) {
6195 int a = a(parcel, i);
6196 int dataPosition = parcel.dataPosition();
6197 if (a == 0) {
6198 return null;
6199 }
6200 ArrayList<Integer> arrayList = new ArrayList();
6201 int readInt = parcel.readInt();
6202 for (int i2 = 0; i2 < readInt; i2++) {
6203 arrayList.add(Integer.valueOf(parcel.readInt()));
6204 }
6205 parcel.setDataPosition(dataPosition + a);
6206 return arrayList;
6207 }
6208
6209 public static ArrayList<String> v(Parcel parcel, int i) {
6210 int a = a(parcel, i);
6211 int dataPosition = parcel.dataPosition();
6212 if (a == 0) {
6213 return null;
6214 }
6215 ArrayList<String> createStringArrayList = parcel.createStringArrayList();
6216 parcel.setDataPosition(a + dataPosition);
6217 return createStringArrayList;
6218 }
6219
6220 public static <T> T[] b(Parcel parcel, int i, Creator<T> creator) {
6221 int a = a(parcel, i);
6222 int dataPosition = parcel.dataPosition();
6223 if (a == 0) {
6224 return null;
6225 }
6226 T[] createTypedArray = parcel.createTypedArray(creator);
6227 parcel.setDataPosition(a + dataPosition);
6228 return createTypedArray;
6229 }
6230
6231 public static <T> ArrayList<T> c(Parcel parcel, int i, Creator<T> creator) {
6232 int a = a(parcel, i);
6233 int dataPosition = parcel.dataPosition();
6234 if (a == 0) {
6235 return null;
6236 }
6237 ArrayList<T> createTypedArrayList = parcel.createTypedArrayList(creator);
6238 parcel.setDataPosition(a + dataPosition);
6239 return createTypedArrayList;
6240 }
6241
6242 public static void a(Parcel parcel, int i, List list, ClassLoader classLoader) {
6243 int a = a(parcel, i);
6244 int dataPosition = parcel.dataPosition();
6245 if (a != 0) {
6246 parcel.readList(list, classLoader);
6247 parcel.setDataPosition(a + dataPosition);
6248 }
6249 }
6250
6251 public static void c(Parcel parcel, int i, int i2) {
6252 if (i2 >= 65535) {
6253 parcel.writeInt(-65536 | i);
6254 parcel.writeInt(i2);
6255 return;
6256 }
6257 parcel.writeInt((i2 << 16) | i);
6258 }
6259
6260 public static int w(Parcel parcel, int i) {
6261 parcel.writeInt(-65536 | i);
6262 parcel.writeInt(0);
6263 return parcel.dataPosition();
6264 }
6265
6266 public static void x(Parcel parcel, int i) {
6267 int dataPosition = parcel.dataPosition();
6268 int i2 = dataPosition - i;
6269 parcel.setDataPosition(i - 4);
6270 parcel.writeInt(i2);
6271 parcel.setDataPosition(dataPosition);
6272 }
6273
6274 public static int d(Parcel parcel) {
6275 return w(parcel, 20293);
6276 }
6277
6278 public static void y(Parcel parcel, int i) {
6279 x(parcel, i);
6280 }
6281
6282 public static void a(Parcel parcel, int i, boolean z) {
6283 c(parcel, i, 4);
6284 parcel.writeInt(z ? 1 : 0);
6285 }
6286
6287 public static void a(Parcel parcel, int i, byte b) {
6288 c(parcel, i, 4);
6289 parcel.writeInt(b);
6290 }
6291
6292 public static void a(Parcel parcel, int i, short s) {
6293 c(parcel, 3, 4);
6294 parcel.writeInt(s);
6295 }
6296
6297 public static void d(Parcel parcel, int i, int i2) {
6298 c(parcel, i, 4);
6299 parcel.writeInt(i2);
6300 }
6301
6302 public static void a(Parcel parcel, int i, Integer num, boolean z) {
6303 if (num != null) {
6304 c(parcel, i, 4);
6305 parcel.writeInt(num.intValue());
6306 }
6307 }
6308
6309 public static void a(Parcel parcel, int i, long j) {
6310 c(parcel, i, 8);
6311 parcel.writeLong(j);
6312 }
6313
6314 public static void a(Parcel parcel, int i, Long l, boolean z) {
6315 if (l != null) {
6316 c(parcel, i, 8);
6317 parcel.writeLong(l.longValue());
6318 }
6319 }
6320
6321 public static void a(Parcel parcel, int i, float f) {
6322 c(parcel, i, 4);
6323 parcel.writeFloat(f);
6324 }
6325
6326 public static void a(Parcel parcel, int i, Float f, boolean z) {
6327 if (f != null) {
6328 c(parcel, 5, 4);
6329 parcel.writeFloat(f.floatValue());
6330 }
6331 }
6332
6333 public static void a(Parcel parcel, int i, double d) {
6334 c(parcel, i, 8);
6335 parcel.writeDouble(d);
6336 }
6337
6338 public static void a(Parcel parcel, int i, String str, boolean z) {
6339 if (str != null) {
6340 int w = w(parcel, i);
6341 parcel.writeString(str);
6342 x(parcel, w);
6343 }
6344 }
6345
6346 public static void a(Parcel parcel, int i, IBinder iBinder, boolean z) {
6347 if (iBinder != null) {
6348 int w = w(parcel, i);
6349 parcel.writeStrongBinder(iBinder);
6350 x(parcel, w);
6351 }
6352 }
6353
6354 public static void a(Parcel parcel, int i, Parcelable parcelable, int i2, boolean z) {
6355 if (parcelable != null) {
6356 int w = w(parcel, i);
6357 parcelable.writeToParcel(parcel, i2);
6358 x(parcel, w);
6359 }
6360 }
6361
6362 public static void a(Parcel parcel, int i, Bundle bundle, boolean z) {
6363 if (bundle != null) {
6364 int w = w(parcel, i);
6365 parcel.writeBundle(bundle);
6366 x(parcel, w);
6367 }
6368 }
6369
6370 public static void a(Parcel parcel, int i, byte[] bArr, boolean z) {
6371 if (bArr != null) {
6372 int w = w(parcel, i);
6373 parcel.writeByteArray(bArr);
6374 x(parcel, w);
6375 }
6376 }
6377
6378 public static void a(Parcel parcel, int i, byte[][] bArr, boolean z) {
6379 if (bArr != null) {
6380 int w = w(parcel, i);
6381 parcel.writeInt(r2);
6382 for (byte[] writeByteArray : bArr) {
6383 parcel.writeByteArray(writeByteArray);
6384 }
6385 x(parcel, w);
6386 }
6387 }
6388
6389 public static void a(Parcel parcel, int i, int[] iArr, boolean z) {
6390 if (iArr != null) {
6391 int w = w(parcel, i);
6392 parcel.writeIntArray(iArr);
6393 x(parcel, w);
6394 }
6395 }
6396
6397 public static void a(Parcel parcel, int i, double[] dArr, boolean z) {
6398 if (dArr != null) {
6399 int w = w(parcel, 11);
6400 parcel.writeDoubleArray(dArr);
6401 x(parcel, w);
6402 }
6403 }
6404
6405 public static void a(Parcel parcel, int i, String[] strArr, boolean z) {
6406 if (strArr != null) {
6407 int w = w(parcel, i);
6408 parcel.writeStringArray(strArr);
6409 x(parcel, w);
6410 }
6411 }
6412
6413 public static void a(Parcel parcel, int i, List<Integer> list, boolean z) {
6414 if (list != null) {
6415 int w = w(parcel, i);
6416 int size = list.size();
6417 parcel.writeInt(size);
6418 for (int i2 = 0; i2 < size; i2++) {
6419 parcel.writeInt(((Integer) list.get(i2)).intValue());
6420 }
6421 x(parcel, w);
6422 }
6423 }
6424
6425 public static void b(Parcel parcel, int i, List<String> list, boolean z) {
6426 if (list != null) {
6427 int w = w(parcel, i);
6428 parcel.writeStringList(list);
6429 x(parcel, w);
6430 }
6431 }
6432
6433 public static <T extends Parcelable> void a(Parcel parcel, int i, T[] tArr, int i2, boolean z) {
6434 if (tArr != null) {
6435 int w = w(parcel, i);
6436 parcel.writeInt(r3);
6437 for (Parcelable parcelable : tArr) {
6438 if (parcelable == null) {
6439 parcel.writeInt(0);
6440 } else {
6441 a(parcel, parcelable, i2);
6442 }
6443 }
6444 x(parcel, w);
6445 }
6446 }
6447
6448 public static <T extends Parcelable> void c(Parcel parcel, int i, List<T> list, boolean z) {
6449 if (list != null) {
6450 int w = w(parcel, i);
6451 int size = list.size();
6452 parcel.writeInt(size);
6453 for (int i2 = 0; i2 < size; i2++) {
6454 Parcelable parcelable = (Parcelable) list.get(i2);
6455 if (parcelable == null) {
6456 parcel.writeInt(0);
6457 } else {
6458 a(parcel, parcelable, 0);
6459 }
6460 }
6461 x(parcel, w);
6462 }
6463 }
6464
6465 public static <T extends Parcelable> void a(Parcel parcel, T t, int i) {
6466 int dataPosition = parcel.dataPosition();
6467 parcel.writeInt(1);
6468 int dataPosition2 = parcel.dataPosition();
6469 t.writeToParcel(parcel, i);
6470 int dataPosition3 = parcel.dataPosition();
6471 parcel.setDataPosition(dataPosition);
6472 parcel.writeInt(dataPosition3 - dataPosition2);
6473 parcel.setDataPosition(dataPosition3);
6474 }
6475
6476 public static void d(Parcel parcel, int i, List list, boolean z) {
6477 if (list != null) {
6478 int w = w(parcel, 3);
6479 parcel.writeList(list);
6480 x(parcel, w);
6481 }
6482 }
6483
6484 public static <T extends SafeParcelable> T a(byte[] bArr, Creator<T> creator) {
6485 v((Object) creator);
6486 Parcel obtain = Parcel.obtain();
6487 obtain.unmarshall(bArr, 0, bArr.length);
6488 obtain.setDataPosition(0);
6489 SafeParcelable safeParcelable = (SafeParcelable) creator.createFromParcel(obtain);
6490 obtain.recycle();
6491 return safeParcelable;
6492 }
6493
6494 public static String c(Context context, int i) {
6495 Resources resources = context.getResources();
6496 switch (i) {
6497 case yu.RecyclerView_android_descendantFocusability /*1*/:
6498 return resources.getString(dp.j);
6499 case yu.RecyclerView_layoutManager /*2*/:
6500 case yq.AppCompatTheme_textAppearancePopupMenuHeader /*42*/:
6501 return resources.getString(dp.y);
6502 case yu.RecyclerView_spanCount /*3*/:
6503 return resources.getString(dp.f);
6504 case yu.RecyclerView_reverseLayout /*4*/:
6505 case yq.Toolbar_contentInsetEnd /*6*/:
6506 return null;
6507 case yu.RecyclerView_stackFromEnd /*5*/:
6508 Log.e("GoogleApiAvailability", "An invalid account was specified when connecting. Please provide a valid account.");
6509 return resources.getString(dp.l);
6510 case yq.Toolbar_contentInsetLeft /*7*/:
6511 Log.e("GoogleApiAvailability", "Network error occurred. Please retry request later.");
6512 return resources.getString(dp.n);
6513 case yq.Toolbar_contentInsetRight /*8*/:
6514 Log.e("GoogleApiAvailability", "Internal error occurred. Please see logs for detailed information");
6515 return null;
6516 case yq.Toolbar_contentInsetStartWithNavigation /*9*/:
6517 Log.e("GoogleApiAvailability", "Google Play services is invalid. Cannot recover.");
6518 return resources.getString(dp.v);
6519 case yq.Toolbar_contentInsetEndWithActions /*10*/:
6520 Log.e("GoogleApiAvailability", "Developer error occurred. Please see logs for detailed information");
6521 return null;
6522 case yq.Toolbar_popupTheme /*11*/:
6523 Log.e("GoogleApiAvailability", "The application is not licensed to the user.");
6524 return null;
6525 case yq.Toolbar_titleMarginEnd /*16*/:
6526 Log.e("GoogleApiAvailability", "One of the API components you attempted to connect to is not available.");
6527 return null;
6528 case yq.Toolbar_titleMarginTop /*17*/:
6529 Log.e("GoogleApiAvailability", "The specified account could not be signed in.");
6530 return resources.getString(dp.s);
6531 case yq.Toolbar_titleMarginBottom /*18*/:
6532 return resources.getString(dp.A);
6533 case yq.Toolbar_maxButtonHeight /*20*/:
6534 Log.e("GoogleApiAvailability", "The current user profile is restricted and could not use authenticated features.");
6535 return resources.getString(dp.q);
6536 default:
6537 Log.e("GoogleApiAvailability", "Unexpected error code " + i);
6538 return null;
6539 }
6540 }
6541
6542 public static String a(Context context, int i, String str) {
6543 Resources resources = context.getResources();
6544 switch (i) {
6545 case yu.RecyclerView_android_descendantFocusability /*1*/:
6546 if (d(resources)) {
6547 return resources.getString(dp.i, new Object[]{str});
6548 }
6549 return resources.getString(dp.h, new Object[]{str});
6550 case yu.RecyclerView_layoutManager /*2*/:
6551 return resources.getString(dp.x, new Object[]{str});
6552 case yu.RecyclerView_spanCount /*3*/:
6553 return resources.getString(dp.e, new Object[]{str});
6554 case yu.RecyclerView_stackFromEnd /*5*/:
6555 return resources.getString(dp.k);
6556 case yq.Toolbar_contentInsetLeft /*7*/:
6557 return resources.getString(dp.m);
6558 case yq.Toolbar_contentInsetStartWithNavigation /*9*/:
6559 return resources.getString(dp.u, new Object[]{str});
6560 case yq.Toolbar_titleMarginEnd /*16*/:
6561 return resources.getString(dp.c, new Object[]{str});
6562 case yq.Toolbar_titleMarginTop /*17*/:
6563 return resources.getString(dp.r);
6564 case yq.Toolbar_titleMarginBottom /*18*/:
6565 return resources.getString(dp.z, new Object[]{str});
6566 case yq.Toolbar_maxButtonHeight /*20*/:
6567 return resources.getString(dp.p);
6568 case yq.AppCompatTheme_textAppearancePopupMenuHeader /*42*/:
6569 return resources.getString(dp.B);
6570 default:
6571 return resources.getString(dp.t, new Object[]{str});
6572 }
6573 }
6574
6575 public static String d(Context context, int i) {
6576 Resources resources = context.getResources();
6577 switch (i) {
6578 case yu.RecyclerView_android_descendantFocusability /*1*/:
6579 return resources.getString(dp.g);
6580 case yu.RecyclerView_layoutManager /*2*/:
6581 return resources.getString(dp.w);
6582 case yu.RecyclerView_spanCount /*3*/:
6583 return resources.getString(dp.d);
6584 default:
6585 return resources.getString(17039370);
6586 }
6587 }
6588
6589 public static boolean d(Object obj, Object obj2) {
6590 return obj == obj2 || (obj != null && obj.equals(obj2));
6591 }
6592
6593 public static int c(Object... objArr) {
6594 return Arrays.hashCode(objArr);
6595 }
6596
6597 public static evb u(Object obj) {
6598 return new evb(obj);
6599 }
6600
6601 public static <T> T v(T t) {
6602 if (t != null) {
6603 return t;
6604 }
6605 throw new NullPointerException("null reference");
6606 }
6607
6608 public static String J(String str) {
6609 if (!TextUtils.isEmpty(str)) {
6610 return str;
6611 }
6612 throw new IllegalArgumentException("Given String is empty or null");
6613 }
6614
6615 public static String a(String str, Object obj) {
6616 if (!TextUtils.isEmpty(str)) {
6617 return str;
6618 }
6619 throw new IllegalArgumentException(String.valueOf(obj));
6620 }
6621
6622 public static <T> T e(T t, Object obj) {
6623 if (t != null) {
6624 return t;
6625 }
6626 throw new NullPointerException(String.valueOf(obj));
6627 }
6628
6629 public static int y(int i) {
6630 if (i != 0) {
6631 return i;
6632 }
6633 throw new IllegalArgumentException("Given Integer is zero");
6634 }
6635
6636 public static void b(boolean z) {
6637 if (!z) {
6638 throw new IllegalStateException();
6639 }
6640 }
6641
6642 public static void a(boolean z, Object obj) {
6643 if (!z) {
6644 throw new IllegalStateException(String.valueOf(obj));
6645 }
6646 }
6647
6648 public static void b(boolean z, Object obj) {
6649 if (!z) {
6650 throw new IllegalArgumentException(String.valueOf(obj));
6651 }
6652 }
6653
6654 public static void a(boolean z, String str, Object... objArr) {
6655 if (!z) {
6656 throw new IllegalArgumentException(String.format(str, objArr));
6657 }
6658 }
6659
6660 public static void c(boolean z) {
6661 if (!z) {
6662 throw new IllegalArgumentException();
6663 }
6664 }
6665
6666 public static void K(String str) {
6667 if (Looper.myLooper() != Looper.getMainLooper()) {
6668 throw new IllegalStateException(str);
6669 }
6670 }
6671
6672 public static void L(String str) {
6673 if (Looper.myLooper() == Looper.getMainLooper()) {
6674 throw new IllegalStateException(str);
6675 }
6676 }
6677
6678 public static String a(WakeLock wakeLock, String str) {
6679 StringBuilder append = new StringBuilder().append(String.valueOf((((long) Process.myPid()) << 32) | ((long) System.identityHashCode(wakeLock))));
6680 if (TextUtils.isEmpty(str)) {
6681 str = "";
6682 }
6683 return append.append(str).toString();
6684 }
6685
6686 public static void a(Closeable closeable) {
6687 if (closeable != null) {
6688 try {
6689 closeable.close();
6690 } catch (IOException e) {
6691 }
6692 }
6693 }
6694
6695 public static void a(ParcelFileDescriptor parcelFileDescriptor) {
6696 if (parcelFileDescriptor != null) {
6697 try {
6698 parcelFileDescriptor.close();
6699 } catch (IOException e) {
6700 }
6701 }
6702 }
6703
6704 public static long a(InputStream inputStream, OutputStream outputStream) {
6705 return a(inputStream, outputStream, false);
6706 }
6707
6708 public static long a(InputStream inputStream, OutputStream outputStream, boolean z) {
6709 return a(inputStream, outputStream, false, 1024);
6710 }
6711
6712 public static long a(InputStream inputStream, OutputStream outputStream, boolean z, int i) {
6713 byte[] bArr = new byte[1024];
6714 long j = 0;
6715 while (true) {
6716 try {
6717 int read = inputStream.read(bArr, 0, 1024);
6718 if (read == -1) {
6719 break;
6720 }
6721 j += (long) read;
6722 outputStream.write(bArr, 0, read);
6723 } finally {
6724 if (z) {
6725 a((Closeable) inputStream);
6726 a((Closeable) outputStream);
6727 }
6728 }
6729 }
6730 return j;
6731 }
6732
6733 public static boolean d(Context context, String str) {
6734 try {
6735 return (context.getPackageManager().getApplicationInfo(str, 0).flags & 2097152) != 0;
6736 } catch (NameNotFoundException e) {
6737 return false;
6738 }
6739 }
6740
6741 public static boolean R() {
6742 return etc.a && fwb.a() && fwb.c == Process.myUid();
6743 }
6744
6745 public static <T> Set<T> a(T t, T t2, T t3) {
6746 Set evq = new evq(3);
6747 evq.add(t);
6748 evq.add(t2);
6749 evq.add(t3);
6750 return Collections.unmodifiableSet(evq);
6751 }
6752
6753 public static <K, V> Map<K, V> a(K k, V v, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6) {
6754 Map lhVar = new lh(6);
6755 lhVar.put(k, v);
6756 lhVar.put(k2, v2);
6757 lhVar.put(k3, v3);
6758 lhVar.put(k4, v4);
6759 lhVar.put(k5, v5);
6760 lhVar.put(k6, v6);
6761 return Collections.unmodifiableMap(lhVar);
6762 }
6763
6764 public static boolean d(Resources resources) {
6765 if (resources == null) {
6766 return false;
6767 }
6768 return (S() && ((resources.getConfiguration().screenLayout & 15) > 3)) || e(resources);
6769 }
6770
6771 @TargetApi(13)
6772 public static boolean e(Resources resources) {
6773 Configuration configuration = resources.getConfiguration();
6774 return T() && (configuration.screenLayout & 15) <= 3 && configuration.smallestScreenWidthDp >= 600;
6775 }
6776
6777 @TargetApi(20)
6778 public static boolean y(Context context) {
6779 return Y() && context.getPackageManager().hasSystemFeature("android.hardware.type.watch");
6780 }
6781
6782 public static boolean S() {
6783 return z(11);
6784 }
6785
6786 public static boolean T() {
6787 return z(13);
6788 }
6789
6790 public static boolean U() {
6791 return z(14);
6792 }
6793
6794 public static boolean V() {
6795 return z(16);
6796 }
6797
6798 public static boolean W() {
6799 return z(18);
6800 }
6801
6802 public static boolean X() {
6803 return z(19);
6804 }
6805
6806 public static boolean Y() {
6807 return z(20);
6808 }
6809
6810 public static boolean Z() {
6811 return z(21);
6812 }
6813
6814 public static boolean z(int i) {
6815 return VERSION.SDK_INT >= i;
6816 }
6817
6818 public static String z(Context context) {
6819 return e(context, Binder.getCallingPid());
6820 }
6821
6822 public static String e(Context context, int i) {
6823 List<RunningAppProcessInfo> runningAppProcesses = ((ActivityManager) context.getSystemService("activity")).getRunningAppProcesses();
6824 if (runningAppProcesses != null) {
6825 for (RunningAppProcessInfo runningAppProcessInfo : runningAppProcesses) {
6826 if (runningAppProcessInfo.pid == i) {
6827 return runningAppProcessInfo.processName;
6828 }
6829 }
6830 }
6831 return null;
6832 }
6833
6834 public static String e(int i, int i2) {
6835 StackTraceElement[] stackTrace = Thread.currentThread().getStackTrace();
6836 StringBuffer stringBuffer = new StringBuffer();
6837 int i3 = i2 + 3;
6838 for (int i4 = 3; i4 < i3; i4++) {
6839 stringBuffer.append(a(stackTrace, i4)).append(" ");
6840 }
6841 return stringBuffer.toString();
6842 }
6843
6844 public static String a(StackTraceElement[] stackTraceElementArr, int i) {
6845 if (i + 4 >= stackTraceElementArr.length) {
6846 return "<bottom of call stack>";
6847 }
6848 StackTraceElement stackTraceElement = stackTraceElementArr[i + 4];
6849 return stackTraceElement.getClassName() + "." + stackTraceElement.getMethodName() + ":" + stackTraceElement.getLineNumber();
6850 }
6851
6852 public static String aa() {
6853 int i;
6854 int a;
6855 StringBuilder stringBuilder = new StringBuilder();
6856 Throwable th = new Throwable();
6857 StackTraceElement[] stackTrace = th.getStackTrace();
6858 stringBuilder.append("Async stack trace:");
6859 for (Object append : stackTrace) {
6860 stringBuilder.append("\n\tat ").append(append);
6861 }
6862 StackTraceElement[] stackTraceElementArr = stackTrace;
6863 Throwable cause = th.getCause();
6864 while (cause != null) {
6865 stringBuilder.append("\nCaused by: ");
6866 stringBuilder.append(cause);
6867 StackTraceElement[] stackTrace2 = cause.getStackTrace();
6868 a = a(stackTrace2, stackTraceElementArr);
6869 for (i = 0; i < stackTrace2.length - a; i++) {
6870 stringBuilder.append("\n\tat " + stackTrace2[i]);
6871 }
6872 if (a > 0) {
6873 stringBuilder.append("\n\t... " + a + " more");
6874 }
6875 cause = cause.getCause();
6876 stackTraceElementArr = stackTrace2;
6877 }
6878 return stringBuilder.toString();
6879 }
6880
6881 /* JADX WARNING: inconsistent code. */
6882 /* Code decompiled incorrectly, please refer to instructions dump. */
6883 public static int a(java.lang.StackTraceElement[] r5, java.lang.StackTraceElement[] r6) {
6884 /*
6885 r2 = 0;
6886 r1 = r6.length;
6887 r0 = r5.length;
6888 L_0x0003:
6889 r0 = r0 + -1;
6890 if (r0 < 0) goto L_0x0018;
6891 L_0x0007:
6892 r1 = r1 + -1;
6893 if (r1 < 0) goto L_0x0018;
6894 L_0x000b:
6895 r3 = r6[r1];
6896 r4 = r5[r0];
6897 r3 = r3.equals(r4);
6898 if (r3 == 0) goto L_0x0018;
6899 L_0x0015:
6900 r2 = r2 + 1;
6901 goto L_0x0003;
6902 L_0x0018:
6903 return r2;
6904 */
6905 throw new UnsupportedOperationException("Method not decompiled: ux.a(java.lang.StackTraceElement[], java.lang.StackTraceElement[]):int");
6906 }
6907
6908 @TargetApi(21)
6909 public static File A(Context context) {
6910 return Z() ? context.getNoBackupFilesDir() : b(new File(context.getApplicationInfo().dataDir, "no_backup"));
6911 }
6912
6913 public static synchronized File b(File file) {
6914 synchronized (ux.class) {
6915 if (!(file.exists() || file.mkdirs() || file.exists())) {
6916 Log.w("SupportV4Utils", "Unable to create no-backup dir " + file.getPath());
6917 file = null;
6918 }
6919 }
6920 return file;
6921 }
6922
6923 public static evy[] ab() {
6924 return new evy[]{fdj.a[0], fdm.a[0], fcj.a[0], fji.a[0], eyv.a[0], fit.a[0], fcm.a[0], ezo.a[0], fjf.a[0], fiw.a[0], fcd.a[0], fav.a[0], fcv.a[0], exr.a[0], fas.a[0], fda.a[0], fgv.a[0], ezl.a[0], ffv.a[0], ffy.a[0], ffm.a[0], eyp.a[0], faa.a[0], ezu.a[0], ezx.a[0], ffs.a[0], fho.a[0], eyj.a[0], eym.a[0], fbn.a[0], faj.a[0], fia.a[0], fia.a[1], exx.a[0], exl.a[0], fhr.a[0], fhb.a[0], fgs.a[0], fag.a[0], fel.a[0], fel.a[1], ezr.a[0], fad.a[0], eyg.a[0], ewt.a[0], ezi.a[0], exc.a[0], fap.a[0], fge.a[0], fgp.a[0], fbk.a[0], fdg.a[0], fgy.a[0], fea.a[0], fcs.a[0], fbh.a[0], ewr.a[0], ezc.a[0], fdx.a[0], fif.a[0], ewz.a[0], ezf.a[0], fbt.a[0], fed.a[0], fii.a[0], eyd.a[0], fam.a[0], ffp.a[0], exf.a[0], fhg.a[0], ffh.a[0], fhx.a[0], fbb.a[0], fes.a[0], fiq.a[0], fjc.a[0], fin.a[0], eww.a[0], fbq.a[0], ewo.a[0], fdu.a[0], fca.a[0], fay.a[0], fds.a[0], ffb.a[0], eya.a[0], fgb.a[0], fey.a[0], exi.a[0], fef.a[0], eyz.a[0], fcp.a[0], fev.a[0], fgm.a[0], fhe.a[0], exu.a[0], fcg.a[0], ffj.a[0], fbe.a[0], fgg.a[0], fhm.a[0], fcx.a[0], ewc.a[0], ewl.a[0], ffe.a[0], ewf.a[0], fei.a[0], exo.a[0], ewi.a[0], eys.a[0], fbw.a[0], fgj.a[0], fjl.a[0], fdd.a[0], fdp.a[0], fiz.a[0], evz.a[0], fhj.a[0], fep.a[0], fhu.a[0]};
6925 }
6926
6927 public static evy[] ac() {
6928 return a(fdj.a, fdm.a, fil.a, fcj.a, fji.a, eyv.a, fit.a, fcm.a, ezo.a, fjf.a, fiw.a, fcd.a, fav.a, fcv.a, exr.a, fas.a, fda.a, fgv.a, ezl.a, ffv.a, ffy.a, ffm.a, eyp.a, faa.a, ezu.a, ezx.a, ffs.a, fho.a, eyj.a, eym.a, fbn.a, faj.a, fia.a, exx.a, exl.a, fhr.a, fhb.a, fgs.a, fag.a, fel.a, ezr.a, fad.a, eyg.a, ewt.a, ezi.a, exc.a, fap.a, fge.a, fgp.a, fbk.a, fdg.a, fgy.a, fea.a, fcs.a, fbh.a, ewr.a, ezc.a, fdx.a, fif.a, ewz.a, ezf.a, fbt.a, fed.a, fii.a, eyd.a, fam.a, ffp.a, exf.a, fhg.a, ffh.a, fhx.a, fbb.a, fes.a, fiq.a, fjc.a, fin.a, eww.a, fbq.a, ewo.a, fdu.a, fca.a, fay.a, fds.a, ffb.a, eya.a, fgb.a, fey.a, exi.a, fef.a, eyz.a, fcp.a, fev.a, fgm.a, fhe.a, exu.a, fcg.a, ffj.a, fbe.a, fgg.a, fhm.a, fcx.a, ewc.a, ewl.a, ffe.a, ewf.a, fei.a, exo.a, ewi.a, eys.a, fbw.a, fgj.a, fjl.a, fdd.a, fdp.a, fiz.a, evz.a, fhj.a, fep.a, fhu.a);
6929 }
6930
6931 public static evy[] a(evy[]... evyArr) {
6932 int i = 0;
6933 for (evy[] length : evyArr) {
6934 i += length.length;
6935 }
6936 evy[] evyArr2 = new evy[i];
6937 int length2 = evyArr.length;
6938 int i2 = 0;
6939 int i3 = 0;
6940 while (i2 < length2) {
6941 evy[] evyArr3 = evyArr[i2];
6942 i = i3;
6943 i3 = 0;
6944 while (i3 < evyArr3.length) {
6945 int i4 = i + 1;
6946 evyArr2[i] = evyArr3[i3];
6947 i3++;
6948 i = i4;
6949 }
6950 i2++;
6951 i3 = i;
6952 }
6953 return evyArr2;
6954 }
6955
6956 public static Set<evy> a(evy[] evyArr) {
6957 Set<evy> hashSet = new HashSet(evyArr.length);
6958 for (Object add : evyArr) {
6959 hashSet.add(add);
6960 }
6961 return hashSet;
6962 }
6963
6964 public static Set<evy> ad() {
6965 if (cH == null) {
6966 cH = a(ac());
6967 }
6968 return cH;
6969 }
6970
6971 public static Set<evy> ae() {
6972 if (cI == null) {
6973 cI = a(ab());
6974 }
6975 return cI;
6976 }
6977
6978 public static String a(Context context, String str, Map<String, String> map, DroidGuardResultsRequest droidGuardResultsRequest) {
6979 return new fwl(context).a(str, map, null);
6980 }
6981
6982 public static String a(Context context, String str, Map<String, String> map) {
6983 return a(context, str, (Map) map, null);
6984 }
6985
6986 public static boolean af() {
6987 return false;
6988 }
6989
6990 /* JADX WARNING: inconsistent code. */
6991 /* Code decompiled incorrectly, please refer to instructions dump. */
6992 public static android.graphics.Bitmap A(android.app.Activity r2) {
6993 /*
6994 r0 = new java.util.concurrent.FutureTask;
6995 r1 = new flp;
6996 r1.<init>(r2);
6997 r0.<init>(r1);
6998 r2.runOnUiThread(r0);
6999 r0 = r0.get(); Catch:{ InterruptedException -> 0x0014, ExecutionException -> 0x001e }
7000 r0 = (android.graphics.Bitmap) r0; Catch:{ InterruptedException -> 0x0014, ExecutionException -> 0x001e }
7001 L_0x0013:
7002 return r0;
7003 L_0x0014:
7004 r0 = move-exception;
7005 L_0x0015:
7006 r0 = "gH_Utils";
7007 r1 = "Taking screenshot failed!";
7008 android.util.Log.w(r0, r1);
7009 r0 = 0;
7010 goto L_0x0013;
7011 L_0x001e:
7012 r0 = move-exception;
7013 goto L_0x0015;
7014 */
7015 throw new UnsupportedOperationException("Method not decompiled: ux.A(android.app.Activity):android.graphics.Bitmap");
7016 }
7017
7018 public static Bitmap B(Activity activity) {
7019 Bitmap bitmap = null;
7020 try {
7021 View rootView = activity.getWindow().getDecorView().getRootView();
7022 View findViewById = rootView.findViewById(16908290);
7023 if (findViewById != null) {
7024 int B = B((Context) activity) + findViewById.getTop();
7025 if (B < rootView.getHeight()) {
7026 Bitmap createBitmap = Bitmap.createBitmap(rootView.getWidth(), rootView.getHeight(), Config.ARGB_8888);
7027 rootView.draw(new Canvas(createBitmap));
7028 bitmap = Bitmap.createBitmap(createBitmap, 0, B, createBitmap.getWidth(), Math.min(createBitmap.getHeight() - B, findViewById.getHeight()));
7029 }
7030 }
7031 } catch (Throwable e) {
7032 Log.w("gH_Utils", "Get screenshot failed!", e);
7033 }
7034 return bitmap;
7035 }
7036
7037 public static int B(Context context) {
7038 int identifier = context.getResources().getIdentifier("status_bar_height", "dimen", "android");
7039 return identifier != 0 ? context.getResources().getDimensionPixelSize(identifier) : 0;
7040 }
7041
7042 public static String C(Activity activity) {
7043 String charSequence = activity.getTitle().toString();
7044 int identifier = activity.getResources().getIdentifier("action_bar", "id", activity.getPackageName());
7045 if (identifier == 0) {
7046 return charSequence;
7047 }
7048 ViewGroup viewGroup = (ViewGroup) activity.findViewById(identifier);
7049 if (viewGroup == null) {
7050 return charSequence;
7051 }
7052 for (int i = 0; i < viewGroup.getChildCount(); i++) {
7053 View childAt = viewGroup.getChildAt(i);
7054 if (childAt instanceof TextView) {
7055 return ((TextView) childAt).getText().toString();
7056 }
7057 }
7058 return charSequence;
7059 }
7060
7061 public static KeyPair ag() {
7062 try {
7063 KeyPairGenerator instance = KeyPairGenerator.getInstance("RSA");
7064 instance.initialize(2048);
7065 return instance.generateKeyPair();
7066 } catch (NoSuchAlgorithmException e) {
7067 throw new AssertionError(e);
7068 }
7069 }
7070
7071 public ux(gbi gbi) {
7072 cJ = gbi;
7073 }
7074
7075 public fsa<?> a(gbn gbn, fsa<?>... fsa_Arr) {
7076 boolean z;
7077 boolean z2 = true;
7078 if (fsa_Arr != null) {
7079 z = true;
7080 } else {
7081 z = false;
7082 }
7083 c(z);
7084 if (fsa_Arr.length != 1) {
7085 z2 = false;
7086 }
7087 c(z2);
7088 c(fsa_Arr[0] instanceof fsw);
7089 gbi gbi = cJ;
7090 String str = ((fsw) fsa_Arr[0]).b;
7091 if (gbi.a.contains(str)) {
7092 return fsg.e;
7093 }
7094 gbi.b = 0;
7095 return gbi.a(str);
7096 }
7097
7098 public static frq M(String str) {
7099 Object obj = new JSONObject(str).get("resource");
7100 if (obj instanceof JSONObject) {
7101 JSONObject jSONObject = (JSONObject) obj;
7102 frr frr = new frr();
7103 frr.c = jSONObject.optString("version");
7104 fry[] a = a(jSONObject);
7105 JSONArray jSONArray = jSONObject.getJSONArray("properties");
7106 JSONArray jSONArray2 = jSONObject.getJSONArray("key");
7107 List a2 = a(jSONObject.getJSONArray("tags"), jSONArray, jSONArray2, a);
7108 List a3 = a(jSONObject.getJSONArray("predicates"), jSONArray, jSONArray2, a);
7109 List<frs> a4 = a(jSONObject.getJSONArray("macros"), jSONArray, jSONArray2, a);
7110 for (frs frs : a4) {
7111 frr.b.put(((fry) frs.a.get("instance_name")).toString(), frs);
7112 }
7113 jSONArray = jSONObject.getJSONArray("rules");
7114 for (int i = 0; i < jSONArray.length(); i++) {
7115 frr.a.add(a(jSONArray.getJSONObject(i), a2, (List) a4, a3, a));
7116 }
7117 return new frq(frr.a, frr.b, frr.c, 0);
7118 }
7119 throw new fqp("Resource map not found");
7120 }
7121
7122 public static List<frs> a(JSONArray jSONArray, JSONArray jSONArray2, JSONArray jSONArray3, fry[] fryArr) {
7123 List<frs> arrayList = new ArrayList();
7124 for (int i = 0; i < jSONArray.length(); i++) {
7125 arrayList.add(a(jSONArray.getJSONObject(i), jSONArray2, jSONArray3, fryArr));
7126 }
7127 return arrayList;
7128 }
7129
7130 public static frs a(JSONObject jSONObject, JSONArray jSONArray, JSONArray jSONArray2, fry[] fryArr) {
7131 frt frt = new frt();
7132 JSONArray jSONArray3 = jSONObject.getJSONArray("property");
7133 for (int i = 0; i < jSONArray3.length(); i++) {
7134 JSONObject jSONObject2 = (JSONObject) a(jSONArray, jSONArray3.getInt(i), "properties");
7135 String str = (String) a(jSONArray2, jSONObject2.getInt("key"), "key");
7136 fry fry = (fry) a((Object[]) fryArr, jSONObject2.getInt("value"), "value");
7137 if ("push_after_evaluate".equals(str)) {
7138 frt.b = fry;
7139 } else {
7140 frt.a.put(str, fry);
7141 }
7142 }
7143 return new frs(frt.a, frt.b);
7144 }
7145
7146 public static fru a(JSONObject jSONObject, List<frs> list, List<frs> list2, List<frs> list3, fry[] fryArr) {
7147 int i;
7148 int i2;
7149 frv frv = new frv();
7150 JSONArray optJSONArray = jSONObject.optJSONArray("positive_predicate");
7151 JSONArray optJSONArray2 = jSONObject.optJSONArray("negative_predicate");
7152 JSONArray optJSONArray3 = jSONObject.optJSONArray("add_tag");
7153 JSONArray optJSONArray4 = jSONObject.optJSONArray("remove_tag");
7154 JSONArray optJSONArray5 = jSONObject.optJSONArray("add_tag_rule_name");
7155 JSONArray optJSONArray6 = jSONObject.optJSONArray("remove_tag_rule_name");
7156 JSONArray optJSONArray7 = jSONObject.optJSONArray("add_macro");
7157 JSONArray optJSONArray8 = jSONObject.optJSONArray("remove_macro");
7158 JSONArray optJSONArray9 = jSONObject.optJSONArray("add_macro_rule_name");
7159 JSONArray optJSONArray10 = jSONObject.optJSONArray("remove_macro_rule_name");
7160 if (optJSONArray != null) {
7161 for (i = 0; i < optJSONArray.length(); i++) {
7162 frv.a.add((frs) list3.get(optJSONArray.getInt(i)));
7163 }
7164 }
7165 if (optJSONArray2 != null) {
7166 for (i = 0; i < optJSONArray2.length(); i++) {
7167 frv.b.add((frs) list3.get(optJSONArray2.getInt(i)));
7168 }
7169 }
7170 if (optJSONArray3 != null) {
7171 for (i = 0; i < optJSONArray3.length(); i++) {
7172 frv.e.add((frs) list.get(optJSONArray3.getInt(i)));
7173 }
7174 }
7175 if (optJSONArray4 != null) {
7176 for (i = 0; i < optJSONArray4.length(); i++) {
7177 frv.f.add((frs) list.get(optJSONArray4.getInt(i)));
7178 }
7179 }
7180 if (optJSONArray5 != null) {
7181 for (i2 = 0; i2 < optJSONArray5.length(); i2++) {
7182 frv.i.add(fryArr[optJSONArray5.getInt(i2)].toString());
7183 }
7184 }
7185 if (optJSONArray6 != null) {
7186 for (i2 = 0; i2 < optJSONArray6.length(); i2++) {
7187 frv.j.add(fryArr[optJSONArray6.getInt(i2)].toString());
7188 }
7189 }
7190 if (optJSONArray7 != null) {
7191 for (i = 0; i < optJSONArray7.length(); i++) {
7192 frv.c.add((frs) list2.get(optJSONArray7.getInt(i)));
7193 }
7194 }
7195 if (optJSONArray8 != null) {
7196 for (i = 0; i < optJSONArray8.length(); i++) {
7197 frv.d.add((frs) list2.get(optJSONArray8.getInt(i)));
7198 }
7199 }
7200 if (optJSONArray9 != null) {
7201 for (i2 = 0; i2 < optJSONArray9.length(); i2++) {
7202 frv.g.add(fryArr[optJSONArray9.getInt(i2)].toString());
7203 }
7204 }
7205 if (optJSONArray10 != null) {
7206 for (i2 = 0; i2 < optJSONArray10.length(); i2++) {
7207 frv.h.add(fryArr[optJSONArray10.getInt(i2)].toString());
7208 }
7209 }
7210 return new fru(frv.a, frv.b, frv.c, frv.d, frv.e, frv.f, frv.g, frv.h, frv.i, frv.j);
7211 }
7212
7213 public static fry[] a(JSONObject jSONObject) {
7214 Object opt = jSONObject.opt("values");
7215 if (opt instanceof JSONArray) {
7216 JSONArray jSONArray = (JSONArray) opt;
7217 fry[] fryArr = new fry[jSONArray.length()];
7218 for (int i = 0; i < fryArr.length; i++) {
7219 a(i, jSONArray, fryArr, new HashSet(0));
7220 }
7221 return fryArr;
7222 }
7223 throw new fqp("Missing Values list");
7224 }
7225
7226 public static fry a(int i, JSONArray jSONArray, fry[] fryArr, Set<Integer> set) {
7227 int i2 = 0;
7228 if (set.contains(Integer.valueOf(i))) {
7229 O("Value cycle detected. Current value reference: " + i + "." + " Previous value references: " + set + ".");
7230 }
7231 Object a = a(jSONArray, i, "values");
7232 if (fryArr[i] != null) {
7233 return fryArr[i];
7234 }
7235 frz frz;
7236 set.add(Integer.valueOf(i));
7237 JSONArray jSONArray2;
7238 int i3;
7239 if (a instanceof JSONArray) {
7240 jSONArray2 = (JSONArray) a;
7241 List arrayList = new ArrayList();
7242 for (i3 = 0; i3 < jSONArray2.length(); i3++) {
7243 arrayList.add(a(jSONArray2.getInt(i3), jSONArray, fryArr, (Set) set));
7244 }
7245 frz = new frz(2, arrayList);
7246 frz.b = true;
7247 } else if (a instanceof String) {
7248 frz = new frz(1, a);
7249 } else if (a instanceof Boolean) {
7250 frz = new frz(8, a);
7251 } else if (a instanceof Integer) {
7252 frz = new frz(6, a);
7253 } else if (a instanceof JSONObject) {
7254 JSONObject jSONObject = (JSONObject) a;
7255 if (jSONObject.has("function_id")) {
7256 frz = new frz(5, jSONObject.getString("function_id"));
7257 } else if (jSONObject.has("macro_reference")) {
7258 frz = new frz(4, a(jSONObject.getInt("macro_reference"), jSONArray, fryArr, (Set) set).toString());
7259 frz.b = true;
7260 } else if (jSONObject.has("template_token")) {
7261 JSONArray jSONArray3 = jSONObject.getJSONArray("template_token");
7262 List arrayList2 = new ArrayList();
7263 for (i3 = 0; i3 < jSONArray3.length(); i3++) {
7264 arrayList2.add(a(jSONArray3.getInt(i3), jSONArray, fryArr, (Set) set));
7265 }
7266 frz = new frz(7, arrayList2);
7267 frz.b = true;
7268 } else {
7269 Map hashMap = new HashMap();
7270 Iterator keys = jSONObject.keys();
7271 while (keys.hasNext()) {
7272 String str = (String) keys.next();
7273 hashMap.put(a(Integer.parseInt(str), jSONArray, fryArr, (Set) set), a(jSONObject.getInt(str), jSONArray, fryArr, (Set) set));
7274 }
7275 frz = new frz(3, hashMap);
7276 frz.b = true;
7277 }
7278 jSONArray2 = jSONObject.optJSONArray("escaping");
7279 if (jSONArray2 != null) {
7280 while (i2 < jSONArray2.length()) {
7281 frz.a.add(Integer.valueOf(jSONArray2.getInt(i2)));
7282 i2++;
7283 }
7284 }
7285 } else {
7286 O("Invalid value type: " + a);
7287 return null;
7288 }
7289 fry a2 = frz.a();
7290 fryArr[i] = a2;
7291 set.remove(Integer.valueOf(i));
7292 return a2;
7293 }
7294
7295 public static frw N(String str) {
7296 JSONObject jSONObject = new JSONObject(str);
7297 JSONArray optJSONArray = jSONObject.optJSONArray("runtime");
7298 if (optJSONArray == null) {
7299 return null;
7300 }
7301 frx frx = new frx();
7302 Object obj = jSONObject.get("resource");
7303 if (obj instanceof JSONObject) {
7304 frx.b = ((JSONObject) obj).optString("version");
7305 for (int i = 0; i < optJSONArray.length(); i++) {
7306 Object obj2 = optJSONArray.get(i);
7307 if (!(obj2 instanceof JSONArray) || ((JSONArray) obj2).length() != 0) {
7308 frx.a.add(w(obj2));
7309 }
7310 }
7311 return new frw(frx.b, frx.a);
7312 }
7313 throw new fqp("Resource map not found");
7314 }
7315
7316 public static gch w(Object obj) {
7317 String string;
7318 JSONArray jSONArray;
7319 JSONArray jSONArray2;
7320 int i = 0;
7321 if (obj instanceof JSONObject) {
7322 JSONObject jSONObject = (JSONObject) obj;
7323 string = jSONObject.getString("name");
7324 jSONArray = jSONObject.getJSONArray("params");
7325 jSONArray2 = jSONObject.getJSONArray("instructions");
7326 } else if (obj instanceof JSONArray) {
7327 JSONArray jSONArray3 = (JSONArray) obj;
7328 string = jSONArray3.getString(0);
7329 jSONArray = jSONArray3.getJSONArray(1);
7330 jSONArray2 = jSONArray3.getJSONArray(2);
7331 } else {
7332 throw new IllegalArgumentException("invalid JSON in runtime section");
7333 }
7334 List arrayList = new ArrayList();
7335 for (int i2 = 0; i2 < jSONArray.length(); i2++) {
7336 arrayList.add(jSONArray.getString(i2));
7337 }
7338 List arrayList2 = new ArrayList();
7339 while (i < jSONArray2.length()) {
7340 JSONArray jSONArray4 = jSONArray2.getJSONArray(i);
7341 if (jSONArray4.length() != 0) {
7342 arrayList2.add(a(jSONArray4));
7343 }
7344 i++;
7345 }
7346 return new gch(null, string, arrayList, arrayList2);
7347 }
7348
7349 public static fsv a(JSONArray jSONArray) {
7350 int i = 1;
7351 c(jSONArray.length() > 0);
7352 String string = jSONArray.getString(0);
7353 List arrayList = new ArrayList();
7354 while (i < jSONArray.length()) {
7355 Object obj = jSONArray.get(i);
7356 if (obj instanceof JSONArray) {
7357 arrayList.add(a((JSONArray) obj));
7358 } else {
7359 arrayList.add(fsy.a(obj));
7360 }
7361 i++;
7362 }
7363 return new fsv(string, arrayList);
7364 }
7365
7366 public static void O(String str) {
7367 gbe.a(str);
7368 throw new fqp(str);
7369 }
7370
7371 public static <T> T a(JSONArray jSONArray, int i, String str) {
7372 if (i >= 0 && i < jSONArray.length()) {
7373 try {
7374 return jSONArray.get(i);
7375 } catch (JSONException e) {
7376 }
7377 }
7378 O("Index out of bounds detected: " + i + " in " + str);
7379 return null;
7380 }
7381
7382 public static <T> T a(T[] tArr, int i, String str) {
7383 if (i < 0 || i >= tArr.length) {
7384 O("Index out of bounds detected: " + i + " in " + str);
7385 }
7386 return tArr[i];
7387 }
7388
7389 public static fud b(Context context, int i, String str) {
7390 fud fud = new fud();
7391 Locale locale = context.getResources().getConfiguration().locale;
7392 StringBuilder append = new StringBuilder().append(locale.getLanguage());
7393 if (!TextUtils.isEmpty(append.toString())) {
7394 Object country = locale.getCountry();
7395 if (!TextUtils.isEmpty(country)) {
7396 append.append("-").append(country);
7397 }
7398 Object variant = locale.getVariant();
7399 if (!TextUtils.isEmpty(variant)) {
7400 append.append("-").append(variant);
7401 }
7402 fud.a = append.toString();
7403 }
7404 fuh fuh = new fuh();
7405 fuh.a = 1;
7406 fuh.b = context.getResources().getDisplayMetrics().densityDpi;
7407 fuh.c = String.format("%s;%d", new Object[]{VERSION.RELEASE, Integer.valueOf(VERSION.SDK_INT)});
7408 fud.b = fuh;
7409 fud.c = i;
7410 if (str != null) {
7411 fud.d = str;
7412 }
7413 a(fud);
7414 return fud;
7415 }
7416
7417 public static void a(fud fud) {
7418 if (fud.e == null) {
7419 fud.e = new fue();
7420 }
7421 fud.e.a = "8487000";
7422 }
7423
7424 public static <T extends fuu> String a(T t) {
7425 if (t == null) {
7426 return "";
7427 }
7428 StringBuffer stringBuffer = new StringBuffer();
7429 try {
7430 a(null, (Object) t, new StringBuffer(), stringBuffer);
7431 return stringBuffer.toString();
7432 } catch (IllegalAccessException e) {
7433 return "Error printing proto: " + e.getMessage();
7434 } catch (InvocationTargetException e2) {
7435 return "Error printing proto: " + e2.getMessage();
7436 }
7437 }
7438
7439 public static void a(String str, Object obj, StringBuffer stringBuffer, StringBuffer stringBuffer2) {
7440 if (obj == null) {
7441 return;
7442 }
7443 if (obj instanceof fuu) {
7444 int modifiers;
7445 int length = stringBuffer.length();
7446 if (str != null) {
7447 stringBuffer2.append(stringBuffer).append(P(str)).append(" <\n");
7448 stringBuffer.append(" ");
7449 }
7450 Class cls = obj.getClass();
7451 for (Field field : cls.getFields()) {
7452 modifiers = field.getModifiers();
7453 String name = field.getName();
7454 if (!("cachedSize".equals(name) || (modifiers & 1) != 1 || (modifiers & 8) == 8 || name.startsWith("_") || name.endsWith("_"))) {
7455 Class type = field.getType();
7456 Object obj2 = field.get(obj);
7457 if (!type.isArray()) {
7458 a(name, obj2, stringBuffer, stringBuffer2);
7459 } else if (type.getComponentType() == Byte.TYPE) {
7460 a(name, obj2, stringBuffer, stringBuffer2);
7461 } else {
7462 int length2 = obj2 == null ? 0 : Array.getLength(obj2);
7463 for (modifiers = 0; modifiers < length2; modifiers++) {
7464 a(name, Array.get(obj2, modifiers), stringBuffer, stringBuffer2);
7465 }
7466 }
7467 }
7468 }
7469 for (Method name2 : cls.getMethods()) {
7470 String name3 = name2.getName();
7471 if (name3.startsWith("set")) {
7472 String substring = name3.substring(3);
7473 try {
7474 if (((Boolean) cls.getMethod("has" + substring, new Class[0]).invoke(obj, new Object[0])).booleanValue()) {
7475 try {
7476 a(substring, cls.getMethod("get" + substring, new Class[0]).invoke(obj, new Object[0]), stringBuffer, stringBuffer2);
7477 } catch (NoSuchMethodException e) {
7478 }
7479 }
7480 } catch (NoSuchMethodException e2) {
7481 }
7482 }
7483 }
7484 if (str != null) {
7485 stringBuffer.setLength(length);
7486 stringBuffer2.append(stringBuffer).append(">\n");
7487 return;
7488 }
7489 return;
7490 }
7491 stringBuffer2.append(stringBuffer).append(P(str)).append(": ");
7492 if (obj instanceof String) {
7493 stringBuffer2.append("\"").append(Q((String) obj)).append("\"");
7494 } else if (obj instanceof byte[]) {
7495 a((byte[]) obj, stringBuffer2);
7496 } else {
7497 stringBuffer2.append(obj);
7498 }
7499 stringBuffer2.append("\n");
7500 }
7501
7502 public static String P(String str) {
7503 StringBuffer stringBuffer = new StringBuffer();
7504 for (int i = 0; i < str.length(); i++) {
7505 char charAt = str.charAt(i);
7506 if (i == 0) {
7507 stringBuffer.append(Character.toLowerCase(charAt));
7508 } else if (Character.isUpperCase(charAt)) {
7509 stringBuffer.append('_').append(Character.toLowerCase(charAt));
7510 } else {
7511 stringBuffer.append(charAt);
7512 }
7513 }
7514 return stringBuffer.toString();
7515 }
7516
7517 public static String Q(String str) {
7518 if (!str.startsWith("http") && str.length() > 200) {
7519 str = str.substring(0, 200) + "[...]";
7520 }
7521 return R(str);
7522 }
7523
7524 public static String R(String str) {
7525 int length = str.length();
7526 StringBuilder stringBuilder = new StringBuilder(length);
7527 for (int i = 0; i < length; i++) {
7528 char charAt = str.charAt(i);
7529 if (charAt < ' ' || charAt > '~' || charAt == '\"' || charAt == '\'') {
7530 stringBuilder.append(String.format("\\u%04x", new Object[]{Integer.valueOf(charAt)}));
7531 } else {
7532 stringBuilder.append(charAt);
7533 }
7534 }
7535 return stringBuilder.toString();
7536 }
7537
7538 public static void a(byte[] bArr, StringBuffer stringBuffer) {
7539 if (bArr == null) {
7540 stringBuffer.append("\"\"");
7541 return;
7542 }
7543 stringBuffer.append('\"');
7544 for (byte b : bArr) {
7545 int i = b & 255;
7546 if (i == 92 || i == 34) {
7547 stringBuffer.append('\\').append((char) i);
7548 } else if (i < 32 || i >= 127) {
7549 stringBuffer.append(String.format("\\%03o", new Object[]{Integer.valueOf(i)}));
7550 } else {
7551 stringBuffer.append((char) i);
7552 }
7553 }
7554 stringBuffer.append('\"');
7555 }
7556
7557 public static void b(Editor editor) {
7558 if (VERSION.SDK_INT >= 9) {
7559 editor.apply();
7560 } else {
7561 new Thread(new gbo(editor)).start();
7562 }
7563 }
7564
7565 @SuppressLint({"CommitPrefEdits"})
7566 public static void a(Context context, String str, String str2, String str3) {
7567 Editor edit = context.getSharedPreferences(str, 0).edit();
7568 edit.putString(str2, str3);
7569 b(edit);
7570 }
7571
7572 public static ExecutorService ah() {
7573 return gca.a;
7574 }
7575
7576 public static ScheduledExecutorService ai() {
7577 return gcc.a;
7578 }
7579
7580 public static int A(int i) {
7581 switch (i) {
7582 case yq.AppCompatTheme_buttonBarNeutralButtonStyle /*100*/:
7583 case yq.AppCompatTheme_autoCompleteTextViewStyle /*101*/:
7584 case yq.AppCompatTheme_buttonStyle /*102*/:
7585 case yq.AppCompatTheme_buttonStyleSmall /*103*/:
7586 case yq.AppCompatTheme_checkboxStyle /*104*/:
7587 case yq.AppCompatTheme_checkedTextViewStyle /*105*/:
7588 case yq.AppCompatTheme_editTextStyle /*106*/:
7589 case yq.AppCompatTheme_radioButtonStyle /*107*/:
7590 case yq.AppCompatTheme_ratingBarStyle /*108*/:
7591 return i;
7592 default:
7593 throw new IllegalArgumentException("invalid source: " + i);
7594 }
7595 }
7596
7597 public static giu aj() {
7598 return (giu) e(cK, (Object) "CameraUpdateFactory is not initialized");
7599 }
7600
7601 public static void a(giu giu) {
7602 cK = (giu) v((Object) giu);
7603 }
7604
7605 public static gic a(CameraPosition cameraPosition) {
7606 try {
7607 return new gic(aj().a(cameraPosition));
7608 } catch (RemoteException e) {
7609 throw new em(e);
7610 }
7611 }
7612
7613 public static Boolean a(byte b) {
7614 switch (b) {
7615 case yu.RecyclerView_android_orientation /*0*/:
7616 return Boolean.FALSE;
7617 case yu.RecyclerView_android_descendantFocusability /*1*/:
7618 return Boolean.TRUE;
7619 default:
7620 return null;
7621 }
7622 }
7623
7624 public static byte a(Boolean bool) {
7625 if (bool != null) {
7626 return bool.booleanValue() ? (byte) 1 : (byte) 0;
7627 } else {
7628 return (byte) -1;
7629 }
7630 }
7631
7632 public static void a(gnl gnl) {
7633 if (cL == null) {
7634 cL = (gnl) v((Object) gnl);
7635 }
7636 }
7637
7638 public static boolean ak() {
7639 return Log.isLoggable("PeopleClientCall", 3);
7640 }
7641
7642 public static void b(String str, Object... objArr) {
7643 StringBuilder stringBuilder = new StringBuilder();
7644 stringBuilder.append(str);
7645 stringBuilder.append("(");
7646 String str2 = "";
7647 for (Object obj : objArr) {
7648 stringBuilder.append(str2);
7649 if (obj instanceof Bundle) {
7650 stringBuilder.append(gva.a((Bundle) obj));
7651 } else {
7652 stringBuilder.append(obj);
7653 }
7654 str2 = ", ";
7655 }
7656 stringBuilder.append(")");
7657 if (Log.isLoggable("PeopleClientCall", 2)) {
7658 Throwable th = new Throwable("STACK TRACE (It's not crash!)");
7659 }
7660 }
7661
7662 public static String d(Object... objArr) {
7663 int i = 0;
7664 StringBuilder stringBuilder = new StringBuilder();
7665 c(objArr.length % 2 == 0);
7666 String str = "";
7667 while (i < objArr.length) {
7668 stringBuilder.append(str);
7669 stringBuilder.append(objArr[i]);
7670 stringBuilder.append("=");
7671 stringBuilder.append(objArr[i + 1]);
7672 str = ", ";
7673 i += 2;
7674 }
7675 return stringBuilder.toString();
7676 }
7677
7678 public static boolean al() {
7679 return B(3);
7680 }
7681
7682 public static boolean B(int i) {
7683 boolean z = cM;
7684 return Log.isLoggable("PeopleService", i);
7685 }
7686
7687 public static void g(String str, String str2) {
7688 B(3);
7689 }
7690
7691 public static void h(String str, String str2) {
7692 if (B(5)) {
7693 Log.w(str, str2);
7694 }
7695 }
7696
7697 public static void a(String str, String str2, Throwable th) {
7698 if (B(5)) {
7699 Log.w(str, str2, th);
7700 }
7701 }
7702
7703 public static String d(byte[] bArr) {
7704 StringBuilder stringBuilder = new StringBuilder();
7705 for (byte b : bArr) {
7706 if ((b & 240) == 0) {
7707 stringBuilder.append("0");
7708 }
7709 stringBuilder.append(Integer.toHexString(b & 255));
7710 }
7711 return stringBuilder.toString().toUpperCase();
7712 }
7713
7714 public static byte[] S(String str) {
7715 int length = str.length();
7716 if (length % 2 != 0) {
7717 throw new IllegalArgumentException("purported base16 string has odd number of characters");
7718 }
7719 byte[] bArr = new byte[(length / 2)];
7720 for (int i = 0; i < length; i += 2) {
7721 int digit = Character.digit(str.charAt(i), 16);
7722 int digit2 = Character.digit(str.charAt(i + 1), 16);
7723 if (digit == -1 || digit2 == -1) {
7724 throw new IllegalArgumentException("purported base16 string has illegal char");
7725 }
7726 bArr[i / 2] = (byte) ((digit << 4) + digit2);
7727 }
7728 return bArr;
7729 }
7730
7731 public static void a(gzp gzp, fss fss) {
7732 if (fss.b == null) {
7733 haa.b("supplemental missing experimentSupplemental");
7734 return;
7735 }
7736 a(gzp, fss.b);
7737 b(gzp, fss.b);
7738 c(gzp, fss.b);
7739 }
7740
7741 public static void a(gzp gzp, fsn fsn) {
7742 for (ftl a : fsn.b) {
7743 gzp.a(hds.a(a));
7744 }
7745 }
7746
7747 public static void b(gzp gzp, fsn fsn) {
7748 for (ftl a : fsn.a) {
7749 Map a2 = a(a);
7750 if (a2 != null) {
7751 gzp.a(a2);
7752 }
7753 }
7754 }
7755
7756 public static void c(gzp gzp, fsn fsn) {
7757 for (fsm fsm : fsn.c) {
7758 if (fsm.a == null) {
7759 haa.b("GaExperimentRandom: No key");
7760 } else {
7761 Object b = gzp.b(fsm.a);
7762 Long valueOf = !(b instanceof Number) ? null : Long.valueOf(((Number) b).longValue());
7763 long j = fsm.b;
7764 long j2 = fsm.c;
7765 if (!fsm.d || valueOf == null || valueOf.longValue() < j || valueOf.longValue() > j2) {
7766 if (j <= j2) {
7767 b = Long.valueOf(Math.round((Math.random() * ((double) (j2 - j))) + ((double) j)));
7768 } else {
7769 haa.b("GaExperimentRandom: random range invalid");
7770 }
7771 }
7772 gzp.a(fsm.a);
7773 Map a = gzp.a(fsm.a, b);
7774 if (fsm.e > 0) {
7775 if (a.containsKey("gtm")) {
7776 Object obj = a.get("gtm");
7777 if (obj instanceof Map) {
7778 ((Map) obj).put("lifetime", Long.valueOf(fsm.e));
7779 } else {
7780 haa.b("GaExperimentRandom: gtm not a map");
7781 }
7782 } else {
7783 a.put("gtm", gzp.a("lifetime", Long.valueOf(fsm.e)));
7784 }
7785 }
7786 gzp.a(a);
7787 }
7788 }
7789 }
7790
7791 public static Map<String, Object> a(ftl ftl) {
7792 Object e = hds.e(ftl);
7793 if (e instanceof Map) {
7794 return (Map) e;
7795 }
7796 haa.b("value: " + e + " is not a map value, ignored.");
7797 return null;
7798 }
7799
7800 public static ftd T(String str) {
7801 ftl x = x(new JSONObject(str));
7802 fte a = ftd.a();
7803 for (int i = 0; i < x.d.length; i++) {
7804 a.a(ftb.a().a(fqq.INSTANCE_NAME.toString(), x.d[i]).a(fqq.FUNCTION.toString(), hds.a(heh.b)).a(heh.c, x.e[i]).a());
7805 }
7806 return a.a();
7807 }
7808
7809 public static ftl x(Object obj) {
7810 return hds.a(y(obj));
7811 }
7812
7813 public static Object y(Object obj) {
7814 if (obj instanceof JSONArray) {
7815 throw new RuntimeException("JSONArrays are not supported");
7816 } else if (JSONObject.NULL.equals(obj)) {
7817 throw new RuntimeException("JSON nulls are not supported");
7818 } else if (!(obj instanceof JSONObject)) {
7819 return obj;
7820 } else {
7821 JSONObject jSONObject = (JSONObject) obj;
7822 Map hashMap = new HashMap();
7823 Iterator keys = jSONObject.keys();
7824 while (keys.hasNext()) {
7825 String str = (String) keys.next();
7826 hashMap.put(str, y(jSONObject.get(str)));
7827 }
7828 return hashMap;
7829 }
7830 }
7831
7832 public static hbv<ftl> a(hbv<ftl> hbv_ftl, int... iArr) {
7833 hbv a;
7834 for (int a2 : iArr) {
7835 a = a(a, a2);
7836 }
7837 return a;
7838 }
7839
7840 public static String U(String str) {
7841 return URLEncoder.encode(str, "UTF-8").replaceAll("\\+", "%20");
7842 }
7843
7844 public static hbv<ftl> a(hbv<ftl> hbv_ftl, int i) {
7845 if (b((ftl) hbv_ftl.a)) {
7846 switch (i) {
7847 case yq.Toolbar_titleTextAppearance /*12*/:
7848 return a((hbv) hbv_ftl);
7849 default:
7850 haa.a("Unsupported Value Escaping: " + i);
7851 return hbv_ftl;
7852 }
7853 }
7854 haa.a("Escaping can only be applied to strings.");
7855 return hbv_ftl;
7856 }
7857
7858 public static hbv<ftl> a(hbv<ftl> hbv_ftl) {
7859 try {
7860 return new hbv(hds.a(U(hds.a((ftl) hbv_ftl.a))), hbv_ftl.b);
7861 } catch (Throwable e) {
7862 haa.a("Escape URI: unsupported encoding", e);
7863 return hbv_ftl;
7864 }
7865 }
7866
7867 public static boolean b(ftl ftl) {
7868 return hds.e(ftl) instanceof String;
7869 }
7870
7871 public static String V(String str) {
7872 if (str != null && ((str.startsWith("GMT+") || str.startsWith("GMT-")) && str.indexOf(46) > 0)) {
7873 try {
7874 char charAt = str.charAt(3);
7875 float abs = Math.abs(Float.parseFloat(str.substring(4))) % 24.0f;
7876 int i = (int) abs;
7877 int i2 = (int) ((abs * 60.0f) % 60.0f);
7878 str = String.format(Locale.US, "GMT%c%d:%d", new Object[]{Character.valueOf(charAt), Integer.valueOf(i), Integer.valueOf(i2)});
7879 } catch (NumberFormatException e) {
7880 String str2 = "ClockUtils";
7881 String str3 = "Invalid time zone: ";
7882 String valueOf = String.valueOf(str);
7883 Log.w(str2, valueOf.length() != 0 ? str3.concat(valueOf) : new String(str3));
7884 }
7885 }
7886 return str;
7887 }
7888
7889 public static hwk a(Context context, hwz hwz) {
7890 return new hwh(context, hwz);
7891 }
7892
7893 public static hxo a(hxo hxo) {
7894 return hxo;
7895 }
7896
7897 public static hwt a(hwt hwt) {
7898 return hwt;
7899 }
7900
7901 public static hwy am() {
7902 return new hwy();
7903 }
7904
7905 public static String a(String str, String str2, String str3, String str4, String str5) {
7906 Uri.Builder builder = new Uri.Builder();
7907 builder.scheme("https").authority(str).appendPath("url");
7908 builder.appendQueryParameter("sa", "T");
7909 if (!TextUtils.isEmpty(str4)) {
7910 builder.appendQueryParameter("sig2", str4);
7911 }
7912 builder.appendQueryParameter("ved", str3);
7913 if (!TextUtils.isEmpty(str2)) {
7914 builder.appendQueryParameter("url", str2);
7915 }
7916 if (!TextUtils.isEmpty(str5)) {
7917 builder.appendQueryParameter("sqi", str5);
7918 }
7919 return builder.build().toString();
7920 }
7921
7922 public static String a(List<hwr> list, kha kha, hwv hwv) {
7923 if (kha == null && list.size() <= 0) {
7924 etr.wtf("LoggerHelper", "logInfo is null or grafts is empty, eventId returned null!", hgo.EMPTY_GRAFT, hwv, null, new Object[0]);
7925 return null;
7926 } else if (kha != null) {
7927 return kha.f;
7928 } else {
7929 kha kha2 = ((hwr) list.get(0)).a;
7930 if (kha2 != null) {
7931 return kha2.f;
7932 }
7933 return null;
7934 }
7935 }
7936
7937 public static iat an() {
7938 return new iat();
7939 }
7940
7941 public static jnv W(String str) {
7942 jnv jnv = new jnv();
7943 try {
7944 byte[] decode = Base64.decode(str, 11);
7945 kce a = kce.a(decode, 0, decode.length, false);
7946 long h = ((((long) a.h()) & 4294967295L) * 1000000) + ((long) a.f());
7947 int f = a.f();
7948 f = (f & 16777215) | ((((f >> 24) + 10) & 255) << 24);
7949 int f2 = a.f();
7950 jnv.a = h;
7951 jnv.b = f;
7952 jnv.c = f2;
7953 return jnv;
7954 } catch (Throwable e) {
7955 throw new IOException("Bad encoded data inside an EI", e);
7956 }
7957 }
7958
7959 public static ifi ao() {
7960 return idv.a;
7961 }
7962
7963 public static ifi ap() {
7964 return idv.b;
7965 }
7966
7967 public static ifi aq() {
7968 return idv.c;
7969 }
7970
7971 public static boolean C(Context context) {
7972 if (D(context) == 0.0f) {
7973 return true;
7974 }
7975 if (VERSION.SDK_INT >= 21) {
7976 return ((PowerManager) context.getSystemService("power")).isPowerSaveMode();
7977 }
7978 return false;
7979 }
7980
7981 public static float D(Context context) {
7982 ContentResolver contentResolver = context.getContentResolver();
7983 if (VERSION.SDK_INT == 16) {
7984 return System.getFloat(contentResolver, "animator_duration_scale", 1.0f);
7985 }
7986 if (VERSION.SDK_INT >= 17) {
7987 return Global.getFloat(contentResolver, "animator_duration_scale", 1.0f);
7988 }
7989 return 1.0f;
7990 }
7991
7992 public static float b(float f, float f2, float f3, float f4) {
7993 if (f > f2 && f > f3 && f > f4) {
7994 return f;
7995 }
7996 if (f2 <= f3 || f2 <= f4) {
7997 return f3 > f4 ? f3 : f4;
7998 } else {
7999 return f2;
8000 }
8001 }
8002
8003 public static float c(float f, float f2, float f3, float f4) {
8004 return (float) Math.hypot((double) (f3 - f), (double) (f4 - f2));
8005 }
8006
8007 public static float a(float f, float f2, float f3, float f4, float f5, float f6) {
8008 return b(c(f, f2, f3, f4), c(f, f2, f5, f4), c(f, f2, f5, f6), c(f, f2, f3, f6));
8009 }
8010
8011 public static ObjectAnimator b(Object obj, String str) {
8012 ObjectAnimator ofFloat = ObjectAnimator.ofFloat(obj, str, new float[]{1.0f});
8013 ofFloat.setInterpolator(aq());
8014 ofFloat.setDuration(500);
8015 return ofFloat;
8016 }
8017
8018 public static ObjectAnimator c(Object obj, String str) {
8019 ObjectAnimator ofFloat = ObjectAnimator.ofFloat(obj, str, new float[]{0.0f});
8020 ofFloat.setInterpolator(aq());
8021 ofFloat.setDuration(500);
8022 return ofFloat;
8023 }
8024
8025 public static File E(Context context) {
8026 etr.checkNotNull(context);
8027 return new File(context.getCacheDir(), "primeshprof");
8028 }
8029
8030 public static void F(Context context) {
8031 File E = E(context);
8032 if (E.exists()) {
8033 E.delete();
8034 }
8035 }
8036
8037 public static int G(Context context) {
8038 try {
8039 int type;
8040 ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService("connectivity");
8041 if (connectivityManager != null) {
8042 NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();
8043 if (activeNetworkInfo != null) {
8044 type = activeNetworkInfo.getType();
8045 return type;
8046 }
8047 }
8048 type = -1;
8049 return type;
8050 } catch (SecurityException e) {
8051 if (!Log.isLoggable("NetworkCapture", 5)) {
8052 return -1;
8053 }
8054 Log.w("NetworkCapture", "Failed to get network type, Please add: android.permission.ACCESS_NETWORK_STATE to AndroidManifest.xml");
8055 return -1;
8056 }
8057 }
8058
8059 public static ljj H(Context context) {
8060 return a(null, context);
8061 }
8062
8063 public static ljj a(String str, Context context) {
8064 ljj ljj = new ljj();
8065 ljj.a = Long.valueOf(Process.getElapsedCpuTime());
8066 ljj.b = Boolean.valueOf(ikg.b(context));
8067 ljj.c = Integer.valueOf(Thread.activeCount());
8068 if (str != null) {
8069 ljj.d = str;
8070 }
8071 return ljj;
8072 }
8073
8074 public static long ar() {
8075 return SystemClock.elapsedRealtime();
8076 }
8077
8078 public static ikl a(ikp ikp, ikn ikn, iko iko, int i, long j) {
8079 iih iih = iih.c;
8080 return a(iih.a(), ikp, ikn, iko, 1000, 100);
8081 }
8082
8083 public static ikl a(ScheduledExecutorService scheduledExecutorService, ikp ikp, ikn ikn, iko iko, int i, long j) {
8084 ikl ikr = new ikr(i, iko);
8085 scheduledExecutorService.schedule(new ikm(ikp, ikr, ikn), j, TimeUnit.MILLISECONDS);
8086 return ikr;
8087 }
8088
8089 public static iks a(Context context, hyi hyi, hza hza, hyf hyf, String str) {
8090 return new iks(context, hyi, hza, hyf, str);
8091 }
8092
8093 public static Long a(Application application) {
8094 try {
8095 try {
8096 return Long.valueOf(Long.parseLong(application.getResources().getString(cb.do)));
8097 } catch (NumberFormatException e) {
8098 String str = "PrimesVersion";
8099 String str2 = "Couldn't parse Primes version number from ";
8100 String valueOf = String.valueOf(r0);
8101 Log.w(str, valueOf.length() != 0 ? str2.concat(valueOf) : new String(str2));
8102 return null;
8103 }
8104 } catch (NotFoundException e2) {
8105 Log.w("PrimesVersion", "Primes version number string not found");
8106 }
8107 }
8108
8109 public static Set<Integer> as() {
8110 Set<Integer> hashSet = new HashSet(57);
8111 hashSet.add(Integer.valueOf(7));
8112 hashSet.add(Integer.valueOf(27));
8113 hashSet.add(Integer.valueOf(30));
8114 hashSet.add(Integer.valueOf(31));
8115 hashSet.add(Integer.valueOf(34));
8116 hashSet.add(Integer.valueOf(36));
8117 hashSet.add(Integer.valueOf(43));
8118 hashSet.add(Integer.valueOf(44));
8119 hashSet.add(Integer.valueOf(49));
8120 hashSet.add(Integer.valueOf(54));
8121 hashSet.add(Integer.valueOf(55));
8122 hashSet.add(Integer.valueOf(58));
8123 hashSet.add(Integer.valueOf(61));
8124 hashSet.add(Integer.valueOf(62));
8125 hashSet.add(Integer.valueOf(63));
8126 hashSet.add(Integer.valueOf(66));
8127 hashSet.add(Integer.valueOf(81));
8128 hashSet.add(Integer.valueOf(84));
8129 hashSet.add(Integer.valueOf(90));
8130 hashSet.add(Integer.valueOf(91));
8131 hashSet.add(Integer.valueOf(94));
8132 hashSet.add(Integer.valueOf(95));
8133 hashSet.add(Integer.valueOf(255));
8134 hashSet.add(Integer.valueOf(350));
8135 hashSet.add(Integer.valueOf(351));
8136 hashSet.add(Integer.valueOf(352));
8137 hashSet.add(Integer.valueOf(358));
8138 hashSet.add(Integer.valueOf(359));
8139 hashSet.add(Integer.valueOf(372));
8140 hashSet.add(Integer.valueOf(373));
8141 hashSet.add(Integer.valueOf(380));
8142 hashSet.add(Integer.valueOf(381));
8143 hashSet.add(Integer.valueOf(385));
8144 hashSet.add(Integer.valueOf(505));
8145 hashSet.add(Integer.valueOf(506));
8146 hashSet.add(Integer.valueOf(595));
8147 hashSet.add(Integer.valueOf(675));
8148 hashSet.add(Integer.valueOf(676));
8149 hashSet.add(Integer.valueOf(679));
8150 hashSet.add(Integer.valueOf(855));
8151 hashSet.add(Integer.valueOf(971));
8152 hashSet.add(Integer.valueOf(972));
8153 hashSet.add(Integer.valueOf(995));
8154 return hashSet;
8155 }
8156
8157 public static Map<Integer, List<String>> at() {
8158 Map<Integer, List<String>> hashMap = new HashMap(285);
8159 ArrayList arrayList = new ArrayList(25);
8160 arrayList.add("US");
8161 arrayList.add("AG");
8162 arrayList.add("AI");
8163 arrayList.add("AS");
8164 arrayList.add("BB");
8165 arrayList.add("BM");
8166 arrayList.add("BS");
8167 arrayList.add("CA");
8168 arrayList.add("DM");
8169 arrayList.add("DO");
8170 arrayList.add("GD");
8171 arrayList.add("GU");
8172 arrayList.add("JM");
8173 arrayList.add("KN");
8174 arrayList.add("KY");
8175 arrayList.add("LC");
8176 arrayList.add("MP");
8177 arrayList.add("MS");
8178 arrayList.add("PR");
8179 arrayList.add("SX");
8180 arrayList.add("TC");
8181 arrayList.add("TT");
8182 arrayList.add("VC");
8183 arrayList.add("VG");
8184 arrayList.add("VI");
8185 hashMap.put(Integer.valueOf(1), arrayList);
8186 arrayList = new ArrayList(2);
8187 arrayList.add("RU");
8188 arrayList.add("KZ");
8189 hashMap.put(Integer.valueOf(7), arrayList);
8190 arrayList = new ArrayList(1);
8191 arrayList.add("EG");
8192 hashMap.put(Integer.valueOf(20), arrayList);
8193 arrayList = new ArrayList(1);
8194 arrayList.add("ZA");
8195 hashMap.put(Integer.valueOf(27), arrayList);
8196 arrayList = new ArrayList(1);
8197 arrayList.add("GR");
8198 hashMap.put(Integer.valueOf(30), arrayList);
8199 arrayList = new ArrayList(1);
8200 arrayList.add("NL");
8201 hashMap.put(Integer.valueOf(31), arrayList);
8202 arrayList = new ArrayList(1);
8203 arrayList.add("BE");
8204 hashMap.put(Integer.valueOf(32), arrayList);
8205 arrayList = new ArrayList(1);
8206 arrayList.add("FR");
8207 hashMap.put(Integer.valueOf(33), arrayList);
8208 arrayList = new ArrayList(1);
8209 arrayList.add("ES");
8210 hashMap.put(Integer.valueOf(34), arrayList);
8211 arrayList = new ArrayList(1);
8212 arrayList.add("HU");
8213 hashMap.put(Integer.valueOf(36), arrayList);
8214 arrayList = new ArrayList(2);
8215 arrayList.add("IT");
8216 arrayList.add("VA");
8217 hashMap.put(Integer.valueOf(39), arrayList);
8218 arrayList = new ArrayList(1);
8219 arrayList.add("RO");
8220 hashMap.put(Integer.valueOf(40), arrayList);
8221 arrayList = new ArrayList(1);
8222 arrayList.add("CH");
8223 hashMap.put(Integer.valueOf(41), arrayList);
8224 arrayList = new ArrayList(1);
8225 arrayList.add("AT");
8226 hashMap.put(Integer.valueOf(43), arrayList);
8227 arrayList = new ArrayList(4);
8228 arrayList.add("GB");
8229 arrayList.add("GG");
8230 arrayList.add("IM");
8231 arrayList.add("JE");
8232 hashMap.put(Integer.valueOf(44), arrayList);
8233 arrayList = new ArrayList(1);
8234 arrayList.add("DK");
8235 hashMap.put(Integer.valueOf(45), arrayList);
8236 arrayList = new ArrayList(1);
8237 arrayList.add("SE");
8238 hashMap.put(Integer.valueOf(46), arrayList);
8239 arrayList = new ArrayList(2);
8240 arrayList.add("NO");
8241 arrayList.add("SJ");
8242 hashMap.put(Integer.valueOf(47), arrayList);
8243 arrayList = new ArrayList(1);
8244 arrayList.add("PL");
8245 hashMap.put(Integer.valueOf(48), arrayList);
8246 arrayList = new ArrayList(1);
8247 arrayList.add("DE");
8248 hashMap.put(Integer.valueOf(49), arrayList);
8249 arrayList = new ArrayList(1);
8250 arrayList.add("PE");
8251 hashMap.put(Integer.valueOf(51), arrayList);
8252 arrayList = new ArrayList(1);
8253 arrayList.add("MX");
8254 hashMap.put(Integer.valueOf(52), arrayList);
8255 arrayList = new ArrayList(1);
8256 arrayList.add("CU");
8257 hashMap.put(Integer.valueOf(53), arrayList);
8258 arrayList = new ArrayList(1);
8259 arrayList.add("AR");
8260 hashMap.put(Integer.valueOf(54), arrayList);
8261 arrayList = new ArrayList(1);
8262 arrayList.add("BR");
8263 hashMap.put(Integer.valueOf(55), arrayList);
8264 arrayList = new ArrayList(1);
8265 arrayList.add("CL");
8266 hashMap.put(Integer.valueOf(56), arrayList);
8267 arrayList = new ArrayList(1);
8268 arrayList.add("CO");
8269 hashMap.put(Integer.valueOf(57), arrayList);
8270 arrayList = new ArrayList(1);
8271 arrayList.add("VE");
8272 hashMap.put(Integer.valueOf(58), arrayList);
8273 arrayList = new ArrayList(1);
8274 arrayList.add("MY");
8275 hashMap.put(Integer.valueOf(60), arrayList);
8276 arrayList = new ArrayList(3);
8277 arrayList.add("AU");
8278 arrayList.add("CC");
8279 arrayList.add("CX");
8280 hashMap.put(Integer.valueOf(61), arrayList);
8281 arrayList = new ArrayList(1);
8282 arrayList.add("ID");
8283 hashMap.put(Integer.valueOf(62), arrayList);
8284 arrayList = new ArrayList(1);
8285 arrayList.add("PH");
8286 hashMap.put(Integer.valueOf(63), arrayList);
8287 arrayList = new ArrayList(1);
8288 arrayList.add("NZ");
8289 hashMap.put(Integer.valueOf(64), arrayList);
8290 arrayList = new ArrayList(1);
8291 arrayList.add("SG");
8292 hashMap.put(Integer.valueOf(65), arrayList);
8293 arrayList = new ArrayList(1);
8294 arrayList.add("TH");
8295 hashMap.put(Integer.valueOf(66), arrayList);
8296 arrayList = new ArrayList(1);
8297 arrayList.add("JP");
8298 hashMap.put(Integer.valueOf(81), arrayList);
8299 arrayList = new ArrayList(1);
8300 arrayList.add("KR");
8301 hashMap.put(Integer.valueOf(82), arrayList);
8302 arrayList = new ArrayList(1);
8303 arrayList.add("VN");
8304 hashMap.put(Integer.valueOf(84), arrayList);
8305 arrayList = new ArrayList(1);
8306 arrayList.add("CN");
8307 hashMap.put(Integer.valueOf(86), arrayList);
8308 arrayList = new ArrayList(1);
8309 arrayList.add("TR");
8310 hashMap.put(Integer.valueOf(90), arrayList);
8311 arrayList = new ArrayList(1);
8312 arrayList.add("IN");
8313 hashMap.put(Integer.valueOf(91), arrayList);
8314 arrayList = new ArrayList(1);
8315 arrayList.add("PK");
8316 hashMap.put(Integer.valueOf(92), arrayList);
8317 arrayList = new ArrayList(1);
8318 arrayList.add("AF");
8319 hashMap.put(Integer.valueOf(93), arrayList);
8320 arrayList = new ArrayList(1);
8321 arrayList.add("LK");
8322 hashMap.put(Integer.valueOf(94), arrayList);
8323 arrayList = new ArrayList(1);
8324 arrayList.add("MM");
8325 hashMap.put(Integer.valueOf(95), arrayList);
8326 arrayList = new ArrayList(1);
8327 arrayList.add("IR");
8328 hashMap.put(Integer.valueOf(98), arrayList);
8329 arrayList = new ArrayList(1);
8330 arrayList.add("SS");
8331 hashMap.put(Integer.valueOf(211), arrayList);
8332 arrayList = new ArrayList(2);
8333 arrayList.add("MA");
8334 arrayList.add("EH");
8335 hashMap.put(Integer.valueOf(212), arrayList);
8336 arrayList = new ArrayList(1);
8337 arrayList.add("DZ");
8338 hashMap.put(Integer.valueOf(213), arrayList);
8339 arrayList = new ArrayList(1);
8340 arrayList.add("TN");
8341 hashMap.put(Integer.valueOf(216), arrayList);
8342 arrayList = new ArrayList(1);
8343 arrayList.add("LY");
8344 hashMap.put(Integer.valueOf(218), arrayList);
8345 arrayList = new ArrayList(1);
8346 arrayList.add("GM");
8347 hashMap.put(Integer.valueOf(220), arrayList);
8348 arrayList = new ArrayList(1);
8349 arrayList.add("SN");
8350 hashMap.put(Integer.valueOf(221), arrayList);
8351 arrayList = new ArrayList(1);
8352 arrayList.add("MR");
8353 hashMap.put(Integer.valueOf(222), arrayList);
8354 arrayList = new ArrayList(1);
8355 arrayList.add("ML");
8356 hashMap.put(Integer.valueOf(223), arrayList);
8357 arrayList = new ArrayList(1);
8358 arrayList.add("GN");
8359 hashMap.put(Integer.valueOf(224), arrayList);
8360 arrayList = new ArrayList(1);
8361 arrayList.add("CI");
8362 hashMap.put(Integer.valueOf(225), arrayList);
8363 arrayList = new ArrayList(1);
8364 arrayList.add("BF");
8365 hashMap.put(Integer.valueOf(226), arrayList);
8366 arrayList = new ArrayList(1);
8367 arrayList.add("NE");
8368 hashMap.put(Integer.valueOf(227), arrayList);
8369 arrayList = new ArrayList(1);
8370 arrayList.add("TG");
8371 hashMap.put(Integer.valueOf(228), arrayList);
8372 arrayList = new ArrayList(1);
8373 arrayList.add("BJ");
8374 hashMap.put(Integer.valueOf(229), arrayList);
8375 arrayList = new ArrayList(1);
8376 arrayList.add("MU");
8377 hashMap.put(Integer.valueOf(230), arrayList);
8378 arrayList = new ArrayList(1);
8379 arrayList.add("LR");
8380 hashMap.put(Integer.valueOf(231), arrayList);
8381 arrayList = new ArrayList(1);
8382 arrayList.add("SL");
8383 hashMap.put(Integer.valueOf(232), arrayList);
8384 arrayList = new ArrayList(1);
8385 arrayList.add("GH");
8386 hashMap.put(Integer.valueOf(233), arrayList);
8387 arrayList = new ArrayList(1);
8388 arrayList.add("NG");
8389 hashMap.put(Integer.valueOf(234), arrayList);
8390 arrayList = new ArrayList(1);
8391 arrayList.add("TD");
8392 hashMap.put(Integer.valueOf(235), arrayList);
8393 arrayList = new ArrayList(1);
8394 arrayList.add("CF");
8395 hashMap.put(Integer.valueOf(236), arrayList);
8396 arrayList = new ArrayList(1);
8397 arrayList.add("CM");
8398 hashMap.put(Integer.valueOf(237), arrayList);
8399 arrayList = new ArrayList(1);
8400 arrayList.add("CV");
8401 hashMap.put(Integer.valueOf(238), arrayList);
8402 arrayList = new ArrayList(1);
8403 arrayList.add("ST");
8404 hashMap.put(Integer.valueOf(239), arrayList);
8405 arrayList = new ArrayList(1);
8406 arrayList.add("GQ");
8407 hashMap.put(Integer.valueOf(240), arrayList);
8408 arrayList = new ArrayList(1);
8409 arrayList.add("GA");
8410 hashMap.put(Integer.valueOf(241), arrayList);
8411 arrayList = new ArrayList(1);
8412 arrayList.add("CG");
8413 hashMap.put(Integer.valueOf(242), arrayList);
8414 arrayList = new ArrayList(1);
8415 arrayList.add("CD");
8416 hashMap.put(Integer.valueOf(243), arrayList);
8417 arrayList = new ArrayList(1);
8418 arrayList.add("AO");
8419 hashMap.put(Integer.valueOf(244), arrayList);
8420 arrayList = new ArrayList(1);
8421 arrayList.add("GW");
8422 hashMap.put(Integer.valueOf(245), arrayList);
8423 arrayList = new ArrayList(1);
8424 arrayList.add("IO");
8425 hashMap.put(Integer.valueOf(246), arrayList);
8426 arrayList = new ArrayList(1);
8427 arrayList.add("AC");
8428 hashMap.put(Integer.valueOf(247), arrayList);
8429 arrayList = new ArrayList(1);
8430 arrayList.add("SC");
8431 hashMap.put(Integer.valueOf(248), arrayList);
8432 arrayList = new ArrayList(1);
8433 arrayList.add("SD");
8434 hashMap.put(Integer.valueOf(249), arrayList);
8435 arrayList = new ArrayList(1);
8436 arrayList.add("RW");
8437 hashMap.put(Integer.valueOf(250), arrayList);
8438 arrayList = new ArrayList(1);
8439 arrayList.add("ET");
8440 hashMap.put(Integer.valueOf(251), arrayList);
8441 arrayList = new ArrayList(1);
8442 arrayList.add("SO");
8443 hashMap.put(Integer.valueOf(252), arrayList);
8444 arrayList = new ArrayList(1);
8445 arrayList.add("DJ");
8446 hashMap.put(Integer.valueOf(253), arrayList);
8447 arrayList = new ArrayList(1);
8448 arrayList.add("KE");
8449 hashMap.put(Integer.valueOf(254), arrayList);
8450 arrayList = new ArrayList(1);
8451 arrayList.add("TZ");
8452 hashMap.put(Integer.valueOf(255), arrayList);
8453 arrayList = new ArrayList(1);
8454 arrayList.add("UG");
8455 hashMap.put(Integer.valueOf(256), arrayList);
8456 arrayList = new ArrayList(1);
8457 arrayList.add("BI");
8458 hashMap.put(Integer.valueOf(257), arrayList);
8459 arrayList = new ArrayList(1);
8460 arrayList.add("MZ");
8461 hashMap.put(Integer.valueOf(258), arrayList);
8462 arrayList = new ArrayList(1);
8463 arrayList.add("ZM");
8464 hashMap.put(Integer.valueOf(260), arrayList);
8465 arrayList = new ArrayList(1);
8466 arrayList.add("MG");
8467 hashMap.put(Integer.valueOf(261), arrayList);
8468 arrayList = new ArrayList(2);
8469 arrayList.add("RE");
8470 arrayList.add("YT");
8471 hashMap.put(Integer.valueOf(262), arrayList);
8472 arrayList = new ArrayList(1);
8473 arrayList.add("ZW");
8474 hashMap.put(Integer.valueOf(263), arrayList);
8475 arrayList = new ArrayList(1);
8476 arrayList.add("NA");
8477 hashMap.put(Integer.valueOf(264), arrayList);
8478 arrayList = new ArrayList(1);
8479 arrayList.add("MW");
8480 hashMap.put(Integer.valueOf(265), arrayList);
8481 arrayList = new ArrayList(1);
8482 arrayList.add("LS");
8483 hashMap.put(Integer.valueOf(266), arrayList);
8484 arrayList = new ArrayList(1);
8485 arrayList.add("BW");
8486 hashMap.put(Integer.valueOf(267), arrayList);
8487 arrayList = new ArrayList(1);
8488 arrayList.add("SZ");
8489 hashMap.put(Integer.valueOf(268), arrayList);
8490 arrayList = new ArrayList(1);
8491 arrayList.add("KM");
8492 hashMap.put(Integer.valueOf(269), arrayList);
8493 arrayList = new ArrayList(2);
8494 arrayList.add("SH");
8495 arrayList.add("TA");
8496 hashMap.put(Integer.valueOf(290), arrayList);
8497 arrayList = new ArrayList(1);
8498 arrayList.add("ER");
8499 hashMap.put(Integer.valueOf(291), arrayList);
8500 arrayList = new ArrayList(1);
8501 arrayList.add("AW");
8502 hashMap.put(Integer.valueOf(297), arrayList);
8503 arrayList = new ArrayList(1);
8504 arrayList.add("FO");
8505 hashMap.put(Integer.valueOf(298), arrayList);
8506 arrayList = new ArrayList(1);
8507 arrayList.add("GL");
8508 hashMap.put(Integer.valueOf(299), arrayList);
8509 arrayList = new ArrayList(1);
8510 arrayList.add("GI");
8511 hashMap.put(Integer.valueOf(350), arrayList);
8512 arrayList = new ArrayList(1);
8513 arrayList.add("PT");
8514 hashMap.put(Integer.valueOf(351), arrayList);
8515 arrayList = new ArrayList(1);
8516 arrayList.add("LU");
8517 hashMap.put(Integer.valueOf(352), arrayList);
8518 arrayList = new ArrayList(1);
8519 arrayList.add("IE");
8520 hashMap.put(Integer.valueOf(353), arrayList);
8521 arrayList = new ArrayList(1);
8522 arrayList.add("IS");
8523 hashMap.put(Integer.valueOf(354), arrayList);
8524 arrayList = new ArrayList(1);
8525 arrayList.add("AL");
8526 hashMap.put(Integer.valueOf(355), arrayList);
8527 arrayList = new ArrayList(1);
8528 arrayList.add("MT");
8529 hashMap.put(Integer.valueOf(356), arrayList);
8530 arrayList = new ArrayList(1);
8531 arrayList.add("CY");
8532 hashMap.put(Integer.valueOf(357), arrayList);
8533 arrayList = new ArrayList(2);
8534 arrayList.add("FI");
8535 arrayList.add("AX");
8536 hashMap.put(Integer.valueOf(358), arrayList);
8537 arrayList = new ArrayList(1);
8538 arrayList.add("BG");
8539 hashMap.put(Integer.valueOf(359), arrayList);
8540 arrayList = new ArrayList(1);
8541 arrayList.add("LT");
8542 hashMap.put(Integer.valueOf(370), arrayList);
8543 arrayList = new ArrayList(1);
8544 arrayList.add("LV");
8545 hashMap.put(Integer.valueOf(371), arrayList);
8546 arrayList = new ArrayList(1);
8547 arrayList.add("EE");
8548 hashMap.put(Integer.valueOf(372), arrayList);
8549 arrayList = new ArrayList(1);
8550 arrayList.add("MD");
8551 hashMap.put(Integer.valueOf(373), arrayList);
8552 arrayList = new ArrayList(1);
8553 arrayList.add("AM");
8554 hashMap.put(Integer.valueOf(374), arrayList);
8555 arrayList = new ArrayList(1);
8556 arrayList.add("BY");
8557 hashMap.put(Integer.valueOf(375), arrayList);
8558 arrayList = new ArrayList(1);
8559 arrayList.add("AD");
8560 hashMap.put(Integer.valueOf(376), arrayList);
8561 arrayList = new ArrayList(1);
8562 arrayList.add("MC");
8563 hashMap.put(Integer.valueOf(377), arrayList);
8564 arrayList = new ArrayList(1);
8565 arrayList.add("SM");
8566 hashMap.put(Integer.valueOf(378), arrayList);
8567 arrayList = new ArrayList(1);
8568 arrayList.add("UA");
8569 hashMap.put(Integer.valueOf(380), arrayList);
8570 arrayList = new ArrayList(1);
8571 arrayList.add("RS");
8572 hashMap.put(Integer.valueOf(381), arrayList);
8573 arrayList = new ArrayList(1);
8574 arrayList.add("ME");
8575 hashMap.put(Integer.valueOf(382), arrayList);
8576 arrayList = new ArrayList(1);
8577 arrayList.add("HR");
8578 hashMap.put(Integer.valueOf(385), arrayList);
8579 arrayList = new ArrayList(1);
8580 arrayList.add("SI");
8581 hashMap.put(Integer.valueOf(386), arrayList);
8582 arrayList = new ArrayList(1);
8583 arrayList.add("BA");
8584 hashMap.put(Integer.valueOf(387), arrayList);
8585 arrayList = new ArrayList(1);
8586 arrayList.add("MK");
8587 hashMap.put(Integer.valueOf(389), arrayList);
8588 arrayList = new ArrayList(1);
8589 arrayList.add("CZ");
8590 hashMap.put(Integer.valueOf(420), arrayList);
8591 arrayList = new ArrayList(1);
8592 arrayList.add("SK");
8593 hashMap.put(Integer.valueOf(421), arrayList);
8594 arrayList = new ArrayList(1);
8595 arrayList.add("LI");
8596 hashMap.put(Integer.valueOf(423), arrayList);
8597 arrayList = new ArrayList(1);
8598 arrayList.add("FK");
8599 hashMap.put(Integer.valueOf(500), arrayList);
8600 arrayList = new ArrayList(1);
8601 arrayList.add("BZ");
8602 hashMap.put(Integer.valueOf(501), arrayList);
8603 arrayList = new ArrayList(1);
8604 arrayList.add("GT");
8605 hashMap.put(Integer.valueOf(502), arrayList);
8606 arrayList = new ArrayList(1);
8607 arrayList.add("SV");
8608 hashMap.put(Integer.valueOf(503), arrayList);
8609 arrayList = new ArrayList(1);
8610 arrayList.add("HN");
8611 hashMap.put(Integer.valueOf(504), arrayList);
8612 arrayList = new ArrayList(1);
8613 arrayList.add("NI");
8614 hashMap.put(Integer.valueOf(505), arrayList);
8615 arrayList = new ArrayList(1);
8616 arrayList.add("CR");
8617 hashMap.put(Integer.valueOf(506), arrayList);
8618 arrayList = new ArrayList(1);
8619 arrayList.add("PA");
8620 hashMap.put(Integer.valueOf(507), arrayList);
8621 arrayList = new ArrayList(1);
8622 arrayList.add("PM");
8623 hashMap.put(Integer.valueOf(508), arrayList);
8624 arrayList = new ArrayList(1);
8625 arrayList.add("HT");
8626 hashMap.put(Integer.valueOf(509), arrayList);
8627 arrayList = new ArrayList(3);
8628 arrayList.add("GP");
8629 arrayList.add("BL");
8630 arrayList.add("MF");
8631 hashMap.put(Integer.valueOf(590), arrayList);
8632 arrayList = new ArrayList(1);
8633 arrayList.add("BO");
8634 hashMap.put(Integer.valueOf(591), arrayList);
8635 arrayList = new ArrayList(1);
8636 arrayList.add("GY");
8637 hashMap.put(Integer.valueOf(592), arrayList);
8638 arrayList = new ArrayList(1);
8639 arrayList.add("EC");
8640 hashMap.put(Integer.valueOf(593), arrayList);
8641 arrayList = new ArrayList(1);
8642 arrayList.add("GF");
8643 hashMap.put(Integer.valueOf(594), arrayList);
8644 arrayList = new ArrayList(1);
8645 arrayList.add("PY");
8646 hashMap.put(Integer.valueOf(595), arrayList);
8647 arrayList = new ArrayList(1);
8648 arrayList.add("MQ");
8649 hashMap.put(Integer.valueOf(596), arrayList);
8650 arrayList = new ArrayList(1);
8651 arrayList.add("SR");
8652 hashMap.put(Integer.valueOf(597), arrayList);
8653 arrayList = new ArrayList(1);
8654 arrayList.add("UY");
8655 hashMap.put(Integer.valueOf(598), arrayList);
8656 arrayList = new ArrayList(2);
8657 arrayList.add("CW");
8658 arrayList.add("BQ");
8659 hashMap.put(Integer.valueOf(599), arrayList);
8660 arrayList = new ArrayList(1);
8661 arrayList.add("TL");
8662 hashMap.put(Integer.valueOf(670), arrayList);
8663 arrayList = new ArrayList(1);
8664 arrayList.add("NF");
8665 hashMap.put(Integer.valueOf(672), arrayList);
8666 arrayList = new ArrayList(1);
8667 arrayList.add("BN");
8668 hashMap.put(Integer.valueOf(673), arrayList);
8669 arrayList = new ArrayList(1);
8670 arrayList.add("NR");
8671 hashMap.put(Integer.valueOf(674), arrayList);
8672 arrayList = new ArrayList(1);
8673 arrayList.add("PG");
8674 hashMap.put(Integer.valueOf(675), arrayList);
8675 arrayList = new ArrayList(1);
8676 arrayList.add("TO");
8677 hashMap.put(Integer.valueOf(676), arrayList);
8678 arrayList = new ArrayList(1);
8679 arrayList.add("SB");
8680 hashMap.put(Integer.valueOf(677), arrayList);
8681 arrayList = new ArrayList(1);
8682 arrayList.add("VU");
8683 hashMap.put(Integer.valueOf(678), arrayList);
8684 arrayList = new ArrayList(1);
8685 arrayList.add("FJ");
8686 hashMap.put(Integer.valueOf(679), arrayList);
8687 arrayList = new ArrayList(1);
8688 arrayList.add("PW");
8689 hashMap.put(Integer.valueOf(680), arrayList);
8690 arrayList = new ArrayList(1);
8691 arrayList.add("WF");
8692 hashMap.put(Integer.valueOf(681), arrayList);
8693 arrayList = new ArrayList(1);
8694 arrayList.add("CK");
8695 hashMap.put(Integer.valueOf(682), arrayList);
8696 arrayList = new ArrayList(1);
8697 arrayList.add("NU");
8698 hashMap.put(Integer.valueOf(683), arrayList);
8699 arrayList = new ArrayList(1);
8700 arrayList.add("WS");
8701 hashMap.put(Integer.valueOf(685), arrayList);
8702 arrayList = new ArrayList(1);
8703 arrayList.add("KI");
8704 hashMap.put(Integer.valueOf(686), arrayList);
8705 arrayList = new ArrayList(1);
8706 arrayList.add("NC");
8707 hashMap.put(Integer.valueOf(687), arrayList);
8708 arrayList = new ArrayList(1);
8709 arrayList.add("TV");
8710 hashMap.put(Integer.valueOf(688), arrayList);
8711 arrayList = new ArrayList(1);
8712 arrayList.add("PF");
8713 hashMap.put(Integer.valueOf(689), arrayList);
8714 arrayList = new ArrayList(1);
8715 arrayList.add("TK");
8716 hashMap.put(Integer.valueOf(690), arrayList);
8717 arrayList = new ArrayList(1);
8718 arrayList.add("FM");
8719 hashMap.put(Integer.valueOf(691), arrayList);
8720 arrayList = new ArrayList(1);
8721 arrayList.add("MH");
8722 hashMap.put(Integer.valueOf(692), arrayList);
8723 arrayList = new ArrayList(1);
8724 arrayList.add("001");
8725 hashMap.put(Integer.valueOf(800), arrayList);
8726 arrayList = new ArrayList(1);
8727 arrayList.add("001");
8728 hashMap.put(Integer.valueOf(808), arrayList);
8729 arrayList = new ArrayList(1);
8730 arrayList.add("KP");
8731 hashMap.put(Integer.valueOf(850), arrayList);
8732 arrayList = new ArrayList(1);
8733 arrayList.add("HK");
8734 hashMap.put(Integer.valueOf(852), arrayList);
8735 arrayList = new ArrayList(1);
8736 arrayList.add("MO");
8737 hashMap.put(Integer.valueOf(853), arrayList);
8738 arrayList = new ArrayList(1);
8739 arrayList.add("KH");
8740 hashMap.put(Integer.valueOf(855), arrayList);
8741 arrayList = new ArrayList(1);
8742 arrayList.add("LA");
8743 hashMap.put(Integer.valueOf(856), arrayList);
8744 arrayList = new ArrayList(1);
8745 arrayList.add("001");
8746 hashMap.put(Integer.valueOf(870), arrayList);
8747 arrayList = new ArrayList(1);
8748 arrayList.add("001");
8749 hashMap.put(Integer.valueOf(878), arrayList);
8750 arrayList = new ArrayList(1);
8751 arrayList.add("BD");
8752 hashMap.put(Integer.valueOf(880), arrayList);
8753 arrayList = new ArrayList(1);
8754 arrayList.add("001");
8755 hashMap.put(Integer.valueOf(881), arrayList);
8756 arrayList = new ArrayList(1);
8757 arrayList.add("001");
8758 hashMap.put(Integer.valueOf(882), arrayList);
8759 arrayList = new ArrayList(1);
8760 arrayList.add("001");
8761 hashMap.put(Integer.valueOf(883), arrayList);
8762 arrayList = new ArrayList(1);
8763 arrayList.add("TW");
8764 hashMap.put(Integer.valueOf(886), arrayList);
8765 arrayList = new ArrayList(1);
8766 arrayList.add("001");
8767 hashMap.put(Integer.valueOf(888), arrayList);
8768 arrayList = new ArrayList(1);
8769 arrayList.add("MV");
8770 hashMap.put(Integer.valueOf(960), arrayList);
8771 arrayList = new ArrayList(1);
8772 arrayList.add("LB");
8773 hashMap.put(Integer.valueOf(961), arrayList);
8774 arrayList = new ArrayList(1);
8775 arrayList.add("JO");
8776 hashMap.put(Integer.valueOf(962), arrayList);
8777 arrayList = new ArrayList(1);
8778 arrayList.add("SY");
8779 hashMap.put(Integer.valueOf(963), arrayList);
8780 arrayList = new ArrayList(1);
8781 arrayList.add("IQ");
8782 hashMap.put(Integer.valueOf(964), arrayList);
8783 arrayList = new ArrayList(1);
8784 arrayList.add("KW");
8785 hashMap.put(Integer.valueOf(965), arrayList);
8786 arrayList = new ArrayList(1);
8787 arrayList.add("SA");
8788 hashMap.put(Integer.valueOf(966), arrayList);
8789 arrayList = new ArrayList(1);
8790 arrayList.add("YE");
8791 hashMap.put(Integer.valueOf(967), arrayList);
8792 arrayList = new ArrayList(1);
8793 arrayList.add("OM");
8794 hashMap.put(Integer.valueOf(968), arrayList);
8795 arrayList = new ArrayList(1);
8796 arrayList.add("PS");
8797 hashMap.put(Integer.valueOf(970), arrayList);
8798 arrayList = new ArrayList(1);
8799 arrayList.add("AE");
8800 hashMap.put(Integer.valueOf(971), arrayList);
8801 arrayList = new ArrayList(1);
8802 arrayList.add("IL");
8803 hashMap.put(Integer.valueOf(972), arrayList);
8804 arrayList = new ArrayList(1);
8805 arrayList.add("BH");
8806 hashMap.put(Integer.valueOf(973), arrayList);
8807 arrayList = new ArrayList(1);
8808 arrayList.add("QA");
8809 hashMap.put(Integer.valueOf(974), arrayList);
8810 arrayList = new ArrayList(1);
8811 arrayList.add("BT");
8812 hashMap.put(Integer.valueOf(975), arrayList);
8813 arrayList = new ArrayList(1);
8814 arrayList.add("MN");
8815 hashMap.put(Integer.valueOf(976), arrayList);
8816 arrayList = new ArrayList(1);
8817 arrayList.add("NP");
8818 hashMap.put(Integer.valueOf(977), arrayList);
8819 arrayList = new ArrayList(1);
8820 arrayList.add("001");
8821 hashMap.put(Integer.valueOf(979), arrayList);
8822 arrayList = new ArrayList(1);
8823 arrayList.add("TJ");
8824 hashMap.put(Integer.valueOf(992), arrayList);
8825 arrayList = new ArrayList(1);
8826 arrayList.add("TM");
8827 hashMap.put(Integer.valueOf(993), arrayList);
8828 arrayList = new ArrayList(1);
8829 arrayList.add("AZ");
8830 hashMap.put(Integer.valueOf(994), arrayList);
8831 arrayList = new ArrayList(1);
8832 arrayList.add("GE");
8833 hashMap.put(Integer.valueOf(995), arrayList);
8834 arrayList = new ArrayList(1);
8835 arrayList.add("KG");
8836 hashMap.put(Integer.valueOf(996), arrayList);
8837 arrayList = new ArrayList(1);
8838 arrayList.add("UZ");
8839 hashMap.put(Integer.valueOf(998), arrayList);
8840 return hashMap;
8841 }
8842
8843 public static Set<String> au() {
8844 Set<String> hashSet = new HashSet(317);
8845 hashSet.add("AC");
8846 hashSet.add("AD");
8847 hashSet.add("AE");
8848 hashSet.add("AF");
8849 hashSet.add("AG");
8850 hashSet.add("AI");
8851 hashSet.add("AL");
8852 hashSet.add("AM");
8853 hashSet.add("AO");
8854 hashSet.add("AR");
8855 hashSet.add("AS");
8856 hashSet.add("AT");
8857 hashSet.add("AU");
8858 hashSet.add("AW");
8859 hashSet.add("AX");
8860 hashSet.add("AZ");
8861 hashSet.add("BA");
8862 hashSet.add("BB");
8863 hashSet.add("BD");
8864 hashSet.add("BE");
8865 hashSet.add("BF");
8866 hashSet.add("BG");
8867 hashSet.add("BH");
8868 hashSet.add("BI");
8869 hashSet.add("BJ");
8870 hashSet.add("BL");
8871 hashSet.add("BM");
8872 hashSet.add("BN");
8873 hashSet.add("BO");
8874 hashSet.add("BQ");
8875 hashSet.add("BR");
8876 hashSet.add("BS");
8877 hashSet.add("BT");
8878 hashSet.add("BW");
8879 hashSet.add("BY");
8880 hashSet.add("BZ");
8881 hashSet.add("CA");
8882 hashSet.add("CC");
8883 hashSet.add("CD");
8884 hashSet.add("CF");
8885 hashSet.add("CG");
8886 hashSet.add("CH");
8887 hashSet.add("CI");
8888 hashSet.add("CK");
8889 hashSet.add("CL");
8890 hashSet.add("CM");
8891 hashSet.add("CN");
8892 hashSet.add("CO");
8893 hashSet.add("CR");
8894 hashSet.add("CU");
8895 hashSet.add("CV");
8896 hashSet.add("CW");
8897 hashSet.add("CX");
8898 hashSet.add("CY");
8899 hashSet.add("CZ");
8900 hashSet.add("DE");
8901 hashSet.add("DJ");
8902 hashSet.add("DK");
8903 hashSet.add("DM");
8904 hashSet.add("DO");
8905 hashSet.add("DZ");
8906 hashSet.add("EC");
8907 hashSet.add("EE");
8908 hashSet.add("EG");
8909 hashSet.add("EH");
8910 hashSet.add("ER");
8911 hashSet.add("ES");
8912 hashSet.add("ET");
8913 hashSet.add("FI");
8914 hashSet.add("FJ");
8915 hashSet.add("FK");
8916 hashSet.add("FM");
8917 hashSet.add("FO");
8918 hashSet.add("FR");
8919 hashSet.add("GA");
8920 hashSet.add("GB");
8921 hashSet.add("GD");
8922 hashSet.add("GE");
8923 hashSet.add("GF");
8924 hashSet.add("GG");
8925 hashSet.add("GH");
8926 hashSet.add("GI");
8927 hashSet.add("GL");
8928 hashSet.add("GM");
8929 hashSet.add("GN");
8930 hashSet.add("GP");
8931 hashSet.add("GR");
8932 hashSet.add("GT");
8933 hashSet.add("GU");
8934 hashSet.add("GW");
8935 hashSet.add("GY");
8936 hashSet.add("HK");
8937 hashSet.add("HN");
8938 hashSet.add("HR");
8939 hashSet.add("HT");
8940 hashSet.add("HU");
8941 hashSet.add("ID");
8942 hashSet.add("IE");
8943 hashSet.add("IL");
8944 hashSet.add("IM");
8945 hashSet.add("IN");
8946 hashSet.add("IQ");
8947 hashSet.add("IR");
8948 hashSet.add("IS");
8949 hashSet.add("IT");
8950 hashSet.add("JE");
8951 hashSet.add("JM");
8952 hashSet.add("JO");
8953 hashSet.add("JP");
8954 hashSet.add("KE");
8955 hashSet.add("KG");
8956 hashSet.add("KH");
8957 hashSet.add("KI");
8958 hashSet.add("KM");
8959 hashSet.add("KN");
8960 hashSet.add("KP");
8961 hashSet.add("KR");
8962 hashSet.add("KW");
8963 hashSet.add("KY");
8964 hashSet.add("KZ");
8965 hashSet.add("LA");
8966 hashSet.add("LB");
8967 hashSet.add("LC");
8968 hashSet.add("LI");
8969 hashSet.add("LK");
8970 hashSet.add("LR");
8971 hashSet.add("LS");
8972 hashSet.add("LT");
8973 hashSet.add("LU");
8974 hashSet.add("LV");
8975 hashSet.add("LY");
8976 hashSet.add("MA");
8977 hashSet.add("MC");
8978 hashSet.add("MD");
8979 hashSet.add("ME");
8980 hashSet.add("MF");
8981 hashSet.add("MG");
8982 hashSet.add("MH");
8983 hashSet.add("MK");
8984 hashSet.add("ML");
8985 hashSet.add("MM");
8986 hashSet.add("MN");
8987 hashSet.add("MO");
8988 hashSet.add("MP");
8989 hashSet.add("MQ");
8990 hashSet.add("MR");
8991 hashSet.add("MS");
8992 hashSet.add("MT");
8993 hashSet.add("MU");
8994 hashSet.add("MV");
8995 hashSet.add("MW");
8996 hashSet.add("MX");
8997 hashSet.add("MY");
8998 hashSet.add("MZ");
8999 hashSet.add("NA");
9000 hashSet.add("NC");
9001 hashSet.add("NE");
9002 hashSet.add("NF");
9003 hashSet.add("NG");
9004 hashSet.add("NI");
9005 hashSet.add("NL");
9006 hashSet.add("NO");
9007 hashSet.add("NP");
9008 hashSet.add("NR");
9009 hashSet.add("NU");
9010 hashSet.add("NZ");
9011 hashSet.add("OM");
9012 hashSet.add("PA");
9013 hashSet.add("PE");
9014 hashSet.add("PF");
9015 hashSet.add("PG");
9016 hashSet.add("PH");
9017 hashSet.add("PK");
9018 hashSet.add("PL");
9019 hashSet.add("PM");
9020 hashSet.add("PR");
9021 hashSet.add("PT");
9022 hashSet.add("PW");
9023 hashSet.add("PY");
9024 hashSet.add("QA");
9025 hashSet.add("RE");
9026 hashSet.add("RO");
9027 hashSet.add("RS");
9028 hashSet.add("RU");
9029 hashSet.add("RW");
9030 hashSet.add("SA");
9031 hashSet.add("SB");
9032 hashSet.add("SC");
9033 hashSet.add("SD");
9034 hashSet.add("SE");
9035 hashSet.add("SG");
9036 hashSet.add("SH");
9037 hashSet.add("SI");
9038 hashSet.add("SJ");
9039 hashSet.add("SK");
9040 hashSet.add("SL");
9041 hashSet.add("SM");
9042 hashSet.add("SN");
9043 hashSet.add("SO");
9044 hashSet.add("SR");
9045 hashSet.add("ST");
9046 hashSet.add("SV");
9047 hashSet.add("SX");
9048 hashSet.add("SY");
9049 hashSet.add("SZ");
9050 hashSet.add("TC");
9051 hashSet.add("TD");
9052 hashSet.add("TG");
9053 hashSet.add("TH");
9054 hashSet.add("TJ");
9055 hashSet.add("TL");
9056 hashSet.add("TM");
9057 hashSet.add("TN");
9058 hashSet.add("TO");
9059 hashSet.add("TR");
9060 hashSet.add("TT");
9061 hashSet.add("TV");
9062 hashSet.add("TW");
9063 hashSet.add("TZ");
9064 hashSet.add("UA");
9065 hashSet.add("UG");
9066 hashSet.add("US");
9067 hashSet.add("UY");
9068 hashSet.add("UZ");
9069 hashSet.add("VA");
9070 hashSet.add("VC");
9071 hashSet.add("VE");
9072 hashSet.add("VG");
9073 hashSet.add("VI");
9074 hashSet.add("VN");
9075 hashSet.add("VU");
9076 hashSet.add("WF");
9077 hashSet.add("WS");
9078 hashSet.add("YE");
9079 hashSet.add("YT");
9080 hashSet.add("ZA");
9081 hashSet.add("ZM");
9082 hashSet.add("ZW");
9083 return hashSet;
9084 }
9085
9086 public static ine a(irb irb) {
9087 return new ine(irb);
9088 }
9089
9090 public static imv a(irb irb, ine ine, inc inc) {
9091 return new imv(irb, ine, inc);
9092 }
9093
9094 public static imi a(Activity activity, irb irb) {
9095 return new imi(activity, irb);
9096 }
9097
9098 public static ArrayList<inv> I(Context context) {
9099 Context applicationContext = context.getApplicationContext();
9100 String packageName = applicationContext.getPackageName();
9101 try {
9102 return a(applicationContext.getPackageManager().getServiceInfo(new ComponentName(applicationContext, "com.google.android.libraries.social.licenses.MetadataHolder"), 640), "");
9103 } catch (Throwable e) {
9104 throw new RuntimeException(String.format("Could not find application info for package: %s", new Object[]{packageName}), e);
9105 }
9106 }
9107
9108 public static ArrayList<inv> a(ServiceInfo serviceInfo, String str) {
9109 Bundle bundle;
9110 Bundle bundle2 = Bundle.EMPTY;
9111 if (serviceInfo != null) {
9112 bundle = serviceInfo.metaData != null ? serviceInfo.metaData : Bundle.EMPTY;
9113 } else {
9114 bundle = bundle2;
9115 }
9116 Object arrayList = new ArrayList();
9117 for (String str2 : bundle.keySet()) {
9118 if (str2.startsWith("com.google.android.libraries.social.licenses.LICENSE.")) {
9119 boolean z;
9120 String[] split = bundle.getString(str2).split(":");
9121 if (split.length == 2) {
9122 z = true;
9123 } else {
9124 z = false;
9125 }
9126 String str3 = "Invalid license meta-data value for element: ";
9127 String valueOf = String.valueOf(str2);
9128 etr.checkState(z, valueOf.length() != 0 ? str3.concat(valueOf) : new String(str3));
9129 arrayList.add(new inv(str2.substring(53), Long.parseLong(split[0]), Integer.parseInt(split[1]), str));
9130 }
9131 }
9132 Collections.sort(arrayList);
9133 return arrayList;
9134 }
9135
9136 public static String a(Context context, inv inv) {
9137 JarFile jarFile;
9138 Throwable e;
9139 String valueOf;
9140 if (inv.d.isEmpty()) {
9141 Resources resources = context.getApplicationContext().getResources();
9142 return a(inv, resources.openRawResource(resources.getIdentifier("third_party_licenses", "raw", resources.getResourcePackageName(gy.a))));
9143 }
9144 try {
9145 jarFile = new JarFile(inv.d);
9146 try {
9147 String a = a(inv, jarFile.getInputStream(jarFile.getJarEntry("res/raw/third_party_licenses")));
9148 try {
9149 jarFile.close();
9150 return a;
9151 } catch (IOException e2) {
9152 return a;
9153 }
9154 } catch (IOException e3) {
9155 e = e3;
9156 try {
9157 valueOf = String.valueOf(inv);
9158 throw new RuntimeException(new StringBuilder(String.valueOf(valueOf).length() + 32).append("Failed to read license text for ").append(valueOf).toString(), e);
9159 } catch (Throwable th) {
9160 e = th;
9161 if (jarFile != null) {
9162 try {
9163 jarFile.close();
9164 } catch (IOException e4) {
9165 }
9166 }
9167 throw e;
9168 }
9169 }
9170 } catch (IOException e5) {
9171 e = e5;
9172 jarFile = null;
9173 valueOf = String.valueOf(inv);
9174 throw new RuntimeException(new StringBuilder(String.valueOf(valueOf).length() + 32).append("Failed to read license text for ").append(valueOf).toString(), e);
9175 } catch (Throwable th2) {
9176 e = th2;
9177 jarFile = null;
9178 if (jarFile != null) {
9179 jarFile.close();
9180 }
9181 throw e;
9182 }
9183 }
9184
9185 public static String a(inv inv, InputStream inputStream) {
9186 byte[] bArr = new byte[inv.c];
9187 try {
9188 inputStream.skip(inv.b);
9189 int i = 0;
9190 while (i < bArr.length) {
9191 int read = inputStream.read(bArr, i, bArr.length - i);
9192 if (read <= 0) {
9193 break;
9194 }
9195 i += read;
9196 }
9197 inputStream.close();
9198 try {
9199 return new String(bArr, "UTF8");
9200 } catch (Throwable e) {
9201 throw new RuntimeException("Unsupported encoding UTF8. This should always be supported.", e);
9202 }
9203 } catch (Throwable e2) {
9204 String valueOf = String.valueOf(inv);
9205 throw new RuntimeException(new StringBuilder(String.valueOf(valueOf).length() + 32).append("Failed to read license text for ").append(valueOf).toString(), e2);
9206 }
9207 }
9208
9209 public static iod a(iop iop, imv imv, irb irb) {
9210 return new ioe(iop, imv, irb);
9211 }
9212
9213 public static iop b(Activity activity, irb irb) {
9214 return new iop(activity, irb);
9215 }
9216
9217 public static void a(eu euVar) {
9218 if (dp == null) {
9219 try {
9220 dp = euVar.getClass().getMethod("noteStateNotSaved", new Class[0]);
9221 } catch (NoSuchMethodException e) {
9222 av();
9223 }
9224 }
9225 try {
9226 ((Method) etr.checkNotNull(dp)).invoke(euVar, new Object[0]);
9227 } catch (IllegalAccessException e2) {
9228 av();
9229 } catch (InvocationTargetException e3) {
9230 av();
9231 }
9232 }
9233
9234 public static void av() {
9235 throw new IllegalStateException("Could not access method FragmentManager#noteStateNotSaved");
9236 }
9237
9238 public static <T> T[] a(T[] tArr, T[] tArr2) {
9239 if (tArr == null) {
9240 return tArr2;
9241 }
9242 if (tArr2 == null) {
9243 return tArr;
9244 }
9245 int length = tArr.length;
9246 if (length == 0) {
9247 return tArr2;
9248 }
9249 int length2 = tArr2.length;
9250 if (length2 == 0) {
9251 return tArr;
9252 }
9253 tArr = Arrays.copyOf(tArr, length + length2);
9254 System.arraycopy(tArr2, 0, tArr, length, length2);
9255 return tArr;
9256 }
9257
9258 public static boolean f(Object obj, Object obj2) {
9259 if (obj == null) {
9260 return obj2 == null;
9261 } else {
9262 return obj.equals(obj2);
9263 }
9264 }
9265
9266 public static boolean aw() {
9267 if (dq == null) {
9268 dq = Looper.getMainLooper().getThread();
9269 }
9270 return Thread.currentThread() == dq;
9271 }
9272
9273 public static void ax() {
9274 if (!aw()) {
9275 throw new RuntimeException("Must be called on the UI thread");
9276 }
9277 }
9278
9279 public static void ay() {
9280 if (aw()) {
9281 throw new RuntimeException("Must be called on a background thread");
9282 }
9283 }
9284
9285 public static Handler az() {
9286 if (dr == null) {
9287 dr = new Handler(Looper.getMainLooper());
9288 }
9289 return dr;
9290 }
9291
9292 public static void a(Runnable runnable) {
9293 az().post(runnable);
9294 }
9295
9296 public static void a(Runnable runnable, long j) {
9297 az().postDelayed(runnable, j);
9298 }
9299
9300 public static void b(Runnable runnable) {
9301 az().removeCallbacks(runnable);
9302 }
9303
9304 public static ivy a(Application application, ljh<Set<isk>> ljh_java_util_Set_isk, ljh<Set<isj>> ljh_java_util_Set_isj) {
9305 return new isn(application, ljh_java_util_Set_isk, ljh_java_util_Set_isj);
9306 }
9307
9308 public static boolean J(Context context) {
9309 return a(context, Uri.parse("http://www.youtube.com/watch?v="));
9310 }
9311
9312 public static Intent e(Context context, String str) {
9313 return a(context, str, false, false);
9314 }
9315
9316 public static Intent a(Context context, String str, boolean z, boolean z2) {
9317 String valueOf = String.valueOf("http://www.youtube.com/watch?v=");
9318 String valueOf2 = String.valueOf(str);
9319 return b(context, Uri.parse(valueOf2.length() != 0 ? valueOf.concat(valueOf2) : new String(valueOf))).putExtra("force_fullscreen", false).putExtra("finish_on_ended", false);
9320 }
9321
9322 public static boolean a(Context context, Uri uri) {
9323 return a(context, new Intent("android.intent.action.VIEW", uri).setPackage(K(context)));
9324 }
9325
9326 public static Intent b(Context context, Uri uri) {
9327 return a(new Intent("android.intent.action.VIEW", uri).setPackage(K(context)), context);
9328 }
9329
9330 public static Intent a(Intent intent, Context context) {
9331 intent.putExtra("app_package", context.getPackageName()).putExtra("app_version", isq.b(context)).putExtra("client_library_version", isq.a());
9332 return intent;
9333 }
9334
9335 public static boolean a(Context context, Intent intent) {
9336 List queryIntentActivities = context.getPackageManager().queryIntentActivities(intent, 65536);
9337 return (queryIntentActivities == null || queryIntentActivities.isEmpty()) ? false : true;
9338 }
9339
9340 public static String K(Context context) {
9341 PackageManager packageManager = context.getPackageManager();
9342 if (isq.b(packageManager)) {
9343 return "com.google.android.youtube.tv";
9344 }
9345 return isq.a(packageManager) ? "com.google.android.youtube.googletv" : "com.google.android.youtube";
9346 }
9347
9348 public static Intent a(Activity activity, String str, String str2, int i, boolean z, boolean z2) {
9349 if (str2 == null) {
9350 throw new NullPointerException("The videoId cannot be null");
9351 } else if (str != null) {
9352 return a(new Intent("com.google.android.youtube.api.StandalonePlayerActivity.START").putExtra("video_id", str2), activity, str, 0, true, true);
9353 } else {
9354 throw new NullPointerException("The developerKey cannot be null");
9355 }
9356 }
9357
9358 public static Intent a(Intent intent, Activity activity, String str, int i, boolean z, boolean z2) {
9359 a(intent, (Context) activity).putExtra("developer_key", str).putExtra("autoplay", z).putExtra("lightbox_mode", z2).putExtra("start_time_millis", i).putExtra("window_has_status_bar", (activity.getWindow().getAttributes().flags & 1024) == 0);
9360 return intent;
9361 }
9362
9363 public static Set<Annotation> aA() {
9364 return Collections.emptySet();
9365 }
9366
9367 public static juj<Void> a(Runnable runnable, long j, long j2, TimeUnit timeUnit, ink ink, jun jun) {
9368 Object juv = new juv();
9369 juj iuc = new iuc(juv, null);
9370 Runnable runnable2 = runnable;
9371 jun jun2 = jun;
9372 jun jun3 = jun;
9373 iuc.a(jun3.a(new iup(juv, runnable2, iuc, jun2, TimeUnit.MILLISECONDS.convert(0, timeUnit) + ink.b(), TimeUnit.MILLISECONDS.convert(250, timeUnit), ink), 0, TimeUnit.MILLISECONDS));
9374 return iuc;
9375 }
9376
9377 public static long a(long j, long j2, long j3) {
9378 if (j3 < j) {
9379 return (j + j2) - j3;
9380 }
9381 return j2 - ((j3 - j) % j2);
9382 }
9383
9384 public static PowerManager L(Context context) {
9385 return (PowerManager) context.getSystemService("power");
9386 }
9387
9388 public static ActivityManager M(Context context) {
9389 return (ActivityManager) context.getSystemService("activity");
9390 }
9391
9392 public static PackageManager N(Context context) {
9393 return context.getPackageManager();
9394 }
9395
9396 public static ConnectivityManager O(Context context) {
9397 return (ConnectivityManager) context.getSystemService("connectivity");
9398 }
9399
9400 public static AccountManager P(Context context) {
9401 return (AccountManager) context.getSystemService("account");
9402 }
9403
9404 public static czy a(Bundle bundle, kck kck) {
9405 return (czy) b(bundle, "TIKTOK_FRAGMENT_ARGUMENT", czy.g, kck);
9406 }
9407
9408 public static dio b(Bundle bundle, kck kck) {
9409 return (dio) b(bundle, "TIKTOK_FRAGMENT_ARGUMENT", dio.d, kck);
9410 }
9411
9412 public static djn c(Bundle bundle, kck kck) {
9413 return (djn) b(bundle, "TIKTOK_FRAGMENT_ARGUMENT", djn.c, kck);
9414 }
9415
9416 public static dpz d(Bundle bundle, kck kck) {
9417 return (dpz) b(bundle, "TIKTOK_FRAGMENT_ARGUMENT", dpz.d, kck);
9418 }
9419
9420 public static dxe e(Bundle bundle, kck kck) {
9421 return (dxe) b(bundle, "TIKTOK_FRAGMENT_ARGUMENT", dxe.d, kck);
9422 }
9423
9424 public static dza f(Bundle bundle, kck kck) {
9425 return (dza) b(bundle, "TIKTOK_FRAGMENT_ARGUMENT", dza.b, kck);
9426 }
9427
9428 public static <T> T a(Object obj, Class<T> cls) {
9429 jcz.b(obj instanceof iwa, (Object) "Given component holder does not implement ComponentHolder");
9430 return cls.cast(((iwa) obj).b());
9431 }
9432
9433 public static Class<?> z(Object obj) {
9434 jcz.b(obj instanceof iwb, (Object) "Given class does not have a peer");
9435 return ((iwb) obj).t_();
9436 }
9437
9438 public static Class<?> E(Activity activity) {
9439 return z((Object) activity);
9440 }
9441
9442 public static jas Q(Context context) {
9443 return ((iwz) ((iwa) context.getApplicationContext()).b()).o();
9444 }
9445
9446 public static irb x(ek ekVar) {
9447 jcz.b(ekVar instanceof ira, "Cannot inject lifecycle for fragment that doesn't have a lifecycle: %s", (Object) ekVar);
9448 return ((ira) ekVar).j_();
9449 }
9450
9451 public static irb F(Activity activity) {
9452 jcz.b(activity instanceof ira, "Cannot inject lifecycle for an activity that doesn't have a lifecycle: %s", (Object) activity);
9453 return ((ira) activity).j_();
9454 }
9455
9456 public static irb a(ljh<irb> ljh_irb, Set<ljh<irb>> set) {
9457 boolean z = true;
9458 if (set.isEmpty()) {
9459 return (irb) ljh_irb.a();
9460 }
9461 if (set.size() != 1) {
9462 z = false;
9463 }
9464 jcz.b(z, (Object) "More than one fragment lifecycle provider found");
9465 return (irb) ((ljh) set.iterator().next()).a();
9466 }
9467
9468 public static Set<ljh<irb>> aB() {
9469 return Collections.emptySet();
9470 }
9471
9472 public static isr A(Object obj) {
9473 boolean z = true;
9474 Set b = ((ixi) obj).b();
9475 if (b.isEmpty()) {
9476 return null;
9477 }
9478 if (b.size() != 1) {
9479 z = false;
9480 }
9481 jcz.b(z);
9482 return (isr) b.iterator().next();
9483 }
9484
9485 public static Set<ivy> a(Set<iwc> set, ljh<iwd> ljh_iwd) {
9486 if (set.isEmpty()) {
9487 return Collections.emptySet();
9488 }
9489 return Collections.singleton((ivy) ljh_iwd.a());
9490 }
9491
9492 public static izy R(Context context) {
9493 return ((ixk) ((iwa) context.getApplicationContext()).b()).p();
9494 }
9495
9496 public static jao S(Context context) {
9497 return ((ixk) ((iwa) context.getApplicationContext()).b()).q();
9498 }
9499
9500 public static long T(Context context) {
9501 return ((ivz) context).a();
9502 }
9503
9504 public static ivy aC() {
9505 return new ixt();
9506 }
9507
9508 public static ikl aD() {
9509 return new ixu();
9510 }
9511
9512 public static ivy a(Context context, long j) {
9513 Application application = (Application) context;
9514 AtomicBoolean atomicBoolean = new AtomicBoolean(true);
9515 return new ixy(application, new ixx(atomicBoolean, application), atomicBoolean, j);
9516 }
9517
9518 public static jab aE() {
9519 return new iyb();
9520 }
9521
9522 public static ivy a(Context context, ioz ioz, ipd ipd) {
9523 return new iyf(context, ioz, ipd);
9524 }
9525
9526 public static ioz aF() {
9527 return new ioz();
9528 }
9529
9530 public static kck a(Set<kci<?, ?>> set) {
9531 kck a = kck.a();
9532 for (kci kci : set) {
9533 a.b.put(new kcl(kci.a(), kci.b()), kci);
9534 }
9535 return new kck(a);
9536 }
9537
9538 public static <T extends kdp> T a(Bundle bundle, String str, T t, kck kck) {
9539 return ((iyi) bundle.getParcelable(str)).b(t.h(), kck);
9540 }
9541
9542 public static <T extends kdp> T b(Bundle bundle, String str, T t, kck kck) {
9543 try {
9544 return a(bundle, str, (kdp) t, kck);
9545 } catch (Throwable e) {
9546 throw new RuntimeException(e);
9547 }
9548 }
9549
9550 public static void a(Bundle bundle, String str, kdp kdp) {
9551 bundle.putParcelable(str, new iyi(null, kdp));
9552 }
9553
9554 public static <T extends kdp> iyk<T> a(T t) {
9555 return new iyi(null, t);
9556 }
9557
9558 public static <T extends kdp> T a(byte[] bArr, T t, kck kck) {
9559 try {
9560 return t.f().a(bArr, kck).g();
9561 } catch (Throwable e) {
9562 throw new RuntimeException(e);
9563 }
9564 }
9565
9566 public static iwc U(Context context) {
9567 return new iwc(context);
9568 }
9569
9570 @TargetApi(21)
9571 public static void X(String str) {
9572 try {
9573 Os.chmod(str, 448);
9574 } catch (Exception e) {
9575 }
9576 }
9577
9578 public static ivy aG() {
9579 return new iyq();
9580 }
9581
9582 public static ivy a(Context context, iat iat, hyw hyw) {
9583 return new iys(iat, hyw, context);
9584 }
9585
9586 public static Boolean aH() {
9587 return Boolean.valueOf(true);
9588 }
9589
9590 public static ivy a(iyv iyv) {
9591 return iyv;
9592 }
9593
9594 public static ScheduledExecutorService aI() {
9595 return Executors.newScheduledThreadPool(1);
9596 }
9597
9598 public static Boolean aJ() {
9599 return Boolean.valueOf(true);
9600 }
9601
9602 public static jab a(izk izk) {
9603 return izk;
9604 }
9605
9606 public static void a(ej ejVar) {
9607 b(ejVar);
9608 a(c(ejVar), d(ejVar));
9609 }
9610
9611 public static void b(ej ejVar) {
9612 if (ejVar.a && c(ejVar) == null) {
9613 throw new IllegalStateException("DialogFragment is being used as a dialog. Must return a valid view in onCreateView() or a valid Dialog in onCreateDialog().");
9614 } else if (!ejVar.a && ejVar.P == null) {
9615 throw new IllegalStateException("DialogFragment not being used as a dialog. Must return a valid view in onCreateView() -- onCreateDialog() is not called.");
9616 }
9617 }
9618
9619 public static View c(ej ejVar) {
9620 if (ejVar.P != null) {
9621 return ejVar.P;
9622 }
9623 if (ejVar.c != null) {
9624 return ejVar.c.findViewById(16908290);
9625 }
9626 return null;
9627 }
9628
9629 public static View d(ej ejVar) {
9630 ek ekVar = ejVar.C;
9631 if (ekVar == null) {
9632 return ejVar.f().findViewById(16908290);
9633 }
9634 return ekVar.P;
9635 }
9636
9637 public static <T extends g> void a(ek ekVar, Class<T> cls, jaq<T> jaq_T) {
9638 View view = ekVar.P;
9639 jcz.a((Object) view, (Object) "Fragment must have a content view to add a listener!");
9640 a(jau.tiktok_event_fragment_listeners, view, (Class) cls, (jaq) jaq_T);
9641 }
9642
9643 public static <T extends g> void a(ej ejVar, Class<T> cls, jaq<T> jaq_T) {
9644 View c = c(ejVar);
9645 jcz.a((Object) c, (Object) "DialogFragment must have content or dialog view to add a listener!");
9646 a(jau.tiktok_event_fragment_listeners, c, (Class) cls, (jaq) jaq_T);
9647 }
9648
9649 public static <T extends g> void a(Activity activity, Class<T> cls, jaq<T> jaq_T) {
9650 View findViewById = activity.findViewById(16908290);
9651 jcz.a((Object) findViewById, (Object) "Activity must have a content view to add a listener!");
9652 a(jau.tiktok_event_activity_listeners, findViewById, (Class) cls, (jaq) jaq_T);
9653 }
9654
9655 public static <T extends g> void a(T t, View view) {
9656 a(jau.tiktok_event_view_listeners, (g) t, (View) jcz.a((Object) view));
9657 }
9658
9659 public static <T extends g> void a(T t, ek ekVar) {
9660 View view = ekVar.P;
9661 jcz.a((Object) view, (Object) "Fragment must have content view to send an event!");
9662 a(jau.tiktok_event_fragment_listeners, (g) t, view);
9663 }
9664
9665 public static <T extends g> void a(int i, View view, Class<T> cls, jaq<T> jaq_T) {
9666 Map map;
9667 Map a = a(i, view);
9668 if (a == null) {
9669 lh lhVar = new lh();
9670 view.setTag(i, lhVar);
9671 map = lhVar;
9672 } else {
9673 map = a;
9674 }
9675 for (Class cls2 : map.keySet()) {
9676 boolean z;
9677 if (cls.isAssignableFrom(cls2)) {
9678 z = false;
9679 } else {
9680 z = true;
9681 }
9682 jcz.a(z, "For class %s, A listener is already registered as a subtype: %s", cls.getSimpleName(), cls2.getSimpleName());
9683 if (cls2.isAssignableFrom(cls)) {
9684 z = false;
9685 } else {
9686 z = true;
9687 }
9688 jcz.a(z, "For class %s, A listener is already registered as a supertype: %s", cls.getSimpleName(), cls2.getSimpleName());
9689 }
9690 map.put(cls, jaq_T);
9691 }
9692
9693 @SuppressLint({"ViewTag"})
9694 public static void a(View view, View view2) {
9695 ((View) jcz.a((Object) view)).setTag(jau.tiktok_event_parent, view2);
9696 }
9697
9698 public static void a(int i, g gVar, View view) {
9699 jcw b = jcw.b(gVar);
9700 View view2 = view;
9701 while (view2 != null) {
9702 if (view2 != view || i == jau.tiktok_event_view_listeners) {
9703 b = a(jau.tiktok_event_view_listeners, view2, b);
9704 }
9705 if (!(view2 == view && i == jau.tiktok_event_activity_listeners)) {
9706 b = a(jau.tiktok_event_fragment_listeners, view2, b);
9707 }
9708 b = a(jau.tiktok_event_activity_listeners, view2, b);
9709 if (b.a()) {
9710 view2 = F(view2);
9711 } else {
9712 return;
9713 }
9714 }
9715 }
9716
9717 public static jcw<? extends g> a(int i, View view, jcw<? extends g> jcw__extends_g) {
9718 if (!jcw__extends_g.a()) {
9719 return jcw__extends_g;
9720 }
9721 jar a = a(i, view, (g) jcw__extends_g.b());
9722 if (a == jar.a) {
9723 return jbp.a;
9724 }
9725 return a != jar.b ? jcw.b(a.c) : jcw__extends_g;
9726 }
9727
9728 public static <T extends g> jar a(int i, View view, T t) {
9729 Map a = a(i, view);
9730 if (!(a == null || a.isEmpty())) {
9731 Class cls = t.getClass();
9732 for (Entry entry : a.entrySet()) {
9733 Class cls2 = (Class) entry.getKey();
9734 jaq jaq = (jaq) entry.getValue();
9735 if (cls2.isAssignableFrom(cls)) {
9736 return (jar) jcz.a(jaq.a(t));
9737 }
9738 }
9739 }
9740 return jar.b;
9741 }
9742
9743 public static Map<Class<? extends g>, jaq<? extends g>> a(int i, View view) {
9744 return (Map) view.getTag(i);
9745 }
9746
9747 public static View F(View view) {
9748 View view2 = (View) view.getTag(jau.tiktok_event_parent);
9749 return view2 != null ? view2 : a(view.getParent());
9750 }
9751
9752 public static View a(ViewParent viewParent) {
9753 ViewParent viewParent2 = viewParent;
9754 while (!(viewParent2 instanceof View)) {
9755 if (viewParent2 == null) {
9756 return null;
9757 }
9758 viewParent2 = viewParent2.getParent();
9759 }
9760 return (View) viewParent2;
9761 }
9762
9763 public static <T> T i(T t, int i) {
9764 if (t != null) {
9765 return t;
9766 }
9767 throw new NullPointerException("@AutoFactory method argument is null but is not marked @Nullable. Argument index: " + i);
9768 }
9769
9770 public static String C(int i) {
9771 return new String(Character.toChars(i));
9772 }
9773
9774 public static String a(CharSequence charSequence, int i, String str) {
9775 jcz.a((Object) charSequence);
9776 int length = 30 - str.length();
9777 int i2 = length >= 0 ? 1 : 0;
9778 String str2 = "maxLength (%s) must be >= length of the truncation indicator (%s)";
9779 int length2 = str.length();
9780 if (i2 == 0) {
9781 throw new IllegalArgumentException(jcz.a(str2, Integer.valueOf(30), Integer.valueOf(length2)));
9782 }
9783 if (charSequence.length() <= 30) {
9784 charSequence = charSequence.toString();
9785 if (charSequence.length() <= 30) {
9786 return charSequence;
9787 }
9788 }
9789 return charSequence + str;
9790 }
9791
9792 public static <T> T g(T t, T t2) {
9793 return t != null ? t : jcz.a((Object) t2);
9794 }
9795
9796 public static jct B(Object obj) {
9797 return new jct(obj.getClass().getSimpleName());
9798 }
9799
9800 public static boolean Z(String str) {
9801 return jcy.a(str);
9802 }
9803
9804 public static <T> ijc a(ijc ijc) {
9805 if (ijc instanceof jdq) {
9806 return ijc;
9807 }
9808 return new jdq((ijc) jcz.a((Object) ijc));
9809 }
9810
9811 public static <T> ijc C(T t) {
9812 return new jdr(t);
9813 }
9814
9815 public static void h(Object obj, Object obj2) {
9816 String valueOf;
9817 if (obj == null) {
9818 valueOf = String.valueOf(obj2);
9819 throw new NullPointerException(new StringBuilder(String.valueOf(valueOf).length() + 24).append("null key in entry: null=").append(valueOf).toString());
9820 } else if (obj2 == null) {
9821 valueOf = String.valueOf(obj);
9822 throw new NullPointerException(new StringBuilder(String.valueOf(valueOf).length() + 26).append("null value in entry: ").append(valueOf).append("=null").toString());
9823 }
9824 }
9825
9826 public static int b(int i, String str) {
9827 if (i >= 0) {
9828 return i;
9829 }
9830 throw new IllegalArgumentException(new StringBuilder(String.valueOf(str).length() + 40).append(str).append(" cannot be negative but was: ").append(i).toString());
9831 }
9832
9833 public static void d(boolean z) {
9834 jcz.b(z, (Object) "no calls to next() since the last call to remove()");
9835 }
9836
9837 public static int D(int i) {
9838 return 461845907 * Integer.rotateLeft(-862048943 * i, 15);
9839 }
9840
9841 public static int D(Object obj) {
9842 return D(obj == null ? 0 : obj.hashCode());
9843 }
9844
9845 public static int a(int i, double d) {
9846 int max = Math.max(i, 2);
9847 int highestOneBit = Integer.highestOneBit(max);
9848 if (max <= ((int) (1.2d * ((double) highestOneBit)))) {
9849 return highestOneBit;
9850 }
9851 highestOneBit <<= 1;
9852 if (highestOneBit > 0) {
9853 return highestOneBit;
9854 }
9855 return 1073741824;
9856 }
9857
9858 public static String b(Iterable<?> iterable) {
9859 return jgh.c(iterable.iterator());
9860 }
9861
9862 public static <T> T c(Iterable<T> iterable) {
9863 return jgh.d(iterable.iterator());
9864 }
9865
9866 public static <T> T[] a(Iterable<? extends T> iterable, T[] tArr) {
9867 return d((Iterable) iterable).toArray(tArr);
9868 }
9869
9870 public static <E> Collection<E> d(Iterable<E> iterable) {
9871 if (iterable instanceof Collection) {
9872 return (Collection) iterable;
9873 }
9874 return a(iterable.iterator());
9875 }
9876
9877 public static <F, T> Iterable<T> a(Iterable<F> iterable, jcn<? super F, ? extends T> jcn__super_F___extends_T) {
9878 jcz.a((Object) iterable);
9879 jcz.a((Object) jcn__super_F___extends_T);
9880 return new jee(iterable, jcn__super_F___extends_T);
9881 }
9882
9883 public static <T> T a(Iterable<? extends T> iterable, T t) {
9884 return jgh.b(iterable.iterator(), null);
9885 }
9886
9887 public static <E> ArrayList<E> aK() {
9888 return new ArrayList();
9889 }
9890
9891 public static <E> ArrayList<E> e(E... eArr) {
9892 jcz.a((Object) eArr);
9893 Object arrayList = new ArrayList(E(eArr.length));
9894 Collections.addAll(arrayList, eArr);
9895 return arrayList;
9896 }
9897
9898 public static int E(int i) {
9899 b(i, "arraySize");
9900 return h((5 + ((long) i)) + ((long) (i / 10)));
9901 }
9902
9903 public static <E> ArrayList<E> e(Iterable<? extends E> iterable) {
9904 jcz.a((Object) iterable);
9905 if (iterable instanceof Collection) {
9906 return new ArrayList(jeb.a((Iterable) iterable));
9907 }
9908 return a(iterable.iterator());
9909 }
9910
9911 public static <E> ArrayList<E> a(Iterator<? extends E> it) {
9912 Collection aK = aK();
9913 jgh.a(aK, (Iterator) it);
9914 return aK;
9915 }
9916
9917 public static <E> ArrayList<E> F(int i) {
9918 b(i, "initialArraySize");
9919 return new ArrayList(i);
9920 }
9921
9922 public static <T> List<List<T>> a(List<T> list, int i) {
9923 jcz.a((Object) list);
9924 jcz.a(i > 0);
9925 return new jgr(list, i);
9926 }
9927
9928 public static <T> List<T> b(List<T> list) {
9929 if (list instanceof jet) {
9930 return ((jet) list).c();
9931 }
9932 if (list instanceof jgt) {
9933 return ((jgt) list).a;
9934 }
9935 if (list instanceof RandomAccess) {
9936 return new jgs(list);
9937 }
9938 return new jgt(list);
9939 }
9940
9941 public static boolean a(List<?> list, Object obj) {
9942 if (obj == jcz.a((Object) list)) {
9943 return true;
9944 }
9945 if (!(obj instanceof List)) {
9946 return false;
9947 }
9948 List list2 = (List) obj;
9949 int size = list.size();
9950 if (size != list2.size()) {
9951 return false;
9952 }
9953 if (!(list instanceof RandomAccess) || !(list2 instanceof RandomAccess)) {
9954 return jgh.a(list.iterator(), list2.iterator());
9955 }
9956 for (int i = 0; i < size; i++) {
9957 if (!jcv.a(list.get(i), list2.get(i))) {
9958 return false;
9959 }
9960 }
9961 return true;
9962 }
9963
9964 public static int b(List<?> list, Object obj) {
9965 if (list instanceof RandomAccess) {
9966 return c((List) list, obj);
9967 }
9968 ListIterator listIterator = list.listIterator();
9969 while (listIterator.hasNext()) {
9970 if (jcv.a(obj, listIterator.next())) {
9971 return listIterator.previousIndex();
9972 }
9973 }
9974 return -1;
9975 }
9976
9977 public static int c(List<?> list, Object obj) {
9978 int i = 0;
9979 int size = list.size();
9980 if (obj == null) {
9981 while (i < size) {
9982 if (list.get(i) == null) {
9983 return i;
9984 }
9985 i++;
9986 }
9987 } else {
9988 while (i < size) {
9989 if (obj.equals(list.get(i))) {
9990 return i;
9991 }
9992 i++;
9993 }
9994 }
9995 return -1;
9996 }
9997
9998 public static int d(List<?> list, Object obj) {
9999 if (list instanceof RandomAccess) {
10000 return e((List) list, obj);
10001 }
10002 ListIterator listIterator = list.listIterator(list.size());
10003 while (listIterator.hasPrevious()) {
10004 if (jcv.a(obj, listIterator.previous())) {
10005 return listIterator.nextIndex();
10006 }
10007 }
10008 return -1;
10009 }
10010
10011 public static int e(List<?> list, Object obj) {
10012 int size;
10013 if (obj == null) {
10014 for (size = list.size() - 1; size >= 0; size--) {
10015 if (list.get(size) == null) {
10016 return size;
10017 }
10018 }
10019 } else {
10020 for (size = list.size() - 1; size >= 0; size--) {
10021 if (obj.equals(list.get(size))) {
10022 return size;
10023 }
10024 }
10025 }
10026 return -1;
10027 }
10028
10029 public static <T> T[] a(T[] tArr, int i) {
10030 return (Object[]) Array.newInstance(tArr.getClass().getComponentType(), i);
10031 }
10032
10033 public static <E> HashSet<E> aL() {
10034 return new HashSet();
10035 }
10036
10037 public static <E> Set<E> aM() {
10038 return Collections.newSetFromMap(new ConcurrentHashMap());
10039 }
10040
10041 public static <E> jht<E> a(Set<E> set, Set<?> set2) {
10042 jcz.a((Object) set, (Object) "set1");
10043 jcz.a((Object) set2, (Object) "set2");
10044 return new jhs(set, jdb.a(jdb.a((Collection) set2)), set2);
10045 }
10046
10047 public static int b(Set<?> set) {
10048 int i = 0;
10049 for (Object next : set) {
10050 int hashCode;
10051 if (next != null) {
10052 hashCode = next.hashCode();
10053 } else {
10054 hashCode = 0;
10055 }
10056 i = ((i + hashCode) ^ -1) ^ -1;
10057 }
10058 return i;
10059 }
10060
10061 public static boolean a(Set<?> set, Object obj) {
10062 if (set == obj) {
10063 return true;
10064 }
10065 if (!(obj instanceof Set)) {
10066 return false;
10067 }
10068 Set set2 = (Set) obj;
10069 try {
10070 if (set.size() == set2.size() && set.containsAll(set2)) {
10071 return true;
10072 }
10073 return false;
10074 } catch (NullPointerException e) {
10075 return false;
10076 } catch (ClassCastException e2) {
10077 return false;
10078 }
10079 }
10080
10081 public static boolean a(Comparator<?> comparator, Iterable<?> iterable) {
10082 Object a;
10083 jcz.a((Object) comparator);
10084 jcz.a((Object) iterable);
10085 if (iterable instanceof SortedSet) {
10086 a = a((SortedSet) iterable);
10087 } else if (!(iterable instanceof jhx)) {
10088 return false;
10089 } else {
10090 a = ((jhx) iterable).comparator();
10091 }
10092 return comparator.equals(a);
10093 }
10094
10095 public static <E> Comparator<? super E> a(SortedSet<E> sortedSet) {
10096 Comparator<? super E> comparator = sortedSet.comparator();
10097 if (comparator == null) {
10098 return jhc.a;
10099 }
10100 return comparator;
10101 }
10102
10103 public static <E> int a(List<? extends E> list, E e, Comparator<? super E> comparator, jic jic, jhy jhy) {
10104 jcz.a((Object) comparator);
10105 jcz.a((Object) list);
10106 jcz.a((Object) jic);
10107 jcz.a((Object) jhy);
10108 if (!(list instanceof RandomAccess)) {
10109 list = e((Iterable) list);
10110 }
10111 int i = 0;
10112 int size = list.size() - 1;
10113 while (i <= size) {
10114 int i2 = (i + size) >>> 1;
10115 int compare = comparator.compare(e, list.get(i2));
10116 if (compare < 0) {
10117 size = i2 - 1;
10118 } else if (compare <= 0) {
10119 return jic.a(comparator, e, list.subList(i, size + 1), i2 - i) + i;
10120 } else {
10121 i = i2 + 1;
10122 }
10123 }
10124 return jhy.a(i);
10125 }
10126
10127 public static int d(String str, int i) {
10128 if (i > 0) {
10129 return i;
10130 }
10131 throw new IllegalArgumentException(new StringBuilder(String.valueOf(str).length() + 26).append(str).append(" (").append(i).append(") must be > 0").toString());
10132 }
10133
10134 public static void e(boolean z) {
10135 if (!z) {
10136 throw new ArithmeticException("mode was UNNECESSARY, but rounding was necessary");
10137 }
10138 }
10139
10140 public static byte[] a(byte[]... bArr) {
10141 int i = 0;
10142 for (byte[] length : bArr) {
10143 i += length.length;
10144 }
10145 Object obj = new byte[i];
10146 i = 0;
10147 for (Object obj2 : bArr) {
10148 System.arraycopy(obj2, 0, obj, i, obj2.length);
10149 i += obj2.length;
10150 }
10151 return obj;
10152 }
10153
10154 public static int h(long j) {
10155 if (j > 2147483647L) {
10156 return Preference.DEFAULT_ORDER;
10157 }
10158 if (j < -2147483648L) {
10159 return Integer.MIN_VALUE;
10160 }
10161 return (int) j;
10162 }
10163
10164 public static byte[] G(int i) {
10165 return new byte[]{(byte) 0, (byte) 0, (byte) 0, (byte) 0};
10166 }
10167
10168 public static <V> AtomicReference<V> E(V v) {
10169 return new AtomicReference(v);
10170 }
10171
10172 public static <V> juj<V> a(Future<V> future, Executor executor) {
10173 jcz.a((Object) executor);
10174 if (future instanceof juj) {
10175 return (juj) future;
10176 }
10177 return new juh(future, executor);
10178 }
10179
10180 public static Executor aN() {
10181 return juq.INSTANCE;
10182 }
10183
10184 public static jum a(ExecutorService executorService) {
10185 if (executorService instanceof jum) {
10186 return (jum) executorService;
10187 }
10188 if (executorService instanceof ScheduledExecutorService) {
10189 return new jus((ScheduledExecutorService) executorService);
10190 }
10191 return new jur(executorService);
10192 }
10193
10194 public static jun a(ScheduledExecutorService scheduledExecutorService) {
10195 if (scheduledExecutorService instanceof jun) {
10196 return (jun) scheduledExecutorService;
10197 }
10198 return new jus(scheduledExecutorService);
10199 }
10200
10201 public static ThreadFactory aO() {
10202 if (!aP()) {
10203 return Executors.defaultThreadFactory();
10204 }
10205 try {
10206 return (ThreadFactory) Class.forName("com.google.appengine.api.ThreadManager").getMethod("currentRequestThreadFactory", new Class[0]).invoke(null, new Object[0]);
10207 } catch (Throwable e) {
10208 throw new RuntimeException("Couldn't invoke ThreadManager.currentRequestThreadFactory", e);
10209 } catch (Throwable e2) {
10210 throw new RuntimeException("Couldn't invoke ThreadManager.currentRequestThreadFactory", e2);
10211 } catch (Throwable e22) {
10212 throw new RuntimeException("Couldn't invoke ThreadManager.currentRequestThreadFactory", e22);
10213 } catch (InvocationTargetException e3) {
10214 throw jds.c(e3.getCause());
10215 }
10216 }
10217
10218 public static boolean aP() {
10219 if (System.getProperty("com.google.appengine.runtime.environment") == null) {
10220 return false;
10221 }
10222 try {
10223 if (Class.forName("com.google.apphosting.api.ApiProxy").getMethod("getCurrentEnvironment", new Class[0]).invoke(null, new Object[0]) != null) {
10224 return true;
10225 }
10226 return false;
10227 } catch (ClassNotFoundException e) {
10228 return false;
10229 } catch (InvocationTargetException e2) {
10230 return false;
10231 } catch (IllegalAccessException e3) {
10232 return false;
10233 } catch (NoSuchMethodException e4) {
10234 return false;
10235 }
10236 }
10237
10238 public static Executor a(Executor executor, jsi<?> jsi_) {
10239 jcz.a((Object) executor);
10240 jcz.a((Object) jsi_);
10241 return executor == aN() ? executor : new juo(executor, jsi_);
10242 }
10243
10244 public static <V> V b(Future<V> future) {
10245 V v;
10246 Object obj = null;
10247 while (true) {
10248 try {
10249 v = future.get();
10250 break;
10251 } catch (InterruptedException e) {
10252 obj = 1;
10253 } catch (Throwable th) {
10254 if (obj != null) {
10255 Thread.currentThread().interrupt();
10256 }
10257 }
10258 }
10259 if (obj != null) {
10260 Thread.currentThread().interrupt();
10261 }
10262 return v;
10263 }
10264
10265 public static void a(jwz jwz, kbj kbj) {
10266 jzy.y.a(kbj, jwz);
10267 }
10268
10269 public static String a(kdp kdp, String str) {
10270 StringBuilder stringBuilder = new StringBuilder();
10271 stringBuilder.append("# ").append(str);
10272 a(kdp, stringBuilder, 0);
10273 return stringBuilder.toString();
10274 }
10275
10276 public static void a(kdp kdp, StringBuilder stringBuilder, int i) {
10277 Map hashMap = new HashMap();
10278 Map hashMap2 = new HashMap();
10279 Set<String> treeSet = new TreeSet();
10280 for (Method method : kdp.getClass().getDeclaredMethods()) {
10281 hashMap2.put(method.getName(), method);
10282 if (method.getParameterTypes().length == 0) {
10283 hashMap.put(method.getName(), method);
10284 if (method.getName().startsWith("get")) {
10285 treeSet.add(method.getName());
10286 }
10287 }
10288 }
10289 for (String replaceFirst : treeSet) {
10290 String replaceFirst2;
10291 String valueOf;
10292 String str;
10293 Method method2;
10294 String replaceFirst3 = replaceFirst2.replaceFirst("get", "");
10295 if (replaceFirst3.endsWith("List") && !replaceFirst3.endsWith("OrBuilderList")) {
10296 Object concat;
10297 valueOf = String.valueOf(replaceFirst3.substring(0, 1).toLowerCase());
10298 replaceFirst2 = String.valueOf(replaceFirst3.substring(1, replaceFirst3.length() - 4));
10299 valueOf = replaceFirst2.length() != 0 ? valueOf.concat(replaceFirst2) : new String(valueOf);
10300 str = "get";
10301 replaceFirst2 = String.valueOf(replaceFirst3);
10302 if (replaceFirst2.length() != 0) {
10303 concat = str.concat(replaceFirst2);
10304 } else {
10305 concat = new String(str);
10306 }
10307 method2 = (Method) hashMap.get(concat);
10308 if (method2 != null) {
10309 a(stringBuilder, i, aa(valueOf), kcp.a(method2, (Object) kdp, new Object[0]));
10310 }
10311 }
10312 valueOf = "set";
10313 replaceFirst2 = String.valueOf(replaceFirst3);
10314 if (((Method) hashMap2.get(replaceFirst2.length() != 0 ? valueOf.concat(replaceFirst2) : new String(valueOf))) != null) {
10315 if (replaceFirst3.endsWith("Bytes")) {
10316 valueOf = "get";
10317 replaceFirst2 = String.valueOf(replaceFirst3.substring(0, replaceFirst3.length() - 5));
10318 if (hashMap.containsKey(replaceFirst2.length() != 0 ? valueOf.concat(replaceFirst2) : new String(valueOf))) {
10319 }
10320 }
10321 valueOf = String.valueOf(replaceFirst3.substring(0, 1).toLowerCase());
10322 replaceFirst2 = String.valueOf(replaceFirst3.substring(1));
10323 str = replaceFirst2.length() != 0 ? valueOf.concat(replaceFirst2) : new String(valueOf);
10324 valueOf = "get";
10325 replaceFirst2 = String.valueOf(replaceFirst3);
10326 method2 = (Method) hashMap.get(replaceFirst2.length() != 0 ? valueOf.concat(replaceFirst2) : new String(valueOf));
10327 String str2 = "has";
10328 valueOf = String.valueOf(replaceFirst3);
10329 Method method3 = (Method) hashMap.get(valueOf.length() != 0 ? str2.concat(valueOf) : new String(str2));
10330 if (method2 != null) {
10331 boolean booleanValue;
10332 Object a = kcp.a(method2, (Object) kdp, new Object[0]);
10333 if (method3 != null) {
10334 booleanValue = ((Boolean) kcp.a(method3, (Object) kdp, new Object[0])).booleanValue();
10335 } else if (F(a)) {
10336 booleanValue = false;
10337 } else {
10338 booleanValue = true;
10339 }
10340 if (booleanValue) {
10341 a(stringBuilder, i, aa(str), a);
10342 }
10343 }
10344 }
10345 }
10346 if (kdp instanceof kcv) {
10347 Iterator c = ((kcv) kdp).a.c();
10348 while (c.hasNext()) {
10349 Entry entry = (Entry) c.next();
10350 a(stringBuilder, i, "[" + ((kco) entry.getKey()).a() + "]", entry.getValue());
10351 }
10352 }
10353 if (((kcp) kdp).i != null) {
10354 ((kcp) kdp).i.a(stringBuilder, i);
10355 }
10356 }
10357
10358 public static boolean F(Object obj) {
10359 if (obj instanceof Boolean) {
10360 if (((Boolean) obj).booleanValue()) {
10361 return false;
10362 }
10363 return true;
10364 } else if (obj instanceof Integer) {
10365 return ((Integer) obj).intValue() == 0;
10366 } else {
10367 if (obj instanceof Float) {
10368 return ((Float) obj).floatValue() == 0.0f;
10369 } else {
10370 if (obj instanceof Double) {
10371 return ((Double) obj).doubleValue() == 0.0d;
10372 } else {
10373 if (obj instanceof String) {
10374 return obj.equals("");
10375 }
10376 if (obj instanceof kbv) {
10377 return obj.equals(kbv.a);
10378 }
10379 if (obj instanceof kdp) {
10380 return obj == ((kdp) obj).h();
10381 } else {
10382 if (obj instanceof Enum) {
10383 return ((Enum) obj).ordinal() == 0;
10384 } else {
10385 return false;
10386 }
10387 }
10388 }
10389 }
10390 }
10391 }
10392
10393 public static void a(StringBuilder stringBuilder, int i, String str, Object obj) {
10394 int i2 = 0;
10395 if (obj instanceof List) {
10396 for (Object a : (List) obj) {
10397 a(stringBuilder, i, str, a);
10398 }
10399 return;
10400 }
10401 stringBuilder.append('\n');
10402 for (int i3 = 0; i3 < i; i3++) {
10403 stringBuilder.append(' ');
10404 }
10405 stringBuilder.append(str);
10406 if (obj instanceof String) {
10407 stringBuilder.append(": \"").append(ab((String) obj)).append('\"');
10408 } else if (obj instanceof kbv) {
10409 stringBuilder.append(": \"").append(a((kbv) obj)).append('\"');
10410 } else if (obj instanceof kcp) {
10411 stringBuilder.append(" {");
10412 a((kcp) obj, stringBuilder, i + 2);
10413 stringBuilder.append("\n");
10414 while (i2 < i) {
10415 stringBuilder.append(' ');
10416 i2++;
10417 }
10418 stringBuilder.append("}");
10419 } else {
10420 stringBuilder.append(": ").append(obj.toString());
10421 }
10422 }
10423
10424 public static String aa(String str) {
10425 StringBuilder stringBuilder = new StringBuilder();
10426 for (int i = 0; i < str.length(); i++) {
10427 char charAt = str.charAt(i);
10428 if (Character.isUpperCase(charAt)) {
10429 stringBuilder.append("_");
10430 }
10431 stringBuilder.append(Character.toLowerCase(charAt));
10432 }
10433 return stringBuilder.toString();
10434 }
10435
10436 public static String a(ked ked) {
10437 StringBuilder stringBuilder = new StringBuilder(ked.a());
10438 for (int i = 0; i < ked.a(); i++) {
10439 byte a = ked.a(i);
10440 switch (a) {
10441 case yq.Toolbar_contentInsetLeft /*7*/:
10442 stringBuilder.append("\\a");
10443 break;
10444 case yq.Toolbar_contentInsetRight /*8*/:
10445 stringBuilder.append("\\b");
10446 break;
10447 case yq.Toolbar_contentInsetStartWithNavigation /*9*/:
10448 stringBuilder.append("\\t");
10449 break;
10450 case yq.Toolbar_contentInsetEndWithActions /*10*/:
10451 stringBuilder.append("\\n");
10452 break;
10453 case yq.Toolbar_popupTheme /*11*/:
10454 stringBuilder.append("\\v");
10455 break;
10456 case yq.Toolbar_titleTextAppearance /*12*/:
10457 stringBuilder.append("\\f");
10458 break;
10459 case yq.Toolbar_subtitleTextAppearance /*13*/:
10460 stringBuilder.append("\\r");
10461 break;
10462 case yq.AppCompatTheme_actionModePasteDrawable /*34*/:
10463 stringBuilder.append("\\\"");
10464 break;
10465 case yq.AppCompatTheme_actionModePopupWindowStyle /*39*/:
10466 stringBuilder.append("\\'");
10467 break;
10468 case yq.AppCompatTheme_colorBackgroundFloating /*92*/:
10469 stringBuilder.append("\\\\");
10470 break;
10471 default:
10472 if (a >= 32 && a <= 126) {
10473 stringBuilder.append((char) a);
10474 break;
10475 }
10476 stringBuilder.append('\\');
10477 stringBuilder.append((char) (((a >>> 6) & 3) + 48));
10478 stringBuilder.append((char) (((a >>> 3) & 7) + 48));
10479 stringBuilder.append((char) ((a & 7) + 48));
10480 break;
10481 }
10482 }
10483 return stringBuilder.toString();
10484 }
10485
10486 public static String a(kbv kbv) {
10487 return a(new ked(kbv));
10488 }
10489
10490 public static String ab(String str) {
10491 return a(kbv.a(str));
10492 }
10493
10494 public static <T extends kfl> String a(T t) {
10495 String str;
10496 String valueOf;
10497 if (t == null) {
10498 return "";
10499 }
10500 StringBuffer stringBuffer = new StringBuffer();
10501 try {
10502 b(null, (Object) t, new StringBuffer(), stringBuffer);
10503 return stringBuffer.toString();
10504 } catch (IllegalAccessException e) {
10505 str = "Error printing proto: ";
10506 valueOf = String.valueOf(e.getMessage());
10507 return valueOf.length() != 0 ? str.concat(valueOf) : new String(str);
10508 } catch (InvocationTargetException e2) {
10509 str = "Error printing proto: ";
10510 valueOf = String.valueOf(e2.getMessage());
10511 return valueOf.length() != 0 ? str.concat(valueOf) : new String(str);
10512 }
10513 }
10514
10515 public static void b(String str, Object obj, StringBuffer stringBuffer, StringBuffer stringBuffer2) {
10516 if (obj == null) {
10517 return;
10518 }
10519 if (obj instanceof kfl) {
10520 int modifiers;
10521 String name;
10522 int length = stringBuffer.length();
10523 if (str != null) {
10524 stringBuffer2.append(stringBuffer).append(ac(str)).append(" <\n");
10525 stringBuffer.append(" ");
10526 }
10527 Class cls = obj.getClass();
10528 for (Field field : cls.getFields()) {
10529 modifiers = field.getModifiers();
10530 name = field.getName();
10531 if (!("cachedSize".equals(name) || (modifiers & 1) != 1 || (modifiers & 8) == 8 || name.startsWith("_") || name.endsWith("_"))) {
10532 Class type = field.getType();
10533 Object obj2 = field.get(obj);
10534 if (!type.isArray()) {
10535 b(name, obj2, stringBuffer, stringBuffer2);
10536 } else if (type.getComponentType() == Byte.TYPE) {
10537 b(name, obj2, stringBuffer, stringBuffer2);
10538 } else {
10539 int length2 = obj2 == null ? 0 : Array.getLength(obj2);
10540 for (modifiers = 0; modifiers < length2; modifiers++) {
10541 b(name, Array.get(obj2, modifiers), stringBuffer, stringBuffer2);
10542 }
10543 }
10544 }
10545 }
10546 for (Method name2 : cls.getMethods()) {
10547 String name3 = name2.getName();
10548 if (name3.startsWith("set")) {
10549 String substring = name3.substring(3);
10550 try {
10551 name = "has";
10552 name3 = String.valueOf(substring);
10553 if (((Boolean) cls.getMethod(name3.length() != 0 ? name.concat(name3) : new String(name), new Class[0]).invoke(obj, new Object[0])).booleanValue()) {
10554 try {
10555 name = "get";
10556 name3 = String.valueOf(substring);
10557 b(substring, cls.getMethod(name3.length() != 0 ? name.concat(name3) : new String(name), new Class[0]).invoke(obj, new Object[0]), stringBuffer, stringBuffer2);
10558 } catch (NoSuchMethodException e) {
10559 }
10560 }
10561 } catch (NoSuchMethodException e2) {
10562 }
10563 }
10564 }
10565 if (str != null) {
10566 stringBuffer.setLength(length);
10567 stringBuffer2.append(stringBuffer).append(">\n");
10568 return;
10569 }
10570 return;
10571 }
10572 stringBuffer2.append(stringBuffer).append(ac(str)).append(": ");
10573 if (obj instanceof String) {
10574 stringBuffer2.append("\"").append(ad((String) obj)).append("\"");
10575 } else if (obj instanceof byte[]) {
10576 b((byte[]) obj, stringBuffer2);
10577 } else {
10578 stringBuffer2.append(obj);
10579 }
10580 stringBuffer2.append("\n");
10581 }
10582
10583 public static String ac(String str) {
10584 StringBuffer stringBuffer = new StringBuffer();
10585 for (int i = 0; i < str.length(); i++) {
10586 char charAt = str.charAt(i);
10587 if (i == 0) {
10588 stringBuffer.append(Character.toLowerCase(charAt));
10589 } else if (Character.isUpperCase(charAt)) {
10590 stringBuffer.append('_').append(Character.toLowerCase(charAt));
10591 } else {
10592 stringBuffer.append(charAt);
10593 }
10594 }
10595 return stringBuffer.toString();
10596 }
10597
10598 public static String ad(String str) {
10599 if (!str.startsWith("http") && str.length() > 200) {
10600 str = String.valueOf(str.substring(0, 200)).concat("[...]");
10601 }
10602 return ae(str);
10603 }
10604
10605 public static String ae(String str) {
10606 int length = str.length();
10607 StringBuilder stringBuilder = new StringBuilder(length);
10608 for (int i = 0; i < length; i++) {
10609 char charAt = str.charAt(i);
10610 if (charAt < ' ' || charAt > '~' || charAt == '\"' || charAt == '\'') {
10611 stringBuilder.append(String.format("\\u%04x", new Object[]{Integer.valueOf(charAt)}));
10612 } else {
10613 stringBuilder.append(charAt);
10614 }
10615 }
10616 return stringBuilder.toString();
10617 }
10618
10619 public static void b(byte[] bArr, StringBuffer stringBuffer) {
10620 if (bArr == null) {
10621 stringBuffer.append("\"\"");
10622 return;
10623 }
10624 stringBuffer.append('\"');
10625 for (byte b : bArr) {
10626 int i = b & 255;
10627 if (i == 92 || i == 34) {
10628 stringBuffer.append('\\').append((char) i);
10629 } else if (i < 32 || i >= 127) {
10630 stringBuffer.append(String.format("\\%03o", new Object[]{Integer.valueOf(i)}));
10631 } else {
10632 stringBuffer.append((char) i);
10633 }
10634 }
10635 stringBuffer.append('\"');
10636 }
10637
10638 public static boolean aQ() {
10639 return System.getProperty("ro.kernel.qemu", "?").equals("1") || Build.HARDWARE.contains("goldfish") || Build.HARDWARE.contains("ranchu");
10640 }
10641
10642 public static ColorMatrix b(int i, int i2, int i3) {
10643 if (i2 == i3) {
10644 throw new IllegalArgumentException("constantColor cannot be changedColor.");
10645 }
10646 float red = (float) Color.red(i);
10647 float green = (float) Color.green(i);
10648 float blue = (float) Color.blue(i);
10649 int red2 = Color.red(i2);
10650 int green2 = Color.green(i2);
10651 int blue2 = Color.blue(i2);
10652 float red3 = ((float) red2) * (1.0f - ((red - ((float) red2)) / ((float) (Color.red(i3) - red2))));
10653 float green3 = ((float) green2) * (1.0f - ((green - ((float) green2)) / ((float) (Color.green(i3) - green2))));
10654 float blue3 = ((float) blue2) * (1.0f - ((blue - ((float) blue2)) / ((float) (Color.blue(i3) - blue2))));
10655 return new ColorMatrix(new float[]{red, 0.0f, 0.0f, 0.0f, red3, 0.0f, green, 0.0f, 0.0f, green3, 0.0f, 0.0f, blue, 0.0f, blue3, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f});
10656 }
10657
10658 public static kgf H(int i) {
10659 kgf kgf = new kgf();
10660 kgf.b = 1;
10661 kgf.c = new kgg();
10662 kgf.c.a = i;
10663 return kgf;
10664 }
10665
10666 public static Bitmap a(Uri uri, Context context) {
10667 CharSequence queryParameter = uri.getQueryParameter("text");
10668 String queryParameter2 = uri.getQueryParameter("size");
10669 String queryParameter3 = uri.getQueryParameter("width");
10670 String queryParameter4 = uri.getQueryParameter("height");
10671 if (queryParameter == null || queryParameter2 == null || queryParameter3 == null || queryParameter4 == null) {
10672 String valueOf = String.valueOf(uri);
10673 Log.e("TextBitmapCreator", new StringBuilder(String.valueOf(valueOf).length() + 37).append("Text, size or gravity missing in URI ").append(valueOf).toString());
10674 return null;
10675 }
10676 String queryParameter5 = uri.getQueryParameter("color");
10677 String queryParameter6 = uri.getQueryParameter("gravity");
10678 String queryParameter7 = uri.getQueryParameter("shadow_radius");
10679 String queryParameter8 = uri.getQueryParameter("shadow_dx");
10680 String queryParameter9 = uri.getQueryParameter("shadow_dy");
10681 String queryParameter10 = uri.getQueryParameter("shadow_color");
10682 Object queryParameter11 = uri.getQueryParameter("font_family");
10683 int parseInt = queryParameter6 != null ? Integer.parseInt(queryParameter6) : 0;
10684 View textView = new TextView(context);
10685 textView.setText(queryParameter);
10686 textView.setTextColor(-16777216);
10687 textView.setTextSize(0, Float.parseFloat(queryParameter2));
10688 textView.clearComposingText();
10689 textView.setBackgroundColor(0);
10690 textView.setGravity(parseInt);
10691 textView.setPadding(0, 0, 0, 0);
10692 if (!(queryParameter7 == null || queryParameter8 == null || queryParameter9 == null || queryParameter10 == null)) {
10693 textView.setShadowLayer(Float.parseFloat(queryParameter7), Float.parseFloat(queryParameter8), Float.parseFloat(queryParameter9), (int) Long.parseLong(queryParameter10, 16));
10694 }
10695 if (!TextUtils.isEmpty(queryParameter11)) {
10696 textView.setTypeface(Typeface.create(queryParameter11, 0));
10697 }
10698 if (queryParameter5 != null) {
10699 textView.setTextColor((int) Long.parseLong(queryParameter5, 16));
10700 }
10701 int parseInt2 = Integer.parseInt(queryParameter3);
10702 int parseInt3 = Integer.parseInt(queryParameter4);
10703 LayoutParams layoutParams = new FrameLayout.LayoutParams(parseInt2, parseInt3);
10704 layoutParams.gravity = parseInt;
10705 textView.setLayoutParams(layoutParams);
10706 FrameLayout frameLayout = new FrameLayout(context);
10707 frameLayout.addView(textView);
10708 frameLayout.measure(0, 0);
10709 frameLayout.layout(0, 0, parseInt2, parseInt3);
10710 if (frameLayout.getWidth() == 0 || frameLayout.getHeight() == 0) {
10711 Log.e("TextBitmapCreator", "Not creating empty bitmap");
10712 return null;
10713 }
10714 Bitmap createBitmap = Bitmap.createBitmap(frameLayout.getWidth(), frameLayout.getHeight(), Config.ARGB_8888);
10715 frameLayout.draw(new Canvas(createBitmap));
10716 return createBitmap;
10717 }
10718
10719 public static <T> List<T> I(int i) {
10720 if (i == 0) {
10721 return Collections.emptyList();
10722 }
10723 return new ArrayList(i);
10724 }
10725
10726 public static <T> HashSet<T> J(int i) {
10727 return new HashSet(L(i));
10728 }
10729
10730 public static <K, V> LinkedHashMap<K, V> K(int i) {
10731 return new LinkedHashMap(L(i));
10732 }
10733
10734 public static int L(int i) {
10735 if (i < 3) {
10736 return i + 1;
10737 }
10738 if (i < 1073741824) {
10739 return (int) ((((float) i) / 0.75f) + 1.0f);
10740 }
10741 return Preference.DEFAULT_ORDER;
10742 }
10743
10744 public static <T> T a(kth<T> kth_T, T t) {
10745 kth_T.a(t);
10746 return t;
10747 }
10748
10749 public static <T> kth<T> aR() {
10750 return ktn.INSTANCE;
10751 }
10752
10753 public static ler a(lcl lcl) {
10754 jcz.a((Object) lcl, (Object) "context must not be null");
10755 if (!lcl.c()) {
10756 return null;
10757 }
10758 Throwable d = lcl.d();
10759 if (d == null) {
10760 return ler.c;
10761 }
10762 if (d instanceof TimeoutException) {
10763 return ler.e.a(d.getMessage()).c(d);
10764 }
10765 ler a = ler.a(d);
10766 if (let.UNKNOWN.equals(a.o) && a.q == d) {
10767 return ler.c.c(d);
10768 }
10769 return a.c(d);
10770 }
10771
10772 public static boolean a(lik lik, int i) {
10773 return lik.a(i);
10774 }
10775
10776 public static int b(lik lik, int i) {
10777 return lik.d[i];
10778 }
10779
10780 public static ldm c(List<lhz> list) {
10781 return new ldm(e((List) list));
10782 }
10783
10784 public static ldm d(List<lhz> list) {
10785 return new ldm(e((List) list));
10786 }
10787
10788 public static byte[][] e(List<lhz> list) {
10789 byte[][] bArr = new byte[(list.size() << 1)][];
10790 int i = 0;
10791 for (lhz lhz : list) {
10792 int i2 = i + 1;
10793 bArr[i] = lhz.f.d();
10794 i = i2 + 1;
10795 bArr[i2] = lhz.g.d();
10796 }
10797 return ei.a(bArr);
10798 }
10799
10800 public static lhj a(ktc ktc) {
10801 int i = 0;
10802 jcz.a(ktc.b, (Object) "plaintext ConnectionSpec is not accepted");
10803 List b = ktc.b();
10804 String[] strArr = new String[b.size()];
10805 for (int i2 = 0; i2 < strArr.length; i2++) {
10806 strArr[i2] = ((kte) b.get(i2)).d;
10807 }
10808 List a = ktc.a();
10809 lhi[] lhiArr = new lhi[a.size()];
10810 while (i < lhiArr.length) {
10811 lhiArr[i] = lhi.a(((ktb) a.get(i)).name());
10812 i++;
10813 }
10814 return new lhk(ktc.b).a(ktc.c).b(strArr).a(lhiArr).a();
10815 }
10816
10817 public static <T extends kfl> ldy<T> a(lim<T> lim_T) {
10818 return new lio(lim_T);
10819 }
10820
10821 public static lcd a(ldm ldm) {
10822 return new liu(ldm);
10823 }
10824
10825 public static <ReqT, RespT> lem<ReqT, RespT> a(g gVar) {
10826 return a((ljf) gVar);
10827 }
10828
10829 public static <ReqT, RespT> lem<ReqT, RespT> a(lja<ReqT, RespT> lja_ReqT__RespT) {
10830 return a((lje) lja_ReqT__RespT);
10831 }
10832
10833 public static <ReqT, RespT> lem<ReqT, RespT> a(ljf<ReqT, RespT> ljf_ReqT__RespT) {
10834 return new liw(ljf_ReqT__RespT);
10835 }
10836
10837 public static <ReqT, RespT> lem<ReqT, RespT> a(lje<ReqT, RespT> lje_ReqT__RespT) {
10838 return new liy(lje_ReqT__RespT);
10839 }
10840
10841 public static void a(ldx<?, ?> ldx___, ljg<?> ljg_) {
10842 jcz.a((Object) ldx___);
10843 jcz.a((Object) ljg_);
10844 ljg_.a(ler.j.a(String.format("Method %s is unimplemented", new Object[]{ldx___.b})).c());
10845 }
10846
10847 public static <T> ljg<T> b(ldx<?, ?> ldx___, ljg<?> ljg_) {
10848 a((ldx) ldx___, (ljg) ljg_);
10849 return new ljc();
10850 }
10851
10852 public static void a(ByteBuffer byteBuffer) {
10853 if (!byteBuffer.isDirect()) {
10854 throw new IllegalArgumentException("byteBuffer must be a direct ByteBuffer.");
10855 }
10856 }
10857
10858 public static void b(ByteBuffer byteBuffer) {
10859 if (!byteBuffer.hasRemaining()) {
10860 throw new IllegalArgumentException("ByteBuffer is already full.");
10861 }
10862 }
10863
10864 public static int a(byte[] bArr, byte[] bArr2) {
10865 int i = 0;
10866 int i2 = 0;
10867 while (i < 32) {
10868 i2 |= bArr[i] ^ bArr2[i];
10869 i++;
10870 }
10871 return i2;
10872 }
10873
10874 public static void b(byte[] bArr, byte[] bArr2) {
10875 lse lse = new lse();
10876 int[] iArr = new int[10];
10877 int[] iArr2 = new int[10];
10878 int[] iArr3 = new int[10];
10879 int[] iArr4 = new int[10];
10880 a(lse, bArr2);
10881 a(iArr, lse.b, lse.c);
10882 c(iArr2, lse.c, lse.b);
10883 b(iArr3, iArr2);
10884 b(iArr4, iArr, iArr3);
10885 a(bArr, iArr4);
10886 }
10887
10888 public static int a(lrx lrx, byte[] bArr, byte[] bArr2, byte[] bArr3, int i, byte[] bArr4) {
10889 lse lse = new lse();
10890 byte[] bArr5 = new byte[32];
10891 byte[] bArr6 = new byte[(i + 128)];
10892 a(lse, bArr2);
10893 a(bArr5, lse);
10894 byte b = (byte) (bArr5[31] & 128);
10895 a(lrx, bArr6, bArr3, (long) i, bArr2, bArr5, bArr4);
10896 System.arraycopy(bArr6, 0, bArr, 0, 64);
10897 bArr[63] = (byte) (bArr[63] & 127);
10898 bArr[63] = (byte) (b | bArr[63]);
10899 return 0;
10900 }
10901
10902 public static int a(lrx lrx, byte[] bArr, byte[] bArr2, byte[] bArr3, int i) {
10903 int[] iArr = new int[10];
10904 int[] iArr2 = new int[10];
10905 int[] iArr3 = new int[10];
10906 int[] iArr4 = new int[10];
10907 int[] iArr5 = new int[10];
10908 int[] iArr6 = new int[10];
10909 byte[] bArr4 = new byte[32];
10910 byte[] bArr5 = new byte[(i + 64)];
10911 byte[] bArr6 = new byte[(i + 64)];
10912 a(iArr, bArr2);
10913 b(iArr5);
10914 c(iArr2, iArr, iArr5);
10915 a(iArr3, iArr, iArr5);
10916 b(iArr4, iArr3);
10917 b(iArr6, iArr2, iArr4);
10918 a(bArr4, iArr6);
10919 bArr4[31] = (byte) (bArr4[31] & 127);
10920 bArr4[31] = (byte) (bArr4[31] | (bArr[63] & 128));
10921 System.arraycopy(bArr, 0, bArr5, 0, 64);
10922 bArr5[63] = (byte) (bArr5[63] & 127);
10923 System.arraycopy(bArr3, 0, bArr5, 64, i);
10924 return a(lrx, bArr6, bArr5, (long) (i + 64), bArr4);
10925 }
10926
10927 public static void a(int[] iArr) {
10928 iArr[0] = 0;
10929 iArr[1] = 0;
10930 iArr[2] = 0;
10931 iArr[3] = 0;
10932 iArr[4] = 0;
10933 iArr[5] = 0;
10934 iArr[6] = 0;
10935 iArr[7] = 0;
10936 iArr[8] = 0;
10937 iArr[9] = 0;
10938 }
10939
10940 public static void b(int[] iArr) {
10941 iArr[0] = 1;
10942 iArr[1] = 0;
10943 iArr[2] = 0;
10944 iArr[3] = 0;
10945 iArr[4] = 0;
10946 iArr[5] = 0;
10947 iArr[6] = 0;
10948 iArr[7] = 0;
10949 iArr[8] = 0;
10950 iArr[9] = 0;
10951 }
10952
10953 public static void a(int[] iArr, int[] iArr2, int[] iArr3) {
10954 int i = iArr2[0];
10955 int i2 = iArr2[1];
10956 int i3 = iArr2[2];
10957 int i4 = iArr2[3];
10958 int i5 = iArr2[4];
10959 int i6 = iArr2[5];
10960 int i7 = iArr2[6];
10961 int i8 = iArr2[7];
10962 int i9 = iArr2[8];
10963 int i10 = iArr2[9];
10964 int i11 = iArr3[0];
10965 int i12 = iArr3[1];
10966 int i13 = iArr3[2];
10967 int i14 = iArr3[3];
10968 int i15 = iArr3[4];
10969 int i16 = iArr3[5];
10970 int i17 = iArr3[6];
10971 int i18 = iArr3[7];
10972 i2 += i12;
10973 i3 += i13;
10974 i4 += i14;
10975 i5 += i15;
10976 i6 += i16;
10977 i7 += i17;
10978 i8 += i18;
10979 i9 += iArr3[8];
10980 i10 += iArr3[9];
10981 iArr[0] = i + i11;
10982 iArr[1] = i2;
10983 iArr[2] = i3;
10984 iArr[3] = i4;
10985 iArr[4] = i5;
10986 iArr[5] = i6;
10987 iArr[6] = i7;
10988 iArr[7] = i8;
10989 iArr[8] = i9;
10990 iArr[9] = i10;
10991 }
10992
10993 public static void a(int[] iArr, int[] iArr2, int i) {
10994 int i2 = iArr[0];
10995 int i3 = iArr[1];
10996 int i4 = iArr[2];
10997 int i5 = iArr[3];
10998 int i6 = iArr[4];
10999 int i7 = iArr[5];
11000 int i8 = iArr[6];
11001 int i9 = iArr[7];
11002 int i10 = iArr[8];
11003 int i11 = iArr[9];
11004 int i12 = iArr2[0];
11005 int i13 = iArr2[1];
11006 int i14 = iArr2[2];
11007 int i15 = iArr2[3];
11008 int i16 = iArr2[4];
11009 int i17 = iArr2[5];
11010 int i18 = iArr2[6];
11011 int i19 = iArr2[7];
11012 int i20 = -i;
11013 i13 = (i13 ^ i3) & i20;
11014 i14 = (i14 ^ i4) & i20;
11015 i15 = (i15 ^ i5) & i20;
11016 i16 = (i16 ^ i6) & i20;
11017 i17 = (i17 ^ i7) & i20;
11018 i18 = (i18 ^ i8) & i20;
11019 i19 = (i19 ^ i9) & i20;
11020 int i21 = (iArr2[8] ^ i10) & i20;
11021 int i22 = (iArr2[9] ^ i11) & i20;
11022 iArr[0] = i2 ^ ((i12 ^ i2) & i20);
11023 iArr[1] = i3 ^ i13;
11024 iArr[2] = i4 ^ i14;
11025 iArr[3] = i5 ^ i15;
11026 iArr[4] = i6 ^ i16;
11027 iArr[5] = i7 ^ i17;
11028 iArr[6] = i8 ^ i18;
11029 iArr[7] = i9 ^ i19;
11030 iArr[8] = i10 ^ i21;
11031 iArr[9] = i11 ^ i22;
11032 }
11033
11034 public static void a(int[] iArr, int[] iArr2) {
11035 int i = iArr2[0];
11036 int i2 = iArr2[1];
11037 int i3 = iArr2[2];
11038 int i4 = iArr2[3];
11039 int i5 = iArr2[4];
11040 int i6 = iArr2[5];
11041 int i7 = iArr2[6];
11042 int i8 = iArr2[7];
11043 int i9 = iArr2[8];
11044 int i10 = iArr2[9];
11045 iArr[0] = i;
11046 iArr[1] = i2;
11047 iArr[2] = i3;
11048 iArr[3] = i4;
11049 iArr[4] = i5;
11050 iArr[5] = i6;
11051 iArr[6] = i7;
11052 iArr[7] = i8;
11053 iArr[8] = i9;
11054 iArr[9] = i10;
11055 }
11056
11057 public static void b(int[] iArr, int[] iArr2, int i) {
11058 int i2 = iArr[0];
11059 int i3 = iArr[1];
11060 int i4 = iArr[2];
11061 int i5 = iArr[3];
11062 int i6 = iArr[4];
11063 int i7 = iArr[5];
11064 int i8 = iArr[6];
11065 int i9 = iArr[7];
11066 int i10 = iArr[8];
11067 int i11 = iArr[9];
11068 int i12 = iArr2[0];
11069 int i13 = iArr2[1];
11070 int i14 = iArr2[2];
11071 int i15 = iArr2[3];
11072 int i16 = iArr2[4];
11073 int i17 = iArr2[5];
11074 int i18 = iArr2[6];
11075 int i19 = iArr2[7];
11076 int i20 = iArr2[8];
11077 int i21 = iArr2[9];
11078 int i22 = -i;
11079 int i23 = (i2 ^ i12) & i22;
11080 int i24 = (i3 ^ i13) & i22;
11081 int i25 = (i4 ^ i14) & i22;
11082 int i26 = (i5 ^ i15) & i22;
11083 int i27 = (i6 ^ i16) & i22;
11084 int i28 = (i7 ^ i17) & i22;
11085 int i29 = (i8 ^ i18) & i22;
11086 int i30 = (i9 ^ i19) & i22;
11087 int i31 = (i10 ^ i20) & i22;
11088 int i32 = (i11 ^ i21) & i22;
11089 iArr[0] = i2 ^ i23;
11090 iArr[1] = i3 ^ i24;
11091 iArr[2] = i4 ^ i25;
11092 iArr[3] = i5 ^ i26;
11093 iArr[4] = i6 ^ i27;
11094 iArr[5] = i7 ^ i28;
11095 iArr[6] = i8 ^ i29;
11096 iArr[7] = i9 ^ i30;
11097 iArr[8] = i10 ^ i31;
11098 iArr[9] = i11 ^ i32;
11099 iArr2[0] = i12 ^ i23;
11100 iArr2[1] = i13 ^ i24;
11101 iArr2[2] = i14 ^ i25;
11102 iArr2[3] = i15 ^ i26;
11103 iArr2[4] = i16 ^ i27;
11104 iArr2[5] = i17 ^ i28;
11105 iArr2[6] = i18 ^ i29;
11106 iArr2[7] = i19 ^ i30;
11107 iArr2[8] = i20 ^ i31;
11108 iArr2[9] = i21 ^ i32;
11109 }
11110
11111 public static long e(byte[] bArr, int i) {
11112 return ((((long) bArr[i]) & 255) | ((((long) bArr[i + 1]) << 8) & 65280)) | ((((long) bArr[i + 2]) << 16) & 16711680);
11113 }
11114
11115 public static long f(byte[] bArr, int i) {
11116 return (((((long) bArr[i]) & 255) | ((((long) bArr[i + 1]) << 8) & 65280)) | ((((long) bArr[i + 2]) << 16) & 16711680)) | ((((long) bArr[i + 3]) << 24) & 4278190080L);
11117 }
11118
11119 public static void a(int[] iArr, byte[] bArr) {
11120 long f = f(bArr, 0);
11121 long e = e(bArr, 4) << 6;
11122 long e2 = e(bArr, 7) << 5;
11123 long e3 = e(bArr, 10) << 3;
11124 long e4 = e(bArr, 13) << 2;
11125 long f2 = f(bArr, 16);
11126 long e5 = e(bArr, 23) << 5;
11127 long e6 = (e(bArr, 29) & 8388607) << 2;
11128 long j = (16777216 + e6) >> 25;
11129 f += 19 * j;
11130 e6 -= j << 25;
11131 j = (16777216 + e) >> 25;
11132 e2 += j;
11133 e -= j << 25;
11134 j = (16777216 + e3) >> 25;
11135 e4 += j;
11136 e3 -= j << 25;
11137 j = (16777216 + f2) >> 25;
11138 long e7 = (e(bArr, 20) << 7) + j;
11139 f2 -= j << 25;
11140 j = (16777216 + e5) >> 25;
11141 long e8 = (e(bArr, 26) << 4) + j;
11142 e5 -= j << 25;
11143 j = (33554432 + f) >> 26;
11144 e += j;
11145 f -= j << 26;
11146 j = (33554432 + e2) >> 26;
11147 e3 += j;
11148 e2 -= j << 26;
11149 j = (33554432 + e4) >> 26;
11150 f2 += j;
11151 e4 -= j << 26;
11152 j = (33554432 + e7) >> 26;
11153 e5 += j;
11154 e7 -= j << 26;
11155 j = (33554432 + e8) >> 26;
11156 e6 += j;
11157 e8 -= j << 26;
11158 iArr[0] = (int) f;
11159 iArr[1] = (int) e;
11160 iArr[2] = (int) e2;
11161 iArr[3] = (int) e3;
11162 iArr[4] = (int) e4;
11163 iArr[5] = (int) f2;
11164 iArr[6] = (int) e7;
11165 iArr[7] = (int) e5;
11166 iArr[8] = (int) e8;
11167 iArr[9] = (int) e6;
11168 }
11169
11170 public static void b(int[] iArr, int[] iArr2) {
11171 int i;
11172 int i2 = 1;
11173 int[] iArr3 = new int[10];
11174 int[] iArr4 = new int[10];
11175 int[] iArr5 = new int[10];
11176 int[] iArr6 = new int[10];
11177 f(iArr3, iArr2);
11178 f(iArr4, iArr3);
11179 for (i = 1; i < 2; i++) {
11180 f(iArr4, iArr4);
11181 }
11182 b(iArr4, iArr2, iArr4);
11183 b(iArr3, iArr3, iArr4);
11184 f(iArr5, iArr3);
11185 b(iArr4, iArr4, iArr5);
11186 f(iArr5, iArr4);
11187 for (i = 1; i < 5; i++) {
11188 f(iArr5, iArr5);
11189 }
11190 b(iArr4, iArr5, iArr4);
11191 f(iArr5, iArr4);
11192 for (i = 1; i < 10; i++) {
11193 f(iArr5, iArr5);
11194 }
11195 b(iArr5, iArr5, iArr4);
11196 f(iArr6, iArr5);
11197 for (i = 1; i < 20; i++) {
11198 f(iArr6, iArr6);
11199 }
11200 b(iArr5, iArr6, iArr5);
11201 f(iArr5, iArr5);
11202 for (i = 1; i < 10; i++) {
11203 f(iArr5, iArr5);
11204 }
11205 b(iArr4, iArr5, iArr4);
11206 f(iArr5, iArr4);
11207 for (i = 1; i < 50; i++) {
11208 f(iArr5, iArr5);
11209 }
11210 b(iArr5, iArr5, iArr4);
11211 f(iArr6, iArr5);
11212 for (i = 1; i < 100; i++) {
11213 f(iArr6, iArr6);
11214 }
11215 b(iArr5, iArr6, iArr5);
11216 f(iArr5, iArr5);
11217 for (i = 1; i < 50; i++) {
11218 f(iArr5, iArr5);
11219 }
11220 b(iArr4, iArr5, iArr4);
11221 f(iArr4, iArr4);
11222 while (i2 < 5) {
11223 f(iArr4, iArr4);
11224 i2++;
11225 }
11226 b(iArr, iArr4, iArr3);
11227 }
11228
11229 public static int c(int[] iArr) {
11230 byte[] bArr = new byte[32];
11231 a(bArr, iArr);
11232 return bArr[0] & 1;
11233 }
11234
11235 public static void b(int[] iArr, int[] iArr2, int[] iArr3) {
11236 int i = iArr2[0];
11237 int i2 = iArr2[1];
11238 int i3 = iArr2[2];
11239 int i4 = iArr2[3];
11240 int i5 = iArr2[4];
11241 int i6 = iArr2[5];
11242 int i7 = iArr2[6];
11243 int i8 = iArr2[7];
11244 int i9 = iArr2[8];
11245 int i10 = iArr2[9];
11246 int i11 = iArr3[0];
11247 int i12 = iArr3[1];
11248 int i13 = iArr3[2];
11249 int i14 = iArr3[3];
11250 int i15 = iArr3[4];
11251 int i16 = iArr3[5];
11252 int i17 = iArr3[6];
11253 int i18 = iArr3[7];
11254 int i19 = iArr3[8];
11255 int i20 = iArr3[9];
11256 int i21 = i13 * 19;
11257 int i22 = i14 * 19;
11258 int i23 = i15 * 19;
11259 int i24 = i16 * 19;
11260 int i25 = i17 * 19;
11261 int i26 = i18 * 19;
11262 int i27 = i19 * 19;
11263 int i28 = i20 * 19;
11264 int i29 = i2 * 2;
11265 int i30 = i4 * 2;
11266 int i31 = i6 * 2;
11267 int i32 = i8 * 2;
11268 int i33 = i10 * 2;
11269 long j = ((long) i) * ((long) i11);
11270 long j2 = ((long) i) * ((long) i12);
11271 long j3 = ((long) i) * ((long) i13);
11272 long j4 = ((long) i) * ((long) i14);
11273 long j5 = ((long) i) * ((long) i15);
11274 long j6 = ((long) i) * ((long) i16);
11275 long j7 = ((long) i) * ((long) i17);
11276 long j8 = ((long) i) * ((long) i18);
11277 long j9 = ((long) i) * ((long) i19);
11278 long j10 = ((long) i) * ((long) i20);
11279 long j11 = ((long) i2) * ((long) i11);
11280 long j12 = ((long) i29) * ((long) i12);
11281 long j13 = ((long) i2) * ((long) i13);
11282 long j14 = ((long) i29) * ((long) i14);
11283 long j15 = ((long) i2) * ((long) i15);
11284 long j16 = ((long) i29) * ((long) i16);
11285 long j17 = ((long) i2) * ((long) i17);
11286 long j18 = ((long) i29) * ((long) i18);
11287 long j19 = ((long) i2) * ((long) i19);
11288 long j20 = ((long) i29) * ((long) i28);
11289 long j21 = ((long) i3) * ((long) i11);
11290 long j22 = ((long) i3) * ((long) i12);
11291 long j23 = ((long) i3) * ((long) i13);
11292 long j24 = ((long) i3) * ((long) i14);
11293 long j25 = ((long) i3) * ((long) i15);
11294 long j26 = ((long) i3) * ((long) i16);
11295 long j27 = ((long) i3) * ((long) i17);
11296 long j28 = ((long) i3) * ((long) i18);
11297 long j29 = ((long) i3) * ((long) i27);
11298 long j30 = ((long) i3) * ((long) i28);
11299 long j31 = ((long) i4) * ((long) i11);
11300 long j32 = ((long) i30) * ((long) i12);
11301 long j33 = ((long) i4) * ((long) i13);
11302 long j34 = ((long) i30) * ((long) i14);
11303 long j35 = ((long) i4) * ((long) i15);
11304 long j36 = ((long) i30) * ((long) i16);
11305 long j37 = (long) i17;
11306 j37 = r0 * ((long) i4);
11307 long j38 = ((long) i30) * ((long) i26);
11308 long j39 = ((long) i4) * ((long) i27);
11309 long j40 = ((long) i30) * ((long) i28);
11310 long j41 = ((long) i5) * ((long) i11);
11311 long j42 = ((long) i5) * ((long) i12);
11312 long j43 = ((long) i5) * ((long) i13);
11313 long j44 = ((long) i5) * ((long) i14);
11314 long j45 = ((long) i5) * ((long) i15);
11315 long j46 = ((long) i5) * ((long) i16);
11316 long j47 = ((long) i5) * ((long) i25);
11317 long j48 = ((long) i5) * ((long) i26);
11318 long j49 = ((long) i5) * ((long) i27);
11319 long j50 = ((long) i5) * ((long) i28);
11320 long j51 = ((long) i6) * ((long) i11);
11321 long j52 = ((long) i31) * ((long) i12);
11322 long j53 = ((long) i6) * ((long) i13);
11323 long j54 = ((long) i31) * ((long) i14);
11324 long j55 = (long) i15;
11325 j55 = r0 * ((long) i6);
11326 long j56 = ((long) i31) * ((long) i24);
11327 long j57 = ((long) i6) * ((long) i25);
11328 long j58 = ((long) i31) * ((long) i26);
11329 long j59 = ((long) i6) * ((long) i27);
11330 long j60 = ((long) i31) * ((long) i28);
11331 long j61 = ((long) i7) * ((long) i11);
11332 long j62 = ((long) i7) * ((long) i12);
11333 long j63 = ((long) i7) * ((long) i13);
11334 long j64 = ((long) i7) * ((long) i14);
11335 long j65 = ((long) i7) * ((long) i23);
11336 long j66 = ((long) i7) * ((long) i24);
11337 long j67 = ((long) i7) * ((long) i25);
11338 long j68 = ((long) i7) * ((long) i26);
11339 long j69 = ((long) i7) * ((long) i27);
11340 long j70 = ((long) i7) * ((long) i28);
11341 long j71 = ((long) i8) * ((long) i11);
11342 long j72 = ((long) i32) * ((long) i12);
11343 long j73 = (long) i13;
11344 j73 *= (long) i8;
11345 long j74 = ((long) i32) * ((long) i22);
11346 long j75 = ((long) i8) * ((long) i23);
11347 long j76 = ((long) i32) * ((long) i24);
11348 long j77 = ((long) i8) * ((long) i25);
11349 long j78 = ((long) i32) * ((long) i26);
11350 long j79 = ((long) i8) * ((long) i27);
11351 long j80 = ((long) i32) * ((long) i28);
11352 long j81 = ((long) i9) * ((long) i11);
11353 long j82 = ((long) i9) * ((long) i12);
11354 long j83 = ((long) i9) * ((long) i21);
11355 long j84 = ((long) i9) * ((long) i22);
11356 long j85 = ((long) i9) * ((long) i23);
11357 long j86 = ((long) i9) * ((long) i24);
11358 long j87 = ((long) i9) * ((long) i25);
11359 long j88 = ((long) i9) * ((long) i26);
11360 long j89 = ((long) i9) * ((long) i27);
11361 long j90 = ((long) i9) * ((long) i28);
11362 long j91 = (long) i11;
11363 j91 *= (long) i10;
11364 long j92 = (long) i21;
11365 j92 = r0 * ((long) i10);
11366 long j93 = (long) i23;
11367 j93 = r0 * ((long) i10);
11368 long j94 = (long) i25;
11369 j94 = r0 * ((long) i10);
11370 long j95 = (long) i26;
11371 j20 = ((((((((j20 + j) + j29) + j38) + j47) + j56) + j65) + j74) + j83) + (((long) i33) * ((long) (i12 * 19)));
11372 j59 = ((((j59 + ((((j4 + j13) + j22) + j31) + j50)) + j68) + j77) + j86) + j93;
11373 j93 = ((((((((j5 + j14) + j23) + j32) + j41) + j60) + j69) + j78) + j87) + (((long) i33) * ((long) i24));
11374 j79 = ((j79 + ((((((j6 + j15) + j24) + j33) + j42) + j51) + j70)) + j88) + j94;
11375 j94 = (((((((j7 + j16) + j25) + j34) + j43) + j52) + j61) + j80) + j89;
11376 j19 = ((((((((j19 + j10) + j28) + j37) + j46) + j55) + j64) + j73) + j82) + j91;
11377 j91 = (33554432 + j20) >> 26;
11378 j39 = (((((((j39 + ((j2 + j11) + j30)) + j48) + j57) + j66) + j75) + j84) + j92) + j91;
11379 j91 = j20 - (j91 << 26);
11380 j73 = (33554432 + j93) >> 26;
11381 j79 += j73;
11382 j55 = (16777216 + j39) >> 25;
11383 j37 = (((((((((j3 + j12) + j21) + j40) + j49) + j58) + j67) + j76) + j85) + (((long) i33) * ((long) i22))) + j55;
11384 j39 -= j55 << 25;
11385 j55 = (16777216 + j79) >> 25;
11386 j20 = (j94 + (((long) i33) * r0)) + j55;
11387 j79 -= j55 << 25;
11388 j55 = (33554432 + j37) >> 26;
11389 j59 += j55;
11390 j55 = j37 - (j55 << 26);
11391 j37 = (33554432 + j20) >> 26;
11392 long j96 = ((((long) i10) * ((long) i27)) + ((((((((j8 + j17) + j26) + j35) + j44) + j53) + j62) + j71) + j90)) + j37;
11393 j37 = j20 - (j37 << 26);
11394 j20 = (16777216 + j59) >> 25;
11395 j73 = (j93 - (j73 << 26)) + j20;
11396 j59 -= j20 << 25;
11397 j20 = (16777216 + j96) >> 25;
11398 j92 = ((((long) i33) * ((long) i28)) + ((((((((j9 + j18) + j27) + j36) + j45) + j54) + j63) + j72) + j81)) + j20;
11399 j96 -= j20 << 25;
11400 j20 = (33554432 + j73) >> 26;
11401 j79 += j20;
11402 j73 -= j20 << 26;
11403 j20 = (33554432 + j92) >> 26;
11404 j19 += j20;
11405 j20 = j92 - (j20 << 26);
11406 j92 = (16777216 + j19) >> 25;
11407 j91 += 19 * j92;
11408 j19 -= j92 << 25;
11409 j92 = (33554432 + j91) >> 26;
11410 j39 += j92;
11411 iArr[0] = (int) (j91 - (j92 << 26));
11412 iArr[1] = (int) j39;
11413 iArr[2] = (int) j55;
11414 iArr[3] = (int) j59;
11415 iArr[4] = (int) j73;
11416 iArr[5] = (int) j79;
11417 iArr[6] = (int) j37;
11418 iArr[7] = (int) j96;
11419 iArr[8] = (int) j20;
11420 iArr[9] = (int) j19;
11421 }
11422
11423 public static void c(int[] iArr, int[] iArr2) {
11424 int i = iArr2[0];
11425 int i2 = iArr2[1];
11426 int i3 = iArr2[2];
11427 int i4 = iArr2[3];
11428 int i5 = iArr2[4];
11429 int i6 = iArr2[5];
11430 int i7 = iArr2[6];
11431 int i8 = iArr2[7];
11432 long j = ((long) i2) * 121666;
11433 long j2 = ((long) i4) * 121666;
11434 long j3 = (long) i5;
11435 long j4 = ((long) i6) * 121666;
11436 long j5 = (long) i7;
11437 long j6 = ((long) i8) * 121666;
11438 long j7 = (long) iArr2[8];
11439 long j8 = ((long) iArr2[9]) * 121666;
11440 long j9 = (16777216 + j8) >> 25;
11441 long j10 = (((long) i) * 121666) + (19 * j9);
11442 j8 -= j9 << 25;
11443 j9 = (16777216 + j) >> 25;
11444 long j11 = (((long) i3) * 121666) + j9;
11445 j -= j9 << 25;
11446 j9 = (16777216 + j2) >> 25;
11447 j3 = (r0 * 121666) + j9;
11448 j2 -= j9 << 25;
11449 j9 = (16777216 + j4) >> 25;
11450 j5 = (r0 * 121666) + j9;
11451 j4 -= j9 << 25;
11452 j9 = (16777216 + j6) >> 25;
11453 j7 = (r0 * 121666) + j9;
11454 j6 -= j9 << 25;
11455 j9 = (33554432 + j10) >> 26;
11456 j += j9;
11457 j10 -= j9 << 26;
11458 j9 = (33554432 + j11) >> 26;
11459 j2 += j9;
11460 j11 -= j9 << 26;
11461 j9 = (33554432 + j3) >> 26;
11462 j4 += j9;
11463 j3 -= j9 << 26;
11464 j9 = (33554432 + j5) >> 26;
11465 j6 += j9;
11466 j5 -= j9 << 26;
11467 j9 = (33554432 + j7) >> 26;
11468 j8 += j9;
11469 j7 -= j9 << 26;
11470 iArr[0] = (int) j10;
11471 iArr[1] = (int) j;
11472 iArr[2] = (int) j11;
11473 iArr[3] = (int) j2;
11474 iArr[4] = (int) j3;
11475 iArr[5] = (int) j4;
11476 iArr[6] = (int) j5;
11477 iArr[7] = (int) j6;
11478 iArr[8] = (int) j7;
11479 iArr[9] = (int) j8;
11480 }
11481
11482 public static void d(int[] iArr, int[] iArr2) {
11483 int i = iArr2[0];
11484 int i2 = iArr2[1];
11485 int i3 = iArr2[2];
11486 int i4 = iArr2[3];
11487 int i5 = iArr2[4];
11488 int i6 = iArr2[5];
11489 int i7 = iArr2[6];
11490 int i8 = iArr2[7];
11491 i2 = -i2;
11492 i3 = -i3;
11493 i4 = -i4;
11494 i5 = -i5;
11495 i6 = -i6;
11496 i7 = -i7;
11497 i8 = -i8;
11498 int i9 = -iArr2[8];
11499 int i10 = -iArr2[9];
11500 iArr[0] = -i;
11501 iArr[1] = i2;
11502 iArr[2] = i3;
11503 iArr[3] = i4;
11504 iArr[4] = i5;
11505 iArr[5] = i6;
11506 iArr[6] = i7;
11507 iArr[7] = i8;
11508 iArr[8] = i9;
11509 iArr[9] = i10;
11510 }
11511
11512 public static void e(int[] iArr, int[] iArr2) {
11513 int i;
11514 int i2 = 1;
11515 int[] iArr3 = new int[10];
11516 int[] iArr4 = new int[10];
11517 int[] iArr5 = new int[10];
11518 f(iArr3, iArr2);
11519 f(iArr4, iArr3);
11520 for (i = 1; i < 2; i++) {
11521 f(iArr4, iArr4);
11522 }
11523 b(iArr4, iArr2, iArr4);
11524 b(iArr3, iArr3, iArr4);
11525 f(iArr3, iArr3);
11526 b(iArr3, iArr4, iArr3);
11527 f(iArr4, iArr3);
11528 for (i = 1; i < 5; i++) {
11529 f(iArr4, iArr4);
11530 }
11531 b(iArr3, iArr4, iArr3);
11532 f(iArr4, iArr3);
11533 for (i = 1; i < 10; i++) {
11534 f(iArr4, iArr4);
11535 }
11536 b(iArr4, iArr4, iArr3);
11537 f(iArr5, iArr4);
11538 for (i = 1; i < 20; i++) {
11539 f(iArr5, iArr5);
11540 }
11541 b(iArr4, iArr5, iArr4);
11542 f(iArr4, iArr4);
11543 for (i = 1; i < 10; i++) {
11544 f(iArr4, iArr4);
11545 }
11546 b(iArr3, iArr4, iArr3);
11547 f(iArr4, iArr3);
11548 for (i = 1; i < 50; i++) {
11549 f(iArr4, iArr4);
11550 }
11551 b(iArr4, iArr4, iArr3);
11552 f(iArr5, iArr4);
11553 for (i = 1; i < 100; i++) {
11554 f(iArr5, iArr5);
11555 }
11556 b(iArr4, iArr5, iArr4);
11557 f(iArr4, iArr4);
11558 for (i = 1; i < 50; i++) {
11559 f(iArr4, iArr4);
11560 }
11561 b(iArr3, iArr4, iArr3);
11562 f(iArr3, iArr3);
11563 while (i2 < 2) {
11564 f(iArr3, iArr3);
11565 i2++;
11566 }
11567 b(iArr, iArr3, iArr2);
11568 }
11569
11570 public static void f(int[] iArr, int[] iArr2) {
11571 int i = iArr2[0];
11572 int i2 = iArr2[1];
11573 int i3 = iArr2[2];
11574 int i4 = iArr2[3];
11575 int i5 = iArr2[4];
11576 int i6 = iArr2[5];
11577 int i7 = iArr2[6];
11578 int i8 = iArr2[7];
11579 int i9 = iArr2[8];
11580 int i10 = iArr2[9];
11581 int i11 = i * 2;
11582 int i12 = i2 * 2;
11583 int i13 = i3 * 2;
11584 int i14 = i4 * 2;
11585 int i15 = i5 * 2;
11586 int i16 = i6 * 2;
11587 int i17 = i8 * 2;
11588 int i18 = i7 * 19;
11589 int i19 = i8 * 38;
11590 int i20 = i9 * 19;
11591 int i21 = i10 * 38;
11592 long j = ((long) i) * ((long) i);
11593 long j2 = ((long) i11) * ((long) i2);
11594 long j3 = ((long) i11) * ((long) i3);
11595 long j4 = ((long) i11) * ((long) i4);
11596 long j5 = ((long) i11) * ((long) i5);
11597 long j6 = ((long) i11) * ((long) i6);
11598 long j7 = ((long) i11) * ((long) i7);
11599 long j8 = ((long) i11) * ((long) i8);
11600 long j9 = ((long) i11) * ((long) i9);
11601 long j10 = ((long) i11) * ((long) i10);
11602 long j11 = (long) i2;
11603 j11 *= (long) i12;
11604 long j12 = ((long) i12) * ((long) i3);
11605 long j13 = ((long) i12) * ((long) i14);
11606 long j14 = ((long) i12) * ((long) i5);
11607 long j15 = ((long) i12) * ((long) i16);
11608 long j16 = ((long) i12) * ((long) i7);
11609 long j17 = ((long) i12) * ((long) i17);
11610 long j18 = ((long) i12) * ((long) i9);
11611 long j19 = ((long) i12) * ((long) i21);
11612 long j20 = ((long) i3) * ((long) i3);
11613 long j21 = ((long) i13) * ((long) i4);
11614 long j22 = ((long) i13) * ((long) i5);
11615 long j23 = ((long) i13) * ((long) i6);
11616 long j24 = ((long) i13) * ((long) i7);
11617 long j25 = ((long) i13) * ((long) i8);
11618 long j26 = ((long) i13) * ((long) i20);
11619 long j27 = ((long) i3) * ((long) i21);
11620 long j28 = (long) i4;
11621 j28 *= (long) i14;
11622 long j29 = ((long) i14) * ((long) i5);
11623 long j30 = ((long) i14) * ((long) i16);
11624 long j31 = ((long) i14) * ((long) i7);
11625 long j32 = ((long) i14) * ((long) i19);
11626 long j33 = ((long) i14) * ((long) i20);
11627 long j34 = ((long) i14) * ((long) i21);
11628 long j35 = ((long) i5) * ((long) i5);
11629 long j36 = ((long) i15) * ((long) i6);
11630 long j37 = ((long) i15) * ((long) i18);
11631 long j38 = ((long) i5) * ((long) i19);
11632 long j39 = ((long) i15) * ((long) i20);
11633 long j40 = ((long) i5) * ((long) i21);
11634 long j41 = ((long) i6) * ((long) (i6 * 38));
11635 long j42 = ((long) i16) * ((long) i18);
11636 long j43 = ((long) i16) * ((long) i19);
11637 long j44 = ((long) i16) * ((long) i20);
11638 long j45 = ((long) i16) * ((long) i21);
11639 long j46 = (long) i18;
11640 j46 = r0 * ((long) i7);
11641 long j47 = ((long) i7) * ((long) i19);
11642 long j48 = ((long) i8) * ((long) i19);
11643 long j49 = ((long) i17) * ((long) i20);
11644 long j50 = (long) i20;
11645 j50 = r0 * ((long) i9);
11646 long j51 = (long) i9;
11647 long j52 = (long) i21;
11648 j41 += (((j19 + j) + j26) + j32) + j37;
11649 j48 += (j45 + ((j5 + j13) + j20)) + (((long) (i7 * 2)) * ((long) i20));
11650 j28 = ((j28 + ((j7 + j15) + j22)) + (((long) i17) * ((long) i21))) + j50;
11651 j50 = (33554432 + j41) >> 26;
11652 j19 = ((((j2 + j27) + j33) + j38) + j42) + j50;
11653 j41 -= j50 << 26;
11654 j50 = (33554432 + j48) >> 26;
11655 j45 = ((((j6 + j14) + j21) + (((long) i7) * ((long) i21))) + j49) + j50;
11656 j48 -= j50 << 26;
11657 j50 = (16777216 + j19) >> 25;
11658 j11 = (((((j11 + j3) + j34) + j39) + j43) + j46) + j50;
11659 j19 -= j50 << 25;
11660 j50 = (16777216 + j45) >> 25;
11661 j28 += j50;
11662 j45 -= j50 << 25;
11663 j50 = (33554432 + j11) >> 26;
11664 j34 = ((((j4 + j12) + j40) + j44) + j47) + j50;
11665 j11 -= j50 << 26;
11666 j50 = (33554432 + j28) >> 26;
11667 long j53 = ((((j8 + j16) + j23) + j29) + (r0 * r0)) + j50;
11668 j28 -= j50 << 26;
11669 j50 = (16777216 + j34) >> 25;
11670 j48 += j50;
11671 j34 -= j50 << 25;
11672 j50 = (16777216 + j53) >> 25;
11673 long j54 = ((((long) i10) * ((long) i21)) + ((((j9 + j17) + j24) + j30) + j35)) + j50;
11674 j53 -= j50 << 25;
11675 j50 = (33554432 + j48) >> 26;
11676 j45 += j50;
11677 j48 -= j50 << 26;
11678 j50 = (33554432 + j54) >> 26;
11679 j46 = ((((j10 + j18) + j25) + j31) + j36) + j50;
11680 j54 -= j50 << 26;
11681 j50 = (16777216 + j46) >> 25;
11682 j41 += 19 * j50;
11683 j46 -= j50 << 25;
11684 j50 = (33554432 + j41) >> 26;
11685 j19 += j50;
11686 iArr[0] = (int) (j41 - (j50 << 26));
11687 iArr[1] = (int) j19;
11688 iArr[2] = (int) j11;
11689 iArr[3] = (int) j34;
11690 iArr[4] = (int) j48;
11691 iArr[5] = (int) j45;
11692 iArr[6] = (int) j28;
11693 iArr[7] = (int) j53;
11694 iArr[8] = (int) j54;
11695 iArr[9] = (int) j46;
11696 }
11697
11698 public static void g(int[] iArr, int[] iArr2) {
11699 int i = iArr2[0];
11700 int i2 = iArr2[1];
11701 int i3 = iArr2[2];
11702 int i4 = iArr2[3];
11703 int i5 = iArr2[4];
11704 int i6 = iArr2[5];
11705 int i7 = iArr2[6];
11706 int i8 = iArr2[7];
11707 int i9 = iArr2[8];
11708 int i10 = iArr2[9];
11709 int i11 = i * 2;
11710 int i12 = i2 * 2;
11711 int i13 = i3 * 2;
11712 int i14 = i4 * 2;
11713 int i15 = i5 * 2;
11714 int i16 = i6 * 2;
11715 int i17 = i8 * 2;
11716 int i18 = i7 * 19;
11717 int i19 = i8 * 38;
11718 int i20 = i9 * 19;
11719 int i21 = i10 * 38;
11720 long j = ((long) i) * ((long) i);
11721 long j2 = ((long) i11) * ((long) i2);
11722 long j3 = ((long) i11) * ((long) i3);
11723 long j4 = ((long) i11) * ((long) i4);
11724 long j5 = ((long) i11) * ((long) i5);
11725 long j6 = ((long) i11) * ((long) i6);
11726 long j7 = ((long) i11) * ((long) i7);
11727 long j8 = ((long) i11) * ((long) i8);
11728 long j9 = ((long) i11) * ((long) i9);
11729 long j10 = ((long) i11) * ((long) i10);
11730 long j11 = (long) i2;
11731 j11 *= (long) i12;
11732 long j12 = ((long) i12) * ((long) i3);
11733 long j13 = ((long) i12) * ((long) i14);
11734 long j14 = ((long) i12) * ((long) i5);
11735 long j15 = ((long) i12) * ((long) i16);
11736 long j16 = ((long) i12) * ((long) i7);
11737 long j17 = ((long) i12) * ((long) i17);
11738 long j18 = ((long) i12) * ((long) i9);
11739 long j19 = ((long) i12) * ((long) i21);
11740 long j20 = ((long) i3) * ((long) i3);
11741 long j21 = ((long) i13) * ((long) i4);
11742 long j22 = ((long) i13) * ((long) i5);
11743 long j23 = ((long) i13) * ((long) i6);
11744 long j24 = ((long) i13) * ((long) i7);
11745 long j25 = ((long) i13) * ((long) i8);
11746 long j26 = ((long) i13) * ((long) i20);
11747 long j27 = ((long) i3) * ((long) i21);
11748 long j28 = (long) i4;
11749 j28 *= (long) i14;
11750 long j29 = ((long) i14) * ((long) i5);
11751 long j30 = ((long) i14) * ((long) i16);
11752 long j31 = ((long) i14) * ((long) i7);
11753 long j32 = ((long) i14) * ((long) i19);
11754 long j33 = ((long) i14) * ((long) i20);
11755 long j34 = ((long) i14) * ((long) i21);
11756 long j35 = ((long) i5) * ((long) i5);
11757 long j36 = ((long) i15) * ((long) i6);
11758 long j37 = ((long) i15) * ((long) i18);
11759 long j38 = ((long) i5) * ((long) i19);
11760 long j39 = ((long) i15) * ((long) i20);
11761 long j40 = ((long) i5) * ((long) i21);
11762 long j41 = ((long) i6) * ((long) (i6 * 38));
11763 long j42 = ((long) i16) * ((long) i18);
11764 long j43 = ((long) i16) * ((long) i19);
11765 long j44 = ((long) i16) * ((long) i20);
11766 long j45 = ((long) i16) * ((long) i21);
11767 long j46 = (long) i18;
11768 j46 = r0 * ((long) i7);
11769 long j47 = ((long) i7) * ((long) i19);
11770 long j48 = ((long) i8) * ((long) i19);
11771 long j49 = ((long) i17) * ((long) i20);
11772 long j50 = (long) i20;
11773 j50 = r0 * ((long) i9);
11774 long j51 = (long) i21;
11775 j41 += (((j19 + j) + j26) + j32) + j37;
11776 j19 = (((j2 + j27) + j33) + j38) + j42;
11777 j11 = ((((j11 + j3) + j34) + j39) + j43) + j46;
11778 j34 = (((j4 + j12) + j40) + j44) + j47;
11779 j48 += (j45 + ((j5 + j13) + j20)) + (((long) (i7 * 2)) * ((long) i20));
11780 j45 = (((j6 + j14) + j21) + (((long) i7) * ((long) i21))) + j49;
11781 j28 = ((j28 + ((j7 + j15) + j22)) + (((long) i17) * ((long) i21))) + j50;
11782 long j52 = ((j8 + j16) + j23) + j29;
11783 j52 += ((long) i9) * r0;
11784 long j53 = (((long) i10) * ((long) i21)) + ((((j9 + j17) + j24) + j30) + j35);
11785 j46 = (((j10 + j18) + j25) + j31) + j36;
11786 j41 += j41;
11787 j48 += j48;
11788 j50 = (33554432 + j41) >> 26;
11789 j19 = (j19 + j19) + j50;
11790 j41 -= j50 << 26;
11791 j50 = (33554432 + j48) >> 26;
11792 j45 = (j45 + j45) + j50;
11793 j48 -= j50 << 26;
11794 j50 = (16777216 + j19) >> 25;
11795 j11 = (j11 + j11) + j50;
11796 j19 -= j50 << 25;
11797 j50 = (16777216 + j45) >> 25;
11798 j28 = (j28 + j28) + j50;
11799 j45 -= j50 << 25;
11800 j50 = (33554432 + j11) >> 26;
11801 j34 = (j34 + j34) + j50;
11802 j11 -= j50 << 26;
11803 j50 = (33554432 + j28) >> 26;
11804 j52 = (j52 + j52) + j50;
11805 j28 -= j50 << 26;
11806 j50 = (16777216 + j34) >> 25;
11807 j48 += j50;
11808 j34 -= j50 << 25;
11809 j50 = (16777216 + j52) >> 25;
11810 j53 = (j53 + j53) + j50;
11811 j52 -= j50 << 25;
11812 j50 = (33554432 + j48) >> 26;
11813 j45 += j50;
11814 j48 -= j50 << 26;
11815 j50 = (33554432 + j53) >> 26;
11816 j46 = (j46 + j46) + j50;
11817 j53 -= j50 << 26;
11818 j50 = (16777216 + j46) >> 25;
11819 j41 += 19 * j50;
11820 j46 -= j50 << 25;
11821 j50 = (33554432 + j41) >> 26;
11822 j19 += j50;
11823 iArr[0] = (int) (j41 - (j50 << 26));
11824 iArr[1] = (int) j19;
11825 iArr[2] = (int) j11;
11826 iArr[3] = (int) j34;
11827 iArr[4] = (int) j48;
11828 iArr[5] = (int) j45;
11829 iArr[6] = (int) j28;
11830 iArr[7] = (int) j52;
11831 iArr[8] = (int) j53;
11832 iArr[9] = (int) j46;
11833 }
11834
11835 public static void c(int[] iArr, int[] iArr2, int[] iArr3) {
11836 int i = iArr2[0];
11837 int i2 = iArr2[1];
11838 int i3 = iArr2[2];
11839 int i4 = iArr2[3];
11840 int i5 = iArr2[4];
11841 int i6 = iArr2[5];
11842 int i7 = iArr2[6];
11843 int i8 = iArr2[7];
11844 int i9 = iArr2[8];
11845 int i10 = iArr2[9];
11846 int i11 = iArr3[0];
11847 int i12 = iArr3[1];
11848 int i13 = iArr3[2];
11849 int i14 = iArr3[3];
11850 int i15 = iArr3[4];
11851 int i16 = iArr3[5];
11852 int i17 = iArr3[6];
11853 int i18 = iArr3[7];
11854 i2 -= i12;
11855 i3 -= i13;
11856 i4 -= i14;
11857 i5 -= i15;
11858 i6 -= i16;
11859 i7 -= i17;
11860 i8 -= i18;
11861 i9 -= iArr3[8];
11862 i10 -= iArr3[9];
11863 iArr[0] = i - i11;
11864 iArr[1] = i2;
11865 iArr[2] = i3;
11866 iArr[3] = i4;
11867 iArr[4] = i5;
11868 iArr[5] = i6;
11869 iArr[6] = i7;
11870 iArr[7] = i8;
11871 iArr[8] = i9;
11872 iArr[9] = i10;
11873 }
11874
11875 public static void a(byte[] bArr, int[] iArr) {
11876 int i = iArr[0];
11877 int i2 = iArr[1];
11878 int i3 = iArr[2];
11879 int i4 = iArr[3];
11880 int i5 = iArr[4];
11881 int i6 = iArr[5];
11882 int i7 = iArr[6];
11883 int i8 = iArr[7];
11884 int i9 = iArr[8];
11885 int i10 = iArr[9];
11886 i += (((((((((((((((((((((((i10 * 19) + 16777216) >> 25) + i) >> 26) + i2) >> 25) + i3) >> 26) + i4) >> 25) + i5) >> 26) + i6) >> 25) + i7) >> 26) + i8) >> 25) + i9) >> 26) + i10) >> 25) * 19;
11887 int i11 = i >> 26;
11888 i2 += i11;
11889 i -= i11 << 26;
11890 i11 = i2 >> 25;
11891 i3 += i11;
11892 i2 -= i11 << 25;
11893 i11 = i3 >> 26;
11894 i4 += i11;
11895 i3 -= i11 << 26;
11896 i11 = i4 >> 25;
11897 i5 += i11;
11898 i4 -= i11 << 25;
11899 i11 = i5 >> 26;
11900 i6 += i11;
11901 i5 -= i11 << 26;
11902 i11 = i6 >> 25;
11903 i7 += i11;
11904 i6 -= i11 << 25;
11905 i11 = i7 >> 26;
11906 i8 += i11;
11907 i7 -= i11 << 26;
11908 i11 = i8 >> 25;
11909 i9 += i11;
11910 i8 -= i11 << 25;
11911 i11 = i9 >> 26;
11912 i10 += i11;
11913 i9 -= i11 << 26;
11914 i10 -= (i10 >> 25) << 25;
11915 bArr[0] = (byte) i;
11916 bArr[1] = (byte) (i >> 8);
11917 bArr[2] = (byte) (i >> 16);
11918 bArr[3] = (byte) ((i >> 24) | (i2 << 2));
11919 bArr[4] = (byte) (i2 >> 6);
11920 bArr[5] = (byte) (i2 >> 14);
11921 bArr[6] = (byte) ((i2 >> 22) | (i3 << 3));
11922 bArr[7] = (byte) (i3 >> 5);
11923 bArr[8] = (byte) (i3 >> 13);
11924 bArr[9] = (byte) ((i3 >> 21) | (i4 << 5));
11925 bArr[10] = (byte) (i4 >> 3);
11926 bArr[11] = (byte) (i4 >> 11);
11927 bArr[12] = (byte) ((i4 >> 19) | (i5 << 6));
11928 bArr[13] = (byte) (i5 >> 2);
11929 bArr[14] = (byte) (i5 >> 10);
11930 bArr[15] = (byte) (i5 >> 18);
11931 bArr[16] = (byte) i6;
11932 bArr[17] = (byte) (i6 >> 8);
11933 bArr[18] = (byte) (i6 >> 16);
11934 bArr[19] = (byte) ((i6 >> 24) | (i7 << 1));
11935 bArr[20] = (byte) (i7 >> 7);
11936 bArr[21] = (byte) (i7 >> 15);
11937 bArr[22] = (byte) ((i7 >> 23) | (i8 << 3));
11938 bArr[23] = (byte) (i8 >> 5);
11939 bArr[24] = (byte) (i8 >> 13);
11940 bArr[25] = (byte) ((i8 >> 21) | (i9 << 4));
11941 bArr[26] = (byte) (i9 >> 4);
11942 bArr[27] = (byte) (i9 >> 12);
11943 bArr[28] = (byte) ((i9 >> 20) | (i10 << 6));
11944 bArr[29] = (byte) (i10 >> 2);
11945 bArr[30] = (byte) (i10 >> 10);
11946 bArr[31] = (byte) (i10 >> 18);
11947 }
11948
11949 public static void a(lsc lsc, lse lse, lrz lrz) {
11950 int[] iArr = new int[10];
11951 a(lsc.a, lse.b, lse.a);
11952 c(lsc.b, lse.b, lse.a);
11953 b(lsc.c, lsc.a, lrz.a);
11954 b(lsc.b, lsc.b, lrz.b);
11955 b(lsc.d, lrz.d, lse.d);
11956 b(lsc.a, lse.c, lrz.c);
11957 a(iArr, lsc.a, lsc.a);
11958 c(lsc.a, lsc.c, lsc.b);
11959 a(lsc.b, lsc.c, lsc.b);
11960 a(lsc.c, iArr, lsc.d);
11961 c(lsc.d, iArr, lsc.d);
11962 }
11963
11964 public static void a(lsc lsc, lse lse, lsg lsg) {
11965 int[] iArr = new int[10];
11966 a(lsc.a, lse.b, lse.a);
11967 c(lsc.b, lse.b, lse.a);
11968 b(lsc.c, lsc.a, lsg.a);
11969 b(lsc.b, lsc.b, lsg.b);
11970 b(lsc.d, lsg.c, lse.d);
11971 a(iArr, lse.c, lse.c);
11972 c(lsc.a, lsc.c, lsc.b);
11973 a(lsc.b, lsc.c, lsc.b);
11974 a(lsc.c, iArr, lsc.d);
11975 c(lsc.d, iArr, lsc.d);
11976 }
11977
11978 public static void b(lsc lsc, lse lse, lsg lsg) {
11979 int[] iArr = new int[10];
11980 a(lsc.a, lse.b, lse.a);
11981 c(lsc.b, lse.b, lse.a);
11982 b(lsc.c, lsc.a, lsg.b);
11983 b(lsc.b, lsc.b, lsg.a);
11984 b(lsc.d, lsg.c, lse.d);
11985 a(iArr, lse.c, lse.c);
11986 c(lsc.a, lsc.c, lsc.b);
11987 a(lsc.b, lsc.c, lsc.b);
11988 c(lsc.c, iArr, lsc.d);
11989 a(lsc.d, iArr, lsc.d);
11990 }
11991
11992 public static void a(lsd lsd, lsc lsc) {
11993 b(lsd.a, lsc.a, lsc.d);
11994 b(lsd.b, lsc.b, lsc.c);
11995 b(lsd.c, lsc.c, lsc.d);
11996 }
11997
11998 public static void a(lse lse, lsc lsc) {
11999 b(lse.a, lsc.a, lsc.d);
12000 b(lse.b, lsc.b, lsc.c);
12001 b(lse.c, lsc.c, lsc.d);
12002 b(lse.d, lsc.a, lsc.b);
12003 }
12004
12005 public static void a(lsd lsd) {
12006 a(lsd.a);
12007 b(lsd.b);
12008 b(lsd.c);
12009 }
12010
12011 public static void a(lsc lsc, lsd lsd) {
12012 int[] iArr = new int[10];
12013 f(lsc.a, lsd.a);
12014 f(lsc.c, lsd.b);
12015 g(lsc.d, lsd.c);
12016 a(lsc.b, lsd.a, lsd.b);
12017 f(iArr, lsc.b);
12018 a(lsc.b, lsc.c, lsc.a);
12019 c(lsc.c, lsc.c, lsc.a);
12020 c(lsc.a, iArr, lsc.b);
12021 c(lsc.d, lsc.d, lsc.c);
12022 }
12023
12024 public static void a(lse lse) {
12025 a(lse.a);
12026 b(lse.b);
12027 b(lse.c);
12028 a(lse.d);
12029 }
12030
12031 public static void a(lsc lsc, lse lse) {
12032 lsd lsd = new lsd();
12033 a(lsd, lse);
12034 a(lsc, lsd);
12035 }
12036
12037 public static void a(lsd lsd, lse lse) {
12038 a(lsd.a, lse.a);
12039 a(lsd.b, lse.b);
12040 a(lsd.c, lse.c);
12041 }
12042
12043 public static void a(byte[] bArr, lse lse) {
12044 int[] iArr = new int[10];
12045 int[] iArr2 = new int[10];
12046 int[] iArr3 = new int[10];
12047 b(iArr, lse.c);
12048 b(iArr2, lse.a, iArr);
12049 b(iArr3, lse.b, iArr);
12050 a(bArr, iArr3);
12051 bArr[31] = (byte) ((c(iArr2) << 7) ^ bArr[31]);
12052 }
12053
12054 public static void a(lsg lsg) {
12055 b(lsg.a);
12056 b(lsg.b);
12057 a(lsg.c);
12058 }
12059
12060 public static int a(byte b, byte b2) {
12061 return ((b ^ b2) - 1) >>> 31;
12062 }
12063
12064 public static int b(byte b) {
12065 return (int) (((long) b) >>> 63);
12066 }
12067
12068 public static void a(lsg lsg, lsg lsg2, int i) {
12069 a(lsg.a, lsg2.a, i);
12070 a(lsg.b, lsg2.b, i);
12071 a(lsg.c, lsg2.c, i);
12072 }
12073
12074 public static void a(lsg lsg, int i, byte b) {
12075 lsg[][] lsgArr = i <= 7 ? lsh.a : i <= 15 ? lsk.a : i <= 23 ? lsi.a : lsj.a;
12076 lsg lsg2 = new lsg();
12077 int b2 = b(b);
12078 int i2 = b - (((-b2) & b) << 1);
12079 a(lsg);
12080 a(lsg, lsgArr[i][0], a((byte) i2, (byte) 1));
12081 a(lsg, lsgArr[i][1], a((byte) i2, (byte) 2));
12082 a(lsg, lsgArr[i][2], a((byte) i2, (byte) 3));
12083 a(lsg, lsgArr[i][3], a((byte) i2, (byte) 4));
12084 a(lsg, lsgArr[i][4], a((byte) i2, (byte) 5));
12085 a(lsg, lsgArr[i][5], a((byte) i2, (byte) 6));
12086 a(lsg, lsgArr[i][6], a((byte) i2, (byte) 7));
12087 a(lsg, lsgArr[i][7], a((byte) i2, (byte) 8));
12088 a(lsg2.a, lsg.b);
12089 a(lsg2.b, lsg.a);
12090 d(lsg2.c, lsg.c);
12091 a(lsg, lsg2, b2);
12092 }
12093
12094 public static void a(lse lse, byte[] bArr) {
12095 int i;
12096 int i2 = 0;
12097 byte[] bArr2 = new byte[64];
12098 lsc lsc = new lsc();
12099 lsd lsd = new lsd();
12100 lsg lsg = new lsg();
12101 for (i = 0; i < 32; i++) {
12102 bArr2[i * 2] = (byte) (bArr[i] & 15);
12103 bArr2[(i * 2) + 1] = (byte) ((bArr[i] >>> 4) & 15);
12104 }
12105 int i3 = 0;
12106 for (i = 0; i < 63; i++) {
12107 bArr2[i] = (byte) (i3 + bArr2[i]);
12108 i3 = (byte) (((byte) (bArr2[i] + 8)) >> 4);
12109 bArr2[i] = (byte) (bArr2[i] - (i3 << 4));
12110 }
12111 bArr2[63] = (byte) (bArr2[63] + i3);
12112 a(lse);
12113 for (i = 1; i < 64; i += 2) {
12114 a(lsg, i / 2, bArr2[i]);
12115 a(lsc, lse, lsg);
12116 a(lse, lsc);
12117 }
12118 a(lsc, lse);
12119 a(lsd, lsc);
12120 a(lsc, lsd);
12121 a(lsd, lsc);
12122 a(lsc, lsd);
12123 a(lsd, lsc);
12124 a(lsc, lsd);
12125 a(lse, lsc);
12126 while (i2 < 64) {
12127 a(lsg, i2 / 2, bArr2[i2]);
12128 a(lsc, lse, lsg);
12129 a(lse, lsc);
12130 i2 += 2;
12131 }
12132 }
12133
12134 public static void b(lsc lsc, lse lse, lrz lrz) {
12135 int[] iArr = new int[10];
12136 a(lsc.a, lse.b, lse.a);
12137 c(lsc.b, lse.b, lse.a);
12138 b(lsc.c, lsc.a, lrz.b);
12139 b(lsc.b, lsc.b, lrz.a);
12140 b(lsc.d, lrz.d, lse.d);
12141 b(lsc.a, lse.c, lrz.c);
12142 a(iArr, lsc.a, lsc.a);
12143 c(lsc.a, lsc.c, lsc.b);
12144 a(lsc.b, lsc.c, lsc.b);
12145 c(lsc.c, iArr, lsc.d);
12146 a(lsc.d, iArr, lsc.d);
12147 }
12148
12149 public static void a(byte[] bArr, lsd lsd) {
12150 int[] iArr = new int[10];
12151 int[] iArr2 = new int[10];
12152 int[] iArr3 = new int[10];
12153 b(iArr, lsd.c);
12154 b(iArr2, lsd.a, iArr);
12155 b(iArr3, lsd.b, iArr);
12156 a(bArr, iArr3);
12157 bArr[31] = (byte) ((c(iArr2) << 7) ^ bArr[31]);
12158 }
12159
12160 public static int a(lrx lrx, byte[] bArr, byte[] bArr2, long j, byte[] bArr3) {
12161 Object obj = new byte[32];
12162 byte[] bArr4 = new byte[32];
12163 Object obj2 = new byte[32];
12164 byte[] bArr5 = new byte[64];
12165 byte[] bArr6 = new byte[32];
12166 lse lse = new lse();
12167 lsd lsd = new lsd();
12168 if (j < 64) {
12169 return -1;
12170 }
12171 if ((bArr2[63] & 224) != 0) {
12172 return -1;
12173 }
12174 if (lsb.a(lse, bArr3) != 0) {
12175 return -1;
12176 }
12177 lrx.a(new byte[64], bArr3, 32);
12178 System.arraycopy(bArr3, 0, obj, 0, 32);
12179 System.arraycopy(bArr2, 0, bArr4, 0, 32);
12180 System.arraycopy(bArr2, 32, obj2, 0, 32);
12181 System.arraycopy(bArr2, 0, bArr, 0, (int) j);
12182 System.arraycopy(obj, 0, bArr, 32, 32);
12183 lrx.a(bArr5, bArr, j);
12184 cb.a(bArr5);
12185 lsa.a(lsd, bArr5, lse, obj2);
12186 a(bArr6, lsd);
12187 if (a(bArr6, bArr4) != 0) {
12188 return -1;
12189 }
12190 System.arraycopy(bArr, 64, bArr, 0, (int) (j - 64));
12191 return 0;
12192 }
12193
12194 public static int a(byte[] bArr, byte[] bArr2, byte[] bArr3) {
12195 int i;
12196 byte[] bArr4 = new byte[32];
12197 int[] iArr = new int[10];
12198 int[] iArr2 = new int[10];
12199 int[] iArr3 = new int[10];
12200 int[] iArr4 = new int[10];
12201 int[] iArr5 = new int[10];
12202 int[] iArr6 = new int[10];
12203 int[] iArr7 = new int[10];
12204 for (i = 0; i < 32; i++) {
12205 bArr4[i] = bArr2[i];
12206 }
12207 a(iArr, bArr3);
12208 b(iArr2);
12209 a(iArr3);
12210 a(iArr4, iArr);
12211 b(iArr5);
12212 int i2 = 254;
12213 i = 0;
12214 while (i2 >= 0) {
12215 int i3 = (bArr4[i2 / 8] >>> (i2 & 7)) & 1;
12216 i ^= i3;
12217 b(iArr2, iArr4, i);
12218 b(iArr3, iArr5, i);
12219 c(iArr6, iArr4, iArr5);
12220 c(iArr7, iArr2, iArr3);
12221 a(iArr2, iArr2, iArr3);
12222 a(iArr3, iArr4, iArr5);
12223 b(iArr5, iArr6, iArr2);
12224 b(iArr3, iArr3, iArr7);
12225 f(iArr6, iArr7);
12226 f(iArr7, iArr2);
12227 a(iArr4, iArr5, iArr3);
12228 c(iArr3, iArr5, iArr3);
12229 b(iArr2, iArr7, iArr6);
12230 c(iArr7, iArr7, iArr6);
12231 f(iArr3, iArr3);
12232 c(iArr5, iArr7);
12233 f(iArr4, iArr4);
12234 a(iArr6, iArr6, iArr5);
12235 b(iArr5, iArr, iArr3);
12236 b(iArr3, iArr7, iArr6);
12237 i2--;
12238 i = i3;
12239 }
12240 b(iArr2, iArr4, i);
12241 b(iArr3, iArr5, i);
12242 b(iArr3, iArr3);
12243 b(iArr2, iArr2, iArr3);
12244 a(bArr, iArr2);
12245 return 0;
12246 }
12247
12248 public static int a(lrx lrx, byte[] bArr, byte[] bArr2, long j, byte[] bArr3, byte[] bArr4, byte[] bArr5) {
12249 byte[] bArr6 = new byte[64];
12250 byte[] bArr7 = new byte[64];
12251 lse lse = new lse();
12252 System.arraycopy(bArr2, 0, bArr, 64, (int) j);
12253 System.arraycopy(bArr3, 0, bArr, 32, 32);
12254 bArr[0] = (byte) -2;
12255 for (int i = 1; i < 32; i++) {
12256 bArr[i] = (byte) -1;
12257 }
12258 System.arraycopy(bArr5, 0, bArr, (int) (64 + j), 64);
12259 lrx.a(bArr6, bArr, 128 + j);
12260 System.arraycopy(bArr4, 0, bArr, 32, 32);
12261 cb.a(bArr6);
12262 a(lse, bArr6);
12263 a(bArr, lse);
12264 lrx.a(bArr7, bArr, 64 + j);
12265 cb.a(bArr7);
12266 Object obj = new byte[32];
12267 etr.sc_muladd(obj, bArr7, bArr3, bArr6);
12268 System.arraycopy(obj, 0, bArr, 32, 32);
12269 return 0;
12270 }
12271
12272 public static void a(String str, Throwable th) {
12273 b(th);
12274 }
12275
12276 public static String b(Throwable th) {
12277 if (th == null) {
12278 return "";
12279 }
12280 for (Throwable th2 = th; th2 != null; th2 = th2.getCause()) {
12281 if (th2 instanceof UnknownHostException) {
12282 return "";
12283 }
12284 }
12285 Writer stringWriter = new StringWriter();
12286 PrintWriter printWriter = new PrintWriter(stringWriter);
12287 th.printStackTrace(printWriter);
12288 printWriter.flush();
12289 return stringWriter.toString();
12290 }
12291
12292 public static void a(lub lub, lto lto) {
12293 try {
12294 lub.a(3);
12295 lub.a(lto.c);
12296 lub.b(lto.a.a);
12297 lta generateKeyPair = etr.generateKeyPair();
12298 ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
12299 byteArrayOutputStream.write(aS());
12300 byteArrayOutputStream.write(etr.calculateAgreement(lto.d, lto.a.b));
12301 byteArrayOutputStream.write(etr.calculateAgreement(lto.c.a, lto.b.b));
12302 byteArrayOutputStream.write(etr.calculateAgreement(lto.d, lto.b.b));
12303 if (lto.e.a()) {
12304 byteArrayOutputStream.write(etr.calculateAgreement((ltc) lto.e.b(), lto.b.b));
12305 }
12306 ltu e = e(byteArrayOutputStream.toByteArray());
12307 lus a = e.a.a(lto.f, generateKeyPair);
12308 lub.a(lto.f, e.b);
12309 lub.a(generateKeyPair, (lts) a.b);
12310 lub.a((ltv) a.a);
12311 } catch (IOException e2) {
12312 throw new AssertionError(e2);
12313 }
12314 }
12315
12316 public static void a(lub lub, ltq ltq) {
12317 try {
12318 lub.a(3);
12319 lub.a(ltq.e);
12320 lub.b(ltq.a.a);
12321 ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
12322 byteArrayOutputStream.write(aS());
12323 byteArrayOutputStream.write(etr.calculateAgreement(ltq.e.a, ltq.b.b));
12324 byteArrayOutputStream.write(etr.calculateAgreement(ltq.f, ltq.a.b));
12325 byteArrayOutputStream.write(etr.calculateAgreement(ltq.f, ltq.b.b));
12326 if (ltq.c.a()) {
12327 byteArrayOutputStream.write(etr.calculateAgreement(ltq.f, ((lta) ltq.c.b()).b));
12328 }
12329 ltu e = e(byteArrayOutputStream.toByteArray());
12330 lub.a(ltq.d, e.b);
12331 lub.a(e.a);
12332 } catch (IOException e2) {
12333 throw new AssertionError(e2);
12334 }
12335 }
12336
12337 public static byte[] aS() {
12338 byte[] bArr = new byte[32];
12339 Arrays.fill(bArr, (byte) -1);
12340 return bArr;
12341 }
12342
12343 public static ltu e(byte[] bArr) {
12344 ltf lth = new lth();
12345 byte[][] a = a(lth.a(bArr, "WhisperText".getBytes(), 64), 32, 32);
12346 return new ltu(new ltv(lth, a[0]), new lts(lth, a[1], 0));
12347 }
12348
12349 public static byte[] b(byte[]... bArr) {
12350 try {
12351 ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
12352 for (byte[] write : bArr) {
12353 byteArrayOutputStream.write(write);
12354 }
12355 return byteArrayOutputStream.toByteArray();
12356 } catch (IOException e) {
12357 throw new AssertionError(e);
12358 }
12359 }
12360
12361 public static byte[][] a(byte[] bArr, int i, int i2) {
12362 byte[][] bArr2 = new byte[2][];
12363 bArr2[0] = new byte[i];
12364 System.arraycopy(bArr, 0, bArr2[0], 0, i);
12365 bArr2[1] = new byte[i2];
12366 System.arraycopy(bArr, i, bArr2[1], 0, i2);
12367 return bArr2;
12368 }
12369
12370 public static byte[][] a(byte[] bArr, int i, int i2, int i3) {
12371 if (bArr == null || i < 0 || i2 < 0 || i3 < 0 || bArr.length < (i + i2) + i3) {
12372 String str = "Input too small: ";
12373 String valueOf = String.valueOf(bArr == null ? null : luq.a(bArr));
12374 throw new ParseException(valueOf.length() != 0 ? str.concat(valueOf) : new String(str), 0);
12375 }
12376 r0 = new byte[3][];
12377 System.arraycopy(bArr, 0, r0[0], 0, i);
12378 r0[1] = new byte[i2];
12379 System.arraycopy(bArr, i, r0[1], 0, i2);
12380 r0[2] = new byte[i3];
12381 System.arraycopy(bArr, i + i2, r0[2], 0, i3);
12382 return r0;
12383 }
12384
12385 public static byte[] g(byte[] bArr, int i) {
12386 Object obj = new byte[8];
12387 System.arraycopy(bArr, 0, obj, 0, 8);
12388 return obj;
12389 }
12390
12391 public static byte f(int i, int i2) {
12392 return (byte) ((i << 4) | 3);
12393 }
12394
12395 public static int c(byte b) {
12396 return (b & 255) >> 4;
12397 }
12398
12399 public static int b(byte[] bArr, int i, int i2) {
12400 bArr[3] = (byte) i2;
12401 bArr[2] = (byte) (i2 >> 8);
12402 bArr[1] = (byte) (i2 >> 16);
12403 bArr[0] = i2 >> 24;
12404 return 4;
12405 }
12406
12407 public static lue a(lso lso, int i) {
12408 lta generateKeyPair = etr.generateKeyPair();
12409 return new lue(i, System.currentTimeMillis(), generateKeyPair, etr.calculateSignature(lso.b, generateKeyPair.a.a()));
12410 }
12411}