100.15 - Beta (100115)
This commit is contained in:
parent
926943afec
commit
b22d39cc5c
|
@ -10,8 +10,8 @@ android {
|
||||||
applicationId 'com.discord'
|
applicationId 'com.discord'
|
||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
targetSdkVersion 30
|
targetSdkVersion 30
|
||||||
versionCode 100112
|
versionCode 100115
|
||||||
versionName "100.12 - Beta"
|
versionName "100.15 - Beta"
|
||||||
|
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="100112" android:versionName="100.12 - Beta" android:installLocation="auto" android:compileSdkVersion="30" android:compileSdkVersionCodename="11" package="com.discord" platformBuildVersionCode="30" platformBuildVersionName="11">
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="100115" android:versionName="100.15 - Beta" android:installLocation="auto" android:compileSdkVersion="30" android:compileSdkVersionCodename="11" package="com.discord" platformBuildVersionCode="30" platformBuildVersionName="11">
|
||||||
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="30"/>
|
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="30"/>
|
||||||
<uses-feature android:name="android.hardware.camera" android:required="false"/>
|
<uses-feature android:name="android.hardware.camera" android:required="false"/>
|
||||||
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>
|
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>
|
||||||
|
@ -25,14 +25,41 @@
|
||||||
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
|
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
|
||||||
<uses-permission android:name="android.permission.READ_CONTACTS"/>
|
<uses-permission android:name="android.permission.READ_CONTACTS"/>
|
||||||
<permission android:label="@string/app_permission_connect_label" android:name="com.discord.permission.CONNECT" android:protectionLevel="dangerous" android:description="@string/app_permission_connect_desc"/>
|
<permission android:label="@string/app_permission_connect_label" android:name="com.discord.permission.CONNECT" android:protectionLevel="dangerous" android:description="@string/app_permission_connect_desc"/>
|
||||||
<uses-feature android:name="android.hardware.camera.any" android:required="false"/>
|
|
||||||
<queries>
|
<queries>
|
||||||
|
<intent>
|
||||||
|
<action android:name="android.intent.action.CHOOSER"/>
|
||||||
|
</intent>
|
||||||
|
<intent>
|
||||||
|
<action android:name="android.intent.action.VIEW"/>
|
||||||
|
<category android:name="android.intent.category.BROWSABLE"/>
|
||||||
|
<data android:scheme="http"/>
|
||||||
|
</intent>
|
||||||
|
<intent>
|
||||||
|
<action android:name="android.intent.action.VIEW"/>
|
||||||
|
<category android:name="android.intent.category.BROWSABLE"/>
|
||||||
|
<data android:scheme="https"/>
|
||||||
|
</intent>
|
||||||
|
<intent>
|
||||||
|
<action android:name="android.media.action.IMAGE_CAPTURE"/>
|
||||||
|
</intent>
|
||||||
|
<intent>
|
||||||
|
<action android:name="android.intent.action.PICK"/>
|
||||||
|
<data android:mimeType="image/*"/>
|
||||||
|
</intent>
|
||||||
|
<intent>
|
||||||
|
<action android:name="android.intent.action.GET_CONTENT"/>
|
||||||
|
<data android:mimeType="image/*"/>
|
||||||
|
</intent>
|
||||||
|
<package android:name="com.spotify.music"/>
|
||||||
<package android:name="com.samsung.android.game.gametools"/>
|
<package android:name="com.samsung.android.game.gametools"/>
|
||||||
<package android:name="com.samsung.android.game.gamehome"/>
|
<package android:name="com.samsung.android.game.gamehome"/>
|
||||||
|
<package android:name="com.authy.authy"/>
|
||||||
|
<package android:name="com.google.android.apps.authenticator2"/>
|
||||||
<intent>
|
<intent>
|
||||||
<action android:name="android.support.customtabs.action.CustomTabsService"/>
|
<action android:name="android.support.customtabs.action.CustomTabsService"/>
|
||||||
</intent>
|
</intent>
|
||||||
</queries>
|
</queries>
|
||||||
|
<uses-feature android:name="android.hardware.camera.any" android:required="false"/>
|
||||||
<uses-feature android:name="android.hardware.camera.front" android:required="false"/>
|
<uses-feature android:name="android.hardware.camera.front" android:required="false"/>
|
||||||
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE"/>
|
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE"/>
|
||||||
<uses-permission android:name="com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE"/>
|
<uses-permission android:name="com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE"/>
|
||||||
|
|
|
@ -3,6 +3,7 @@ package android.support.v4.media;
|
||||||
import android.annotation.SuppressLint;
|
import android.annotation.SuppressLint;
|
||||||
import android.content.ComponentName;
|
import android.content.ComponentName;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
import android.media.MediaDescription;
|
||||||
import android.media.browse.MediaBrowser;
|
import android.media.browse.MediaBrowser;
|
||||||
import android.os.BadParcelableException;
|
import android.os.BadParcelableException;
|
||||||
import android.os.Binder;
|
import android.os.Binder;
|
||||||
|
@ -20,6 +21,7 @@ import android.support.v4.media.session.MediaSessionCompat;
|
||||||
import android.support.v4.os.ResultReceiver;
|
import android.support.v4.os.ResultReceiver;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
import androidx.annotation.DoNotInline;
|
||||||
import androidx.annotation.NonNull;
|
import androidx.annotation.NonNull;
|
||||||
import androidx.annotation.RequiresApi;
|
import androidx.annotation.RequiresApi;
|
||||||
import androidx.collection.ArrayMap;
|
import androidx.collection.ArrayMap;
|
||||||
|
@ -34,7 +36,7 @@ import java.util.Objects;
|
||||||
import x.a.b.b.a.b;
|
import x.a.b.b.a.b;
|
||||||
public final class MediaBrowserCompat {
|
public final class MediaBrowserCompat {
|
||||||
public static final boolean a = Log.isLoggable("MediaBrowserCompat", 3);
|
public static final boolean a = Log.isLoggable("MediaBrowserCompat", 3);
|
||||||
public final c b;
|
public final d b;
|
||||||
|
|
||||||
public static class CustomActionResultReceiver extends ResultReceiver {
|
public static class CustomActionResultReceiver extends ResultReceiver {
|
||||||
@Override // android.support.v4.os.ResultReceiver
|
@Override // android.support.v4.os.ResultReceiver
|
||||||
|
@ -105,7 +107,7 @@ public final class MediaBrowserCompat {
|
||||||
for (Object obj : list) {
|
for (Object obj : list) {
|
||||||
if (obj != null) {
|
if (obj != null) {
|
||||||
MediaBrowser.MediaItem mediaItem2 = (MediaBrowser.MediaItem) obj;
|
MediaBrowser.MediaItem mediaItem2 = (MediaBrowser.MediaItem) obj;
|
||||||
mediaItem = new MediaItem(MediaDescriptionCompat.a(mediaItem2.getDescription()), mediaItem2.getFlags());
|
mediaItem = new MediaItem(MediaDescriptionCompat.a(a.a(mediaItem2)), a.b(mediaItem2));
|
||||||
} else {
|
} else {
|
||||||
mediaItem = null;
|
mediaItem = null;
|
||||||
}
|
}
|
||||||
|
@ -151,12 +153,25 @@ public final class MediaBrowserCompat {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class a extends Handler {
|
@RequiresApi(21)
|
||||||
public final WeakReference<g> a;
|
public static class a {
|
||||||
|
@DoNotInline
|
||||||
|
public static MediaDescription a(MediaBrowser.MediaItem mediaItem) {
|
||||||
|
return mediaItem.getDescription();
|
||||||
|
}
|
||||||
|
|
||||||
|
@DoNotInline
|
||||||
|
public static int b(MediaBrowser.MediaItem mediaItem) {
|
||||||
|
return mediaItem.getFlags();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static class b extends Handler {
|
||||||
|
public final WeakReference<h> a;
|
||||||
public WeakReference<Messenger> b;
|
public WeakReference<Messenger> b;
|
||||||
|
|
||||||
public a(g gVar) {
|
public b(h hVar) {
|
||||||
this.a = new WeakReference<>(gVar);
|
this.a = new WeakReference<>(hVar);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void a(Messenger messenger) {
|
public void a(Messenger messenger) {
|
||||||
|
@ -169,16 +184,16 @@ public final class MediaBrowserCompat {
|
||||||
if (weakReference != null && weakReference.get() != null && this.a.get() != null) {
|
if (weakReference != null && weakReference.get() != null && this.a.get() != null) {
|
||||||
Bundle data = message.getData();
|
Bundle data = message.getData();
|
||||||
MediaSessionCompat.a(data);
|
MediaSessionCompat.a(data);
|
||||||
g gVar = this.a.get();
|
h hVar = this.a.get();
|
||||||
Messenger messenger = this.b.get();
|
Messenger messenger = this.b.get();
|
||||||
try {
|
try {
|
||||||
int i = message.what;
|
int i = message.what;
|
||||||
if (i == 1) {
|
if (i == 1) {
|
||||||
Bundle bundle = data.getBundle(MediaBrowserProtocol.DATA_ROOT_HINTS);
|
Bundle bundle = data.getBundle(MediaBrowserProtocol.DATA_ROOT_HINTS);
|
||||||
MediaSessionCompat.a(bundle);
|
MediaSessionCompat.a(bundle);
|
||||||
gVar.a(messenger, data.getString(MediaBrowserProtocol.DATA_MEDIA_ITEM_ID), (MediaSessionCompat.Token) data.getParcelable(MediaBrowserProtocol.DATA_MEDIA_SESSION_TOKEN), bundle);
|
hVar.a(messenger, data.getString(MediaBrowserProtocol.DATA_MEDIA_ITEM_ID), (MediaSessionCompat.Token) data.getParcelable(MediaBrowserProtocol.DATA_MEDIA_SESSION_TOKEN), bundle);
|
||||||
} else if (i == 2) {
|
} else if (i == 2) {
|
||||||
gVar.c(messenger);
|
hVar.c(messenger);
|
||||||
} else if (i != 3) {
|
} else if (i != 3) {
|
||||||
Log.w("MediaBrowserCompat", "Unhandled message: " + message + "\n Client version: 1\n Service version: " + message.arg1);
|
Log.w("MediaBrowserCompat", "Unhandled message: " + message + "\n Client version: 1\n Service version: " + message.arg1);
|
||||||
} else {
|
} else {
|
||||||
|
@ -186,21 +201,21 @@ public final class MediaBrowserCompat {
|
||||||
MediaSessionCompat.a(bundle2);
|
MediaSessionCompat.a(bundle2);
|
||||||
Bundle bundle3 = data.getBundle(MediaBrowserProtocol.DATA_NOTIFY_CHILDREN_CHANGED_OPTIONS);
|
Bundle bundle3 = data.getBundle(MediaBrowserProtocol.DATA_NOTIFY_CHILDREN_CHANGED_OPTIONS);
|
||||||
MediaSessionCompat.a(bundle3);
|
MediaSessionCompat.a(bundle3);
|
||||||
gVar.b(messenger, data.getString(MediaBrowserProtocol.DATA_MEDIA_ITEM_ID), data.getParcelableArrayList(MediaBrowserProtocol.DATA_MEDIA_ITEM_LIST), bundle2, bundle3);
|
hVar.b(messenger, data.getString(MediaBrowserProtocol.DATA_MEDIA_ITEM_ID), data.getParcelableArrayList(MediaBrowserProtocol.DATA_MEDIA_ITEM_LIST), bundle2, bundle3);
|
||||||
}
|
}
|
||||||
} catch (BadParcelableException unused) {
|
} catch (BadParcelableException unused) {
|
||||||
Log.e("MediaBrowserCompat", "Could not unparcel the data.");
|
Log.e("MediaBrowserCompat", "Could not unparcel the data.");
|
||||||
if (message.what == 1) {
|
if (message.what == 1) {
|
||||||
gVar.c(messenger);
|
hVar.c(messenger);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class b {
|
public static class c {
|
||||||
public final MediaBrowser.ConnectionCallback mConnectionCallbackFwk = new a();
|
public final MediaBrowser.ConnectionCallback mConnectionCallbackFwk = new a();
|
||||||
public AbstractC0000b mConnectionCallbackInternal;
|
public b mConnectionCallbackInternal;
|
||||||
|
|
||||||
@RequiresApi(21)
|
@RequiresApi(21)
|
||||||
public class a extends MediaBrowser.ConnectionCallback {
|
public class a extends MediaBrowser.ConnectionCallback {
|
||||||
|
@ -209,71 +224,70 @@ public final class MediaBrowserCompat {
|
||||||
|
|
||||||
@Override // android.media.browse.MediaBrowser.ConnectionCallback
|
@Override // android.media.browse.MediaBrowser.ConnectionCallback
|
||||||
public void onConnected() {
|
public void onConnected() {
|
||||||
AbstractC0000b bVar = b.this.mConnectionCallbackInternal;
|
b bVar = c.this.mConnectionCallbackInternal;
|
||||||
if (bVar != null) {
|
if (bVar != null) {
|
||||||
d dVar = (d) bVar;
|
e eVar = (e) bVar;
|
||||||
Objects.requireNonNull(dVar);
|
Objects.requireNonNull(eVar);
|
||||||
try {
|
try {
|
||||||
Bundle extras = dVar.b.getExtras();
|
Bundle extras = eVar.b.getExtras();
|
||||||
if (extras != null) {
|
if (extras != null) {
|
||||||
extras.getInt(MediaBrowserProtocol.EXTRA_SERVICE_VERSION, 0);
|
extras.getInt(MediaBrowserProtocol.EXTRA_SERVICE_VERSION, 0);
|
||||||
IBinder binder = BundleCompat.getBinder(extras, MediaBrowserProtocol.EXTRA_MESSENGER_BINDER);
|
IBinder binder = BundleCompat.getBinder(extras, MediaBrowserProtocol.EXTRA_MESSENGER_BINDER);
|
||||||
if (binder != null) {
|
if (binder != null) {
|
||||||
dVar.f = new h(binder, dVar.f13c);
|
eVar.f = new i(binder, eVar.f13c);
|
||||||
Messenger messenger = new Messenger(dVar.d);
|
Messenger messenger = new Messenger(eVar.d);
|
||||||
dVar.g = messenger;
|
eVar.g = messenger;
|
||||||
dVar.d.a(messenger);
|
eVar.d.a(messenger);
|
||||||
try {
|
try {
|
||||||
h hVar = dVar.f;
|
i iVar = eVar.f;
|
||||||
Context context = dVar.a;
|
Context context = eVar.a;
|
||||||
Messenger messenger2 = dVar.g;
|
Messenger messenger2 = eVar.g;
|
||||||
Objects.requireNonNull(hVar);
|
Objects.requireNonNull(iVar);
|
||||||
Bundle bundle = new Bundle();
|
Bundle bundle = new Bundle();
|
||||||
bundle.putString(MediaBrowserProtocol.DATA_PACKAGE_NAME, context.getPackageName());
|
bundle.putString(MediaBrowserProtocol.DATA_PACKAGE_NAME, context.getPackageName());
|
||||||
bundle.putInt(MediaBrowserProtocol.DATA_CALLING_PID, Process.myPid());
|
bundle.putInt(MediaBrowserProtocol.DATA_CALLING_PID, Process.myPid());
|
||||||
bundle.putBundle(MediaBrowserProtocol.DATA_ROOT_HINTS, hVar.b);
|
bundle.putBundle(MediaBrowserProtocol.DATA_ROOT_HINTS, iVar.b);
|
||||||
hVar.a(6, bundle, messenger2);
|
iVar.a(6, bundle, messenger2);
|
||||||
} catch (RemoteException unused) {
|
} catch (RemoteException unused) {
|
||||||
Log.i("MediaBrowserCompat", "Remote error registering client messenger.");
|
Log.i("MediaBrowserCompat", "Remote error registering client messenger.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
x.a.b.b.a.b e = b.a.e(BundleCompat.getBinder(extras, MediaBrowserProtocol.EXTRA_SESSION_BINDER));
|
x.a.b.b.a.b e = b.a.e(BundleCompat.getBinder(extras, MediaBrowserProtocol.EXTRA_SESSION_BINDER));
|
||||||
if (e != null) {
|
if (e != null) {
|
||||||
dVar.h = MediaSessionCompat.Token.a(dVar.b.getSessionToken(), e);
|
eVar.h = MediaSessionCompat.Token.a(eVar.b.getSessionToken(), e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (IllegalStateException e2) {
|
} catch (IllegalStateException e2) {
|
||||||
Log.e("MediaBrowserCompat", "Unexpected IllegalStateException", e2);
|
Log.e("MediaBrowserCompat", "Unexpected IllegalStateException", e2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
b.this.onConnected();
|
c.this.onConnected();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override // android.media.browse.MediaBrowser.ConnectionCallback
|
@Override // android.media.browse.MediaBrowser.ConnectionCallback
|
||||||
public void onConnectionFailed() {
|
public void onConnectionFailed() {
|
||||||
AbstractC0000b bVar = b.this.mConnectionCallbackInternal;
|
b bVar = c.this.mConnectionCallbackInternal;
|
||||||
if (bVar != null) {
|
if (bVar != null) {
|
||||||
Objects.requireNonNull((d) bVar);
|
Objects.requireNonNull((e) bVar);
|
||||||
}
|
}
|
||||||
b.this.onConnectionFailed();
|
c.this.onConnectionFailed();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override // android.media.browse.MediaBrowser.ConnectionCallback
|
@Override // android.media.browse.MediaBrowser.ConnectionCallback
|
||||||
public void onConnectionSuspended() {
|
public void onConnectionSuspended() {
|
||||||
AbstractC0000b bVar = b.this.mConnectionCallbackInternal;
|
b bVar = c.this.mConnectionCallbackInternal;
|
||||||
if (bVar != null) {
|
if (bVar != null) {
|
||||||
d dVar = (d) bVar;
|
e eVar = (e) bVar;
|
||||||
dVar.f = null;
|
eVar.f = null;
|
||||||
dVar.g = null;
|
eVar.g = null;
|
||||||
dVar.h = null;
|
eVar.h = null;
|
||||||
dVar.d.a(null);
|
eVar.d.a(null);
|
||||||
}
|
}
|
||||||
b.this.onConnectionSuspended();
|
c.this.onConnectionSuspended();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* renamed from: android.support.v4.media.MediaBrowserCompat$b$b reason: collision with other inner class name */
|
public interface b {
|
||||||
public interface AbstractC0000b {
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onConnected() {
|
public void onConnected() {
|
||||||
|
@ -288,73 +302,73 @@ public final class MediaBrowserCompat {
|
||||||
throw null;
|
throw null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setInternalConnectionCallback(AbstractC0000b bVar) {
|
public void setInternalConnectionCallback(b bVar) {
|
||||||
this.mConnectionCallbackInternal = bVar;
|
this.mConnectionCallbackInternal = bVar;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public interface c {
|
public interface d {
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequiresApi(21)
|
@RequiresApi(21)
|
||||||
public static class d implements c, g, b.AbstractC0000b {
|
public static class e implements d, h, c.b {
|
||||||
public final Context a;
|
public final Context a;
|
||||||
public final MediaBrowser b;
|
public final MediaBrowser b;
|
||||||
|
|
||||||
/* renamed from: c reason: collision with root package name */
|
/* renamed from: c reason: collision with root package name */
|
||||||
public final Bundle f13c;
|
public final Bundle f13c;
|
||||||
public final a d = new a(this);
|
public final b d = new b(this);
|
||||||
public final ArrayMap<String, i> e = new ArrayMap<>();
|
public final ArrayMap<String, j> e = new ArrayMap<>();
|
||||||
public h f;
|
public i f;
|
||||||
public Messenger g;
|
public Messenger g;
|
||||||
public MediaSessionCompat.Token h;
|
public MediaSessionCompat.Token h;
|
||||||
|
|
||||||
public d(Context context, ComponentName componentName, b bVar, Bundle bundle) {
|
public e(Context context, ComponentName componentName, c cVar, Bundle bundle) {
|
||||||
this.a = context;
|
this.a = context;
|
||||||
Bundle bundle2 = bundle != null ? new Bundle(bundle) : new Bundle();
|
Bundle bundle2 = bundle != null ? new Bundle(bundle) : new Bundle();
|
||||||
this.f13c = bundle2;
|
this.f13c = bundle2;
|
||||||
bundle2.putInt(MediaBrowserProtocol.EXTRA_CLIENT_VERSION, 1);
|
bundle2.putInt(MediaBrowserProtocol.EXTRA_CLIENT_VERSION, 1);
|
||||||
bundle2.putInt(MediaBrowserProtocol.EXTRA_CALLING_PID, Process.myPid());
|
bundle2.putInt(MediaBrowserProtocol.EXTRA_CALLING_PID, Process.myPid());
|
||||||
bVar.setInternalConnectionCallback(this);
|
cVar.setInternalConnectionCallback(this);
|
||||||
this.b = new MediaBrowser(context, componentName, bVar.mConnectionCallbackFwk, bundle2);
|
this.b = new MediaBrowser(context, componentName, cVar.mConnectionCallbackFwk, bundle2);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override // android.support.v4.media.MediaBrowserCompat.g
|
@Override // android.support.v4.media.MediaBrowserCompat.h
|
||||||
public void a(Messenger messenger, String str, MediaSessionCompat.Token token, Bundle bundle) {
|
public void a(Messenger messenger, String str, MediaSessionCompat.Token token, Bundle bundle) {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override // android.support.v4.media.MediaBrowserCompat.g
|
@Override // android.support.v4.media.MediaBrowserCompat.h
|
||||||
public void b(Messenger messenger, String str, List<MediaItem> list, Bundle bundle, Bundle bundle2) {
|
public void b(Messenger messenger, String str, List<MediaItem> list, Bundle bundle, Bundle bundle2) {
|
||||||
if (this.g == messenger) {
|
if (this.g == messenger) {
|
||||||
i iVar = this.e.get(str);
|
j jVar = this.e.get(str);
|
||||||
if (iVar != null) {
|
if (jVar != null) {
|
||||||
iVar.a(bundle);
|
jVar.a(bundle);
|
||||||
} else if (MediaBrowserCompat.a) {
|
} else if (MediaBrowserCompat.a) {
|
||||||
Log.d("MediaBrowserCompat", "onLoadChildren for id that isn't subscribed id=" + str);
|
Log.d("MediaBrowserCompat", "onLoadChildren for id that isn't subscribed id=" + str);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override // android.support.v4.media.MediaBrowserCompat.g
|
@Override // android.support.v4.media.MediaBrowserCompat.h
|
||||||
public void c(Messenger messenger) {
|
public void c(Messenger messenger) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequiresApi(23)
|
@RequiresApi(23)
|
||||||
public static class e extends d {
|
public static class f extends e {
|
||||||
public e(Context context, ComponentName componentName, b bVar, Bundle bundle) {
|
public f(Context context, ComponentName componentName, c cVar, Bundle bundle) {
|
||||||
super(context, componentName, bVar, bundle);
|
super(context, componentName, cVar, bundle);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequiresApi(26)
|
@RequiresApi(26)
|
||||||
public static class f extends e {
|
public static class g extends f {
|
||||||
public f(Context context, ComponentName componentName, b bVar, Bundle bundle) {
|
public g(Context context, ComponentName componentName, c cVar, Bundle bundle) {
|
||||||
super(context, componentName, bVar, bundle);
|
super(context, componentName, cVar, bundle);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public interface g {
|
public interface h {
|
||||||
void a(Messenger messenger, String str, MediaSessionCompat.Token token, Bundle bundle);
|
void a(Messenger messenger, String str, MediaSessionCompat.Token token, Bundle bundle);
|
||||||
|
|
||||||
void b(Messenger messenger, String str, List<MediaItem> list, Bundle bundle, Bundle bundle2);
|
void b(Messenger messenger, String str, List<MediaItem> list, Bundle bundle, Bundle bundle2);
|
||||||
|
@ -362,11 +376,11 @@ public final class MediaBrowserCompat {
|
||||||
void c(Messenger messenger);
|
void c(Messenger messenger);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class h {
|
public static class i {
|
||||||
public Messenger a;
|
public Messenger a;
|
||||||
public Bundle b;
|
public Bundle b;
|
||||||
|
|
||||||
public h(IBinder iBinder, Bundle bundle) {
|
public i(IBinder iBinder, Bundle bundle) {
|
||||||
this.a = new Messenger(iBinder);
|
this.a = new Messenger(iBinder);
|
||||||
this.b = bundle;
|
this.b = bundle;
|
||||||
}
|
}
|
||||||
|
@ -381,11 +395,11 @@ public final class MediaBrowserCompat {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class i {
|
public static class j {
|
||||||
public final List<j> a = new ArrayList();
|
public final List<k> a = new ArrayList();
|
||||||
public final List<Bundle> b = new ArrayList();
|
public final List<Bundle> b = new ArrayList();
|
||||||
|
|
||||||
public j a(Bundle bundle) {
|
public k a(Bundle bundle) {
|
||||||
for (int i = 0; i < this.b.size(); i++) {
|
for (int i = 0; i < this.b.size(); i++) {
|
||||||
if (MediaBrowserCompatUtils.areSameOptions(this.b.get(i), bundle)) {
|
if (MediaBrowserCompatUtils.areSameOptions(this.b.get(i), bundle)) {
|
||||||
return this.a.get(i);
|
return this.a.get(i);
|
||||||
|
@ -395,7 +409,7 @@ public final class MediaBrowserCompat {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static abstract class j {
|
public static abstract class k {
|
||||||
public final IBinder a = new Binder();
|
public final IBinder a = new Binder();
|
||||||
|
|
||||||
@RequiresApi(21)
|
@RequiresApi(21)
|
||||||
|
@ -405,15 +419,15 @@ public final class MediaBrowserCompat {
|
||||||
|
|
||||||
@Override // android.media.browse.MediaBrowser.SubscriptionCallback
|
@Override // android.media.browse.MediaBrowser.SubscriptionCallback
|
||||||
public void onChildrenLoaded(@NonNull String str, List<MediaBrowser.MediaItem> list) {
|
public void onChildrenLoaded(@NonNull String str, List<MediaBrowser.MediaItem> list) {
|
||||||
Objects.requireNonNull(j.this);
|
Objects.requireNonNull(k.this);
|
||||||
j jVar = j.this;
|
k kVar = k.this;
|
||||||
MediaItem.a(list);
|
MediaItem.a(list);
|
||||||
Objects.requireNonNull(jVar);
|
Objects.requireNonNull(kVar);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override // android.media.browse.MediaBrowser.SubscriptionCallback
|
@Override // android.media.browse.MediaBrowser.SubscriptionCallback
|
||||||
public void onError(@NonNull String str) {
|
public void onError(@NonNull String str) {
|
||||||
Objects.requireNonNull(j.this);
|
Objects.requireNonNull(k.this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -426,19 +440,19 @@ public final class MediaBrowserCompat {
|
||||||
@Override // android.media.browse.MediaBrowser.SubscriptionCallback
|
@Override // android.media.browse.MediaBrowser.SubscriptionCallback
|
||||||
public void onChildrenLoaded(@NonNull String str, @NonNull List<MediaBrowser.MediaItem> list, @NonNull Bundle bundle) {
|
public void onChildrenLoaded(@NonNull String str, @NonNull List<MediaBrowser.MediaItem> list, @NonNull Bundle bundle) {
|
||||||
MediaSessionCompat.a(bundle);
|
MediaSessionCompat.a(bundle);
|
||||||
j jVar = j.this;
|
k kVar = k.this;
|
||||||
MediaItem.a(list);
|
MediaItem.a(list);
|
||||||
Objects.requireNonNull(jVar);
|
Objects.requireNonNull(kVar);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override // android.media.browse.MediaBrowser.SubscriptionCallback
|
@Override // android.media.browse.MediaBrowser.SubscriptionCallback
|
||||||
public void onError(@NonNull String str, @NonNull Bundle bundle) {
|
public void onError(@NonNull String str, @NonNull Bundle bundle) {
|
||||||
MediaSessionCompat.a(bundle);
|
MediaSessionCompat.a(bundle);
|
||||||
Objects.requireNonNull(j.this);
|
Objects.requireNonNull(k.this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public j() {
|
public k() {
|
||||||
if (Build.VERSION.SDK_INT >= 26) {
|
if (Build.VERSION.SDK_INT >= 26) {
|
||||||
new b();
|
new b();
|
||||||
} else {
|
} else {
|
||||||
|
@ -447,14 +461,14 @@ public final class MediaBrowserCompat {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public MediaBrowserCompat(Context context, ComponentName componentName, b bVar, Bundle bundle) {
|
public MediaBrowserCompat(Context context, ComponentName componentName, c cVar, Bundle bundle) {
|
||||||
int i2 = Build.VERSION.SDK_INT;
|
int i2 = Build.VERSION.SDK_INT;
|
||||||
if (i2 >= 26) {
|
if (i2 >= 26) {
|
||||||
this.b = new f(context, componentName, bVar, null);
|
this.b = new g(context, componentName, cVar, null);
|
||||||
} else if (i2 >= 23) {
|
} else if (i2 >= 23) {
|
||||||
this.b = new e(context, componentName, bVar, null);
|
this.b = new f(context, componentName, cVar, null);
|
||||||
} else {
|
} else {
|
||||||
this.b = new d(context, componentName, bVar, null);
|
this.b = new e(context, componentName, cVar, null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,6 +9,9 @@ import android.os.Bundle;
|
||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
import android.support.v4.media.session.MediaSessionCompat;
|
import android.support.v4.media.session.MediaSessionCompat;
|
||||||
|
import androidx.annotation.DoNotInline;
|
||||||
|
import androidx.annotation.Nullable;
|
||||||
|
import androidx.annotation.RequiresApi;
|
||||||
@SuppressLint({"BanParcelableUsage"})
|
@SuppressLint({"BanParcelableUsage"})
|
||||||
public final class MediaDescriptionCompat implements Parcelable {
|
public final class MediaDescriptionCompat implements Parcelable {
|
||||||
public static final Parcelable.Creator<MediaDescriptionCompat> CREATOR = new a();
|
public static final Parcelable.Creator<MediaDescriptionCompat> CREATOR = new a();
|
||||||
|
@ -36,6 +39,110 @@ public final class MediaDescriptionCompat implements Parcelable {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@RequiresApi(21)
|
||||||
|
public static class b {
|
||||||
|
@DoNotInline
|
||||||
|
public static MediaDescription a(MediaDescription.Builder builder) {
|
||||||
|
return builder.build();
|
||||||
|
}
|
||||||
|
|
||||||
|
@DoNotInline
|
||||||
|
public static MediaDescription.Builder b() {
|
||||||
|
return new MediaDescription.Builder();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Nullable
|
||||||
|
@DoNotInline
|
||||||
|
public static CharSequence c(MediaDescription mediaDescription) {
|
||||||
|
return mediaDescription.getDescription();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Nullable
|
||||||
|
@DoNotInline
|
||||||
|
public static Bundle d(MediaDescription mediaDescription) {
|
||||||
|
return mediaDescription.getExtras();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Nullable
|
||||||
|
@DoNotInline
|
||||||
|
public static Bitmap e(MediaDescription mediaDescription) {
|
||||||
|
return mediaDescription.getIconBitmap();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Nullable
|
||||||
|
@DoNotInline
|
||||||
|
public static Uri f(MediaDescription mediaDescription) {
|
||||||
|
return mediaDescription.getIconUri();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Nullable
|
||||||
|
@DoNotInline
|
||||||
|
public static String g(MediaDescription mediaDescription) {
|
||||||
|
return mediaDescription.getMediaId();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Nullable
|
||||||
|
@DoNotInline
|
||||||
|
public static CharSequence h(MediaDescription mediaDescription) {
|
||||||
|
return mediaDescription.getSubtitle();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Nullable
|
||||||
|
@DoNotInline
|
||||||
|
public static CharSequence i(MediaDescription mediaDescription) {
|
||||||
|
return mediaDescription.getTitle();
|
||||||
|
}
|
||||||
|
|
||||||
|
@DoNotInline
|
||||||
|
public static void j(MediaDescription.Builder builder, @Nullable CharSequence charSequence) {
|
||||||
|
builder.setDescription(charSequence);
|
||||||
|
}
|
||||||
|
|
||||||
|
@DoNotInline
|
||||||
|
public static void k(MediaDescription.Builder builder, @Nullable Bundle bundle) {
|
||||||
|
builder.setExtras(bundle);
|
||||||
|
}
|
||||||
|
|
||||||
|
@DoNotInline
|
||||||
|
public static void l(MediaDescription.Builder builder, @Nullable Bitmap bitmap) {
|
||||||
|
builder.setIconBitmap(bitmap);
|
||||||
|
}
|
||||||
|
|
||||||
|
@DoNotInline
|
||||||
|
public static void m(MediaDescription.Builder builder, @Nullable Uri uri) {
|
||||||
|
builder.setIconUri(uri);
|
||||||
|
}
|
||||||
|
|
||||||
|
@DoNotInline
|
||||||
|
public static void n(MediaDescription.Builder builder, @Nullable String str) {
|
||||||
|
builder.setMediaId(str);
|
||||||
|
}
|
||||||
|
|
||||||
|
@DoNotInline
|
||||||
|
public static void o(MediaDescription.Builder builder, @Nullable CharSequence charSequence) {
|
||||||
|
builder.setSubtitle(charSequence);
|
||||||
|
}
|
||||||
|
|
||||||
|
@DoNotInline
|
||||||
|
public static void p(MediaDescription.Builder builder, @Nullable CharSequence charSequence) {
|
||||||
|
builder.setTitle(charSequence);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@RequiresApi(23)
|
||||||
|
public static class c {
|
||||||
|
@Nullable
|
||||||
|
@DoNotInline
|
||||||
|
public static Uri a(MediaDescription mediaDescription) {
|
||||||
|
return mediaDescription.getMediaUri();
|
||||||
|
}
|
||||||
|
|
||||||
|
@DoNotInline
|
||||||
|
public static void b(MediaDescription.Builder builder, @Nullable Uri uri) {
|
||||||
|
builder.setMediaUri(uri);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public MediaDescriptionCompat(String str, CharSequence charSequence, CharSequence charSequence2, CharSequence charSequence3, Bitmap bitmap, Uri uri, Bundle bundle, Uri uri2) {
|
public MediaDescriptionCompat(String str, CharSequence charSequence, CharSequence charSequence2, CharSequence charSequence3, Bitmap bitmap, Uri uri, Bundle bundle, Uri uri2) {
|
||||||
this.i = str;
|
this.i = str;
|
||||||
this.j = charSequence;
|
this.j = charSequence;
|
||||||
|
@ -56,38 +163,38 @@ public final class MediaDescriptionCompat implements Parcelable {
|
||||||
}
|
}
|
||||||
int i = Build.VERSION.SDK_INT;
|
int i = Build.VERSION.SDK_INT;
|
||||||
MediaDescription mediaDescription = (MediaDescription) obj;
|
MediaDescription mediaDescription = (MediaDescription) obj;
|
||||||
String mediaId = mediaDescription.getMediaId();
|
String g = b.g(mediaDescription);
|
||||||
CharSequence title = mediaDescription.getTitle();
|
CharSequence i2 = b.i(mediaDescription);
|
||||||
CharSequence subtitle = mediaDescription.getSubtitle();
|
CharSequence h = b.h(mediaDescription);
|
||||||
CharSequence description = mediaDescription.getDescription();
|
CharSequence c2 = b.c(mediaDescription);
|
||||||
Bitmap iconBitmap = mediaDescription.getIconBitmap();
|
Bitmap e = b.e(mediaDescription);
|
||||||
Uri iconUri = mediaDescription.getIconUri();
|
Uri f = b.f(mediaDescription);
|
||||||
Bundle extras = mediaDescription.getExtras();
|
Bundle d = b.d(mediaDescription);
|
||||||
if (extras != null) {
|
if (d != null) {
|
||||||
extras = MediaSessionCompat.b(extras);
|
d = MediaSessionCompat.b(d);
|
||||||
}
|
}
|
||||||
Uri uri2 = extras != null ? (Uri) extras.getParcelable("android.support.v4.media.description.MEDIA_URI") : null;
|
Uri uri2 = d != null ? (Uri) d.getParcelable("android.support.v4.media.description.MEDIA_URI") : null;
|
||||||
if (uri2 != null) {
|
if (uri2 != null) {
|
||||||
if (!extras.containsKey("android.support.v4.media.description.NULL_BUNDLE_FLAG") || extras.size() != 2) {
|
if (!d.containsKey("android.support.v4.media.description.NULL_BUNDLE_FLAG") || d.size() != 2) {
|
||||||
extras.remove("android.support.v4.media.description.MEDIA_URI");
|
d.remove("android.support.v4.media.description.MEDIA_URI");
|
||||||
extras.remove("android.support.v4.media.description.NULL_BUNDLE_FLAG");
|
d.remove("android.support.v4.media.description.NULL_BUNDLE_FLAG");
|
||||||
} else {
|
} else {
|
||||||
bundle = null;
|
bundle = null;
|
||||||
if (uri2 == null) {
|
if (uri2 == null) {
|
||||||
if (i >= 23) {
|
if (i >= 23) {
|
||||||
uri = mediaDescription.getMediaUri();
|
uri = c.a(mediaDescription);
|
||||||
}
|
}
|
||||||
uri2 = uri;
|
uri2 = uri;
|
||||||
}
|
}
|
||||||
MediaDescriptionCompat mediaDescriptionCompat = new MediaDescriptionCompat(mediaId, title, subtitle, description, iconBitmap, iconUri, bundle, uri2);
|
MediaDescriptionCompat mediaDescriptionCompat = new MediaDescriptionCompat(g, i2, h, c2, e, f, bundle, uri2);
|
||||||
mediaDescriptionCompat.q = mediaDescription;
|
mediaDescriptionCompat.q = mediaDescription;
|
||||||
return mediaDescriptionCompat;
|
return mediaDescriptionCompat;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
bundle = extras;
|
bundle = d;
|
||||||
if (uri2 == null) {
|
if (uri2 == null) {
|
||||||
}
|
}
|
||||||
MediaDescriptionCompat mediaDescriptionCompat = new MediaDescriptionCompat(mediaId, title, subtitle, description, iconBitmap, iconUri, bundle, uri2);
|
MediaDescriptionCompat mediaDescriptionCompat = new MediaDescriptionCompat(g, i2, h, c2, e, f, bundle, uri2);
|
||||||
mediaDescriptionCompat.q = mediaDescription;
|
mediaDescriptionCompat.q = mediaDescription;
|
||||||
return mediaDescriptionCompat;
|
return mediaDescriptionCompat;
|
||||||
}
|
}
|
||||||
|
@ -104,29 +211,33 @@ public final class MediaDescriptionCompat implements Parcelable {
|
||||||
|
|
||||||
@Override // android.os.Parcelable
|
@Override // android.os.Parcelable
|
||||||
public void writeToParcel(Parcel parcel, int i) {
|
public void writeToParcel(Parcel parcel, int i) {
|
||||||
|
Bundle bundle;
|
||||||
int i2 = Build.VERSION.SDK_INT;
|
int i2 = Build.VERSION.SDK_INT;
|
||||||
MediaDescription mediaDescription = this.q;
|
MediaDescription mediaDescription = this.q;
|
||||||
if (mediaDescription == null) {
|
if (mediaDescription == null) {
|
||||||
MediaDescription.Builder builder = new MediaDescription.Builder();
|
MediaDescription.Builder b2 = b.b();
|
||||||
builder.setMediaId(this.i);
|
b.n(b2, this.i);
|
||||||
builder.setTitle(this.j);
|
b.p(b2, this.j);
|
||||||
builder.setSubtitle(this.k);
|
b.o(b2, this.k);
|
||||||
builder.setDescription(this.l);
|
b.j(b2, this.l);
|
||||||
builder.setIconBitmap(this.m);
|
b.l(b2, this.m);
|
||||||
builder.setIconUri(this.n);
|
b.m(b2, this.n);
|
||||||
Bundle bundle = this.o;
|
if (i2 >= 23 || this.p == null) {
|
||||||
if (i2 < 23 && this.p != null) {
|
b.k(b2, this.o);
|
||||||
if (bundle == null) {
|
} else {
|
||||||
|
if (this.o == null) {
|
||||||
bundle = new Bundle();
|
bundle = new Bundle();
|
||||||
bundle.putBoolean("android.support.v4.media.description.NULL_BUNDLE_FLAG", true);
|
bundle.putBoolean("android.support.v4.media.description.NULL_BUNDLE_FLAG", true);
|
||||||
|
} else {
|
||||||
|
bundle = new Bundle(this.o);
|
||||||
}
|
}
|
||||||
bundle.putParcelable("android.support.v4.media.description.MEDIA_URI", this.p);
|
bundle.putParcelable("android.support.v4.media.description.MEDIA_URI", this.p);
|
||||||
|
b.k(b2, bundle);
|
||||||
}
|
}
|
||||||
builder.setExtras(bundle);
|
|
||||||
if (i2 >= 23) {
|
if (i2 >= 23) {
|
||||||
builder.setMediaUri(this.p);
|
c.b(b2, this.p);
|
||||||
}
|
}
|
||||||
mediaDescription = builder.build();
|
mediaDescription = b.a(b2);
|
||||||
this.q = mediaDescription;
|
this.q = mediaDescription;
|
||||||
}
|
}
|
||||||
mediaDescription.writeToParcel(parcel, i);
|
mediaDescription.writeToParcel(parcel, i);
|
||||||
|
|
|
@ -6,6 +6,7 @@ import android.os.Parcel;
|
||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
import android.support.v4.media.session.MediaSessionCompat;
|
import android.support.v4.media.session.MediaSessionCompat;
|
||||||
import androidx.collection.ArrayMap;
|
import androidx.collection.ArrayMap;
|
||||||
|
import androidx.media.utils.MediaConstants;
|
||||||
@SuppressLint({"BanParcelableUsage"})
|
@SuppressLint({"BanParcelableUsage"})
|
||||||
public final class MediaMetadataCompat implements Parcelable {
|
public final class MediaMetadataCompat implements Parcelable {
|
||||||
public static final Parcelable.Creator<MediaMetadataCompat> CREATOR = new a();
|
public static final Parcelable.Creator<MediaMetadataCompat> CREATOR = new a();
|
||||||
|
@ -58,7 +59,7 @@ public final class MediaMetadataCompat implements Parcelable {
|
||||||
arrayMap.put("android.media.metadata.MEDIA_ID", 1);
|
arrayMap.put("android.media.metadata.MEDIA_ID", 1);
|
||||||
arrayMap.put("android.media.metadata.BT_FOLDER_TYPE", 0);
|
arrayMap.put("android.media.metadata.BT_FOLDER_TYPE", 0);
|
||||||
arrayMap.put("android.media.metadata.MEDIA_URI", 1);
|
arrayMap.put("android.media.metadata.MEDIA_URI", 1);
|
||||||
arrayMap.put("android.media.metadata.ADVERTISEMENT", 0);
|
arrayMap.put(MediaConstants.METADATA_KEY_IS_ADVERTISEMENT, 0);
|
||||||
arrayMap.put("android.media.metadata.DOWNLOAD_STATUS", 0);
|
arrayMap.put("android.media.metadata.DOWNLOAD_STATUS", 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -35,12 +35,12 @@ public final class RatingCompat implements Parcelable {
|
||||||
|
|
||||||
@Override // java.lang.Object
|
@Override // java.lang.Object
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder O = c.d.b.a.a.O("Rating:style=");
|
StringBuilder R = c.d.b.a.a.R("Rating:style=");
|
||||||
O.append(this.i);
|
R.append(this.i);
|
||||||
O.append(" rating=");
|
R.append(" rating=");
|
||||||
float f = this.j;
|
float f = this.j;
|
||||||
O.append(f < 0.0f ? "unrated" : String.valueOf(f));
|
R.append(f < 0.0f ? "unrated" : String.valueOf(f));
|
||||||
return O.toString();
|
return R.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override // android.os.Parcelable
|
@Override // android.os.Parcelable
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package android.support.v4.media.session;
|
package android.support.v4.media.session;
|
||||||
|
|
||||||
import android.annotation.SuppressLint;
|
import android.annotation.SuppressLint;
|
||||||
|
import android.media.MediaDescription;
|
||||||
import android.media.session.MediaSession;
|
import android.media.session.MediaSession;
|
||||||
import android.os.BadParcelableException;
|
import android.os.BadParcelableException;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
|
@ -9,12 +10,17 @@ import android.os.Parcelable;
|
||||||
import android.os.ResultReceiver;
|
import android.os.ResultReceiver;
|
||||||
import android.support.v4.media.MediaDescriptionCompat;
|
import android.support.v4.media.MediaDescriptionCompat;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
import androidx.annotation.DoNotInline;
|
||||||
import androidx.annotation.GuardedBy;
|
import androidx.annotation.GuardedBy;
|
||||||
import androidx.annotation.Nullable;
|
import androidx.annotation.Nullable;
|
||||||
|
import androidx.annotation.RequiresApi;
|
||||||
import androidx.annotation.RestrictTo;
|
import androidx.annotation.RestrictTo;
|
||||||
|
import androidx.core.os.BuildCompat;
|
||||||
import androidx.versionedparcelable.VersionedParcelable;
|
import androidx.versionedparcelable.VersionedParcelable;
|
||||||
import x.a.b.b.a.b;
|
import x.a.b.b.a.b;
|
||||||
public class MediaSessionCompat {
|
public class MediaSessionCompat {
|
||||||
|
@RestrictTo({RestrictTo.Scope.LIBRARY})
|
||||||
|
public static final int a = (BuildCompat.isAtLeastS() ? 33554432 : 0);
|
||||||
|
|
||||||
@SuppressLint({"BanParcelableUsage"})
|
@SuppressLint({"BanParcelableUsage"})
|
||||||
public static final class QueueItem implements Parcelable {
|
public static final class QueueItem implements Parcelable {
|
||||||
|
@ -36,6 +42,24 @@ public class MediaSessionCompat {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@RequiresApi(21)
|
||||||
|
public static class b {
|
||||||
|
@DoNotInline
|
||||||
|
public static MediaSession.QueueItem a(MediaDescription mediaDescription, long j) {
|
||||||
|
return new MediaSession.QueueItem(mediaDescription, j);
|
||||||
|
}
|
||||||
|
|
||||||
|
@DoNotInline
|
||||||
|
public static MediaDescription b(MediaSession.QueueItem queueItem) {
|
||||||
|
return queueItem.getDescription();
|
||||||
|
}
|
||||||
|
|
||||||
|
@DoNotInline
|
||||||
|
public static long c(MediaSession.QueueItem queueItem) {
|
||||||
|
return queueItem.getQueueId();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public QueueItem(MediaSession.QueueItem queueItem, MediaDescriptionCompat mediaDescriptionCompat, long j) {
|
public QueueItem(MediaSession.QueueItem queueItem, MediaDescriptionCompat mediaDescriptionCompat, long j) {
|
||||||
if (mediaDescriptionCompat == null) {
|
if (mediaDescriptionCompat == null) {
|
||||||
throw new IllegalArgumentException("Description cannot be null");
|
throw new IllegalArgumentException("Description cannot be null");
|
||||||
|
@ -59,10 +83,10 @@ public class MediaSessionCompat {
|
||||||
|
|
||||||
@Override // java.lang.Object
|
@Override // java.lang.Object
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder O = c.d.b.a.a.O("MediaSession.QueueItem {Description=");
|
StringBuilder R = c.d.b.a.a.R("MediaSession.QueueItem {Description=");
|
||||||
O.append(this.i);
|
R.append(this.i);
|
||||||
O.append(", Id=");
|
R.append(", Id=");
|
||||||
return c.d.b.a.a.A(O, this.j, " }");
|
return c.d.b.a.a.B(R, this.j, " }");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override // android.os.Parcelable
|
@Override // android.os.Parcelable
|
||||||
|
|
|
@ -1,10 +1,13 @@
|
||||||
package android.support.v4.media.session;
|
package android.support.v4.media.session;
|
||||||
|
|
||||||
import android.annotation.SuppressLint;
|
import android.annotation.SuppressLint;
|
||||||
|
import android.media.session.PlaybackState;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
|
import androidx.annotation.DoNotInline;
|
||||||
|
import androidx.annotation.RequiresApi;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@SuppressLint({"BanParcelableUsage"})
|
@SuppressLint({"BanParcelableUsage"})
|
||||||
|
@ -66,13 +69,13 @@ public final class PlaybackStateCompat implements Parcelable {
|
||||||
|
|
||||||
@Override // java.lang.Object
|
@Override // java.lang.Object
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder O = c.d.b.a.a.O("Action:mName='");
|
StringBuilder R = c.d.b.a.a.R("Action:mName='");
|
||||||
O.append((Object) this.j);
|
R.append((Object) this.j);
|
||||||
O.append(", mIcon=");
|
R.append(", mIcon=");
|
||||||
O.append(this.k);
|
R.append(this.k);
|
||||||
O.append(", mExtras=");
|
R.append(", mExtras=");
|
||||||
O.append(this.l);
|
R.append(this.l);
|
||||||
return O.toString();
|
return R.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override // android.os.Parcelable
|
@Override // android.os.Parcelable
|
||||||
|
@ -98,6 +101,142 @@ public final class PlaybackStateCompat implements Parcelable {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@RequiresApi(21)
|
||||||
|
public static class b {
|
||||||
|
@DoNotInline
|
||||||
|
public static void a(PlaybackState.Builder builder, PlaybackState.CustomAction customAction) {
|
||||||
|
builder.addCustomAction(customAction);
|
||||||
|
}
|
||||||
|
|
||||||
|
@DoNotInline
|
||||||
|
public static PlaybackState.CustomAction b(PlaybackState.CustomAction.Builder builder) {
|
||||||
|
return builder.build();
|
||||||
|
}
|
||||||
|
|
||||||
|
@DoNotInline
|
||||||
|
public static PlaybackState c(PlaybackState.Builder builder) {
|
||||||
|
return builder.build();
|
||||||
|
}
|
||||||
|
|
||||||
|
@DoNotInline
|
||||||
|
public static PlaybackState.Builder d() {
|
||||||
|
return new PlaybackState.Builder();
|
||||||
|
}
|
||||||
|
|
||||||
|
@DoNotInline
|
||||||
|
public static PlaybackState.CustomAction.Builder e(String str, CharSequence charSequence, int i) {
|
||||||
|
return new PlaybackState.CustomAction.Builder(str, charSequence, i);
|
||||||
|
}
|
||||||
|
|
||||||
|
@DoNotInline
|
||||||
|
public static String f(PlaybackState.CustomAction customAction) {
|
||||||
|
return customAction.getAction();
|
||||||
|
}
|
||||||
|
|
||||||
|
@DoNotInline
|
||||||
|
public static long g(PlaybackState playbackState) {
|
||||||
|
return playbackState.getActions();
|
||||||
|
}
|
||||||
|
|
||||||
|
@DoNotInline
|
||||||
|
public static long h(PlaybackState playbackState) {
|
||||||
|
return playbackState.getActiveQueueItemId();
|
||||||
|
}
|
||||||
|
|
||||||
|
@DoNotInline
|
||||||
|
public static long i(PlaybackState playbackState) {
|
||||||
|
return playbackState.getBufferedPosition();
|
||||||
|
}
|
||||||
|
|
||||||
|
@DoNotInline
|
||||||
|
public static List<PlaybackState.CustomAction> j(PlaybackState playbackState) {
|
||||||
|
return playbackState.getCustomActions();
|
||||||
|
}
|
||||||
|
|
||||||
|
@DoNotInline
|
||||||
|
public static CharSequence k(PlaybackState playbackState) {
|
||||||
|
return playbackState.getErrorMessage();
|
||||||
|
}
|
||||||
|
|
||||||
|
@DoNotInline
|
||||||
|
public static Bundle l(PlaybackState.CustomAction customAction) {
|
||||||
|
return customAction.getExtras();
|
||||||
|
}
|
||||||
|
|
||||||
|
@DoNotInline
|
||||||
|
public static int m(PlaybackState.CustomAction customAction) {
|
||||||
|
return customAction.getIcon();
|
||||||
|
}
|
||||||
|
|
||||||
|
@DoNotInline
|
||||||
|
public static long n(PlaybackState playbackState) {
|
||||||
|
return playbackState.getLastPositionUpdateTime();
|
||||||
|
}
|
||||||
|
|
||||||
|
@DoNotInline
|
||||||
|
public static CharSequence o(PlaybackState.CustomAction customAction) {
|
||||||
|
return customAction.getName();
|
||||||
|
}
|
||||||
|
|
||||||
|
@DoNotInline
|
||||||
|
public static float p(PlaybackState playbackState) {
|
||||||
|
return playbackState.getPlaybackSpeed();
|
||||||
|
}
|
||||||
|
|
||||||
|
@DoNotInline
|
||||||
|
public static long q(PlaybackState playbackState) {
|
||||||
|
return playbackState.getPosition();
|
||||||
|
}
|
||||||
|
|
||||||
|
@DoNotInline
|
||||||
|
public static int r(PlaybackState playbackState) {
|
||||||
|
return playbackState.getState();
|
||||||
|
}
|
||||||
|
|
||||||
|
@DoNotInline
|
||||||
|
public static void s(PlaybackState.Builder builder, long j) {
|
||||||
|
builder.setActions(j);
|
||||||
|
}
|
||||||
|
|
||||||
|
@DoNotInline
|
||||||
|
public static void t(PlaybackState.Builder builder, long j) {
|
||||||
|
builder.setActiveQueueItemId(j);
|
||||||
|
}
|
||||||
|
|
||||||
|
@DoNotInline
|
||||||
|
public static void u(PlaybackState.Builder builder, long j) {
|
||||||
|
builder.setBufferedPosition(j);
|
||||||
|
}
|
||||||
|
|
||||||
|
@DoNotInline
|
||||||
|
public static void v(PlaybackState.Builder builder, CharSequence charSequence) {
|
||||||
|
builder.setErrorMessage(charSequence);
|
||||||
|
}
|
||||||
|
|
||||||
|
@DoNotInline
|
||||||
|
public static void w(PlaybackState.CustomAction.Builder builder, Bundle bundle) {
|
||||||
|
builder.setExtras(bundle);
|
||||||
|
}
|
||||||
|
|
||||||
|
@DoNotInline
|
||||||
|
public static void x(PlaybackState.Builder builder, int i, long j, float f, long j2) {
|
||||||
|
builder.setState(i, j, f, j2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@RequiresApi(22)
|
||||||
|
public static class c {
|
||||||
|
@DoNotInline
|
||||||
|
public static Bundle a(PlaybackState playbackState) {
|
||||||
|
return playbackState.getExtras();
|
||||||
|
}
|
||||||
|
|
||||||
|
@DoNotInline
|
||||||
|
public static void b(PlaybackState.Builder builder, Bundle bundle) {
|
||||||
|
builder.setExtras(bundle);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public PlaybackStateCompat(int i, long j, long j2, float f, long j3, int i2, CharSequence charSequence, long j4, List<CustomAction> list, long j5, Bundle bundle) {
|
public PlaybackStateCompat(int i, long j, long j2, float f, long j3, int i2, CharSequence charSequence, long j4, List<CustomAction> list, long j5, Bundle bundle) {
|
||||||
this.i = i;
|
this.i = i;
|
||||||
this.j = j;
|
this.j = j;
|
||||||
|
@ -153,7 +292,7 @@ public final class PlaybackStateCompat implements Parcelable {
|
||||||
sb.append(", custom actions=");
|
sb.append(", custom actions=");
|
||||||
sb.append(this.q);
|
sb.append(this.q);
|
||||||
sb.append(", active item id=");
|
sb.append(", active item id=");
|
||||||
return c.d.b.a.a.A(sb, this.r, "}");
|
return c.d.b.a.a.B(sb, this.r, "}");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override // android.os.Parcelable
|
@Override // android.os.Parcelable
|
||||||
|
|
|
@ -415,9 +415,9 @@ public class ComponentActivity extends androidx.core.app.ComponentActivity imple
|
||||||
@Override // androidx.activity.result.ActivityResultCaller
|
@Override // androidx.activity.result.ActivityResultCaller
|
||||||
@NonNull
|
@NonNull
|
||||||
public final <I, O> ActivityResultLauncher<I> registerForActivityResult(@NonNull ActivityResultContract<I, O> activityResultContract, @NonNull ActivityResultRegistry activityResultRegistry, @NonNull ActivityResultCallback<O> activityResultCallback) {
|
public final <I, O> ActivityResultLauncher<I> registerForActivityResult(@NonNull ActivityResultContract<I, O> activityResultContract, @NonNull ActivityResultRegistry activityResultRegistry, @NonNull ActivityResultCallback<O> activityResultCallback) {
|
||||||
StringBuilder O = a.O("activity_rq#");
|
StringBuilder R = a.R("activity_rq#");
|
||||||
O.append(this.mNextLocalRequestCode.getAndIncrement());
|
R.append(this.mNextLocalRequestCode.getAndIncrement());
|
||||||
return activityResultRegistry.register(O.toString(), this, activityResultContract, activityResultCallback);
|
return activityResultRegistry.register(R.toString(), this, activityResultContract, activityResultCallback);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override // androidx.activity.contextaware.ContextAware
|
@Override // androidx.activity.contextaware.ContextAware
|
||||||
|
|
|
@ -59,12 +59,12 @@ public final class ActivityResult implements Parcelable {
|
||||||
|
|
||||||
@Override // java.lang.Object
|
@Override // java.lang.Object
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder O = a.O("ActivityResult{resultCode=");
|
StringBuilder R = a.R("ActivityResult{resultCode=");
|
||||||
O.append(resultCodeToString(this.mResultCode));
|
R.append(resultCodeToString(this.mResultCode));
|
||||||
O.append(", data=");
|
R.append(", data=");
|
||||||
O.append(this.mData);
|
R.append(this.mData);
|
||||||
O.append('}');
|
R.append('}');
|
||||||
return O.toString();
|
return R.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override // android.os.Parcelable
|
@Override // android.os.Parcelable
|
||||||
|
|
|
@ -288,15 +288,15 @@ public abstract class ActivityResultRegistry {
|
||||||
}
|
}
|
||||||
this.mKeyToCallback.remove(str);
|
this.mKeyToCallback.remove(str);
|
||||||
if (this.mParsedPendingResults.containsKey(str)) {
|
if (this.mParsedPendingResults.containsKey(str)) {
|
||||||
StringBuilder U = a.U("Dropping pending result for request ", str, ": ");
|
StringBuilder W = a.W("Dropping pending result for request ", str, ": ");
|
||||||
U.append(this.mParsedPendingResults.get(str));
|
W.append(this.mParsedPendingResults.get(str));
|
||||||
Log.w(LOG_TAG, U.toString());
|
Log.w(LOG_TAG, W.toString());
|
||||||
this.mParsedPendingResults.remove(str);
|
this.mParsedPendingResults.remove(str);
|
||||||
}
|
}
|
||||||
if (this.mPendingResults.containsKey(str)) {
|
if (this.mPendingResults.containsKey(str)) {
|
||||||
StringBuilder U2 = a.U("Dropping pending result for request ", str, ": ");
|
StringBuilder W2 = a.W("Dropping pending result for request ", str, ": ");
|
||||||
U2.append(this.mPendingResults.getParcelable(str));
|
W2.append(this.mPendingResults.getParcelable(str));
|
||||||
Log.w(LOG_TAG, U2.toString());
|
Log.w(LOG_TAG, W2.toString());
|
||||||
this.mPendingResults.remove(str);
|
this.mPendingResults.remove(str);
|
||||||
}
|
}
|
||||||
LifecycleContainer lifecycleContainer = this.mKeyToLifecycleContainers.get(str);
|
LifecycleContainer lifecycleContainer = this.mKeyToLifecycleContainers.get(str);
|
||||||
|
|
|
@ -1165,16 +1165,16 @@ public class AppCompatDelegateImpl extends AppCompatDelegate implements MenuBuil
|
||||||
contentFrameLayout.setAttachListener(new AnonymousClass5());
|
contentFrameLayout.setAttachListener(new AnonymousClass5());
|
||||||
return viewGroup;
|
return viewGroup;
|
||||||
}
|
}
|
||||||
StringBuilder O = a.O("AppCompat does not support the current theme features: { windowActionBar: ");
|
StringBuilder R = a.R("AppCompat does not support the current theme features: { windowActionBar: ");
|
||||||
O.append(this.mHasActionBar);
|
R.append(this.mHasActionBar);
|
||||||
O.append(", windowActionBarOverlay: ");
|
R.append(", windowActionBarOverlay: ");
|
||||||
O.append(this.mOverlayActionBar);
|
R.append(this.mOverlayActionBar);
|
||||||
O.append(", android:windowIsFloating: ");
|
R.append(", android:windowIsFloating: ");
|
||||||
O.append(this.mIsFloating);
|
R.append(this.mIsFloating);
|
||||||
O.append(", windowActionModeOverlay: ");
|
R.append(", windowActionModeOverlay: ");
|
||||||
O.append(this.mOverlayActionMode);
|
R.append(this.mOverlayActionMode);
|
||||||
O.append(", windowNoTitle: ");
|
R.append(", windowNoTitle: ");
|
||||||
throw new IllegalArgumentException(a.K(O, this.mWindowNoTitle, " }"));
|
throw new IllegalArgumentException(a.L(R, this.mWindowNoTitle, " }"));
|
||||||
}
|
}
|
||||||
obtainStyledAttributes.recycle();
|
obtainStyledAttributes.recycle();
|
||||||
throw new IllegalStateException("You need to use a Theme.AppCompat theme (or descendant) with this activity.");
|
throw new IllegalStateException("You need to use a Theme.AppCompat theme (or descendant) with this activity.");
|
||||||
|
|
|
@ -69,17 +69,17 @@ public class AppCompatViewInflater {
|
||||||
if (id2 == -1) {
|
if (id2 == -1) {
|
||||||
str = "";
|
str = "";
|
||||||
} else {
|
} else {
|
||||||
StringBuilder O = a.O(" with id '");
|
StringBuilder R = a.R(" with id '");
|
||||||
O.append(this.mHostView.getContext().getResources().getResourceEntryName(id2));
|
R.append(this.mHostView.getContext().getResources().getResourceEntryName(id2));
|
||||||
O.append("'");
|
R.append("'");
|
||||||
str = O.toString();
|
str = R.toString();
|
||||||
}
|
}
|
||||||
StringBuilder O2 = a.O("Could not find method ");
|
StringBuilder R2 = a.R("Could not find method ");
|
||||||
O2.append(this.mMethodName);
|
R2.append(this.mMethodName);
|
||||||
O2.append("(View) in a parent or ancestor Context for android:onClick attribute defined on view ");
|
R2.append("(View) in a parent or ancestor Context for android:onClick attribute defined on view ");
|
||||||
O2.append(this.mHostView.getClass());
|
R2.append(this.mHostView.getClass());
|
||||||
O2.append(str);
|
R2.append(str);
|
||||||
throw new IllegalStateException(O2.toString());
|
throw new IllegalStateException(R2.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override // android.view.View.OnClickListener
|
@Override // android.view.View.OnClickListener
|
||||||
|
|
|
@ -509,9 +509,9 @@ public class WindowDecorActionBar extends ActionBar implements ActionBarOverlayL
|
||||||
if (view instanceof Toolbar) {
|
if (view instanceof Toolbar) {
|
||||||
return ((Toolbar) view).getWrapper();
|
return ((Toolbar) view).getWrapper();
|
||||||
}
|
}
|
||||||
StringBuilder O = a.O("Can't make a decor toolbar out of ");
|
StringBuilder R = a.R("Can't make a decor toolbar out of ");
|
||||||
O.append(view != null ? view.getClass().getSimpleName() : "null");
|
R.append(view != null ? view.getClass().getSimpleName() : "null");
|
||||||
throw new IllegalStateException(O.toString());
|
throw new IllegalStateException(R.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
private void hideForActionMode() {
|
private void hideForActionMode() {
|
||||||
|
|
|
@ -57,9 +57,9 @@ public class SupportMenuInflater extends MenuInflater {
|
||||||
try {
|
try {
|
||||||
this.mMethod = cls.getMethod(str, PARAM_TYPES);
|
this.mMethod = cls.getMethod(str, PARAM_TYPES);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
StringBuilder U = a.U("Couldn't resolve menu item onClick handler ", str, " in class ");
|
StringBuilder W = a.W("Couldn't resolve menu item onClick handler ", str, " in class ");
|
||||||
U.append(cls.getName());
|
W.append(cls.getName());
|
||||||
InflateException inflateException = new InflateException(U.toString());
|
InflateException inflateException = new InflateException(W.toString());
|
||||||
inflateException.initCause(e);
|
inflateException.initCause(e);
|
||||||
throw inflateException;
|
throw inflateException;
|
||||||
}
|
}
|
||||||
|
@ -317,7 +317,7 @@ public class SupportMenuInflater extends MenuInflater {
|
||||||
if (name.equals(XML_MENU)) {
|
if (name.equals(XML_MENU)) {
|
||||||
eventType = xmlPullParser.next();
|
eventType = xmlPullParser.next();
|
||||||
} else {
|
} else {
|
||||||
throw new RuntimeException(a.u("Expecting menu, got ", name));
|
throw new RuntimeException(a.v("Expecting menu, got ", name));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -219,9 +219,9 @@ public class ActionBarOverlayLayout extends ViewGroup implements DecorContentPar
|
||||||
if (view instanceof Toolbar) {
|
if (view instanceof Toolbar) {
|
||||||
return ((Toolbar) view).getWrapper();
|
return ((Toolbar) view).getWrapper();
|
||||||
}
|
}
|
||||||
StringBuilder O = a.O("Can't make a decor toolbar out of ");
|
StringBuilder R = a.R("Can't make a decor toolbar out of ");
|
||||||
O.append(view.getClass().getSimpleName());
|
R.append(view.getClass().getSimpleName());
|
||||||
throw new IllegalStateException(O.toString());
|
throw new IllegalStateException(R.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
private void init(Context context) {
|
private void init(Context context) {
|
||||||
|
|
|
@ -86,12 +86,12 @@ public class ActivityChooserModel extends DataSetObservable {
|
||||||
|
|
||||||
@Override // java.lang.Object
|
@Override // java.lang.Object
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder S = a.S("[", "resolveInfo:");
|
StringBuilder V = a.V("[", "resolveInfo:");
|
||||||
S.append(this.resolveInfo.toString());
|
V.append(this.resolveInfo.toString());
|
||||||
S.append("; weight:");
|
V.append("; weight:");
|
||||||
S.append(new BigDecimal((double) this.weight));
|
V.append(new BigDecimal((double) this.weight));
|
||||||
S.append("]");
|
V.append("]");
|
||||||
return S.toString();
|
return V.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -169,14 +169,14 @@ public class ActivityChooserModel extends DataSetObservable {
|
||||||
}
|
}
|
||||||
|
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder S = a.S("[", "; activity:");
|
StringBuilder V = a.V("[", "; activity:");
|
||||||
S.append(this.activity);
|
V.append(this.activity);
|
||||||
S.append("; time:");
|
V.append("; time:");
|
||||||
S.append(this.time);
|
V.append(this.time);
|
||||||
S.append("; weight:");
|
V.append("; weight:");
|
||||||
S.append(new BigDecimal((double) this.weight));
|
V.append(new BigDecimal((double) this.weight));
|
||||||
S.append("]");
|
V.append("]");
|
||||||
return S.toString();
|
return V.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -262,7 +262,7 @@ public class ActivityChooserModel extends DataSetObservable {
|
||||||
if (TextUtils.isEmpty(str) || str.endsWith(HISTORY_FILE_EXTENSION)) {
|
if (TextUtils.isEmpty(str) || str.endsWith(HISTORY_FILE_EXTENSION)) {
|
||||||
this.mHistoryFileName = str;
|
this.mHistoryFileName = str;
|
||||||
} else {
|
} else {
|
||||||
this.mHistoryFileName = a.u(str, HISTORY_FILE_EXTENSION);
|
this.mHistoryFileName = a.v(str, HISTORY_FILE_EXTENSION);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -471,9 +471,9 @@ public class AppCompatTextViewAutoSizeHelper {
|
||||||
}
|
}
|
||||||
this.mAutoSizeTextSizesInPx = cleanupAutoSizePresetSizes(iArr2);
|
this.mAutoSizeTextSizesInPx = cleanupAutoSizePresetSizes(iArr2);
|
||||||
if (!setupAutoSizeUniformPresetSizesConfiguration()) {
|
if (!setupAutoSizeUniformPresetSizesConfiguration()) {
|
||||||
StringBuilder O = a.O("None of the preset sizes is valid: ");
|
StringBuilder R = a.R("None of the preset sizes is valid: ");
|
||||||
O.append(Arrays.toString(iArr));
|
R.append(Arrays.toString(iArr));
|
||||||
throw new IllegalArgumentException(O.toString());
|
throw new IllegalArgumentException(R.toString());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.mHasPresetAutoSizeValues = false;
|
this.mHasPresetAutoSizeValues = false;
|
||||||
|
@ -498,7 +498,7 @@ public class AppCompatTextViewAutoSizeHelper {
|
||||||
autoSizeText();
|
autoSizeText();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
throw new IllegalArgumentException(a.l("Unknown auto-size text type: ", i));
|
throw new IllegalArgumentException(a.p("Unknown auto-size text type: ", i));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1263,10 +1263,10 @@ public class LinearLayoutCompat extends ViewGroup {
|
||||||
|
|
||||||
public void setBaselineAlignedChildIndex(int i) {
|
public void setBaselineAlignedChildIndex(int i) {
|
||||||
if (i < 0 || i >= getChildCount()) {
|
if (i < 0 || i >= getChildCount()) {
|
||||||
StringBuilder O = a.O("base aligned child index out of range (0, ");
|
StringBuilder R = a.R("base aligned child index out of range (0, ");
|
||||||
O.append(getChildCount());
|
R.append(getChildCount());
|
||||||
O.append(")");
|
R.append(")");
|
||||||
throw new IllegalArgumentException(O.toString());
|
throw new IllegalArgumentException(R.toString());
|
||||||
}
|
}
|
||||||
this.mBaselineAlignedChildIndex = i;
|
this.mBaselineAlignedChildIndex = i;
|
||||||
}
|
}
|
||||||
|
|
|
@ -312,9 +312,9 @@ public class ListPopupWindow implements ShowableListMenu {
|
||||||
linearLayout.addView(view);
|
linearLayout.addView(view);
|
||||||
linearLayout.addView(dropDownListView, layoutParams);
|
linearLayout.addView(dropDownListView, layoutParams);
|
||||||
} else if (i5 != 1) {
|
} else if (i5 != 1) {
|
||||||
StringBuilder O = a.O("Invalid hint position ");
|
StringBuilder R = a.R("Invalid hint position ");
|
||||||
O.append(this.mPromptPosition);
|
R.append(this.mPromptPosition);
|
||||||
Log.e(TAG, O.toString());
|
Log.e(TAG, R.toString());
|
||||||
} else {
|
} else {
|
||||||
linearLayout.addView(dropDownListView, layoutParams);
|
linearLayout.addView(dropDownListView, layoutParams);
|
||||||
linearLayout.addView(view);
|
linearLayout.addView(view);
|
||||||
|
|
|
@ -379,10 +379,10 @@ public class SearchView extends LinearLayoutCompat implements CollapsibleActionV
|
||||||
|
|
||||||
@Override // java.lang.Object
|
@Override // java.lang.Object
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder O = a.O("SearchView.SavedState{");
|
StringBuilder R = a.R("SearchView.SavedState{");
|
||||||
O.append(Integer.toHexString(System.identityHashCode(this)));
|
R.append(Integer.toHexString(System.identityHashCode(this)));
|
||||||
O.append(" isIconified=");
|
R.append(" isIconified=");
|
||||||
return a.K(O, this.isIconified, "}");
|
return a.L(R, this.isIconified, "}");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override // androidx.customview.view.AbsSavedState, android.os.Parcelable
|
@Override // androidx.customview.view.AbsSavedState, android.os.Parcelable
|
||||||
|
|
|
@ -111,9 +111,9 @@ public class SuggestionsAdapter extends ResourceCursorAdapter implements View.On
|
||||||
if (drawable != null) {
|
if (drawable != null) {
|
||||||
return drawable;
|
return drawable;
|
||||||
}
|
}
|
||||||
StringBuilder P = a.P("Invalid icon resource ", iconResource, " for ");
|
StringBuilder S = a.S("Invalid icon resource ", iconResource, " for ");
|
||||||
P.append(componentName.flattenToShortString());
|
S.append(componentName.flattenToShortString());
|
||||||
Log.w(LOG_TAG, P.toString());
|
Log.w(LOG_TAG, S.toString());
|
||||||
return null;
|
return null;
|
||||||
} catch (PackageManager.NameNotFoundException e) {
|
} catch (PackageManager.NameNotFoundException e) {
|
||||||
Log.w(LOG_TAG, e.toString());
|
Log.w(LOG_TAG, e.toString());
|
||||||
|
@ -206,7 +206,7 @@ public class SuggestionsAdapter extends ResourceCursorAdapter implements View.On
|
||||||
storeInIconCache(str, drawable2);
|
storeInIconCache(str, drawable2);
|
||||||
return drawable2;
|
return drawable2;
|
||||||
} catch (Resources.NotFoundException unused2) {
|
} catch (Resources.NotFoundException unused2) {
|
||||||
a.k0("Icon resource not found: ", str, LOG_TAG);
|
Log.w(LOG_TAG, "Icon resource not found: " + str);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -593,7 +593,7 @@ public class ToolbarWidgetWrapper implements DecorToolbar {
|
||||||
layoutParams.gravity = BadgeDrawable.BOTTOM_START;
|
layoutParams.gravity = BadgeDrawable.BOTTOM_START;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
throw new IllegalArgumentException(a.l("Invalid navigation mode ", i));
|
throw new IllegalArgumentException(a.p("Invalid navigation mode ", i));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -319,15 +319,15 @@ public class SafeIterableMap<K, V> implements Iterable<Map.Entry<K, V>> {
|
||||||
|
|
||||||
@Override // java.lang.Object
|
@Override // java.lang.Object
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder O = a.O("[");
|
StringBuilder R = a.R("[");
|
||||||
Iterator<Map.Entry<K, V>> it = iterator();
|
Iterator<Map.Entry<K, V>> it = iterator();
|
||||||
while (it.hasNext()) {
|
while (it.hasNext()) {
|
||||||
O.append(it.next().toString());
|
R.append(it.next().toString());
|
||||||
if (it.hasNext()) {
|
if (it.hasNext()) {
|
||||||
O.append(", ");
|
R.append(", ");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
O.append("]");
|
R.append("]");
|
||||||
return O.toString();
|
return R.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -203,9 +203,9 @@ public final class BrowserServiceFileProvider extends FileProvider {
|
||||||
}
|
}
|
||||||
|
|
||||||
private static Uri generateUri(Context context, String str) {
|
private static Uri generateUri(Context context, String str) {
|
||||||
String v = a.v(FILE_SUB_DIR_NAME, str, FILE_EXTENSION);
|
String w = a.w(FILE_SUB_DIR_NAME, str, FILE_EXTENSION);
|
||||||
Uri.Builder scheme = new Uri.Builder().scheme(CONTENT_SCHEME);
|
Uri.Builder scheme = new Uri.Builder().scheme(CONTENT_SCHEME);
|
||||||
return scheme.authority(context.getPackageName() + AUTHORITY_SUFFIX).path(v).build();
|
return scheme.authority(context.getPackageName() + AUTHORITY_SUFFIX).path(w).build();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void grantReadPermission(@NonNull Intent intent, @Nullable List<Uri> list, @NonNull Context context) {
|
public static void grantReadPermission(@NonNull Intent intent, @Nullable List<Uri> list, @NonNull Context context) {
|
||||||
|
@ -230,9 +230,9 @@ public final class BrowserServiceFileProvider extends FileProvider {
|
||||||
@NonNull
|
@NonNull
|
||||||
@UiThread
|
@UiThread
|
||||||
public static ResolvableFuture<Uri> saveBitmap(@NonNull Context context, @NonNull Bitmap bitmap, @NonNull String str, int i) {
|
public static ResolvableFuture<Uri> saveBitmap(@NonNull Context context, @NonNull Bitmap bitmap, @NonNull String str, int i) {
|
||||||
StringBuilder S = a.S(str, "_");
|
StringBuilder V = a.V(str, "_");
|
||||||
S.append(Integer.toString(i));
|
V.append(Integer.toString(i));
|
||||||
String sb = S.toString();
|
String sb = V.toString();
|
||||||
Uri generateUri = generateUri(context, sb);
|
Uri generateUri = generateUri(context, sb);
|
||||||
ResolvableFuture<Uri> create = ResolvableFuture.create();
|
ResolvableFuture<Uri> create = ResolvableFuture.create();
|
||||||
new FileSaveTask(context, sb, bitmap, generateUri, create).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, new String[0]);
|
new FileSaveTask(context, sb, bitmap, generateUri, create).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, new String[0]);
|
||||||
|
|
|
@ -213,7 +213,7 @@ public final class CustomTabsIntent {
|
||||||
@NonNull
|
@NonNull
|
||||||
public Builder setColorSchemeParams(int i, @NonNull CustomTabColorSchemeParams customTabColorSchemeParams) {
|
public Builder setColorSchemeParams(int i, @NonNull CustomTabColorSchemeParams customTabColorSchemeParams) {
|
||||||
if (i < 0 || i > 2 || i == 0) {
|
if (i < 0 || i > 2 || i == 0) {
|
||||||
throw new IllegalArgumentException(a.l("Invalid colorScheme: ", i));
|
throw new IllegalArgumentException(a.p("Invalid colorScheme: ", i));
|
||||||
}
|
}
|
||||||
if (this.mColorSchemeParamBundles == null) {
|
if (this.mColorSchemeParamBundles == null) {
|
||||||
this.mColorSchemeParamBundles = new SparseArray<>();
|
this.mColorSchemeParamBundles = new SparseArray<>();
|
||||||
|
@ -355,7 +355,7 @@ public final class CustomTabsIntent {
|
||||||
public static CustomTabColorSchemeParams getColorSchemeParams(@NonNull Intent intent, int i) {
|
public static CustomTabColorSchemeParams getColorSchemeParams(@NonNull Intent intent, int i) {
|
||||||
Bundle bundle;
|
Bundle bundle;
|
||||||
if (i < 0 || i > 2 || i == 0) {
|
if (i < 0 || i > 2 || i == 0) {
|
||||||
throw new IllegalArgumentException(a.l("Invalid colorScheme: ", i));
|
throw new IllegalArgumentException(a.p("Invalid colorScheme: ", i));
|
||||||
}
|
}
|
||||||
Bundle extras = intent.getExtras();
|
Bundle extras = intent.getExtras();
|
||||||
if (extras == null) {
|
if (extras == null) {
|
||||||
|
|
|
@ -66,9 +66,9 @@ public class ConnectionHolder implements ServiceConnection {
|
||||||
} else {
|
} else {
|
||||||
throw this.mCancellationException;
|
throw this.mCancellationException;
|
||||||
}
|
}
|
||||||
StringBuilder O = a.O("ConnectionHolder, state = ");
|
StringBuilder R = a.R("ConnectionHolder, state = ");
|
||||||
O.append(this.mState);
|
R.append(this.mState);
|
||||||
return O.toString();
|
return R.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
@MainThread
|
@MainThread
|
||||||
|
|
|
@ -154,7 +154,7 @@ public final class TrustedWebActivityServiceConnection {
|
||||||
|
|
||||||
public static void ensureBundleContains(Bundle bundle, String str) {
|
public static void ensureBundleContains(Bundle bundle, String str) {
|
||||||
if (!bundle.containsKey(str)) {
|
if (!bundle.containsKey(str)) {
|
||||||
throw new IllegalArgumentException(c.d.b.a.a.u("Bundle must contain ", str));
|
throw new IllegalArgumentException(c.d.b.a.a.v("Bundle must contain ", str));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -99,16 +99,16 @@ public final class TrustedWebActivityServiceConnectionPool {
|
||||||
ResolveInfo resolveService = context.getPackageManager().resolveService(intent2, 131072);
|
ResolveInfo resolveService = context.getPackageManager().resolveService(intent2, 131072);
|
||||||
if (resolveService == null) {
|
if (resolveService == null) {
|
||||||
if (z2) {
|
if (z2) {
|
||||||
a.k0("Could not find TWAService for ", str, TAG);
|
Log.w(TAG, "Could not find TWAService for " + str);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
if (z2) {
|
if (z2) {
|
||||||
StringBuilder O = a.O("Found ");
|
StringBuilder R = a.R("Found ");
|
||||||
O.append(resolveService.serviceInfo.name);
|
R.append(resolveService.serviceInfo.name);
|
||||||
O.append(" to handle request for ");
|
R.append(" to handle request for ");
|
||||||
O.append(uri);
|
R.append(uri);
|
||||||
Log.i(TAG, O.toString());
|
Log.i(TAG, R.toString());
|
||||||
}
|
}
|
||||||
Intent intent3 = new Intent();
|
Intent intent3 = new Intent();
|
||||||
intent3.setComponent(new ComponentName(str, resolveService.serviceInfo.name));
|
intent3.setComponent(new ComponentName(str, resolveService.serviceInfo.name));
|
||||||
|
|
|
@ -595,32 +595,30 @@ public abstract class AbstractResolvableFuture<V> implements a<V> {
|
||||||
String timeUnit2 = timeUnit.toString();
|
String timeUnit2 = timeUnit.toString();
|
||||||
Locale locale = Locale.ROOT;
|
Locale locale = Locale.ROOT;
|
||||||
String lowerCase = timeUnit2.toLowerCase(locale);
|
String lowerCase = timeUnit2.toLowerCase(locale);
|
||||||
StringBuilder R = c.d.b.a.a.R("Waited ", j, " ");
|
String str = "Waited " + j + " " + timeUnit.toString().toLowerCase(locale);
|
||||||
R.append(timeUnit.toString().toLowerCase(locale));
|
|
||||||
String sb = R.toString();
|
|
||||||
if (nanos + 1000 < 0) {
|
if (nanos + 1000 < 0) {
|
||||||
String u = c.d.b.a.a.u(sb, " (plus ");
|
String v = c.d.b.a.a.v(str, " (plus ");
|
||||||
long j2 = -nanos;
|
long j2 = -nanos;
|
||||||
long convert = timeUnit.convert(j2, TimeUnit.NANOSECONDS);
|
long convert = timeUnit.convert(j2, TimeUnit.NANOSECONDS);
|
||||||
long nanos2 = j2 - timeUnit.toNanos(convert);
|
long nanos2 = j2 - timeUnit.toNanos(convert);
|
||||||
int i = (convert > 0 ? 1 : (convert == 0 ? 0 : -1));
|
int i = (convert > 0 ? 1 : (convert == 0 ? 0 : -1));
|
||||||
boolean z2 = i == 0 || nanos2 > 1000;
|
boolean z2 = i == 0 || nanos2 > 1000;
|
||||||
if (i > 0) {
|
if (i > 0) {
|
||||||
String str = u + convert + " " + lowerCase;
|
String str2 = v + convert + " " + lowerCase;
|
||||||
if (z2) {
|
if (z2) {
|
||||||
str = c.d.b.a.a.u(str, ",");
|
str2 = c.d.b.a.a.v(str2, ",");
|
||||||
}
|
}
|
||||||
u = c.d.b.a.a.u(str, " ");
|
v = c.d.b.a.a.v(str2, " ");
|
||||||
}
|
}
|
||||||
if (z2) {
|
if (z2) {
|
||||||
u = c.d.b.a.a.r(u, nanos2, " nanoseconds ");
|
v = v + nanos2 + " nanoseconds ";
|
||||||
}
|
}
|
||||||
sb = c.d.b.a.a.u(u, "delay)");
|
str = c.d.b.a.a.v(v, "delay)");
|
||||||
}
|
}
|
||||||
if (isDone()) {
|
if (isDone()) {
|
||||||
throw new TimeoutException(c.d.b.a.a.u(sb, " but future completed as timeout expired"));
|
throw new TimeoutException(c.d.b.a.a.v(str, " but future completed as timeout expired"));
|
||||||
}
|
}
|
||||||
throw new TimeoutException(c.d.b.a.a.v(sb, " for ", abstractResolvableFuture));
|
throw new TimeoutException(c.d.b.a.a.w(str, " for ", abstractResolvableFuture));
|
||||||
}
|
}
|
||||||
throw new InterruptedException();
|
throw new InterruptedException();
|
||||||
}
|
}
|
||||||
|
@ -649,15 +647,15 @@ public abstract class AbstractResolvableFuture<V> implements a<V> {
|
||||||
public String pendingToString() {
|
public String pendingToString() {
|
||||||
Object obj = this.value;
|
Object obj = this.value;
|
||||||
if (obj instanceof SetFuture) {
|
if (obj instanceof SetFuture) {
|
||||||
return c.d.b.a.a.G(c.d.b.a.a.O("setFuture=["), userObjectToString(((SetFuture) obj).future), "]");
|
return c.d.b.a.a.H(c.d.b.a.a.R("setFuture=["), userObjectToString(((SetFuture) obj).future), "]");
|
||||||
}
|
}
|
||||||
if (!(this instanceof ScheduledFuture)) {
|
if (!(this instanceof ScheduledFuture)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
StringBuilder O = c.d.b.a.a.O("remaining delay=[");
|
StringBuilder R = c.d.b.a.a.R("remaining delay=[");
|
||||||
O.append(((ScheduledFuture) this).getDelay(TimeUnit.MILLISECONDS));
|
R.append(((ScheduledFuture) this).getDelay(TimeUnit.MILLISECONDS));
|
||||||
O.append(" ms]");
|
R.append(" ms]");
|
||||||
return O.toString();
|
return R.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean set(@Nullable V v) {
|
public boolean set(@Nullable V v) {
|
||||||
|
@ -725,9 +723,9 @@ public abstract class AbstractResolvableFuture<V> implements a<V> {
|
||||||
try {
|
try {
|
||||||
str = pendingToString();
|
str = pendingToString();
|
||||||
} catch (RuntimeException e) {
|
} catch (RuntimeException e) {
|
||||||
StringBuilder O = c.d.b.a.a.O("Exception thrown from implementation: ");
|
StringBuilder R = c.d.b.a.a.R("Exception thrown from implementation: ");
|
||||||
O.append(e.getClass());
|
R.append(e.getClass());
|
||||||
str = O.toString();
|
str = R.toString();
|
||||||
}
|
}
|
||||||
if (str != null && !str.isEmpty()) {
|
if (str != null && !str.isEmpty()) {
|
||||||
sb.append("PENDING, info=[");
|
sb.append("PENDING, info=[");
|
||||||
|
|
|
@ -33,9 +33,9 @@ public final class CallbackToFutureAdapter {
|
||||||
ResolvableFuture<Void> resolvableFuture;
|
ResolvableFuture<Void> resolvableFuture;
|
||||||
SafeFuture<T> safeFuture = this.future;
|
SafeFuture<T> safeFuture = this.future;
|
||||||
if (safeFuture != null && !safeFuture.isDone()) {
|
if (safeFuture != null && !safeFuture.isDone()) {
|
||||||
StringBuilder O = a.O("The completer object was garbage collected - this future would otherwise never complete. The tag was: ");
|
StringBuilder R = a.R("The completer object was garbage collected - this future would otherwise never complete. The tag was: ");
|
||||||
O.append(this.tag);
|
R.append(this.tag);
|
||||||
safeFuture.setException(new FutureGarbageCollectedException(O.toString()));
|
safeFuture.setException(new FutureGarbageCollectedException(R.toString()));
|
||||||
}
|
}
|
||||||
if (!this.attemptedSetting && (resolvableFuture = this.cancellationFuture) != null) {
|
if (!this.attemptedSetting && (resolvableFuture = this.cancellationFuture) != null) {
|
||||||
resolvableFuture.set(null);
|
resolvableFuture.set(null);
|
||||||
|
@ -119,10 +119,10 @@ public final class CallbackToFutureAdapter {
|
||||||
if (completer == null) {
|
if (completer == null) {
|
||||||
return "Completer object has been garbage collected, future will fail soon";
|
return "Completer object has been garbage collected, future will fail soon";
|
||||||
}
|
}
|
||||||
StringBuilder O = a.O("tag=[");
|
StringBuilder R = a.R("tag=[");
|
||||||
O.append(completer.tag);
|
R.append(completer.tag);
|
||||||
O.append("]");
|
R.append("]");
|
||||||
return O.toString();
|
return R.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -169,9 +169,9 @@ public class Easing {
|
||||||
case 3:
|
case 3:
|
||||||
return new CubicEasing(STANDARD);
|
return new CubicEasing(STANDARD);
|
||||||
default:
|
default:
|
||||||
StringBuilder O = a.O("transitionEasing syntax error syntax:transitionEasing=\"cubic(1.0,0.5,0.0,0.6)\" or ");
|
StringBuilder R = a.R("transitionEasing syntax error syntax:transitionEasing=\"cubic(1.0,0.5,0.0,0.6)\" or ");
|
||||||
O.append(Arrays.toString(NAMED_EASING));
|
R.append(Arrays.toString(NAMED_EASING));
|
||||||
Log.e("ConstraintSet", O.toString());
|
Log.e("ConstraintSet", R.toString());
|
||||||
return sDefault;
|
return sDefault;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -175,10 +175,10 @@ public class Oscillator {
|
||||||
}
|
}
|
||||||
|
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder O = a.O("pos =");
|
StringBuilder R = a.R("pos =");
|
||||||
O.append(Arrays.toString(this.mPosition));
|
R.append(Arrays.toString(this.mPosition));
|
||||||
O.append(" period=");
|
R.append(" period=");
|
||||||
O.append(Arrays.toString(this.mPeriod));
|
R.append(Arrays.toString(this.mPeriod));
|
||||||
return O.toString();
|
return R.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -156,9 +156,9 @@ public class StopLogic extends MotionInterpolator {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void debug(String str, String str2, float f) {
|
public void debug(String str, String str2, float f) {
|
||||||
StringBuilder S = a.S(str2, " ===== ");
|
StringBuilder V = a.V(str2, " ===== ");
|
||||||
S.append(this.mType);
|
V.append(this.mType);
|
||||||
Log.v(str, S.toString());
|
Log.v(str, V.toString());
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.append(str2);
|
sb.append(str2);
|
||||||
sb.append(this.mBackwards ? "backwards" : "forward ");
|
sb.append(this.mBackwards ? "backwards" : "forward ");
|
||||||
|
@ -169,22 +169,22 @@ public class StopLogic extends MotionInterpolator {
|
||||||
Log.v(str, sb.toString());
|
Log.v(str, sb.toString());
|
||||||
Log.v(str, str2 + " dur " + this.mStage1Duration + " vel " + this.mStage1Velocity + " pos " + this.mStage1EndPosition);
|
Log.v(str, str2 + " dur " + this.mStage1Duration + " vel " + this.mStage1Velocity + " pos " + this.mStage1EndPosition);
|
||||||
if (this.mNumberOfStages > 1) {
|
if (this.mNumberOfStages > 1) {
|
||||||
StringBuilder S2 = a.S(str2, " dur ");
|
StringBuilder V2 = a.V(str2, " dur ");
|
||||||
S2.append(this.mStage2Duration);
|
V2.append(this.mStage2Duration);
|
||||||
S2.append(" vel ");
|
V2.append(" vel ");
|
||||||
S2.append(this.mStage2Velocity);
|
V2.append(this.mStage2Velocity);
|
||||||
S2.append(" pos ");
|
V2.append(" pos ");
|
||||||
S2.append(this.mStage2EndPosition);
|
V2.append(this.mStage2EndPosition);
|
||||||
Log.v(str, S2.toString());
|
Log.v(str, V2.toString());
|
||||||
}
|
}
|
||||||
if (this.mNumberOfStages > 2) {
|
if (this.mNumberOfStages > 2) {
|
||||||
StringBuilder S3 = a.S(str2, " dur ");
|
StringBuilder V3 = a.V(str2, " dur ");
|
||||||
S3.append(this.mStage3Duration);
|
V3.append(this.mStage3Duration);
|
||||||
S3.append(" vel ");
|
V3.append(" vel ");
|
||||||
S3.append(this.mStage3Velocity);
|
V3.append(this.mStage3Velocity);
|
||||||
S3.append(" pos ");
|
V3.append(" pos ");
|
||||||
S3.append(this.mStage3EndPosition);
|
V3.append(this.mStage3EndPosition);
|
||||||
Log.v(str, S3.toString());
|
Log.v(str, V3.toString());
|
||||||
}
|
}
|
||||||
float f2 = this.mStage1Duration;
|
float f2 = this.mStage1Duration;
|
||||||
if (f <= f2) {
|
if (f <= f2) {
|
||||||
|
|
|
@ -13,18 +13,18 @@ import java.lang.reflect.Modifier;
|
||||||
public class Debug {
|
public class Debug {
|
||||||
public static void dumpLayoutParams(ViewGroup.LayoutParams layoutParams, String str) {
|
public static void dumpLayoutParams(ViewGroup.LayoutParams layoutParams, String str) {
|
||||||
StackTraceElement stackTraceElement = new Throwable().getStackTrace()[1];
|
StackTraceElement stackTraceElement = new Throwable().getStackTrace()[1];
|
||||||
StringBuilder O = a.O(".(");
|
StringBuilder R = a.R(".(");
|
||||||
O.append(stackTraceElement.getFileName());
|
R.append(stackTraceElement.getFileName());
|
||||||
O.append(":");
|
R.append(":");
|
||||||
O.append(stackTraceElement.getLineNumber());
|
R.append(stackTraceElement.getLineNumber());
|
||||||
O.append(") ");
|
R.append(") ");
|
||||||
O.append(str);
|
R.append(str);
|
||||||
O.append(" ");
|
R.append(" ");
|
||||||
String sb = O.toString();
|
String sb = R.toString();
|
||||||
PrintStream printStream = System.out;
|
PrintStream printStream = System.out;
|
||||||
StringBuilder U = a.U(" >>>>>>>>>>>>>>>>>>. dump ", sb, " ");
|
StringBuilder W = a.W(" >>>>>>>>>>>>>>>>>>. dump ", sb, " ");
|
||||||
U.append(layoutParams.getClass().getName());
|
W.append(layoutParams.getClass().getName());
|
||||||
printStream.println(U.toString());
|
printStream.println(W.toString());
|
||||||
Field[] fields = layoutParams.getClass().getFields();
|
Field[] fields = layoutParams.getClass().getFields();
|
||||||
for (Field field : fields) {
|
for (Field field : fields) {
|
||||||
try {
|
try {
|
||||||
|
@ -43,22 +43,22 @@ public class Debug {
|
||||||
|
|
||||||
public static void dumpLayoutParams(ViewGroup viewGroup, String str) {
|
public static void dumpLayoutParams(ViewGroup viewGroup, String str) {
|
||||||
StackTraceElement stackTraceElement = new Throwable().getStackTrace()[1];
|
StackTraceElement stackTraceElement = new Throwable().getStackTrace()[1];
|
||||||
StringBuilder O = a.O(".(");
|
StringBuilder R = a.R(".(");
|
||||||
O.append(stackTraceElement.getFileName());
|
R.append(stackTraceElement.getFileName());
|
||||||
O.append(":");
|
R.append(":");
|
||||||
O.append(stackTraceElement.getLineNumber());
|
R.append(stackTraceElement.getLineNumber());
|
||||||
O.append(") ");
|
R.append(") ");
|
||||||
O.append(str);
|
R.append(str);
|
||||||
O.append(" ");
|
R.append(" ");
|
||||||
String sb = O.toString();
|
String sb = R.toString();
|
||||||
int childCount = viewGroup.getChildCount();
|
int childCount = viewGroup.getChildCount();
|
||||||
System.out.println(str + " children " + childCount);
|
System.out.println(str + " children " + childCount);
|
||||||
for (int i = 0; i < childCount; i++) {
|
for (int i = 0; i < childCount; i++) {
|
||||||
View childAt = viewGroup.getChildAt(i);
|
View childAt = viewGroup.getChildAt(i);
|
||||||
PrintStream printStream = System.out;
|
PrintStream printStream = System.out;
|
||||||
StringBuilder S = a.S(sb, " ");
|
StringBuilder V = a.V(sb, " ");
|
||||||
S.append(getName(childAt));
|
V.append(getName(childAt));
|
||||||
printStream.println(S.toString());
|
printStream.println(V.toString());
|
||||||
ViewGroup.LayoutParams layoutParams = childAt.getLayoutParams();
|
ViewGroup.LayoutParams layoutParams = childAt.getLayoutParams();
|
||||||
Field[] fields = layoutParams.getClass().getFields();
|
Field[] fields = layoutParams.getClass().getFields();
|
||||||
for (Field field : fields) {
|
for (Field field : fields) {
|
||||||
|
@ -77,18 +77,18 @@ public class Debug {
|
||||||
|
|
||||||
public static void dumpPoc(Object obj) {
|
public static void dumpPoc(Object obj) {
|
||||||
StackTraceElement stackTraceElement = new Throwable().getStackTrace()[1];
|
StackTraceElement stackTraceElement = new Throwable().getStackTrace()[1];
|
||||||
StringBuilder O = a.O(".(");
|
StringBuilder R = a.R(".(");
|
||||||
O.append(stackTraceElement.getFileName());
|
R.append(stackTraceElement.getFileName());
|
||||||
O.append(":");
|
R.append(":");
|
||||||
O.append(stackTraceElement.getLineNumber());
|
R.append(stackTraceElement.getLineNumber());
|
||||||
O.append(")");
|
R.append(")");
|
||||||
String sb = O.toString();
|
String sb = R.toString();
|
||||||
Class<?> cls = obj.getClass();
|
Class<?> cls = obj.getClass();
|
||||||
PrintStream printStream = System.out;
|
PrintStream printStream = System.out;
|
||||||
StringBuilder S = a.S(sb, "------------- ");
|
StringBuilder V = a.V(sb, "------------- ");
|
||||||
S.append(cls.getName());
|
V.append(cls.getName());
|
||||||
S.append(" --------------------");
|
V.append(" --------------------");
|
||||||
printStream.println(S.toString());
|
printStream.println(V.toString());
|
||||||
Field[] fields = cls.getFields();
|
Field[] fields = cls.getFields();
|
||||||
for (Field field : fields) {
|
for (Field field : fields) {
|
||||||
try {
|
try {
|
||||||
|
@ -108,10 +108,10 @@ public class Debug {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
PrintStream printStream2 = System.out;
|
PrintStream printStream2 = System.out;
|
||||||
StringBuilder S2 = a.S(sb, "------------- ");
|
StringBuilder V2 = a.V(sb, "------------- ");
|
||||||
S2.append(cls.getSimpleName());
|
V2.append(cls.getSimpleName());
|
||||||
S2.append(" --------------------");
|
V2.append(" --------------------");
|
||||||
printStream2.println(S2.toString());
|
printStream2.println(V2.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String getActionType(MotionEvent motionEvent) {
|
public static String getActionType(MotionEvent motionEvent) {
|
||||||
|
@ -130,44 +130,44 @@ public class Debug {
|
||||||
|
|
||||||
public static String getCallFrom(int i) {
|
public static String getCallFrom(int i) {
|
||||||
StackTraceElement stackTraceElement = new Throwable().getStackTrace()[i + 2];
|
StackTraceElement stackTraceElement = new Throwable().getStackTrace()[i + 2];
|
||||||
StringBuilder O = a.O(".(");
|
StringBuilder R = a.R(".(");
|
||||||
O.append(stackTraceElement.getFileName());
|
R.append(stackTraceElement.getFileName());
|
||||||
O.append(":");
|
R.append(":");
|
||||||
O.append(stackTraceElement.getLineNumber());
|
R.append(stackTraceElement.getLineNumber());
|
||||||
O.append(")");
|
R.append(")");
|
||||||
return O.toString();
|
return R.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String getLoc() {
|
public static String getLoc() {
|
||||||
StackTraceElement stackTraceElement = new Throwable().getStackTrace()[1];
|
StackTraceElement stackTraceElement = new Throwable().getStackTrace()[1];
|
||||||
StringBuilder O = a.O(".(");
|
StringBuilder R = a.R(".(");
|
||||||
O.append(stackTraceElement.getFileName());
|
R.append(stackTraceElement.getFileName());
|
||||||
O.append(":");
|
R.append(":");
|
||||||
O.append(stackTraceElement.getLineNumber());
|
R.append(stackTraceElement.getLineNumber());
|
||||||
O.append(") ");
|
R.append(") ");
|
||||||
O.append(stackTraceElement.getMethodName());
|
R.append(stackTraceElement.getMethodName());
|
||||||
O.append("()");
|
R.append("()");
|
||||||
return O.toString();
|
return R.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String getLocation() {
|
public static String getLocation() {
|
||||||
StackTraceElement stackTraceElement = new Throwable().getStackTrace()[1];
|
StackTraceElement stackTraceElement = new Throwable().getStackTrace()[1];
|
||||||
StringBuilder O = a.O(".(");
|
StringBuilder R = a.R(".(");
|
||||||
O.append(stackTraceElement.getFileName());
|
R.append(stackTraceElement.getFileName());
|
||||||
O.append(":");
|
R.append(":");
|
||||||
O.append(stackTraceElement.getLineNumber());
|
R.append(stackTraceElement.getLineNumber());
|
||||||
O.append(")");
|
R.append(")");
|
||||||
return O.toString();
|
return R.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String getLocation2() {
|
public static String getLocation2() {
|
||||||
StackTraceElement stackTraceElement = new Throwable().getStackTrace()[2];
|
StackTraceElement stackTraceElement = new Throwable().getStackTrace()[2];
|
||||||
StringBuilder O = a.O(".(");
|
StringBuilder R = a.R(".(");
|
||||||
O.append(stackTraceElement.getFileName());
|
R.append(stackTraceElement.getFileName());
|
||||||
O.append(":");
|
R.append(":");
|
||||||
O.append(stackTraceElement.getLineNumber());
|
R.append(stackTraceElement.getLineNumber());
|
||||||
O.append(")");
|
R.append(")");
|
||||||
return O.toString();
|
return R.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String getName(Context context, int i) {
|
public static String getName(Context context, int i) {
|
||||||
|
@ -177,7 +177,7 @@ public class Debug {
|
||||||
try {
|
try {
|
||||||
return context.getResources().getResourceEntryName(i);
|
return context.getResources().getResourceEntryName(i);
|
||||||
} catch (Exception unused) {
|
} catch (Exception unused) {
|
||||||
return a.l("?", i);
|
return a.p("?", i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -224,14 +224,14 @@ public class Debug {
|
||||||
String str3 = " ";
|
String str3 = " ";
|
||||||
for (int i2 = 1; i2 <= min; i2++) {
|
for (int i2 = 1; i2 <= min; i2++) {
|
||||||
StackTraceElement stackTraceElement = stackTrace[i2];
|
StackTraceElement stackTraceElement = stackTrace[i2];
|
||||||
StringBuilder O = a.O(".(");
|
StringBuilder R = a.R(".(");
|
||||||
O.append(stackTrace[i2].getFileName());
|
R.append(stackTrace[i2].getFileName());
|
||||||
O.append(":");
|
R.append(":");
|
||||||
O.append(stackTrace[i2].getLineNumber());
|
R.append(stackTrace[i2].getLineNumber());
|
||||||
O.append(") ");
|
R.append(") ");
|
||||||
O.append(stackTrace[i2].getMethodName());
|
R.append(stackTrace[i2].getMethodName());
|
||||||
String sb = O.toString();
|
String sb = R.toString();
|
||||||
str3 = a.u(str3, " ");
|
str3 = a.v(str3, " ");
|
||||||
Log.v(str, str2 + str3 + sb + str3);
|
Log.v(str, str2 + str3 + sb + str3);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -242,13 +242,13 @@ public class Debug {
|
||||||
String str2 = " ";
|
String str2 = " ";
|
||||||
for (int i2 = 1; i2 <= min; i2++) {
|
for (int i2 = 1; i2 <= min; i2++) {
|
||||||
StackTraceElement stackTraceElement = stackTrace[i2];
|
StackTraceElement stackTraceElement = stackTrace[i2];
|
||||||
StringBuilder O = a.O(".(");
|
StringBuilder R = a.R(".(");
|
||||||
O.append(stackTrace[i2].getFileName());
|
R.append(stackTrace[i2].getFileName());
|
||||||
O.append(":");
|
R.append(":");
|
||||||
O.append(stackTrace[i2].getLineNumber());
|
R.append(stackTrace[i2].getLineNumber());
|
||||||
O.append(") ");
|
R.append(") ");
|
||||||
String sb = O.toString();
|
String sb = R.toString();
|
||||||
str2 = a.u(str2, " ");
|
str2 = a.v(str2, " ");
|
||||||
PrintStream printStream = System.out;
|
PrintStream printStream = System.out;
|
||||||
printStream.println(str + str2 + sb + str2);
|
printStream.println(str + str2 + sb + str2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -95,11 +95,11 @@ public class KeyAttributes extends Key {
|
||||||
case 3:
|
case 3:
|
||||||
case 11:
|
case 11:
|
||||||
default:
|
default:
|
||||||
StringBuilder O = a.O("unused attribute 0x");
|
StringBuilder R = a.R("unused attribute 0x");
|
||||||
O.append(Integer.toHexString(index));
|
R.append(Integer.toHexString(index));
|
||||||
O.append(" ");
|
R.append(" ");
|
||||||
O.append(mAttrMap.get(index));
|
R.append(mAttrMap.get(index));
|
||||||
Log.e("KeyAttribute", O.toString());
|
Log.e("KeyAttribute", R.toString());
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
KeyAttributes.access$202(keyAttributes, typedArray.getFloat(index, KeyAttributes.access$200(keyAttributes)));
|
KeyAttributes.access$202(keyAttributes, typedArray.getFloat(index, KeyAttributes.access$200(keyAttributes)));
|
||||||
|
@ -645,7 +645,7 @@ public class KeyAttributes extends Key {
|
||||||
}
|
}
|
||||||
if (this.mCustomConstraints.size() > 0) {
|
if (this.mCustomConstraints.size() > 0) {
|
||||||
for (String str : this.mCustomConstraints.keySet()) {
|
for (String str : this.mCustomConstraints.keySet()) {
|
||||||
hashMap.put(a.u("CUSTOM,", str), Integer.valueOf(this.mCurveFit));
|
hashMap.put(a.v("CUSTOM,", str), Integer.valueOf(this.mCurveFit));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -176,11 +176,11 @@ public class KeyCycle extends Key {
|
||||||
KeyCycle.access$1802(keyCycle, typedArray.getFloat(index, KeyCycle.access$1800(keyCycle)));
|
KeyCycle.access$1802(keyCycle, typedArray.getFloat(index, KeyCycle.access$1800(keyCycle)));
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
StringBuilder O = a.O("unused attribute 0x");
|
StringBuilder R = a.R("unused attribute 0x");
|
||||||
O.append(Integer.toHexString(index));
|
R.append(Integer.toHexString(index));
|
||||||
O.append(" ");
|
R.append(" ");
|
||||||
O.append(mAttrMap.get(index));
|
R.append(mAttrMap.get(index));
|
||||||
Log.e("KeyCycle", O.toString());
|
Log.e("KeyCycle", R.toString());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -368,10 +368,10 @@ public class KeyCycle extends Key {
|
||||||
|
|
||||||
@Override // androidx.constraintlayout.motion.widget.Key
|
@Override // androidx.constraintlayout.motion.widget.Key
|
||||||
public void addValues(HashMap<String, SplineSet> hashMap) {
|
public void addValues(HashMap<String, SplineSet> hashMap) {
|
||||||
StringBuilder O = a.O("add ");
|
StringBuilder R = a.R("add ");
|
||||||
O.append(hashMap.size());
|
R.append(hashMap.size());
|
||||||
O.append(" values");
|
R.append(" values");
|
||||||
Debug.logStack("KeyCycle", O.toString(), 2);
|
Debug.logStack("KeyCycle", R.toString(), 2);
|
||||||
for (String str : hashMap.keySet()) {
|
for (String str : hashMap.keySet()) {
|
||||||
SplineSet splineSet = hashMap.get(str);
|
SplineSet splineSet = hashMap.get(str);
|
||||||
str.hashCode();
|
str.hashCode();
|
||||||
|
|
|
@ -88,9 +88,9 @@ public abstract class KeyCycleOscillator {
|
||||||
if (constraintAttribute.getType() == attributeType) {
|
if (constraintAttribute.getType() == attributeType) {
|
||||||
return constraintAttribute;
|
return constraintAttribute;
|
||||||
}
|
}
|
||||||
StringBuilder O = a.O("ConstraintAttribute is already a ");
|
StringBuilder R = a.R("ConstraintAttribute is already a ");
|
||||||
O.append(constraintAttribute.getType().name());
|
R.append(constraintAttribute.getType().name());
|
||||||
throw new IllegalArgumentException(O.toString());
|
throw new IllegalArgumentException(R.toString());
|
||||||
}
|
}
|
||||||
ConstraintAttribute constraintAttribute2 = new ConstraintAttribute(str, attributeType);
|
ConstraintAttribute constraintAttribute2 = new ConstraintAttribute(str, attributeType);
|
||||||
this.mCustomConstraints.put(str, constraintAttribute2);
|
this.mCustomConstraints.put(str, constraintAttribute2);
|
||||||
|
@ -593,12 +593,12 @@ public abstract class KeyCycleOscillator {
|
||||||
Iterator<WavePoint> it = this.mWavePoints.iterator();
|
Iterator<WavePoint> it = this.mWavePoints.iterator();
|
||||||
while (it.hasNext()) {
|
while (it.hasNext()) {
|
||||||
WavePoint next = it.next();
|
WavePoint next = it.next();
|
||||||
StringBuilder S = a.S(str, "[");
|
StringBuilder V = a.V(str, "[");
|
||||||
S.append(next.mPosition);
|
V.append(next.mPosition);
|
||||||
S.append(" , ");
|
V.append(" , ");
|
||||||
S.append(decimalFormat.format((double) next.mValue));
|
V.append(decimalFormat.format((double) next.mValue));
|
||||||
S.append("] ");
|
V.append("] ");
|
||||||
str = S.toString();
|
str = V.toString();
|
||||||
}
|
}
|
||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
|
|
|
@ -138,11 +138,11 @@ public class KeyPosition extends KeyPositionBase {
|
||||||
keyPosition.mPercentHeight = typedArray.getFloat(index, keyPosition.mPercentHeight);
|
keyPosition.mPercentHeight = typedArray.getFloat(index, keyPosition.mPercentHeight);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
StringBuilder O = a.O("unused attribute 0x");
|
StringBuilder R = a.R("unused attribute 0x");
|
||||||
O.append(Integer.toHexString(index));
|
R.append(Integer.toHexString(index));
|
||||||
O.append(" ");
|
R.append(" ");
|
||||||
O.append(mAttrMap.get(index));
|
R.append(mAttrMap.get(index));
|
||||||
Log.e("KeyPosition", O.toString());
|
Log.e("KeyPosition", R.toString());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -97,11 +97,11 @@ public class KeyTimeCycle extends Key {
|
||||||
case 3:
|
case 3:
|
||||||
case 11:
|
case 11:
|
||||||
default:
|
default:
|
||||||
StringBuilder O = a.O("unused attribute 0x");
|
StringBuilder R = a.R("unused attribute 0x");
|
||||||
O.append(Integer.toHexString(index));
|
R.append(Integer.toHexString(index));
|
||||||
O.append(" ");
|
R.append(" ");
|
||||||
O.append(mAttrMap.get(index));
|
R.append(mAttrMap.get(index));
|
||||||
Log.e("KeyTimeCycle", O.toString());
|
Log.e("KeyTimeCycle", R.toString());
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
KeyTimeCycle.access$202(keyTimeCycle, typedArray.getFloat(index, KeyTimeCycle.access$200(keyTimeCycle)));
|
KeyTimeCycle.access$202(keyTimeCycle, typedArray.getFloat(index, KeyTimeCycle.access$200(keyTimeCycle)));
|
||||||
|
@ -624,7 +624,7 @@ public class KeyTimeCycle extends Key {
|
||||||
}
|
}
|
||||||
if (this.mCustomConstraints.size() > 0) {
|
if (this.mCustomConstraints.size() > 0) {
|
||||||
for (String str : this.mCustomConstraints.keySet()) {
|
for (String str : this.mCustomConstraints.keySet()) {
|
||||||
hashMap.put(a.u("CUSTOM,", str), Integer.valueOf(this.mCurveFit));
|
hashMap.put(a.v("CUSTOM,", str), Integer.valueOf(this.mCurveFit));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -118,11 +118,11 @@ public class KeyTrigger extends Key {
|
||||||
KeyTrigger.access$702(keyTrigger, typedArray.getResourceId(index, KeyTrigger.access$700(keyTrigger)));
|
KeyTrigger.access$702(keyTrigger, typedArray.getResourceId(index, KeyTrigger.access$700(keyTrigger)));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
StringBuilder O = a.O("unused attribute 0x");
|
StringBuilder R = a.R("unused attribute 0x");
|
||||||
O.append(Integer.toHexString(index));
|
R.append(Integer.toHexString(index));
|
||||||
O.append(" ");
|
R.append(" ");
|
||||||
O.append(mAttrMap.get(index));
|
R.append(mAttrMap.get(index));
|
||||||
Log.e("KeyTrigger", O.toString());
|
Log.e("KeyTrigger", R.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -266,13 +266,13 @@ public class KeyTrigger extends Key {
|
||||||
try {
|
try {
|
||||||
this.mFireNegativeCross = view.getClass().getMethod(this.mNegativeCross, new Class[0]);
|
this.mFireNegativeCross = view.getClass().getMethod(this.mNegativeCross, new Class[0]);
|
||||||
} catch (NoSuchMethodException unused) {
|
} catch (NoSuchMethodException unused) {
|
||||||
StringBuilder O = a.O("Could not find method \"");
|
StringBuilder R = a.R("Could not find method \"");
|
||||||
O.append(this.mNegativeCross);
|
R.append(this.mNegativeCross);
|
||||||
O.append("\"on class ");
|
R.append("\"on class ");
|
||||||
O.append(view.getClass().getSimpleName());
|
R.append(view.getClass().getSimpleName());
|
||||||
O.append(" ");
|
R.append(" ");
|
||||||
O.append(Debug.getName(view));
|
R.append(Debug.getName(view));
|
||||||
Log.e("KeyTrigger", O.toString());
|
Log.e("KeyTrigger", R.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.mFireNegativeCross.invoke(view, new Object[0]);
|
this.mFireNegativeCross.invoke(view, new Object[0]);
|
||||||
|
@ -282,13 +282,13 @@ public class KeyTrigger extends Key {
|
||||||
try {
|
try {
|
||||||
this.mFirePositiveCross = view.getClass().getMethod(this.mPositiveCross, new Class[0]);
|
this.mFirePositiveCross = view.getClass().getMethod(this.mPositiveCross, new Class[0]);
|
||||||
} catch (NoSuchMethodException unused2) {
|
} catch (NoSuchMethodException unused2) {
|
||||||
StringBuilder O2 = a.O("Could not find method \"");
|
StringBuilder R2 = a.R("Could not find method \"");
|
||||||
O2.append(this.mPositiveCross);
|
R2.append(this.mPositiveCross);
|
||||||
O2.append("\"on class ");
|
R2.append("\"on class ");
|
||||||
O2.append(view.getClass().getSimpleName());
|
R2.append(view.getClass().getSimpleName());
|
||||||
O2.append(" ");
|
R2.append(" ");
|
||||||
O2.append(Debug.getName(view));
|
R2.append(Debug.getName(view));
|
||||||
Log.e("KeyTrigger", O2.toString());
|
Log.e("KeyTrigger", R2.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.mFirePositiveCross.invoke(view, new Object[0]);
|
this.mFirePositiveCross.invoke(view, new Object[0]);
|
||||||
|
@ -298,26 +298,26 @@ public class KeyTrigger extends Key {
|
||||||
try {
|
try {
|
||||||
this.mFireCross = view.getClass().getMethod(this.mCross, new Class[0]);
|
this.mFireCross = view.getClass().getMethod(this.mCross, new Class[0]);
|
||||||
} catch (NoSuchMethodException unused3) {
|
} catch (NoSuchMethodException unused3) {
|
||||||
StringBuilder O3 = a.O("Could not find method \"");
|
StringBuilder R3 = a.R("Could not find method \"");
|
||||||
O3.append(this.mCross);
|
R3.append(this.mCross);
|
||||||
O3.append("\"on class ");
|
R3.append("\"on class ");
|
||||||
O3.append(view.getClass().getSimpleName());
|
R3.append(view.getClass().getSimpleName());
|
||||||
O3.append(" ");
|
R3.append(" ");
|
||||||
O3.append(Debug.getName(view));
|
R3.append(Debug.getName(view));
|
||||||
Log.e("KeyTrigger", O3.toString());
|
Log.e("KeyTrigger", R3.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
this.mFireCross.invoke(view, new Object[0]);
|
this.mFireCross.invoke(view, new Object[0]);
|
||||||
return;
|
return;
|
||||||
} catch (Exception unused4) {
|
} catch (Exception unused4) {
|
||||||
StringBuilder O4 = a.O("Exception in call \"");
|
StringBuilder R4 = a.R("Exception in call \"");
|
||||||
O4.append(this.mCross);
|
R4.append(this.mCross);
|
||||||
O4.append("\"on class ");
|
R4.append("\"on class ");
|
||||||
O4.append(view.getClass().getSimpleName());
|
R4.append(view.getClass().getSimpleName());
|
||||||
O4.append(" ");
|
R4.append(" ");
|
||||||
O4.append(Debug.getName(view));
|
R4.append(Debug.getName(view));
|
||||||
Log.e("KeyTrigger", O4.toString());
|
Log.e("KeyTrigger", R4.toString());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -408,26 +408,26 @@ public class KeyTrigger extends Key {
|
||||||
try {
|
try {
|
||||||
this.mFireNegativeCross.invoke(view, new Object[0]);
|
this.mFireNegativeCross.invoke(view, new Object[0]);
|
||||||
} catch (Exception unused5) {
|
} catch (Exception unused5) {
|
||||||
StringBuilder O5 = a.O("Exception in call \"");
|
StringBuilder R5 = a.R("Exception in call \"");
|
||||||
O5.append(this.mNegativeCross);
|
R5.append(this.mNegativeCross);
|
||||||
O5.append("\"on class ");
|
R5.append("\"on class ");
|
||||||
O5.append(view.getClass().getSimpleName());
|
R5.append(view.getClass().getSimpleName());
|
||||||
O5.append(" ");
|
R5.append(" ");
|
||||||
O5.append(Debug.getName(view));
|
R5.append(Debug.getName(view));
|
||||||
Log.e("KeyTrigger", O5.toString());
|
Log.e("KeyTrigger", R5.toString());
|
||||||
}
|
}
|
||||||
if (this.mFirePositiveCross == null) {
|
if (this.mFirePositiveCross == null) {
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
this.mFirePositiveCross.invoke(view, new Object[0]);
|
this.mFirePositiveCross.invoke(view, new Object[0]);
|
||||||
} catch (Exception unused6) {
|
} catch (Exception unused6) {
|
||||||
StringBuilder O6 = a.O("Exception in call \"");
|
StringBuilder R6 = a.R("Exception in call \"");
|
||||||
O6.append(this.mPositiveCross);
|
R6.append(this.mPositiveCross);
|
||||||
O6.append("\"on class ");
|
R6.append("\"on class ");
|
||||||
O6.append(view.getClass().getSimpleName());
|
R6.append(view.getClass().getSimpleName());
|
||||||
O6.append(" ");
|
R6.append(" ");
|
||||||
O6.append(Debug.getName(view));
|
R6.append(Debug.getName(view));
|
||||||
Log.e("KeyTrigger", O6.toString());
|
Log.e("KeyTrigger", R6.toString());
|
||||||
}
|
}
|
||||||
if (!z4) {
|
if (!z4) {
|
||||||
}
|
}
|
||||||
|
|
|
@ -174,10 +174,10 @@ public class MotionController {
|
||||||
private void insertKey(MotionPaths motionPaths) {
|
private void insertKey(MotionPaths motionPaths) {
|
||||||
int binarySearch = Collections.binarySearch(this.mMotionPaths, motionPaths);
|
int binarySearch = Collections.binarySearch(this.mMotionPaths, motionPaths);
|
||||||
if (binarySearch == 0) {
|
if (binarySearch == 0) {
|
||||||
StringBuilder O = a.O(" KeyPath positon \"");
|
StringBuilder R = a.R(" KeyPath positon \"");
|
||||||
O.append(motionPaths.position);
|
R.append(motionPaths.position);
|
||||||
O.append("\" outside of range");
|
R.append("\" outside of range");
|
||||||
Log.e(TAG, O.toString());
|
Log.e(TAG, R.toString());
|
||||||
}
|
}
|
||||||
this.mMotionPaths.add((-binarySearch) - 1, motionPaths);
|
this.mMotionPaths.add((-binarySearch) - 1, motionPaths);
|
||||||
}
|
}
|
||||||
|
@ -1154,11 +1154,11 @@ public class MotionController {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (iArr4[i15] < MotionPaths.names.length) {
|
if (iArr4[i15] < MotionPaths.names.length) {
|
||||||
String G = a.G(new StringBuilder(), MotionPaths.names[this.mInterpolateVariables[i15]], " [");
|
String H = a.H(new StringBuilder(), MotionPaths.names[this.mInterpolateVariables[i15]], " [");
|
||||||
for (int i16 = 0; i16 < size; i16++) {
|
for (int i16 = 0; i16 < size; i16++) {
|
||||||
StringBuilder O = a.O(G);
|
StringBuilder R = a.R(H);
|
||||||
O.append(dArr[i16][i15]);
|
R.append(dArr[i16][i15]);
|
||||||
G = O.toString();
|
H = R.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
i15++;
|
i15++;
|
||||||
|
@ -1242,14 +1242,14 @@ public class MotionController {
|
||||||
}
|
}
|
||||||
|
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder O = a.O(" start: x: ");
|
StringBuilder R = a.R(" start: x: ");
|
||||||
O.append(this.mStartMotionPath.f21x);
|
R.append(this.mStartMotionPath.f21x);
|
||||||
O.append(" y: ");
|
R.append(" y: ");
|
||||||
O.append(this.mStartMotionPath.f22y);
|
R.append(this.mStartMotionPath.f22y);
|
||||||
O.append(" end: x: ");
|
R.append(" end: x: ");
|
||||||
O.append(this.mEndMotionPath.f21x);
|
R.append(this.mEndMotionPath.f21x);
|
||||||
O.append(" y: ");
|
R.append(" y: ");
|
||||||
O.append(this.mEndMotionPath.f22y);
|
R.append(this.mEndMotionPath.f22y);
|
||||||
return O.toString();
|
return R.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -321,15 +321,15 @@ public class MotionLayout extends ConstraintLayout implements NestedScrollingPar
|
||||||
float max = Math.max(f4, f6);
|
float max = Math.max(f4, f6);
|
||||||
float min2 = f - Math.min(f3, f5);
|
float min2 = f - Math.min(f3, f5);
|
||||||
float max2 = Math.max(f4, f6) - f2;
|
float max2 = Math.max(f4, f6) - f2;
|
||||||
StringBuilder O = a.O("");
|
StringBuilder R = a.R("");
|
||||||
O.append(((float) ((int) (((double) ((min2 * 100.0f) / Math.abs(f5 - f3))) + 0.5d))) / 100.0f);
|
R.append(((float) ((int) (((double) ((min2 * 100.0f) / Math.abs(f5 - f3))) + 0.5d))) / 100.0f);
|
||||||
String sb = O.toString();
|
String sb = R.toString();
|
||||||
getTextBounds(sb, this.mTextPaint);
|
getTextBounds(sb, this.mTextPaint);
|
||||||
canvas.drawText(sb, ((min2 / 2.0f) - ((float) (this.mBounds.width() / 2))) + min, f2 - 20.0f, this.mTextPaint);
|
canvas.drawText(sb, ((min2 / 2.0f) - ((float) (this.mBounds.width() / 2))) + min, f2 - 20.0f, this.mTextPaint);
|
||||||
canvas.drawLine(f, f2, Math.min(f3, f5), f2, this.mPaintGraph);
|
canvas.drawLine(f, f2, Math.min(f3, f5), f2, this.mPaintGraph);
|
||||||
StringBuilder O2 = a.O("");
|
StringBuilder R2 = a.R("");
|
||||||
O2.append(((float) ((int) (((double) ((max2 * 100.0f) / Math.abs(f6 - f4))) + 0.5d))) / 100.0f);
|
R2.append(((float) ((int) (((double) ((max2 * 100.0f) / Math.abs(f6 - f4))) + 0.5d))) / 100.0f);
|
||||||
String sb2 = O2.toString();
|
String sb2 = R2.toString();
|
||||||
getTextBounds(sb2, this.mTextPaint);
|
getTextBounds(sb2, this.mTextPaint);
|
||||||
canvas.drawText(sb2, f + 5.0f, max - ((max2 / 2.0f) - ((float) (this.mBounds.height() / 2))), this.mTextPaint);
|
canvas.drawText(sb2, f + 5.0f, max - ((max2 / 2.0f) - ((float) (this.mBounds.height() / 2))), this.mTextPaint);
|
||||||
canvas.drawLine(f, f2, f, Math.max(f4, f6), this.mPaintGraph);
|
canvas.drawLine(f, f2, f, Math.max(f4, f6), this.mPaintGraph);
|
||||||
|
@ -356,24 +356,24 @@ public class MotionLayout extends ConstraintLayout implements NestedScrollingPar
|
||||||
path.moveTo(f, f2);
|
path.moveTo(f, f2);
|
||||||
path.lineTo(f10, f11);
|
path.lineTo(f10, f11);
|
||||||
float hypot2 = (float) Math.hypot((double) (f10 - f), (double) (f11 - f2));
|
float hypot2 = (float) Math.hypot((double) (f10 - f), (double) (f11 - f2));
|
||||||
StringBuilder O = a.O("");
|
StringBuilder R = a.R("");
|
||||||
O.append(((float) ((int) ((hypot2 * 100.0f) / hypot))) / 100.0f);
|
R.append(((float) ((int) ((hypot2 * 100.0f) / hypot))) / 100.0f);
|
||||||
String sb = O.toString();
|
String sb = R.toString();
|
||||||
getTextBounds(sb, this.mTextPaint);
|
getTextBounds(sb, this.mTextPaint);
|
||||||
canvas.drawTextOnPath(sb, path, (hypot2 / 2.0f) - ((float) (this.mBounds.width() / 2)), -20.0f, this.mTextPaint);
|
canvas.drawTextOnPath(sb, path, (hypot2 / 2.0f) - ((float) (this.mBounds.width() / 2)), -20.0f, this.mTextPaint);
|
||||||
canvas.drawLine(f, f2, f10, f11, this.mPaintGraph);
|
canvas.drawLine(f, f2, f10, f11, this.mPaintGraph);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void drawPathScreenTicks(Canvas canvas, float f, float f2, int i, int i2) {
|
private void drawPathScreenTicks(Canvas canvas, float f, float f2, int i, int i2) {
|
||||||
StringBuilder O = a.O("");
|
StringBuilder R = a.R("");
|
||||||
O.append(((float) ((int) (((double) (((f - ((float) (i / 2))) * 100.0f) / ((float) (MotionLayout.this.getWidth() - i)))) + 0.5d))) / 100.0f);
|
R.append(((float) ((int) (((double) (((f - ((float) (i / 2))) * 100.0f) / ((float) (MotionLayout.this.getWidth() - i)))) + 0.5d))) / 100.0f);
|
||||||
String sb = O.toString();
|
String sb = R.toString();
|
||||||
getTextBounds(sb, this.mTextPaint);
|
getTextBounds(sb, this.mTextPaint);
|
||||||
canvas.drawText(sb, ((f / 2.0f) - ((float) (this.mBounds.width() / 2))) + 0.0f, f2 - 20.0f, this.mTextPaint);
|
canvas.drawText(sb, ((f / 2.0f) - ((float) (this.mBounds.width() / 2))) + 0.0f, f2 - 20.0f, this.mTextPaint);
|
||||||
canvas.drawLine(f, f2, Math.min(0.0f, 1.0f), f2, this.mPaintGraph);
|
canvas.drawLine(f, f2, Math.min(0.0f, 1.0f), f2, this.mPaintGraph);
|
||||||
StringBuilder O2 = a.O("");
|
StringBuilder R2 = a.R("");
|
||||||
O2.append(((float) ((int) (((double) (((f2 - ((float) (i2 / 2))) * 100.0f) / ((float) (MotionLayout.this.getHeight() - i2)))) + 0.5d))) / 100.0f);
|
R2.append(((float) ((int) (((double) (((f2 - ((float) (i2 / 2))) * 100.0f) / ((float) (MotionLayout.this.getHeight() - i2)))) + 0.5d))) / 100.0f);
|
||||||
String sb2 = O2.toString();
|
String sb2 = R2.toString();
|
||||||
getTextBounds(sb2, this.mTextPaint);
|
getTextBounds(sb2, this.mTextPaint);
|
||||||
canvas.drawText(sb2, f + 5.0f, 0.0f - ((f2 / 2.0f) - ((float) (this.mBounds.height() / 2))), this.mTextPaint);
|
canvas.drawText(sb2, f + 5.0f, 0.0f - ((f2 / 2.0f) - ((float) (this.mBounds.height() / 2))), this.mTextPaint);
|
||||||
canvas.drawLine(f, f2, f, Math.max(0.0f, 1.0f), this.mPaintGraph);
|
canvas.drawLine(f, f2, f, Math.max(0.0f, 1.0f), this.mPaintGraph);
|
||||||
|
@ -558,34 +558,34 @@ public class MotionLayout extends ConstraintLayout implements NestedScrollingPar
|
||||||
}
|
}
|
||||||
|
|
||||||
private void debugLayout(String str, ConstraintWidgetContainer constraintWidgetContainer) {
|
private void debugLayout(String str, ConstraintWidgetContainer constraintWidgetContainer) {
|
||||||
StringBuilder S = a.S(str, " ");
|
StringBuilder V = a.V(str, " ");
|
||||||
S.append(Debug.getName((View) constraintWidgetContainer.getCompanionWidget()));
|
V.append(Debug.getName((View) constraintWidgetContainer.getCompanionWidget()));
|
||||||
String sb = S.toString();
|
String sb = V.toString();
|
||||||
Log.v(MotionLayout.TAG, sb + " ========= " + constraintWidgetContainer);
|
Log.v(MotionLayout.TAG, sb + " ========= " + constraintWidgetContainer);
|
||||||
int size = constraintWidgetContainer.getChildren().size();
|
int size = constraintWidgetContainer.getChildren().size();
|
||||||
for (int i = 0; i < size; i++) {
|
for (int i = 0; i < size; i++) {
|
||||||
String str2 = sb + "[" + i + "] ";
|
String str2 = sb + "[" + i + "] ";
|
||||||
ConstraintWidget constraintWidget = constraintWidgetContainer.getChildren().get(i);
|
ConstraintWidget constraintWidget = constraintWidgetContainer.getChildren().get(i);
|
||||||
StringBuilder O = a.O("");
|
StringBuilder R = a.R("");
|
||||||
String str3 = "_";
|
String str3 = "_";
|
||||||
O.append(constraintWidget.mTop.mTarget != null ? ExifInterface.GPS_DIRECTION_TRUE : str3);
|
R.append(constraintWidget.mTop.mTarget != null ? ExifInterface.GPS_DIRECTION_TRUE : str3);
|
||||||
StringBuilder O2 = a.O(O.toString());
|
StringBuilder R2 = a.R(R.toString());
|
||||||
O2.append(constraintWidget.mBottom.mTarget != null ? "B" : str3);
|
R2.append(constraintWidget.mBottom.mTarget != null ? "B" : str3);
|
||||||
StringBuilder O3 = a.O(O2.toString());
|
StringBuilder R3 = a.R(R2.toString());
|
||||||
O3.append(constraintWidget.mLeft.mTarget != null ? "L" : str3);
|
R3.append(constraintWidget.mLeft.mTarget != null ? "L" : str3);
|
||||||
StringBuilder O4 = a.O(O3.toString());
|
StringBuilder R4 = a.R(R3.toString());
|
||||||
if (constraintWidget.mRight.mTarget != null) {
|
if (constraintWidget.mRight.mTarget != null) {
|
||||||
str3 = "R";
|
str3 = "R";
|
||||||
}
|
}
|
||||||
O4.append(str3);
|
R4.append(str3);
|
||||||
String sb2 = O4.toString();
|
String sb2 = R4.toString();
|
||||||
View view = (View) constraintWidget.getCompanionWidget();
|
View view = (View) constraintWidget.getCompanionWidget();
|
||||||
String name = Debug.getName(view);
|
String name = Debug.getName(view);
|
||||||
if (view instanceof TextView) {
|
if (view instanceof TextView) {
|
||||||
StringBuilder S2 = a.S(name, "(");
|
StringBuilder V2 = a.V(name, "(");
|
||||||
S2.append((Object) ((TextView) view).getText());
|
V2.append((Object) ((TextView) view).getText());
|
||||||
S2.append(")");
|
V2.append(")");
|
||||||
name = S2.toString();
|
name = V2.toString();
|
||||||
}
|
}
|
||||||
Log.v(MotionLayout.TAG, str2 + " " + name + " " + constraintWidget + " " + sb2);
|
Log.v(MotionLayout.TAG, str2 + " " + name + " " + constraintWidget + " " + sb2);
|
||||||
}
|
}
|
||||||
|
@ -593,35 +593,35 @@ public class MotionLayout extends ConstraintLayout implements NestedScrollingPar
|
||||||
}
|
}
|
||||||
|
|
||||||
private void debugLayoutParam(String str, ConstraintLayout.LayoutParams layoutParams) {
|
private void debugLayoutParam(String str, ConstraintLayout.LayoutParams layoutParams) {
|
||||||
StringBuilder O = a.O(" ");
|
StringBuilder R = a.R(" ");
|
||||||
O.append(layoutParams.startToStart != -1 ? "SS" : "__");
|
R.append(layoutParams.startToStart != -1 ? "SS" : "__");
|
||||||
StringBuilder O2 = a.O(O.toString());
|
StringBuilder R2 = a.R(R.toString());
|
||||||
String str2 = "|__";
|
String str2 = "|__";
|
||||||
O2.append(layoutParams.startToEnd != -1 ? "|SE" : str2);
|
R2.append(layoutParams.startToEnd != -1 ? "|SE" : str2);
|
||||||
StringBuilder O3 = a.O(O2.toString());
|
StringBuilder R3 = a.R(R2.toString());
|
||||||
O3.append(layoutParams.endToStart != -1 ? "|ES" : str2);
|
R3.append(layoutParams.endToStart != -1 ? "|ES" : str2);
|
||||||
StringBuilder O4 = a.O(O3.toString());
|
StringBuilder R4 = a.R(R3.toString());
|
||||||
O4.append(layoutParams.endToEnd != -1 ? "|EE" : str2);
|
R4.append(layoutParams.endToEnd != -1 ? "|EE" : str2);
|
||||||
StringBuilder O5 = a.O(O4.toString());
|
StringBuilder R5 = a.R(R4.toString());
|
||||||
O5.append(layoutParams.leftToLeft != -1 ? "|LL" : str2);
|
R5.append(layoutParams.leftToLeft != -1 ? "|LL" : str2);
|
||||||
StringBuilder O6 = a.O(O5.toString());
|
StringBuilder R6 = a.R(R5.toString());
|
||||||
O6.append(layoutParams.leftToRight != -1 ? "|LR" : str2);
|
R6.append(layoutParams.leftToRight != -1 ? "|LR" : str2);
|
||||||
StringBuilder O7 = a.O(O6.toString());
|
StringBuilder R7 = a.R(R6.toString());
|
||||||
O7.append(layoutParams.rightToLeft != -1 ? "|RL" : str2);
|
R7.append(layoutParams.rightToLeft != -1 ? "|RL" : str2);
|
||||||
StringBuilder O8 = a.O(O7.toString());
|
StringBuilder R8 = a.R(R7.toString());
|
||||||
O8.append(layoutParams.rightToRight != -1 ? "|RR" : str2);
|
R8.append(layoutParams.rightToRight != -1 ? "|RR" : str2);
|
||||||
StringBuilder O9 = a.O(O8.toString());
|
StringBuilder R9 = a.R(R8.toString());
|
||||||
O9.append(layoutParams.topToTop != -1 ? "|TT" : str2);
|
R9.append(layoutParams.topToTop != -1 ? "|TT" : str2);
|
||||||
StringBuilder O10 = a.O(O9.toString());
|
StringBuilder R10 = a.R(R9.toString());
|
||||||
O10.append(layoutParams.topToBottom != -1 ? "|TB" : str2);
|
R10.append(layoutParams.topToBottom != -1 ? "|TB" : str2);
|
||||||
StringBuilder O11 = a.O(O10.toString());
|
StringBuilder R11 = a.R(R10.toString());
|
||||||
O11.append(layoutParams.bottomToTop != -1 ? "|BT" : str2);
|
R11.append(layoutParams.bottomToTop != -1 ? "|BT" : str2);
|
||||||
StringBuilder O12 = a.O(O11.toString());
|
StringBuilder R12 = a.R(R11.toString());
|
||||||
if (layoutParams.bottomToBottom != -1) {
|
if (layoutParams.bottomToBottom != -1) {
|
||||||
str2 = "|BB";
|
str2 = "|BB";
|
||||||
}
|
}
|
||||||
O12.append(str2);
|
R12.append(str2);
|
||||||
String sb = O12.toString();
|
String sb = R12.toString();
|
||||||
Log.v(MotionLayout.TAG, str + sb);
|
Log.v(MotionLayout.TAG, str + sb);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -629,50 +629,50 @@ public class MotionLayout extends ConstraintLayout implements NestedScrollingPar
|
||||||
String str2;
|
String str2;
|
||||||
String str3;
|
String str3;
|
||||||
String str4;
|
String str4;
|
||||||
StringBuilder O = a.O(" ");
|
StringBuilder R = a.R(" ");
|
||||||
String str5 = "B";
|
String str5 = "B";
|
||||||
String str6 = "__";
|
String str6 = "__";
|
||||||
if (constraintWidget.mTop.mTarget != null) {
|
if (constraintWidget.mTop.mTarget != null) {
|
||||||
StringBuilder O2 = a.O(ExifInterface.GPS_DIRECTION_TRUE);
|
StringBuilder R2 = a.R(ExifInterface.GPS_DIRECTION_TRUE);
|
||||||
O2.append(constraintWidget.mTop.mTarget.mType == ConstraintAnchor.Type.TOP ? ExifInterface.GPS_DIRECTION_TRUE : str5);
|
R2.append(constraintWidget.mTop.mTarget.mType == ConstraintAnchor.Type.TOP ? ExifInterface.GPS_DIRECTION_TRUE : str5);
|
||||||
str2 = O2.toString();
|
str2 = R2.toString();
|
||||||
} else {
|
} else {
|
||||||
str2 = str6;
|
str2 = str6;
|
||||||
}
|
}
|
||||||
O.append(str2);
|
R.append(str2);
|
||||||
StringBuilder O3 = a.O(O.toString());
|
StringBuilder R3 = a.R(R.toString());
|
||||||
if (constraintWidget.mBottom.mTarget != null) {
|
if (constraintWidget.mBottom.mTarget != null) {
|
||||||
StringBuilder O4 = a.O(str5);
|
StringBuilder R4 = a.R(str5);
|
||||||
if (constraintWidget.mBottom.mTarget.mType == ConstraintAnchor.Type.TOP) {
|
if (constraintWidget.mBottom.mTarget.mType == ConstraintAnchor.Type.TOP) {
|
||||||
str5 = ExifInterface.GPS_DIRECTION_TRUE;
|
str5 = ExifInterface.GPS_DIRECTION_TRUE;
|
||||||
}
|
}
|
||||||
O4.append(str5);
|
R4.append(str5);
|
||||||
str3 = O4.toString();
|
str3 = R4.toString();
|
||||||
} else {
|
} else {
|
||||||
str3 = str6;
|
str3 = str6;
|
||||||
}
|
}
|
||||||
O3.append(str3);
|
R3.append(str3);
|
||||||
StringBuilder O5 = a.O(O3.toString());
|
StringBuilder R5 = a.R(R3.toString());
|
||||||
String str7 = "R";
|
String str7 = "R";
|
||||||
if (constraintWidget.mLeft.mTarget != null) {
|
if (constraintWidget.mLeft.mTarget != null) {
|
||||||
StringBuilder O6 = a.O("L");
|
StringBuilder R6 = a.R("L");
|
||||||
O6.append(constraintWidget.mLeft.mTarget.mType == ConstraintAnchor.Type.LEFT ? "L" : str7);
|
R6.append(constraintWidget.mLeft.mTarget.mType == ConstraintAnchor.Type.LEFT ? "L" : str7);
|
||||||
str4 = O6.toString();
|
str4 = R6.toString();
|
||||||
} else {
|
} else {
|
||||||
str4 = str6;
|
str4 = str6;
|
||||||
}
|
}
|
||||||
O5.append(str4);
|
R5.append(str4);
|
||||||
StringBuilder O7 = a.O(O5.toString());
|
StringBuilder R7 = a.R(R5.toString());
|
||||||
if (constraintWidget.mRight.mTarget != null) {
|
if (constraintWidget.mRight.mTarget != null) {
|
||||||
StringBuilder O8 = a.O(str7);
|
StringBuilder R8 = a.R(str7);
|
||||||
if (constraintWidget.mRight.mTarget.mType == ConstraintAnchor.Type.LEFT) {
|
if (constraintWidget.mRight.mTarget.mType == ConstraintAnchor.Type.LEFT) {
|
||||||
str7 = "L";
|
str7 = "L";
|
||||||
}
|
}
|
||||||
O8.append(str7);
|
R8.append(str7);
|
||||||
str6 = O8.toString();
|
str6 = R8.toString();
|
||||||
}
|
}
|
||||||
O7.append(str6);
|
R7.append(str6);
|
||||||
String sb = O7.toString();
|
String sb = R7.toString();
|
||||||
Log.v(MotionLayout.TAG, str + sb + " --- " + constraintWidget);
|
Log.v(MotionLayout.TAG, str + sb + " --- " + constraintWidget);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1255,15 +1255,15 @@ public class MotionLayout extends ConstraintLayout implements NestedScrollingPar
|
||||||
View childAt = getChildAt(i2);
|
View childAt = getChildAt(i2);
|
||||||
int id2 = childAt.getId();
|
int id2 = childAt.getId();
|
||||||
if (id2 == -1) {
|
if (id2 == -1) {
|
||||||
StringBuilder U = a.U("CHECK: ", name, " ALL VIEWS SHOULD HAVE ID's ");
|
StringBuilder W = a.W("CHECK: ", name, " ALL VIEWS SHOULD HAVE ID's ");
|
||||||
U.append(childAt.getClass().getName());
|
W.append(childAt.getClass().getName());
|
||||||
U.append(" does not!");
|
W.append(" does not!");
|
||||||
Log.w(TAG, U.toString());
|
Log.w(TAG, W.toString());
|
||||||
}
|
}
|
||||||
if (constraintSet.getConstraint(id2) == null) {
|
if (constraintSet.getConstraint(id2) == null) {
|
||||||
StringBuilder U2 = a.U("CHECK: ", name, " NO CONSTRAINTS for ");
|
StringBuilder W2 = a.W("CHECK: ", name, " NO CONSTRAINTS for ");
|
||||||
U2.append(Debug.getName(childAt));
|
W2.append(Debug.getName(childAt));
|
||||||
Log.w(TAG, U2.toString());
|
Log.w(TAG, W2.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
int[] knownIds = constraintSet.getKnownIds();
|
int[] knownIds = constraintSet.getKnownIds();
|
||||||
|
@ -1283,9 +1283,9 @@ public class MotionLayout extends ConstraintLayout implements NestedScrollingPar
|
||||||
}
|
}
|
||||||
|
|
||||||
private void checkStructure(MotionScene.Transition transition) {
|
private void checkStructure(MotionScene.Transition transition) {
|
||||||
StringBuilder O = a.O("CHECK: transition = ");
|
StringBuilder R = a.R("CHECK: transition = ");
|
||||||
O.append(transition.debugString(getContext()));
|
R.append(transition.debugString(getContext()));
|
||||||
Log.v(TAG, O.toString());
|
Log.v(TAG, R.toString());
|
||||||
Log.v(TAG, "CHECK: transition.setDuration = " + transition.getDuration());
|
Log.v(TAG, "CHECK: transition.setDuration = " + transition.getDuration());
|
||||||
if (transition.getStartConstraintSetId() == transition.getEndConstraintSetId()) {
|
if (transition.getStartConstraintSetId() == transition.getEndConstraintSetId()) {
|
||||||
Log.e(TAG, "CHECK: start and end constraint set should not be the same!");
|
Log.e(TAG, "CHECK: start and end constraint set should not be the same!");
|
||||||
|
@ -1306,18 +1306,18 @@ public class MotionLayout extends ConstraintLayout implements NestedScrollingPar
|
||||||
private void debugPos() {
|
private void debugPos() {
|
||||||
for (int i = 0; i < getChildCount(); i++) {
|
for (int i = 0; i < getChildCount(); i++) {
|
||||||
View childAt = getChildAt(i);
|
View childAt = getChildAt(i);
|
||||||
StringBuilder O = a.O(" ");
|
StringBuilder R = a.R(" ");
|
||||||
O.append(Debug.getLocation());
|
R.append(Debug.getLocation());
|
||||||
O.append(" ");
|
R.append(" ");
|
||||||
O.append(Debug.getName(this));
|
R.append(Debug.getName(this));
|
||||||
O.append(" ");
|
R.append(" ");
|
||||||
O.append(Debug.getName(getContext(), this.mCurrentState));
|
R.append(Debug.getName(getContext(), this.mCurrentState));
|
||||||
O.append(" ");
|
R.append(" ");
|
||||||
O.append(Debug.getName(childAt));
|
R.append(Debug.getName(childAt));
|
||||||
O.append(childAt.getLeft());
|
R.append(childAt.getLeft());
|
||||||
O.append(" ");
|
R.append(" ");
|
||||||
O.append(childAt.getTop());
|
R.append(childAt.getTop());
|
||||||
Log.v(TAG, O.toString());
|
Log.v(TAG, R.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1647,14 +1647,14 @@ public class MotionLayout extends ConstraintLayout implements NestedScrollingPar
|
||||||
}
|
}
|
||||||
Paint paint = new Paint();
|
Paint paint = new Paint();
|
||||||
paint.setTextSize(42.0f);
|
paint.setTextSize(42.0f);
|
||||||
StringBuilder O = a.O(this.mLastFps + " fps " + Debug.getState(this, this.mBeginState) + " -> ");
|
StringBuilder R = a.R(this.mLastFps + " fps " + Debug.getState(this, this.mBeginState) + " -> ");
|
||||||
O.append(Debug.getState(this, this.mEndState));
|
R.append(Debug.getState(this, this.mEndState));
|
||||||
O.append(" (progress: ");
|
R.append(" (progress: ");
|
||||||
O.append(((float) ((int) (getProgress() * 1000.0f))) / 10.0f);
|
R.append(((float) ((int) (getProgress() * 1000.0f))) / 10.0f);
|
||||||
O.append(" ) state=");
|
R.append(" ) state=");
|
||||||
int i = this.mCurrentState;
|
int i = this.mCurrentState;
|
||||||
O.append(i == -1 ? "undefined" : Debug.getState(this, i));
|
R.append(i == -1 ? "undefined" : Debug.getState(this, i));
|
||||||
String sb = O.toString();
|
String sb = R.toString();
|
||||||
paint.setColor(ViewCompat.MEASURED_STATE_MASK);
|
paint.setColor(ViewCompat.MEASURED_STATE_MASK);
|
||||||
canvas.drawText(sb, 11.0f, (float) (getHeight() - 29), paint);
|
canvas.drawText(sb, 11.0f, (float) (getHeight() - 29), paint);
|
||||||
paint.setColor(-7864184);
|
paint.setColor(-7864184);
|
||||||
|
@ -1891,7 +1891,8 @@ public class MotionLayout extends ConstraintLayout implements NestedScrollingPar
|
||||||
this.lastY = y2;
|
this.lastY = y2;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
a.k0("WARNING could not find view id ", viewById == null ? a.l("", i) : viewById.getContext().getResources().getResourceName(i), TAG);
|
String p = viewById == null ? a.p("", i) : viewById.getContext().getResources().getResourceName(i);
|
||||||
|
Log.w(TAG, "WARNING could not find view id " + p);
|
||||||
}
|
}
|
||||||
|
|
||||||
public ConstraintSet getConstraintSet(int i) {
|
public ConstraintSet getConstraintSet(int i) {
|
||||||
|
|
|
@ -147,9 +147,9 @@ public class MotionScene {
|
||||||
motionLayout2 = motionLayout.findViewById(i2);
|
motionLayout2 = motionLayout.findViewById(i2);
|
||||||
}
|
}
|
||||||
if (motionLayout2 == null) {
|
if (motionLayout2 == null) {
|
||||||
StringBuilder O = a.O("OnClick could not find id ");
|
StringBuilder R = a.R("OnClick could not find id ");
|
||||||
O.append(this.mTargetId);
|
R.append(this.mTargetId);
|
||||||
Log.e(MotionScene.TAG, O.toString());
|
Log.e(MotionScene.TAG, R.toString());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
int access$100 = Transition.access$100(transition);
|
int access$100 = Transition.access$100(transition);
|
||||||
|
@ -242,9 +242,9 @@ public class MotionScene {
|
||||||
if (i != -1) {
|
if (i != -1) {
|
||||||
View findViewById = motionLayout.findViewById(i);
|
View findViewById = motionLayout.findViewById(i);
|
||||||
if (findViewById == null) {
|
if (findViewById == null) {
|
||||||
StringBuilder O = a.O(" (*) could not find id ");
|
StringBuilder R = a.R(" (*) could not find id ");
|
||||||
O.append(this.mTargetId);
|
R.append(this.mTargetId);
|
||||||
Log.e(MotionScene.TAG, O.toString());
|
Log.e(MotionScene.TAG, R.toString());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
findViewById.setOnClickListener(null);
|
findViewById.setOnClickListener(null);
|
||||||
|
@ -435,11 +435,11 @@ public class MotionScene {
|
||||||
public String debugString(Context context) {
|
public String debugString(Context context) {
|
||||||
String resourceEntryName = this.mConstraintSetStart == -1 ? "null" : context.getResources().getResourceEntryName(this.mConstraintSetStart);
|
String resourceEntryName = this.mConstraintSetStart == -1 ? "null" : context.getResources().getResourceEntryName(this.mConstraintSetStart);
|
||||||
if (this.mConstraintSetEnd == -1) {
|
if (this.mConstraintSetEnd == -1) {
|
||||||
return a.u(resourceEntryName, " -> null");
|
return a.v(resourceEntryName, " -> null");
|
||||||
}
|
}
|
||||||
StringBuilder S = a.S(resourceEntryName, " -> ");
|
StringBuilder V = a.V(resourceEntryName, " -> ");
|
||||||
S.append(context.getResources().getResourceEntryName(this.mConstraintSetEnd));
|
V.append(context.getResources().getResourceEntryName(this.mConstraintSetEnd));
|
||||||
return S.toString();
|
return V.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getAutoTransition() {
|
public int getAutoTransition() {
|
||||||
|
@ -789,9 +789,9 @@ public class MotionScene {
|
||||||
ConstraintSet constraintSet = this.mConstraintSetMap.get(i);
|
ConstraintSet constraintSet = this.mConstraintSetMap.get(i);
|
||||||
ConstraintSet constraintSet2 = this.mConstraintSetMap.get(i2);
|
ConstraintSet constraintSet2 = this.mConstraintSetMap.get(i2);
|
||||||
if (constraintSet2 == null) {
|
if (constraintSet2 == null) {
|
||||||
StringBuilder O = a.O("ERROR! invalid deriveConstraintsFrom: @id/");
|
StringBuilder R = a.R("ERROR! invalid deriveConstraintsFrom: @id/");
|
||||||
O.append(Debug.getName(this.mMotionLayout.getContext(), i2));
|
R.append(Debug.getName(this.mMotionLayout.getContext(), i2));
|
||||||
Log.e(TAG, O.toString());
|
Log.e(TAG, R.toString());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
constraintSet.readFallback(constraintSet2);
|
constraintSet.readFallback(constraintSet2);
|
||||||
|
@ -956,9 +956,9 @@ public class MotionScene {
|
||||||
PrintStream printStream = System.out;
|
PrintStream printStream = System.out;
|
||||||
printStream.println("id " + i);
|
printStream.println("id " + i);
|
||||||
PrintStream printStream2 = System.out;
|
PrintStream printStream2 = System.out;
|
||||||
StringBuilder O = a.O("size ");
|
StringBuilder R = a.R("size ");
|
||||||
O.append(this.mConstraintSetMap.size());
|
R.append(this.mConstraintSetMap.size());
|
||||||
printStream2.println(O.toString());
|
printStream2.println(R.toString());
|
||||||
}
|
}
|
||||||
StateSet stateSet = this.mStateSet;
|
StateSet stateSet = this.mStateSet;
|
||||||
if (!(stateSet == null || (stateGetConstraintID = stateSet.stateGetConstraintID(i, i2, i3)) == -1)) {
|
if (!(stateSet == null || (stateGetConstraintID = stateSet.stateGetConstraintID(i, i2, i3)) == -1)) {
|
||||||
|
@ -967,10 +967,10 @@ public class MotionScene {
|
||||||
if (this.mConstraintSetMap.get(i) != null) {
|
if (this.mConstraintSetMap.get(i) != null) {
|
||||||
return this.mConstraintSetMap.get(i);
|
return this.mConstraintSetMap.get(i);
|
||||||
}
|
}
|
||||||
StringBuilder O2 = a.O("Warning could not find ConstraintSet id/");
|
StringBuilder R2 = a.R("Warning could not find ConstraintSet id/");
|
||||||
O2.append(Debug.getName(this.mMotionLayout.getContext(), i));
|
R2.append(Debug.getName(this.mMotionLayout.getContext(), i));
|
||||||
O2.append(" In MotionScene");
|
R2.append(" In MotionScene");
|
||||||
Log.e(TAG, O2.toString());
|
Log.e(TAG, R2.toString());
|
||||||
SparseArray<ConstraintSet> sparseArray = this.mConstraintSetMap;
|
SparseArray<ConstraintSet> sparseArray = this.mConstraintSetMap;
|
||||||
return sparseArray.get(sparseArray.keyAt(0));
|
return sparseArray.get(sparseArray.keyAt(0));
|
||||||
}
|
}
|
||||||
|
@ -980,9 +980,9 @@ public class MotionScene {
|
||||||
PrintStream printStream = System.out;
|
PrintStream printStream = System.out;
|
||||||
printStream.println("id " + str);
|
printStream.println("id " + str);
|
||||||
PrintStream printStream2 = System.out;
|
PrintStream printStream2 = System.out;
|
||||||
StringBuilder O = a.O("size ");
|
StringBuilder R = a.R("size ");
|
||||||
O.append(this.mConstraintSetMap.size());
|
R.append(this.mConstraintSetMap.size());
|
||||||
printStream2.println(O.toString());
|
printStream2.println(R.toString());
|
||||||
}
|
}
|
||||||
for (int i = 0; i < this.mConstraintSetMap.size(); i++) {
|
for (int i = 0; i < this.mConstraintSetMap.size(); i++) {
|
||||||
int keyAt = this.mConstraintSetMap.keyAt(i);
|
int keyAt = this.mConstraintSetMap.keyAt(i);
|
||||||
|
|
|
@ -454,12 +454,12 @@ public abstract class SplineSet {
|
||||||
String str = this.mType;
|
String str = this.mType;
|
||||||
DecimalFormat decimalFormat = new DecimalFormat("##.##");
|
DecimalFormat decimalFormat = new DecimalFormat("##.##");
|
||||||
for (int i = 0; i < this.count; i++) {
|
for (int i = 0; i < this.count; i++) {
|
||||||
StringBuilder S = a.S(str, "[");
|
StringBuilder V = a.V(str, "[");
|
||||||
S.append(this.mTimePoints[i]);
|
V.append(this.mTimePoints[i]);
|
||||||
S.append(" , ");
|
V.append(" , ");
|
||||||
S.append(decimalFormat.format((double) this.mValues[i]));
|
V.append(decimalFormat.format((double) this.mValues[i]));
|
||||||
S.append("] ");
|
V.append("] ");
|
||||||
str = S.toString();
|
str = V.toString();
|
||||||
}
|
}
|
||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
|
|
|
@ -502,9 +502,9 @@ public abstract class TimeCycleSplineSet {
|
||||||
public void setup(int i) {
|
public void setup(int i) {
|
||||||
int i2 = this.count;
|
int i2 = this.count;
|
||||||
if (i2 == 0) {
|
if (i2 == 0) {
|
||||||
StringBuilder O = a.O("Error no points added to ");
|
StringBuilder R = a.R("Error no points added to ");
|
||||||
O.append(this.mType);
|
R.append(this.mType);
|
||||||
Log.e(TAG, O.toString());
|
Log.e(TAG, R.toString());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Sort.doubleQuickSort(this.mTimePoints, this.mValues, 0, i2 - 1);
|
Sort.doubleQuickSort(this.mTimePoints, this.mValues, 0, i2 - 1);
|
||||||
|
@ -550,12 +550,12 @@ public abstract class TimeCycleSplineSet {
|
||||||
String str = this.mType;
|
String str = this.mType;
|
||||||
DecimalFormat decimalFormat = new DecimalFormat("##.##");
|
DecimalFormat decimalFormat = new DecimalFormat("##.##");
|
||||||
for (int i = 0; i < this.count; i++) {
|
for (int i = 0; i < this.count; i++) {
|
||||||
StringBuilder S = a.S(str, "[");
|
StringBuilder V = a.V(str, "[");
|
||||||
S.append(this.mTimePoints[i]);
|
V.append(this.mTimePoints[i]);
|
||||||
S.append(" , ");
|
V.append(" , ");
|
||||||
S.append(decimalFormat.format(this.mValues[i]));
|
V.append(decimalFormat.format(this.mValues[i]));
|
||||||
S.append("] ");
|
V.append("] ");
|
||||||
str = S.toString();
|
str = V.toString();
|
||||||
}
|
}
|
||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
|
|
|
@ -385,9 +385,9 @@ public class TouchResponse {
|
||||||
if (i != -1) {
|
if (i != -1) {
|
||||||
view = this.mMotionLayout.findViewById(i);
|
view = this.mMotionLayout.findViewById(i);
|
||||||
if (view == null) {
|
if (view == null) {
|
||||||
StringBuilder O = a.O("cannot find TouchAnchorId @id/");
|
StringBuilder R = a.R("cannot find TouchAnchorId @id/");
|
||||||
O.append(Debug.getName(this.mMotionLayout.getContext(), this.mTouchAnchorId));
|
R.append(Debug.getName(this.mMotionLayout.getContext(), this.mTouchAnchorId));
|
||||||
Log.e(TAG, O.toString());
|
Log.e(TAG, R.toString());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
view = null;
|
view = null;
|
||||||
|
|
|
@ -493,12 +493,12 @@ public class ArrayLinkedVariables implements ArrayRow.ArrayRowVariables {
|
||||||
String str = "";
|
String str = "";
|
||||||
int i2 = 0;
|
int i2 = 0;
|
||||||
while (i != -1 && i2 < this.currentSize) {
|
while (i != -1 && i2 < this.currentSize) {
|
||||||
StringBuilder O = a.O(a.u(str, " -> "));
|
StringBuilder R = a.R(a.v(str, " -> "));
|
||||||
O.append(this.mArrayValues[i]);
|
R.append(this.mArrayValues[i]);
|
||||||
O.append(" : ");
|
R.append(" : ");
|
||||||
StringBuilder O2 = a.O(O.toString());
|
StringBuilder R2 = a.R(R.toString());
|
||||||
O2.append(this.mCache.mIndexedVariables[this.mArrayIndices[i]]);
|
R2.append(this.mCache.mIndexedVariables[this.mArrayIndices[i]]);
|
||||||
str = O2.toString();
|
str = R2.toString();
|
||||||
i = this.mArrayNextIndices[i];
|
i = this.mArrayNextIndices[i];
|
||||||
i2++;
|
i2++;
|
||||||
}
|
}
|
||||||
|
|
|
@ -441,15 +441,15 @@ public class ArrayRow implements LinearSystem.Row {
|
||||||
if (this.variable == null) {
|
if (this.variable == null) {
|
||||||
str = "0";
|
str = "0";
|
||||||
} else {
|
} else {
|
||||||
StringBuilder O = a.O("");
|
StringBuilder R = a.R("");
|
||||||
O.append(this.variable);
|
R.append(this.variable);
|
||||||
str = O.toString();
|
str = R.toString();
|
||||||
}
|
}
|
||||||
String u = a.u(str, " = ");
|
String v = a.v(str, " = ");
|
||||||
if (this.constantValue != 0.0f) {
|
if (this.constantValue != 0.0f) {
|
||||||
StringBuilder O2 = a.O(u);
|
StringBuilder R2 = a.R(v);
|
||||||
O2.append(this.constantValue);
|
R2.append(this.constantValue);
|
||||||
u = O2.toString();
|
v = R2.toString();
|
||||||
z2 = true;
|
z2 = true;
|
||||||
} else {
|
} else {
|
||||||
z2 = false;
|
z2 = false;
|
||||||
|
@ -461,17 +461,17 @@ public class ArrayRow implements LinearSystem.Row {
|
||||||
String solverVariable = variable.toString();
|
String solverVariable = variable.toString();
|
||||||
if (!z2) {
|
if (!z2) {
|
||||||
if (variableValue < 0.0f) {
|
if (variableValue < 0.0f) {
|
||||||
u = a.u(u, "- ");
|
v = a.v(v, "- ");
|
||||||
}
|
}
|
||||||
u = variableValue == 1.0f ? a.u(u, solverVariable) : u + variableValue + " " + solverVariable;
|
v = variableValue == 1.0f ? a.v(v, solverVariable) : v + variableValue + " " + solverVariable;
|
||||||
z2 = true;
|
z2 = true;
|
||||||
} else if (i > 0) {
|
} else if (i > 0) {
|
||||||
u = a.u(u, " + ");
|
v = a.v(v, " + ");
|
||||||
if (variableValue == 1.0f) {
|
if (variableValue == 1.0f) {
|
||||||
}
|
}
|
||||||
z2 = true;
|
z2 = true;
|
||||||
} else {
|
} else {
|
||||||
u = a.u(u, " - ");
|
v = a.v(v, " - ");
|
||||||
}
|
}
|
||||||
variableValue *= -1.0f;
|
variableValue *= -1.0f;
|
||||||
if (variableValue == 1.0f) {
|
if (variableValue == 1.0f) {
|
||||||
|
@ -479,7 +479,7 @@ public class ArrayRow implements LinearSystem.Row {
|
||||||
z2 = true;
|
z2 = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return !z2 ? a.u(u, "0.0") : u;
|
return !z2 ? a.v(v, "0.0") : v;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String toString() {
|
public String toString() {
|
||||||
|
|
|
@ -219,21 +219,21 @@ public class LinearSystem {
|
||||||
displaySolverVariables();
|
displaySolverVariables();
|
||||||
String str = "";
|
String str = "";
|
||||||
for (int i = 0; i < this.mNumRows; i++) {
|
for (int i = 0; i < this.mNumRows; i++) {
|
||||||
StringBuilder O = a.O(str);
|
StringBuilder R = a.R(str);
|
||||||
O.append(this.mRows[i]);
|
R.append(this.mRows[i]);
|
||||||
str = a.u(O.toString(), "\n");
|
str = a.v(R.toString(), "\n");
|
||||||
}
|
}
|
||||||
StringBuilder O2 = a.O(str);
|
StringBuilder R2 = a.R(str);
|
||||||
O2.append(this.mGoal);
|
R2.append(this.mGoal);
|
||||||
O2.append("\n");
|
R2.append("\n");
|
||||||
System.out.println(O2.toString());
|
System.out.println(R2.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
private void displaySolverVariables() {
|
private void displaySolverVariables() {
|
||||||
StringBuilder O = a.O("Display Rows (");
|
StringBuilder R = a.R("Display Rows (");
|
||||||
O.append(this.mNumRows);
|
R.append(this.mNumRows);
|
||||||
O.append("x");
|
R.append("x");
|
||||||
System.out.println(a.z(O, this.mNumColumns, ")\n"));
|
System.out.println(a.A(R, this.mNumColumns, ")\n"));
|
||||||
}
|
}
|
||||||
|
|
||||||
private int enforceBFS(Row row) throws Exception {
|
private int enforceBFS(Row row) throws Exception {
|
||||||
|
@ -337,7 +337,7 @@ public class LinearSystem {
|
||||||
int i2 = i * 4;
|
int i2 = i * 4;
|
||||||
int i3 = i2 / 1024;
|
int i3 = i2 / 1024;
|
||||||
int i4 = i3 / 1024;
|
int i4 = i3 / 1024;
|
||||||
return i4 > 0 ? a.n("", i4, " Mb") : i3 > 0 ? a.n("", i3, " Kb") : a.n("", i2, " bytes");
|
return i4 > 0 ? a.q("", i4, " Mb") : i3 > 0 ? a.q("", i3, " Kb") : a.q("", i2, " bytes");
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getDisplayStrength(int i) {
|
private String getDisplayStrength(int i) {
|
||||||
|
@ -812,34 +812,34 @@ public class LinearSystem {
|
||||||
|
|
||||||
public void displayReadableRows() {
|
public void displayReadableRows() {
|
||||||
displaySolverVariables();
|
displaySolverVariables();
|
||||||
String z2 = a.z(a.O(" num vars "), this.mVariablesID, "\n");
|
String A = a.A(a.R(" num vars "), this.mVariablesID, "\n");
|
||||||
for (int i = 0; i < this.mVariablesID + 1; i++) {
|
for (int i = 0; i < this.mVariablesID + 1; i++) {
|
||||||
SolverVariable solverVariable = this.mCache.mIndexedVariables[i];
|
SolverVariable solverVariable = this.mCache.mIndexedVariables[i];
|
||||||
if (solverVariable != null && solverVariable.isFinalValue) {
|
if (solverVariable != null && solverVariable.isFinalValue) {
|
||||||
z2 = z2 + " $[" + i + "] => " + solverVariable + " = " + solverVariable.computedValue + "\n";
|
A = A + " $[" + i + "] => " + solverVariable + " = " + solverVariable.computedValue + "\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
String u = a.u(z2, "\n");
|
String v = a.v(A, "\n");
|
||||||
for (int i2 = 0; i2 < this.mVariablesID + 1; i2++) {
|
for (int i2 = 0; i2 < this.mVariablesID + 1; i2++) {
|
||||||
SolverVariable[] solverVariableArr = this.mCache.mIndexedVariables;
|
SolverVariable[] solverVariableArr = this.mCache.mIndexedVariables;
|
||||||
SolverVariable solverVariable2 = solverVariableArr[i2];
|
SolverVariable solverVariable2 = solverVariableArr[i2];
|
||||||
if (solverVariable2 != null && solverVariable2.isSynonym) {
|
if (solverVariable2 != null && solverVariable2.isSynonym) {
|
||||||
u = u + " ~[" + i2 + "] => " + solverVariable2 + " = " + solverVariableArr[solverVariable2.synonym] + " + " + solverVariable2.synonymDelta + "\n";
|
v = v + " ~[" + i2 + "] => " + solverVariable2 + " = " + solverVariableArr[solverVariable2.synonym] + " + " + solverVariable2.synonymDelta + "\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
String u2 = a.u(u, "\n\n # ");
|
String v2 = a.v(v, "\n\n # ");
|
||||||
for (int i3 = 0; i3 < this.mNumRows; i3++) {
|
for (int i3 = 0; i3 < this.mNumRows; i3++) {
|
||||||
StringBuilder O = a.O(u2);
|
StringBuilder R = a.R(v2);
|
||||||
O.append(this.mRows[i3].toReadableString());
|
R.append(this.mRows[i3].toReadableString());
|
||||||
u2 = a.u(O.toString(), "\n # ");
|
v2 = a.v(R.toString(), "\n # ");
|
||||||
}
|
}
|
||||||
if (this.mGoal != null) {
|
if (this.mGoal != null) {
|
||||||
StringBuilder S = a.S(u2, "Goal: ");
|
StringBuilder V = a.V(v2, "Goal: ");
|
||||||
S.append(this.mGoal);
|
V.append(this.mGoal);
|
||||||
S.append("\n");
|
V.append("\n");
|
||||||
u2 = S.toString();
|
v2 = V.toString();
|
||||||
}
|
}
|
||||||
System.out.println(u2);
|
System.out.println(v2);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void displaySystemInformations() {
|
public void displaySystemInformations() {
|
||||||
|
@ -858,28 +858,28 @@ public class LinearSystem {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
PrintStream printStream = System.out;
|
PrintStream printStream = System.out;
|
||||||
StringBuilder O = a.O("Linear System -> Table size: ");
|
StringBuilder R = a.R("Linear System -> Table size: ");
|
||||||
O.append(this.TABLE_SIZE);
|
R.append(this.TABLE_SIZE);
|
||||||
O.append(" (");
|
R.append(" (");
|
||||||
int i5 = this.TABLE_SIZE;
|
int i5 = this.TABLE_SIZE;
|
||||||
O.append(getDisplaySize(i5 * i5));
|
R.append(getDisplaySize(i5 * i5));
|
||||||
O.append(") -- row sizes: ");
|
R.append(") -- row sizes: ");
|
||||||
O.append(getDisplaySize(i));
|
R.append(getDisplaySize(i));
|
||||||
O.append(", actual size: ");
|
R.append(", actual size: ");
|
||||||
O.append(getDisplaySize(i3));
|
R.append(getDisplaySize(i3));
|
||||||
O.append(" rows: ");
|
R.append(" rows: ");
|
||||||
O.append(this.mNumRows);
|
R.append(this.mNumRows);
|
||||||
O.append(AutocompleteViewModel.COMMAND_DISCOVER_TOKEN);
|
R.append(AutocompleteViewModel.COMMAND_DISCOVER_TOKEN);
|
||||||
O.append(this.mMaxRows);
|
R.append(this.mMaxRows);
|
||||||
O.append(" cols: ");
|
R.append(" cols: ");
|
||||||
O.append(this.mNumColumns);
|
R.append(this.mNumColumns);
|
||||||
O.append(AutocompleteViewModel.COMMAND_DISCOVER_TOKEN);
|
R.append(AutocompleteViewModel.COMMAND_DISCOVER_TOKEN);
|
||||||
O.append(this.mMaxColumns);
|
R.append(this.mMaxColumns);
|
||||||
O.append(" ");
|
R.append(" ");
|
||||||
O.append(0);
|
R.append(0);
|
||||||
O.append(" occupied cells, ");
|
R.append(" occupied cells, ");
|
||||||
O.append(getDisplaySize(0));
|
R.append(getDisplaySize(0));
|
||||||
printStream.println(O.toString());
|
printStream.println(R.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
public void displayVariablesReadableRows() {
|
public void displayVariablesReadableRows() {
|
||||||
|
@ -887,15 +887,15 @@ public class LinearSystem {
|
||||||
String str = "";
|
String str = "";
|
||||||
for (int i = 0; i < this.mNumRows; i++) {
|
for (int i = 0; i < this.mNumRows; i++) {
|
||||||
if (this.mRows[i].variable.mType == SolverVariable.Type.UNRESTRICTED) {
|
if (this.mRows[i].variable.mType == SolverVariable.Type.UNRESTRICTED) {
|
||||||
StringBuilder O = a.O(str);
|
StringBuilder R = a.R(str);
|
||||||
O.append(this.mRows[i].toReadableString());
|
R.append(this.mRows[i].toReadableString());
|
||||||
str = a.u(O.toString(), "\n");
|
str = a.v(R.toString(), "\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
StringBuilder O2 = a.O(str);
|
StringBuilder R2 = a.R(str);
|
||||||
O2.append(this.mGoal);
|
R2.append(this.mGoal);
|
||||||
O2.append("\n");
|
R2.append("\n");
|
||||||
System.out.println(O2.toString());
|
System.out.println(R2.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
public void fillMetrics(Metrics metrics) {
|
public void fillMetrics(Metrics metrics) {
|
||||||
|
|
|
@ -83,23 +83,23 @@ public class Metrics {
|
||||||
}
|
}
|
||||||
|
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder O = a.O("\n*** Metrics ***\nmeasures: ");
|
StringBuilder R = a.R("\n*** Metrics ***\nmeasures: ");
|
||||||
O.append(this.measures);
|
R.append(this.measures);
|
||||||
O.append("\nmeasuresWrap: ");
|
R.append("\nmeasuresWrap: ");
|
||||||
O.append(this.measuresWrap);
|
R.append(this.measuresWrap);
|
||||||
O.append("\nmeasuresWrapInfeasible: ");
|
R.append("\nmeasuresWrapInfeasible: ");
|
||||||
O.append(this.measuresWrapInfeasible);
|
R.append(this.measuresWrapInfeasible);
|
||||||
O.append("\ndetermineGroups: ");
|
R.append("\ndetermineGroups: ");
|
||||||
O.append(this.determineGroups);
|
R.append(this.determineGroups);
|
||||||
O.append("\ninfeasibleDetermineGroups: ");
|
R.append("\ninfeasibleDetermineGroups: ");
|
||||||
O.append(this.infeasibleDetermineGroups);
|
R.append(this.infeasibleDetermineGroups);
|
||||||
O.append("\ngraphOptimizer: ");
|
R.append("\ngraphOptimizer: ");
|
||||||
O.append(this.graphOptimizer);
|
R.append(this.graphOptimizer);
|
||||||
O.append("\nwidgets: ");
|
R.append("\nwidgets: ");
|
||||||
O.append(this.widgets);
|
R.append(this.widgets);
|
||||||
O.append("\ngraphSolved: ");
|
R.append("\ngraphSolved: ");
|
||||||
O.append(this.graphSolved);
|
R.append(this.graphSolved);
|
||||||
O.append("\nlinearSolved: ");
|
R.append("\nlinearSolved: ");
|
||||||
return a.A(O, this.linearSolved, "\n");
|
return a.B(R, this.linearSolved, "\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -132,15 +132,15 @@ public class PriorityGoalRow extends ArrayRow {
|
||||||
String str = "[ ";
|
String str = "[ ";
|
||||||
if (this.variable != null) {
|
if (this.variable != null) {
|
||||||
for (int i = 0; i < 9; i++) {
|
for (int i = 0; i < 9; i++) {
|
||||||
StringBuilder O = a.O(str);
|
StringBuilder R = a.R(str);
|
||||||
O.append(this.variable.goalStrengthVector[i]);
|
R.append(this.variable.goalStrengthVector[i]);
|
||||||
O.append(" ");
|
R.append(" ");
|
||||||
str = O.toString();
|
str = R.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
StringBuilder S = a.S(str, "] ");
|
StringBuilder V = a.V(str, "] ");
|
||||||
S.append(this.variable);
|
V.append(this.variable);
|
||||||
return S.toString();
|
return V.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -251,10 +251,10 @@ public class PriorityGoalRow extends ArrayRow {
|
||||||
|
|
||||||
@Override // androidx.constraintlayout.solver.ArrayRow
|
@Override // androidx.constraintlayout.solver.ArrayRow
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder S = a.S("", " goal -> (");
|
StringBuilder V = a.V("", " goal -> (");
|
||||||
S.append(this.constantValue);
|
V.append(this.constantValue);
|
||||||
S.append(") : ");
|
V.append(") : ");
|
||||||
String sb = S.toString();
|
String sb = V.toString();
|
||||||
for (int i = 0; i < this.numGoals; i++) {
|
for (int i = 0; i < this.numGoals; i++) {
|
||||||
this.accessor.init(this.arrayGoals[i]);
|
this.accessor.init(this.arrayGoals[i]);
|
||||||
sb = sb + this.accessor + " ";
|
sb = sb + this.accessor + " ";
|
||||||
|
|
|
@ -118,41 +118,41 @@ public class SolverVariable {
|
||||||
|
|
||||||
private static String getUniqueName(Type type, String str) {
|
private static String getUniqueName(Type type, String str) {
|
||||||
if (str != null) {
|
if (str != null) {
|
||||||
StringBuilder O = a.O(str);
|
StringBuilder R = a.R(str);
|
||||||
O.append(uniqueErrorId);
|
R.append(uniqueErrorId);
|
||||||
return O.toString();
|
return R.toString();
|
||||||
}
|
}
|
||||||
int ordinal = type.ordinal();
|
int ordinal = type.ordinal();
|
||||||
if (ordinal == 0) {
|
if (ordinal == 0) {
|
||||||
StringBuilder O2 = a.O("U");
|
StringBuilder R2 = a.R("U");
|
||||||
int i = uniqueUnrestrictedId + 1;
|
int i = uniqueUnrestrictedId + 1;
|
||||||
uniqueUnrestrictedId = i;
|
uniqueUnrestrictedId = i;
|
||||||
O2.append(i);
|
R2.append(i);
|
||||||
return O2.toString();
|
return R2.toString();
|
||||||
} else if (ordinal == 1) {
|
} else if (ordinal == 1) {
|
||||||
StringBuilder O3 = a.O("C");
|
StringBuilder R3 = a.R("C");
|
||||||
int i2 = uniqueConstantId + 1;
|
int i2 = uniqueConstantId + 1;
|
||||||
uniqueConstantId = i2;
|
uniqueConstantId = i2;
|
||||||
O3.append(i2);
|
R3.append(i2);
|
||||||
return O3.toString();
|
return R3.toString();
|
||||||
} else if (ordinal == 2) {
|
} else if (ordinal == 2) {
|
||||||
StringBuilder O4 = a.O(ExifInterface.LATITUDE_SOUTH);
|
StringBuilder R4 = a.R(ExifInterface.LATITUDE_SOUTH);
|
||||||
int i3 = uniqueSlackId + 1;
|
int i3 = uniqueSlackId + 1;
|
||||||
uniqueSlackId = i3;
|
uniqueSlackId = i3;
|
||||||
O4.append(i3);
|
R4.append(i3);
|
||||||
return O4.toString();
|
return R4.toString();
|
||||||
} else if (ordinal == 3) {
|
} else if (ordinal == 3) {
|
||||||
StringBuilder O5 = a.O("e");
|
StringBuilder R5 = a.R("e");
|
||||||
int i4 = uniqueErrorId + 1;
|
int i4 = uniqueErrorId + 1;
|
||||||
uniqueErrorId = i4;
|
uniqueErrorId = i4;
|
||||||
O5.append(i4);
|
R5.append(i4);
|
||||||
return O5.toString();
|
return R5.toString();
|
||||||
} else if (ordinal == 4) {
|
} else if (ordinal == 4) {
|
||||||
StringBuilder O6 = a.O(ExifInterface.GPS_MEASUREMENT_INTERRUPTED);
|
StringBuilder R6 = a.R(ExifInterface.GPS_MEASUREMENT_INTERRUPTED);
|
||||||
int i5 = uniqueId + 1;
|
int i5 = uniqueId + 1;
|
||||||
uniqueId = i5;
|
uniqueId = i5;
|
||||||
O6.append(i5);
|
R6.append(i5);
|
||||||
return O6.toString();
|
return R6.toString();
|
||||||
} else {
|
} else {
|
||||||
throw new AssertionError(type.name());
|
throw new AssertionError(type.name());
|
||||||
}
|
}
|
||||||
|
@ -274,9 +274,9 @@ public class SolverVariable {
|
||||||
boolean z2 = false;
|
boolean z2 = false;
|
||||||
boolean z3 = true;
|
boolean z3 = true;
|
||||||
while (i < this.strengthVector.length) {
|
while (i < this.strengthVector.length) {
|
||||||
StringBuilder O = a.O(str);
|
StringBuilder R = a.R(str);
|
||||||
O.append(this.strengthVector[i]);
|
R.append(this.strengthVector[i]);
|
||||||
String sb = O.toString();
|
String sb = R.toString();
|
||||||
float[] fArr = this.strengthVector;
|
float[] fArr = this.strengthVector;
|
||||||
if (fArr[i] > 0.0f) {
|
if (fArr[i] > 0.0f) {
|
||||||
z2 = false;
|
z2 = false;
|
||||||
|
@ -286,24 +286,24 @@ public class SolverVariable {
|
||||||
if (fArr[i] != 0.0f) {
|
if (fArr[i] != 0.0f) {
|
||||||
z3 = false;
|
z3 = false;
|
||||||
}
|
}
|
||||||
str = i < fArr.length + -1 ? a.u(sb, ", ") : a.u(sb, "] ");
|
str = i < fArr.length + -1 ? a.v(sb, ", ") : a.v(sb, "] ");
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
if (z2) {
|
if (z2) {
|
||||||
str = a.u(str, " (-)");
|
str = a.v(str, " (-)");
|
||||||
}
|
}
|
||||||
return z3 ? a.u(str, " (*)") : str;
|
return z3 ? a.v(str, " (*)") : str;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String toString() {
|
public String toString() {
|
||||||
if (this.mName != null) {
|
if (this.mName != null) {
|
||||||
StringBuilder O = a.O("");
|
StringBuilder R = a.R("");
|
||||||
O.append(this.mName);
|
R.append(this.mName);
|
||||||
return O.toString();
|
return R.toString();
|
||||||
}
|
}
|
||||||
StringBuilder O2 = a.O("");
|
StringBuilder R2 = a.R("");
|
||||||
O2.append(this.f23id);
|
R2.append(this.f23id);
|
||||||
return O2.toString();
|
return R2.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
public final void updateReferencesWithNewDefinition(LinearSystem linearSystem, ArrayRow arrayRow) {
|
public final void updateReferencesWithNewDefinition(LinearSystem linearSystem, ArrayRow arrayRow) {
|
||||||
|
|
|
@ -65,9 +65,9 @@ public class SolverVariableValues implements ArrayRow.ArrayRowVariables {
|
||||||
int i2 = this.keys[i];
|
int i2 = this.keys[i];
|
||||||
boolean z2 = false;
|
boolean z2 = false;
|
||||||
while (!z2) {
|
while (!z2) {
|
||||||
StringBuilder S = a.S(str, " ");
|
StringBuilder V = a.V(str, " ");
|
||||||
S.append(this.variables[i2]);
|
V.append(this.variables[i2]);
|
||||||
str = S.toString();
|
str = V.toString();
|
||||||
int[] iArr = this.nextKeys;
|
int[] iArr = this.nextKeys;
|
||||||
if (iArr[i2] != -1) {
|
if (iArr[i2] != -1) {
|
||||||
i2 = iArr[i2];
|
i2 = iArr[i2];
|
||||||
|
@ -404,26 +404,26 @@ public class SolverVariableValues implements ArrayRow.ArrayRowVariables {
|
||||||
if (variable != null) {
|
if (variable != null) {
|
||||||
String str4 = str3 + variable + " = " + getVariableValue(i2) + " ";
|
String str4 = str3 + variable + " = " + getVariableValue(i2) + " ";
|
||||||
int indexOf = indexOf(variable);
|
int indexOf = indexOf(variable);
|
||||||
String u = a.u(str4, "[p: ");
|
String v = a.v(str4, "[p: ");
|
||||||
if (this.previous[indexOf] != -1) {
|
if (this.previous[indexOf] != -1) {
|
||||||
StringBuilder O = a.O(u);
|
StringBuilder R = a.R(v);
|
||||||
O.append(this.mCache.mIndexedVariables[this.variables[this.previous[indexOf]]]);
|
R.append(this.mCache.mIndexedVariables[this.variables[this.previous[indexOf]]]);
|
||||||
str = O.toString();
|
str = R.toString();
|
||||||
} else {
|
} else {
|
||||||
str = a.u(u, "none");
|
str = a.v(v, "none");
|
||||||
}
|
}
|
||||||
String u2 = a.u(str, ", n: ");
|
String v2 = a.v(str, ", n: ");
|
||||||
if (this.next[indexOf] != -1) {
|
if (this.next[indexOf] != -1) {
|
||||||
StringBuilder O2 = a.O(u2);
|
StringBuilder R2 = a.R(v2);
|
||||||
O2.append(this.mCache.mIndexedVariables[this.variables[this.next[indexOf]]]);
|
R2.append(this.mCache.mIndexedVariables[this.variables[this.next[indexOf]]]);
|
||||||
str2 = O2.toString();
|
str2 = R2.toString();
|
||||||
} else {
|
} else {
|
||||||
str2 = a.u(u2, "none");
|
str2 = a.v(v2, "none");
|
||||||
}
|
}
|
||||||
str3 = a.u(str2, "]");
|
str3 = a.v(str2, "]");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return a.u(str3, " }");
|
return a.v(str3, " }");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override // androidx.constraintlayout.solver.ArrayRow.ArrayRowVariables
|
@Override // androidx.constraintlayout.solver.ArrayRow.ArrayRowVariables
|
||||||
|
|
|
@ -131,9 +131,9 @@ public class ConstraintReference implements Reference {
|
||||||
|
|
||||||
@Override // java.lang.Throwable, java.lang.Object
|
@Override // java.lang.Throwable, java.lang.Object
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder O = a.O("IncorrectConstraintException: ");
|
StringBuilder R = a.R("IncorrectConstraintException: ");
|
||||||
O.append(this.mErrors.toString());
|
R.append(this.mErrors.toString());
|
||||||
return O.toString();
|
return R.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -105,10 +105,10 @@ public class State {
|
||||||
}
|
}
|
||||||
|
|
||||||
private String createHelperKey() {
|
private String createHelperKey() {
|
||||||
StringBuilder O = a.O("__HELPER_KEY_");
|
StringBuilder R = a.R("__HELPER_KEY_");
|
||||||
int i = this.numHelpers;
|
int i = this.numHelpers;
|
||||||
this.numHelpers = i + 1;
|
this.numHelpers = i + 1;
|
||||||
return a.z(O, i, "__");
|
return a.A(R, i, "__");
|
||||||
}
|
}
|
||||||
|
|
||||||
public void apply(ConstraintWidgetContainer constraintWidgetContainer) {
|
public void apply(ConstraintWidgetContainer constraintWidgetContainer) {
|
||||||
|
|
|
@ -252,19 +252,19 @@ public class Barrier extends HelperWidget {
|
||||||
|
|
||||||
@Override // androidx.constraintlayout.solver.widgets.ConstraintWidget
|
@Override // androidx.constraintlayout.solver.widgets.ConstraintWidget
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder O = a.O("[Barrier] ");
|
StringBuilder R = a.R("[Barrier] ");
|
||||||
O.append(getDebugName());
|
R.append(getDebugName());
|
||||||
O.append(" {");
|
R.append(" {");
|
||||||
String sb = O.toString();
|
String sb = R.toString();
|
||||||
for (int i = 0; i < this.mWidgetsCount; i++) {
|
for (int i = 0; i < this.mWidgetsCount; i++) {
|
||||||
ConstraintWidget constraintWidget = this.mWidgets[i];
|
ConstraintWidget constraintWidget = this.mWidgets[i];
|
||||||
if (i > 0) {
|
if (i > 0) {
|
||||||
sb = a.u(sb, ", ");
|
sb = a.v(sb, ", ");
|
||||||
}
|
}
|
||||||
StringBuilder O2 = a.O(sb);
|
StringBuilder R2 = a.R(sb);
|
||||||
O2.append(constraintWidget.getDebugName());
|
R2.append(constraintWidget.getDebugName());
|
||||||
sb = O2.toString();
|
sb = R2.toString();
|
||||||
}
|
}
|
||||||
return a.u(sb, "}");
|
return a.v(sb, "}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3058,9 +3058,9 @@ public class ConstraintWidget {
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
String str = "";
|
String str = "";
|
||||||
sb.append(this.mType != null ? a.G(a.O("type: "), this.mType, " ") : str);
|
sb.append(this.mType != null ? a.H(a.R("type: "), this.mType, " ") : str);
|
||||||
if (this.mDebugName != null) {
|
if (this.mDebugName != null) {
|
||||||
str = a.G(a.O("id: "), this.mDebugName, " ");
|
str = a.H(a.R("id: "), this.mDebugName, " ");
|
||||||
}
|
}
|
||||||
sb.append(str);
|
sb.append(str);
|
||||||
sb.append("(");
|
sb.append("(");
|
||||||
|
@ -3070,7 +3070,7 @@ public class ConstraintWidget {
|
||||||
sb.append(") - (");
|
sb.append(") - (");
|
||||||
sb.append(this.mWidth);
|
sb.append(this.mWidth);
|
||||||
sb.append(" x ");
|
sb.append(" x ");
|
||||||
return a.z(sb, this.mHeight, ")");
|
return a.A(sb, this.mHeight, ")");
|
||||||
}
|
}
|
||||||
|
|
||||||
public void updateFromRuns(boolean z2, boolean z3) {
|
public void updateFromRuns(boolean z2, boolean z3) {
|
||||||
|
|
|
@ -173,13 +173,13 @@ public class ChainRun extends WidgetRun {
|
||||||
}
|
}
|
||||||
|
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder O = a.O("ChainRun ");
|
StringBuilder R = a.R("ChainRun ");
|
||||||
O.append(this.orientation == 0 ? "horizontal : " : "vertical : ");
|
R.append(this.orientation == 0 ? "horizontal : " : "vertical : ");
|
||||||
String sb = O.toString();
|
String sb = R.toString();
|
||||||
Iterator<WidgetRun> it = this.widgets.iterator();
|
Iterator<WidgetRun> it = this.widgets.iterator();
|
||||||
while (it.hasNext()) {
|
while (it.hasNext()) {
|
||||||
String u = a.u(sb, "<");
|
String v = a.v(sb, "<");
|
||||||
sb = a.u(u + it.next(), "> ");
|
sb = a.v(v + it.next(), "> ");
|
||||||
}
|
}
|
||||||
return sb;
|
return sb;
|
||||||
}
|
}
|
||||||
|
|
|
@ -267,9 +267,9 @@ public class DependencyGraph {
|
||||||
while (it.hasNext()) {
|
while (it.hasNext()) {
|
||||||
str = generateDisplayGraph(it.next(), str);
|
str = generateDisplayGraph(it.next(), str);
|
||||||
}
|
}
|
||||||
String u = a.u(str, "\n}\n");
|
String v = a.v(str, "\n}\n");
|
||||||
PrintStream printStream = System.out;
|
PrintStream printStream = System.out;
|
||||||
printStream.println("content:<<\n" + u + "\n>>");
|
printStream.println("content:<<\n" + v + "\n>>");
|
||||||
}
|
}
|
||||||
|
|
||||||
private void findGroup(WidgetRun widgetRun, int i, ArrayList<RunGroup> arrayList) {
|
private void findGroup(WidgetRun widgetRun, int i, ArrayList<RunGroup> arrayList) {
|
||||||
|
@ -298,19 +298,19 @@ public class DependencyGraph {
|
||||||
|
|
||||||
private String generateChainDisplayGraph(ChainRun chainRun, String str) {
|
private String generateChainDisplayGraph(ChainRun chainRun, String str) {
|
||||||
int i = chainRun.orientation;
|
int i = chainRun.orientation;
|
||||||
StringBuilder O = a.O("cluster_");
|
StringBuilder R = a.R("cluster_");
|
||||||
O.append(chainRun.widget.getDebugName());
|
R.append(chainRun.widget.getDebugName());
|
||||||
String sb = O.toString();
|
String sb = R.toString();
|
||||||
String v = a.v("subgraph ", i == 0 ? a.u(sb, "_h") : a.u(sb, "_v"), " {\n");
|
String w = a.w("subgraph ", i == 0 ? a.v(sb, "_h") : a.v(sb, "_v"), " {\n");
|
||||||
Iterator<WidgetRun> it = chainRun.widgets.iterator();
|
Iterator<WidgetRun> it = chainRun.widgets.iterator();
|
||||||
String str2 = "";
|
String str2 = "";
|
||||||
while (it.hasNext()) {
|
while (it.hasNext()) {
|
||||||
WidgetRun next = it.next();
|
WidgetRun next = it.next();
|
||||||
String debugName = next.widget.getDebugName();
|
String debugName = next.widget.getDebugName();
|
||||||
v = a.v(v, i == 0 ? a.u(debugName, "_HORIZONTAL") : a.u(debugName, "_VERTICAL"), ";\n");
|
w = a.w(w, i == 0 ? a.v(debugName, "_HORIZONTAL") : a.v(debugName, "_VERTICAL"), ";\n");
|
||||||
str2 = generateDisplayGraph(next, str2);
|
str2 = generateDisplayGraph(next, str2);
|
||||||
}
|
}
|
||||||
return a.v(str, str2, a.u(v, "}\n"));
|
return a.w(str, str2, a.v(w, "}\n"));
|
||||||
}
|
}
|
||||||
|
|
||||||
private String generateDisplayGraph(WidgetRun widgetRun, String str) {
|
private String generateDisplayGraph(WidgetRun widgetRun, String str) {
|
||||||
|
@ -320,9 +320,9 @@ public class DependencyGraph {
|
||||||
if (!(widgetRun instanceof HelperReferences) && dependencyNode.dependencies.isEmpty() && (dependencyNode2.dependencies.isEmpty() && dependencyNode.targets.isEmpty()) && dependencyNode2.targets.isEmpty()) {
|
if (!(widgetRun instanceof HelperReferences) && dependencyNode.dependencies.isEmpty() && (dependencyNode2.dependencies.isEmpty() && dependencyNode.targets.isEmpty()) && dependencyNode2.targets.isEmpty()) {
|
||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
StringBuilder O = a.O(str);
|
StringBuilder R = a.R(str);
|
||||||
O.append(nodeDefinition(widgetRun));
|
R.append(nodeDefinition(widgetRun));
|
||||||
String sb = O.toString();
|
String sb = R.toString();
|
||||||
boolean isCenteredConnection = isCenteredConnection(dependencyNode, dependencyNode2);
|
boolean isCenteredConnection = isCenteredConnection(dependencyNode, dependencyNode2);
|
||||||
String generateDisplayNode = generateDisplayNode(dependencyNode2, isCenteredConnection, generateDisplayNode(dependencyNode, isCenteredConnection, sb));
|
String generateDisplayNode = generateDisplayNode(dependencyNode2, isCenteredConnection, generateDisplayNode(dependencyNode, isCenteredConnection, sb));
|
||||||
boolean z3 = widgetRun instanceof VerticalWidgetRun;
|
boolean z3 = widgetRun instanceof VerticalWidgetRun;
|
||||||
|
@ -333,19 +333,19 @@ public class DependencyGraph {
|
||||||
ConstraintWidget.DimensionBehaviour horizontalDimensionBehaviour = widgetRun.widget.getHorizontalDimensionBehaviour();
|
ConstraintWidget.DimensionBehaviour horizontalDimensionBehaviour = widgetRun.widget.getHorizontalDimensionBehaviour();
|
||||||
if (horizontalDimensionBehaviour == ConstraintWidget.DimensionBehaviour.FIXED || horizontalDimensionBehaviour == ConstraintWidget.DimensionBehaviour.WRAP_CONTENT) {
|
if (horizontalDimensionBehaviour == ConstraintWidget.DimensionBehaviour.FIXED || horizontalDimensionBehaviour == ConstraintWidget.DimensionBehaviour.WRAP_CONTENT) {
|
||||||
if (!dependencyNode.targets.isEmpty() && dependencyNode2.targets.isEmpty()) {
|
if (!dependencyNode.targets.isEmpty() && dependencyNode2.targets.isEmpty()) {
|
||||||
StringBuilder O2 = a.O("\n");
|
StringBuilder R2 = a.R("\n");
|
||||||
O2.append(dependencyNode2.name());
|
R2.append(dependencyNode2.name());
|
||||||
O2.append(" -> ");
|
R2.append(" -> ");
|
||||||
O2.append(dependencyNode.name());
|
R2.append(dependencyNode.name());
|
||||||
O2.append("\n");
|
R2.append("\n");
|
||||||
generateDisplayNode = a.u(generateDisplayNode, O2.toString());
|
generateDisplayNode = a.v(generateDisplayNode, R2.toString());
|
||||||
} else if (dependencyNode.targets.isEmpty() && !dependencyNode2.targets.isEmpty()) {
|
} else if (dependencyNode.targets.isEmpty() && !dependencyNode2.targets.isEmpty()) {
|
||||||
StringBuilder O3 = a.O("\n");
|
StringBuilder R3 = a.R("\n");
|
||||||
O3.append(dependencyNode.name());
|
R3.append(dependencyNode.name());
|
||||||
O3.append(" -> ");
|
R3.append(" -> ");
|
||||||
O3.append(dependencyNode2.name());
|
R3.append(dependencyNode2.name());
|
||||||
O3.append("\n");
|
R3.append("\n");
|
||||||
generateDisplayNode = a.u(generateDisplayNode, O3.toString());
|
generateDisplayNode = a.v(generateDisplayNode, R3.toString());
|
||||||
}
|
}
|
||||||
} else if (horizontalDimensionBehaviour == ConstraintWidget.DimensionBehaviour.MATCH_CONSTRAINT && widgetRun.widget.getDimensionRatio() > 0.0f) {
|
} else if (horizontalDimensionBehaviour == ConstraintWidget.DimensionBehaviour.MATCH_CONSTRAINT && widgetRun.widget.getDimensionRatio() > 0.0f) {
|
||||||
widgetRun.widget.getDebugName();
|
widgetRun.widget.getDebugName();
|
||||||
|
@ -354,19 +354,19 @@ public class DependencyGraph {
|
||||||
ConstraintWidget.DimensionBehaviour verticalDimensionBehaviour = widgetRun.widget.getVerticalDimensionBehaviour();
|
ConstraintWidget.DimensionBehaviour verticalDimensionBehaviour = widgetRun.widget.getVerticalDimensionBehaviour();
|
||||||
if (verticalDimensionBehaviour == ConstraintWidget.DimensionBehaviour.FIXED || verticalDimensionBehaviour == ConstraintWidget.DimensionBehaviour.WRAP_CONTENT) {
|
if (verticalDimensionBehaviour == ConstraintWidget.DimensionBehaviour.FIXED || verticalDimensionBehaviour == ConstraintWidget.DimensionBehaviour.WRAP_CONTENT) {
|
||||||
if (!dependencyNode.targets.isEmpty() && dependencyNode2.targets.isEmpty()) {
|
if (!dependencyNode.targets.isEmpty() && dependencyNode2.targets.isEmpty()) {
|
||||||
StringBuilder O4 = a.O("\n");
|
StringBuilder R4 = a.R("\n");
|
||||||
O4.append(dependencyNode2.name());
|
R4.append(dependencyNode2.name());
|
||||||
O4.append(" -> ");
|
R4.append(" -> ");
|
||||||
O4.append(dependencyNode.name());
|
R4.append(dependencyNode.name());
|
||||||
O4.append("\n");
|
R4.append("\n");
|
||||||
generateDisplayNode = a.u(generateDisplayNode, O4.toString());
|
generateDisplayNode = a.v(generateDisplayNode, R4.toString());
|
||||||
} else if (dependencyNode.targets.isEmpty() && !dependencyNode2.targets.isEmpty()) {
|
} else if (dependencyNode.targets.isEmpty() && !dependencyNode2.targets.isEmpty()) {
|
||||||
StringBuilder O5 = a.O("\n");
|
StringBuilder R5 = a.R("\n");
|
||||||
O5.append(dependencyNode.name());
|
R5.append(dependencyNode.name());
|
||||||
O5.append(" -> ");
|
R5.append(" -> ");
|
||||||
O5.append(dependencyNode2.name());
|
R5.append(dependencyNode2.name());
|
||||||
O5.append("\n");
|
R5.append("\n");
|
||||||
generateDisplayNode = a.u(generateDisplayNode, O5.toString());
|
generateDisplayNode = a.v(generateDisplayNode, R5.toString());
|
||||||
}
|
}
|
||||||
} else if (verticalDimensionBehaviour == ConstraintWidget.DimensionBehaviour.MATCH_CONSTRAINT && widgetRun.widget.getDimensionRatio() > 0.0f) {
|
} else if (verticalDimensionBehaviour == ConstraintWidget.DimensionBehaviour.MATCH_CONSTRAINT && widgetRun.widget.getDimensionRatio() > 0.0f) {
|
||||||
widgetRun.widget.getDebugName();
|
widgetRun.widget.getDebugName();
|
||||||
|
@ -377,28 +377,28 @@ public class DependencyGraph {
|
||||||
|
|
||||||
private String generateDisplayNode(DependencyNode dependencyNode, boolean z2, String str) {
|
private String generateDisplayNode(DependencyNode dependencyNode, boolean z2, String str) {
|
||||||
for (DependencyNode dependencyNode2 : dependencyNode.targets) {
|
for (DependencyNode dependencyNode2 : dependencyNode.targets) {
|
||||||
StringBuilder O = a.O("\n");
|
StringBuilder R = a.R("\n");
|
||||||
O.append(dependencyNode.name());
|
R.append(dependencyNode.name());
|
||||||
StringBuilder S = a.S(O.toString(), " -> ");
|
StringBuilder V = a.V(R.toString(), " -> ");
|
||||||
S.append(dependencyNode2.name());
|
V.append(dependencyNode2.name());
|
||||||
String sb = S.toString();
|
String sb = V.toString();
|
||||||
if (dependencyNode.margin > 0 || z2 || (dependencyNode.run instanceof HelperReferences)) {
|
if (dependencyNode.margin > 0 || z2 || (dependencyNode.run instanceof HelperReferences)) {
|
||||||
String u = a.u(sb, "[");
|
String v = a.v(sb, "[");
|
||||||
if (dependencyNode.margin > 0) {
|
if (dependencyNode.margin > 0) {
|
||||||
u = a.z(a.S(u, "label=\""), dependencyNode.margin, "\"");
|
v = a.A(a.V(v, "label=\""), dependencyNode.margin, "\"");
|
||||||
if (z2) {
|
if (z2) {
|
||||||
u = a.u(u, ",");
|
v = a.v(v, ",");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (z2) {
|
if (z2) {
|
||||||
u = a.u(u, " style=dashed ");
|
v = a.v(v, " style=dashed ");
|
||||||
}
|
}
|
||||||
if (dependencyNode.run instanceof HelperReferences) {
|
if (dependencyNode.run instanceof HelperReferences) {
|
||||||
u = a.u(u, " style=bold,color=gray ");
|
v = a.v(v, " style=bold,color=gray ");
|
||||||
}
|
}
|
||||||
sb = a.u(u, "]");
|
sb = a.v(v, "]");
|
||||||
}
|
}
|
||||||
str = a.u(str, a.u(sb, "\n"));
|
str = a.v(str, a.v(sb, "\n"));
|
||||||
}
|
}
|
||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
|
@ -441,59 +441,59 @@ public class DependencyGraph {
|
||||||
ConstraintWidget constraintWidget = widgetRun.widget;
|
ConstraintWidget constraintWidget = widgetRun.widget;
|
||||||
ConstraintWidget.DimensionBehaviour horizontalDimensionBehaviour = !z2 ? constraintWidget.getHorizontalDimensionBehaviour() : constraintWidget.getVerticalDimensionBehaviour();
|
ConstraintWidget.DimensionBehaviour horizontalDimensionBehaviour = !z2 ? constraintWidget.getHorizontalDimensionBehaviour() : constraintWidget.getVerticalDimensionBehaviour();
|
||||||
RunGroup runGroup = widgetRun.runGroup;
|
RunGroup runGroup = widgetRun.runGroup;
|
||||||
String u = a.u(a.u(a.u(!z2 ? a.u(debugName, "_HORIZONTAL") : a.u(debugName, "_VERTICAL"), " [shape=none, label=<"), "<TABLE BORDER=\"0\" CELLSPACING=\"0\" CELLPADDING=\"2\">"), " <TR>");
|
String v = a.v(a.v(a.v(!z2 ? a.v(debugName, "_HORIZONTAL") : a.v(debugName, "_VERTICAL"), " [shape=none, label=<"), "<TABLE BORDER=\"0\" CELLSPACING=\"0\" CELLPADDING=\"2\">"), " <TR>");
|
||||||
if (!z2) {
|
if (!z2) {
|
||||||
String u2 = a.u(u, " <TD ");
|
String v2 = a.v(v, " <TD ");
|
||||||
if (widgetRun.start.resolved) {
|
if (widgetRun.start.resolved) {
|
||||||
u2 = a.u(u2, " BGCOLOR=\"green\"");
|
v2 = a.v(v2, " BGCOLOR=\"green\"");
|
||||||
}
|
}
|
||||||
str = a.u(u2, " PORT=\"LEFT\" BORDER=\"1\">L</TD>");
|
str = a.v(v2, " PORT=\"LEFT\" BORDER=\"1\">L</TD>");
|
||||||
} else {
|
} else {
|
||||||
String u3 = a.u(u, " <TD ");
|
String v3 = a.v(v, " <TD ");
|
||||||
if (widgetRun.start.resolved) {
|
if (widgetRun.start.resolved) {
|
||||||
u3 = a.u(u3, " BGCOLOR=\"green\"");
|
v3 = a.v(v3, " BGCOLOR=\"green\"");
|
||||||
}
|
}
|
||||||
str = a.u(u3, " PORT=\"TOP\" BORDER=\"1\">T</TD>");
|
str = a.v(v3, " PORT=\"TOP\" BORDER=\"1\">T</TD>");
|
||||||
}
|
}
|
||||||
String u4 = a.u(str, " <TD BORDER=\"1\" ");
|
String v4 = a.v(str, " <TD BORDER=\"1\" ");
|
||||||
boolean z3 = widgetRun.dimension.resolved;
|
boolean z3 = widgetRun.dimension.resolved;
|
||||||
if (z3 && !widgetRun.widget.measured) {
|
if (z3 && !widgetRun.widget.measured) {
|
||||||
u4 = a.u(u4, " BGCOLOR=\"green\" ");
|
v4 = a.v(v4, " BGCOLOR=\"green\" ");
|
||||||
} else if (z3 && widgetRun.widget.measured) {
|
} else if (z3 && widgetRun.widget.measured) {
|
||||||
u4 = a.u(u4, " BGCOLOR=\"lightgray\" ");
|
v4 = a.v(v4, " BGCOLOR=\"lightgray\" ");
|
||||||
} else if (!z3 && widgetRun.widget.measured) {
|
} else if (!z3 && widgetRun.widget.measured) {
|
||||||
u4 = a.u(u4, " BGCOLOR=\"yellow\" ");
|
v4 = a.v(v4, " BGCOLOR=\"yellow\" ");
|
||||||
}
|
}
|
||||||
if (horizontalDimensionBehaviour == ConstraintWidget.DimensionBehaviour.MATCH_CONSTRAINT) {
|
if (horizontalDimensionBehaviour == ConstraintWidget.DimensionBehaviour.MATCH_CONSTRAINT) {
|
||||||
u4 = a.u(u4, "style=\"dashed\"");
|
v4 = a.v(v4, "style=\"dashed\"");
|
||||||
}
|
}
|
||||||
if (runGroup != null) {
|
if (runGroup != null) {
|
||||||
StringBuilder O = a.O(" [");
|
StringBuilder R = a.R(" [");
|
||||||
O.append(runGroup.groupIndex + 1);
|
R.append(runGroup.groupIndex + 1);
|
||||||
O.append(AutocompleteViewModel.COMMAND_DISCOVER_TOKEN);
|
R.append(AutocompleteViewModel.COMMAND_DISCOVER_TOKEN);
|
||||||
str2 = a.z(O, RunGroup.index, "]");
|
str2 = a.A(R, RunGroup.index, "]");
|
||||||
} else {
|
} else {
|
||||||
str2 = "";
|
str2 = "";
|
||||||
}
|
}
|
||||||
String str4 = u4 + ">" + debugName + str2 + " </TD>";
|
String str4 = v4 + ">" + debugName + str2 + " </TD>";
|
||||||
if (!z2) {
|
if (!z2) {
|
||||||
String u5 = a.u(str4, " <TD ");
|
String v5 = a.v(str4, " <TD ");
|
||||||
if (widgetRun.end.resolved) {
|
if (widgetRun.end.resolved) {
|
||||||
u5 = a.u(u5, " BGCOLOR=\"green\"");
|
v5 = a.v(v5, " BGCOLOR=\"green\"");
|
||||||
}
|
}
|
||||||
str3 = a.u(u5, " PORT=\"RIGHT\" BORDER=\"1\">R</TD>");
|
str3 = a.v(v5, " PORT=\"RIGHT\" BORDER=\"1\">R</TD>");
|
||||||
} else {
|
} else {
|
||||||
String u6 = a.u(str4, " <TD ");
|
String v6 = a.v(str4, " <TD ");
|
||||||
if ((widgetRun instanceof VerticalWidgetRun) && ((VerticalWidgetRun) widgetRun).baseline.resolved) {
|
if ((widgetRun instanceof VerticalWidgetRun) && ((VerticalWidgetRun) widgetRun).baseline.resolved) {
|
||||||
u6 = a.u(u6, " BGCOLOR=\"green\"");
|
v6 = a.v(v6, " BGCOLOR=\"green\"");
|
||||||
}
|
}
|
||||||
String u7 = a.u(a.u(u6, " PORT=\"BASELINE\" BORDER=\"1\">b</TD>"), " <TD ");
|
String v7 = a.v(a.v(v6, " PORT=\"BASELINE\" BORDER=\"1\">b</TD>"), " <TD ");
|
||||||
if (widgetRun.end.resolved) {
|
if (widgetRun.end.resolved) {
|
||||||
u7 = a.u(u7, " BGCOLOR=\"green\"");
|
v7 = a.v(v7, " BGCOLOR=\"green\"");
|
||||||
}
|
}
|
||||||
str3 = a.u(u7, " PORT=\"BOTTOM\" BORDER=\"1\">B</TD>");
|
str3 = a.v(v7, " PORT=\"BOTTOM\" BORDER=\"1\">B</TD>");
|
||||||
}
|
}
|
||||||
return a.u(a.u(str3, " </TR></TABLE>"), ">];\n");
|
return a.v(a.v(str3, " </TR></TABLE>"), ">];\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
public void buildGraph() {
|
public void buildGraph() {
|
||||||
|
|
|
@ -51,9 +51,9 @@ public class DependencyNode implements Dependency {
|
||||||
public String name() {
|
public String name() {
|
||||||
String debugName = this.run.widget.getDebugName();
|
String debugName = this.run.widget.getDebugName();
|
||||||
Type type = this.type;
|
Type type = this.type;
|
||||||
StringBuilder S = a.S((type == Type.LEFT || type == Type.RIGHT) ? a.u(debugName, "_HORIZONTAL") : a.u(debugName, "_VERTICAL"), ":");
|
StringBuilder V = a.V((type == Type.LEFT || type == Type.RIGHT) ? a.v(debugName, "_HORIZONTAL") : a.v(debugName, "_VERTICAL"), ":");
|
||||||
S.append(this.type.name());
|
V.append(this.type.name());
|
||||||
return S.toString();
|
return V.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void resolve(int i) {
|
public void resolve(int i) {
|
||||||
|
|
|
@ -257,9 +257,9 @@ public class HorizontalWidgetRun extends WidgetRun {
|
||||||
}
|
}
|
||||||
|
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder O = a.O("HorizontalRun ");
|
StringBuilder R = a.R("HorizontalRun ");
|
||||||
O.append(this.widget.getDebugName());
|
R.append(this.widget.getDebugName());
|
||||||
return O.toString();
|
return R.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* JADX WARNING: Code restructure failed: missing block: B:103:0x02ba, code lost:
|
/* JADX WARNING: Code restructure failed: missing block: B:103:0x02ba, code lost:
|
||||||
|
|
|
@ -283,9 +283,9 @@ public class VerticalWidgetRun extends WidgetRun {
|
||||||
}
|
}
|
||||||
|
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder O = a.O("VerticalRun ");
|
StringBuilder R = a.R("VerticalRun ");
|
||||||
O.append(this.widget.getDebugName());
|
R.append(this.widget.getDebugName());
|
||||||
return O.toString();
|
return R.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override // androidx.constraintlayout.solver.widgets.analyzer.WidgetRun, androidx.constraintlayout.solver.widgets.analyzer.Dependency
|
@Override // androidx.constraintlayout.solver.widgets.analyzer.WidgetRun, androidx.constraintlayout.solver.widgets.analyzer.Dependency
|
||||||
|
|
|
@ -200,13 +200,13 @@ public class WidgetGroup {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.append(getOrientationString());
|
sb.append(getOrientationString());
|
||||||
sb.append(" [");
|
sb.append(" [");
|
||||||
String z2 = a.z(sb, this.f26id, "] <");
|
String A = a.A(sb, this.f26id, "] <");
|
||||||
Iterator<ConstraintWidget> it = this.widgets.iterator();
|
Iterator<ConstraintWidget> it = this.widgets.iterator();
|
||||||
while (it.hasNext()) {
|
while (it.hasNext()) {
|
||||||
StringBuilder S = a.S(z2, " ");
|
StringBuilder V = a.V(A, " ");
|
||||||
S.append(it.next().getDebugName());
|
V.append(it.next().getDebugName());
|
||||||
z2 = S.toString();
|
A = V.toString();
|
||||||
}
|
}
|
||||||
return a.u(z2, " >");
|
return a.v(A, " >");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -174,32 +174,32 @@ public class ConstraintAttribute {
|
||||||
Class<?> cls = view.getClass();
|
Class<?> cls = view.getClass();
|
||||||
for (String str : hashMap.keySet()) {
|
for (String str : hashMap.keySet()) {
|
||||||
ConstraintAttribute constraintAttribute = hashMap.get(str);
|
ConstraintAttribute constraintAttribute = hashMap.get(str);
|
||||||
String u = a.u("set", str);
|
String v = a.v("set", str);
|
||||||
try {
|
try {
|
||||||
switch (constraintAttribute.mType.ordinal()) {
|
switch (constraintAttribute.mType.ordinal()) {
|
||||||
case 0:
|
case 0:
|
||||||
cls.getMethod(u, Integer.TYPE).invoke(view, Integer.valueOf(constraintAttribute.mIntegerValue));
|
cls.getMethod(v, Integer.TYPE).invoke(view, Integer.valueOf(constraintAttribute.mIntegerValue));
|
||||||
continue;
|
continue;
|
||||||
case 1:
|
case 1:
|
||||||
cls.getMethod(u, Float.TYPE).invoke(view, Float.valueOf(constraintAttribute.mFloatValue));
|
cls.getMethod(v, Float.TYPE).invoke(view, Float.valueOf(constraintAttribute.mFloatValue));
|
||||||
continue;
|
continue;
|
||||||
case 2:
|
case 2:
|
||||||
cls.getMethod(u, Integer.TYPE).invoke(view, Integer.valueOf(constraintAttribute.mColorValue));
|
cls.getMethod(v, Integer.TYPE).invoke(view, Integer.valueOf(constraintAttribute.mColorValue));
|
||||||
continue;
|
continue;
|
||||||
case 3:
|
case 3:
|
||||||
Method method = cls.getMethod(u, Drawable.class);
|
Method method = cls.getMethod(v, Drawable.class);
|
||||||
ColorDrawable colorDrawable = new ColorDrawable();
|
ColorDrawable colorDrawable = new ColorDrawable();
|
||||||
colorDrawable.setColor(constraintAttribute.mColorValue);
|
colorDrawable.setColor(constraintAttribute.mColorValue);
|
||||||
method.invoke(view, colorDrawable);
|
method.invoke(view, colorDrawable);
|
||||||
continue;
|
continue;
|
||||||
case 4:
|
case 4:
|
||||||
cls.getMethod(u, CharSequence.class).invoke(view, constraintAttribute.mStringValue);
|
cls.getMethod(v, CharSequence.class).invoke(view, constraintAttribute.mStringValue);
|
||||||
continue;
|
continue;
|
||||||
case 5:
|
case 5:
|
||||||
cls.getMethod(u, Boolean.TYPE).invoke(view, Boolean.valueOf(constraintAttribute.mBooleanValue));
|
cls.getMethod(v, Boolean.TYPE).invoke(view, Boolean.valueOf(constraintAttribute.mBooleanValue));
|
||||||
continue;
|
continue;
|
||||||
case 6:
|
case 6:
|
||||||
cls.getMethod(u, Float.TYPE).invoke(view, Float.valueOf(constraintAttribute.mFloatValue));
|
cls.getMethod(v, Float.TYPE).invoke(view, Float.valueOf(constraintAttribute.mFloatValue));
|
||||||
continue;
|
continue;
|
||||||
default:
|
default:
|
||||||
continue;
|
continue;
|
||||||
|
@ -210,17 +210,17 @@ public class ConstraintAttribute {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.append(cls.getName());
|
sb.append(cls.getName());
|
||||||
sb.append(" must have a method ");
|
sb.append(" must have a method ");
|
||||||
sb.append(u);
|
sb.append(v);
|
||||||
Log.e(TAG, sb.toString());
|
Log.e(TAG, sb.toString());
|
||||||
} catch (IllegalAccessException e2) {
|
} catch (IllegalAccessException e2) {
|
||||||
StringBuilder U = a.U(" Custom Attribute \"", str, "\" not found on ");
|
StringBuilder W = a.W(" Custom Attribute \"", str, "\" not found on ");
|
||||||
U.append(cls.getName());
|
W.append(cls.getName());
|
||||||
Log.e(TAG, U.toString());
|
Log.e(TAG, W.toString());
|
||||||
e2.printStackTrace();
|
e2.printStackTrace();
|
||||||
} catch (InvocationTargetException e3) {
|
} catch (InvocationTargetException e3) {
|
||||||
StringBuilder U2 = a.U(" Custom Attribute \"", str, "\" not found on ");
|
StringBuilder W2 = a.W(" Custom Attribute \"", str, "\" not found on ");
|
||||||
U2.append(cls.getName());
|
W2.append(cls.getName());
|
||||||
Log.e(TAG, U2.toString());
|
Log.e(TAG, W2.toString());
|
||||||
e3.printStackTrace();
|
e3.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -329,9 +329,9 @@ public class ConstraintAttribute {
|
||||||
*/
|
*/
|
||||||
public void setInterpolatedValue(View view, float[] fArr) {
|
public void setInterpolatedValue(View view, float[] fArr) {
|
||||||
Class<?> cls = view.getClass();
|
Class<?> cls = view.getClass();
|
||||||
StringBuilder O = a.O("set");
|
StringBuilder R = a.R("set");
|
||||||
O.append(this.mName);
|
R.append(this.mName);
|
||||||
String sb = O.toString();
|
String sb = R.toString();
|
||||||
try {
|
try {
|
||||||
boolean z2 = true;
|
boolean z2 = true;
|
||||||
switch (this.mType.ordinal()) {
|
switch (this.mType.ordinal()) {
|
||||||
|
@ -370,16 +370,16 @@ public class ConstraintAttribute {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} catch (NoSuchMethodException e) {
|
} catch (NoSuchMethodException e) {
|
||||||
StringBuilder U = a.U("no method ", sb, "on View \"");
|
StringBuilder W = a.W("no method ", sb, "on View \"");
|
||||||
U.append(Debug.getName(view));
|
W.append(Debug.getName(view));
|
||||||
U.append("\"");
|
W.append("\"");
|
||||||
Log.e(TAG, U.toString());
|
Log.e(TAG, W.toString());
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
} catch (IllegalAccessException e2) {
|
} catch (IllegalAccessException e2) {
|
||||||
StringBuilder U2 = a.U("cannot access method ", sb, "on View \"");
|
StringBuilder W2 = a.W("cannot access method ", sb, "on View \"");
|
||||||
U2.append(Debug.getName(view));
|
W2.append(Debug.getName(view));
|
||||||
U2.append("\"");
|
W2.append("\"");
|
||||||
Log.e(TAG, U2.toString());
|
Log.e(TAG, W2.toString());
|
||||||
e2.printStackTrace();
|
e2.printStackTrace();
|
||||||
} catch (InvocationTargetException e3) {
|
} catch (InvocationTargetException e3) {
|
||||||
e3.printStackTrace();
|
e3.printStackTrace();
|
||||||
|
|
|
@ -109,10 +109,10 @@ public abstract class ConstraintHelper extends View {
|
||||||
ViewGroup.LayoutParams layoutParams = childAt.getLayoutParams();
|
ViewGroup.LayoutParams layoutParams = childAt.getLayoutParams();
|
||||||
if ((layoutParams instanceof ConstraintLayout.LayoutParams) && trim.equals(((ConstraintLayout.LayoutParams) layoutParams).constraintTag)) {
|
if ((layoutParams instanceof ConstraintLayout.LayoutParams) && trim.equals(((ConstraintLayout.LayoutParams) layoutParams).constraintTag)) {
|
||||||
if (childAt.getId() == -1) {
|
if (childAt.getId() == -1) {
|
||||||
StringBuilder O = a.O("to use ConstraintTag view ");
|
StringBuilder R = a.R("to use ConstraintTag view ");
|
||||||
O.append(childAt.getClass().getSimpleName());
|
R.append(childAt.getClass().getSimpleName());
|
||||||
O.append(" must have an ID");
|
R.append(" must have an ID");
|
||||||
Log.w("ConstraintHelper", O.toString());
|
Log.w("ConstraintHelper", R.toString());
|
||||||
} else {
|
} else {
|
||||||
addRscID(childAt.getId());
|
addRscID(childAt.getId());
|
||||||
}
|
}
|
||||||
|
|
|
@ -181,7 +181,7 @@ public class ConstraintProperties {
|
||||||
layoutParams2.leftToRight = i2;
|
layoutParams2.leftToRight = i2;
|
||||||
layoutParams2.leftToLeft = -1;
|
layoutParams2.leftToLeft = -1;
|
||||||
} else {
|
} else {
|
||||||
throw new IllegalArgumentException(a.G(a.O("Left to "), sideToString(i3), " undefined"));
|
throw new IllegalArgumentException(a.H(a.R("Left to "), sideToString(i3), " undefined"));
|
||||||
}
|
}
|
||||||
((ViewGroup.MarginLayoutParams) this.mParams).leftMargin = i4;
|
((ViewGroup.MarginLayoutParams) this.mParams).leftMargin = i4;
|
||||||
break;
|
break;
|
||||||
|
@ -195,7 +195,7 @@ public class ConstraintProperties {
|
||||||
layoutParams4.rightToRight = i2;
|
layoutParams4.rightToRight = i2;
|
||||||
layoutParams4.rightToLeft = -1;
|
layoutParams4.rightToLeft = -1;
|
||||||
} else {
|
} else {
|
||||||
throw new IllegalArgumentException(a.G(a.O("right to "), sideToString(i3), " undefined"));
|
throw new IllegalArgumentException(a.H(a.R("right to "), sideToString(i3), " undefined"));
|
||||||
}
|
}
|
||||||
((ViewGroup.MarginLayoutParams) this.mParams).rightMargin = i4;
|
((ViewGroup.MarginLayoutParams) this.mParams).rightMargin = i4;
|
||||||
break;
|
break;
|
||||||
|
@ -211,7 +211,7 @@ public class ConstraintProperties {
|
||||||
layoutParams6.topToTop = -1;
|
layoutParams6.topToTop = -1;
|
||||||
layoutParams6.baselineToBaseline = -1;
|
layoutParams6.baselineToBaseline = -1;
|
||||||
} else {
|
} else {
|
||||||
throw new IllegalArgumentException(a.G(a.O("right to "), sideToString(i3), " undefined"));
|
throw new IllegalArgumentException(a.H(a.R("right to "), sideToString(i3), " undefined"));
|
||||||
}
|
}
|
||||||
((ViewGroup.MarginLayoutParams) this.mParams).topMargin = i4;
|
((ViewGroup.MarginLayoutParams) this.mParams).topMargin = i4;
|
||||||
break;
|
break;
|
||||||
|
@ -227,7 +227,7 @@ public class ConstraintProperties {
|
||||||
layoutParams8.bottomToBottom = -1;
|
layoutParams8.bottomToBottom = -1;
|
||||||
layoutParams8.baselineToBaseline = -1;
|
layoutParams8.baselineToBaseline = -1;
|
||||||
} else {
|
} else {
|
||||||
throw new IllegalArgumentException(a.G(a.O("right to "), sideToString(i3), " undefined"));
|
throw new IllegalArgumentException(a.H(a.R("right to "), sideToString(i3), " undefined"));
|
||||||
}
|
}
|
||||||
((ViewGroup.MarginLayoutParams) this.mParams).bottomMargin = i4;
|
((ViewGroup.MarginLayoutParams) this.mParams).bottomMargin = i4;
|
||||||
break;
|
break;
|
||||||
|
@ -241,7 +241,7 @@ public class ConstraintProperties {
|
||||||
layoutParams9.topToBottom = -1;
|
layoutParams9.topToBottom = -1;
|
||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
throw new IllegalArgumentException(a.G(a.O("right to "), sideToString(i3), " undefined"));
|
throw new IllegalArgumentException(a.H(a.R("right to "), sideToString(i3), " undefined"));
|
||||||
}
|
}
|
||||||
case 6:
|
case 6:
|
||||||
if (i3 == 6) {
|
if (i3 == 6) {
|
||||||
|
@ -253,7 +253,7 @@ public class ConstraintProperties {
|
||||||
layoutParams11.startToEnd = i2;
|
layoutParams11.startToEnd = i2;
|
||||||
layoutParams11.startToStart = -1;
|
layoutParams11.startToStart = -1;
|
||||||
} else {
|
} else {
|
||||||
throw new IllegalArgumentException(a.G(a.O("right to "), sideToString(i3), " undefined"));
|
throw new IllegalArgumentException(a.H(a.R("right to "), sideToString(i3), " undefined"));
|
||||||
}
|
}
|
||||||
this.mParams.setMarginStart(i4);
|
this.mParams.setMarginStart(i4);
|
||||||
break;
|
break;
|
||||||
|
@ -267,7 +267,7 @@ public class ConstraintProperties {
|
||||||
layoutParams13.endToStart = i2;
|
layoutParams13.endToStart = i2;
|
||||||
layoutParams13.endToEnd = -1;
|
layoutParams13.endToEnd = -1;
|
||||||
} else {
|
} else {
|
||||||
throw new IllegalArgumentException(a.G(a.O("right to "), sideToString(i3), " undefined"));
|
throw new IllegalArgumentException(a.H(a.R("right to "), sideToString(i3), " undefined"));
|
||||||
}
|
}
|
||||||
this.mParams.setMarginEnd(i4);
|
this.mParams.setMarginEnd(i4);
|
||||||
break;
|
break;
|
||||||
|
@ -275,7 +275,7 @@ public class ConstraintProperties {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.append(sideToString(i));
|
sb.append(sideToString(i));
|
||||||
sb.append(" to ");
|
sb.append(" to ");
|
||||||
throw new IllegalArgumentException(a.G(sb, sideToString(i3), " unknown"));
|
throw new IllegalArgumentException(a.H(sb, sideToString(i3), " unknown"));
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
|
@ -287,9 +287,9 @@ public class ConstraintSet {
|
||||||
if (constraintAttribute.getType() == attributeType) {
|
if (constraintAttribute.getType() == attributeType) {
|
||||||
return constraintAttribute;
|
return constraintAttribute;
|
||||||
}
|
}
|
||||||
StringBuilder O = a.O("ConstraintAttribute is already a ");
|
StringBuilder R = a.R("ConstraintAttribute is already a ");
|
||||||
O.append(constraintAttribute.getType().name());
|
R.append(constraintAttribute.getType().name());
|
||||||
throw new IllegalArgumentException(O.toString());
|
throw new IllegalArgumentException(R.toString());
|
||||||
}
|
}
|
||||||
ConstraintAttribute constraintAttribute2 = new ConstraintAttribute(str, attributeType);
|
ConstraintAttribute constraintAttribute2 = new ConstraintAttribute(str, attributeType);
|
||||||
this.mCustomConstraints.put(str, constraintAttribute2);
|
this.mCustomConstraints.put(str, constraintAttribute2);
|
||||||
|
@ -857,21 +857,21 @@ public class ConstraintSet {
|
||||||
this.mBarrierAllowsGoneWidgets = obtainStyledAttributes.getBoolean(index, this.mBarrierAllowsGoneWidgets);
|
this.mBarrierAllowsGoneWidgets = obtainStyledAttributes.getBoolean(index, this.mBarrierAllowsGoneWidgets);
|
||||||
continue;
|
continue;
|
||||||
case 76:
|
case 76:
|
||||||
StringBuilder O = a.O("unused attribute 0x");
|
StringBuilder R = a.R("unused attribute 0x");
|
||||||
O.append(Integer.toHexString(index));
|
R.append(Integer.toHexString(index));
|
||||||
O.append(" ");
|
R.append(" ");
|
||||||
O.append(mapToConstant.get(index));
|
R.append(mapToConstant.get(index));
|
||||||
Log.w(ConstraintSet.TAG, O.toString());
|
Log.w(ConstraintSet.TAG, R.toString());
|
||||||
continue;
|
continue;
|
||||||
case 77:
|
case 77:
|
||||||
this.mConstraintTag = obtainStyledAttributes.getString(index);
|
this.mConstraintTag = obtainStyledAttributes.getString(index);
|
||||||
continue;
|
continue;
|
||||||
default:
|
default:
|
||||||
StringBuilder O2 = a.O("Unknown attribute 0x");
|
StringBuilder R2 = a.R("Unknown attribute 0x");
|
||||||
O2.append(Integer.toHexString(index));
|
R2.append(Integer.toHexString(index));
|
||||||
O2.append(" ");
|
R2.append(" ");
|
||||||
O2.append(mapToConstant.get(index));
|
R2.append(mapToConstant.get(index));
|
||||||
Log.w(ConstraintSet.TAG, O2.toString());
|
Log.w(ConstraintSet.TAG, R2.toString());
|
||||||
continue;
|
continue;
|
||||||
continue;
|
continue;
|
||||||
continue;
|
continue;
|
||||||
|
@ -1207,9 +1207,9 @@ public class ConstraintSet {
|
||||||
if (this.mSavedAttributes.containsKey(strArr[i])) {
|
if (this.mSavedAttributes.containsKey(strArr[i])) {
|
||||||
ConstraintAttribute constraintAttribute = this.mSavedAttributes.get(strArr[i]);
|
ConstraintAttribute constraintAttribute = this.mSavedAttributes.get(strArr[i]);
|
||||||
if (constraintAttribute.getType() != attributeType) {
|
if (constraintAttribute.getType() != attributeType) {
|
||||||
StringBuilder O = a.O("ConstraintAttribute is already a ");
|
StringBuilder R = a.R("ConstraintAttribute is already a ");
|
||||||
O.append(constraintAttribute.getType().name());
|
R.append(constraintAttribute.getType().name());
|
||||||
throw new IllegalArgumentException(O.toString());
|
throw new IllegalArgumentException(R.toString());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.mSavedAttributes.put(strArr[i], new ConstraintAttribute(strArr[i], attributeType));
|
this.mSavedAttributes.put(strArr[i], new ConstraintAttribute(strArr[i], attributeType));
|
||||||
|
@ -1624,18 +1624,18 @@ public class ConstraintSet {
|
||||||
layout53.constrainedHeight = typedArray.getBoolean(index, layout53.constrainedHeight);
|
layout53.constrainedHeight = typedArray.getBoolean(index, layout53.constrainedHeight);
|
||||||
break;
|
break;
|
||||||
case 82:
|
case 82:
|
||||||
StringBuilder O = a.O("unused attribute 0x");
|
StringBuilder R = a.R("unused attribute 0x");
|
||||||
O.append(Integer.toHexString(index));
|
R.append(Integer.toHexString(index));
|
||||||
O.append(" ");
|
R.append(" ");
|
||||||
O.append(mapToConstant.get(index));
|
R.append(mapToConstant.get(index));
|
||||||
Log.w(TAG, O.toString());
|
Log.w(TAG, R.toString());
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
StringBuilder O2 = a.O("Unknown attribute 0x");
|
StringBuilder R2 = a.R("Unknown attribute 0x");
|
||||||
O2.append(Integer.toHexString(index));
|
R2.append(Integer.toHexString(index));
|
||||||
O2.append(" ");
|
R2.append(" ");
|
||||||
O2.append(mapToConstant.get(index));
|
R2.append(mapToConstant.get(index));
|
||||||
Log.w(TAG, O2.toString());
|
Log.w(TAG, R2.toString());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1734,9 +1734,9 @@ public class ConstraintSet {
|
||||||
View childAt = constraintLayout.getChildAt(i);
|
View childAt = constraintLayout.getChildAt(i);
|
||||||
int id2 = childAt.getId();
|
int id2 = childAt.getId();
|
||||||
if (!this.mConstraints.containsKey(Integer.valueOf(id2))) {
|
if (!this.mConstraints.containsKey(Integer.valueOf(id2))) {
|
||||||
StringBuilder O = a.O("id unknown ");
|
StringBuilder R = a.R("id unknown ");
|
||||||
O.append(Debug.getName(childAt));
|
R.append(Debug.getName(childAt));
|
||||||
Log.v(TAG, O.toString());
|
Log.v(TAG, R.toString());
|
||||||
} else if (this.mForceId && id2 == -1) {
|
} else if (this.mForceId && id2 == -1) {
|
||||||
throw new RuntimeException("All children of ConstraintLayout must have ids to use ConstraintSet");
|
throw new RuntimeException("All children of ConstraintLayout must have ids to use ConstraintSet");
|
||||||
} else if (this.mConstraints.containsKey(Integer.valueOf(id2))) {
|
} else if (this.mConstraints.containsKey(Integer.valueOf(id2))) {
|
||||||
|
@ -1768,9 +1768,9 @@ public class ConstraintSet {
|
||||||
View childAt = constraintLayout.getChildAt(i);
|
View childAt = constraintLayout.getChildAt(i);
|
||||||
int id2 = childAt.getId();
|
int id2 = childAt.getId();
|
||||||
if (!this.mConstraints.containsKey(Integer.valueOf(id2))) {
|
if (!this.mConstraints.containsKey(Integer.valueOf(id2))) {
|
||||||
StringBuilder O = a.O("id unknown ");
|
StringBuilder R = a.R("id unknown ");
|
||||||
O.append(Debug.getName(childAt));
|
R.append(Debug.getName(childAt));
|
||||||
Log.w(TAG, O.toString());
|
Log.w(TAG, R.toString());
|
||||||
} else if (this.mForceId && id2 == -1) {
|
} else if (this.mForceId && id2 == -1) {
|
||||||
throw new RuntimeException("All children of ConstraintLayout must have ids to use ConstraintSet");
|
throw new RuntimeException("All children of ConstraintLayout must have ids to use ConstraintSet");
|
||||||
} else if (id2 != -1) {
|
} else if (id2 != -1) {
|
||||||
|
@ -2103,7 +2103,7 @@ public class ConstraintSet {
|
||||||
layout2.leftToLeft = -1;
|
layout2.leftToLeft = -1;
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
throw new IllegalArgumentException(a.G(a.O("left to "), sideToString(i4), " undefined"));
|
throw new IllegalArgumentException(a.H(a.R("left to "), sideToString(i4), " undefined"));
|
||||||
}
|
}
|
||||||
case 2:
|
case 2:
|
||||||
if (i4 == 1) {
|
if (i4 == 1) {
|
||||||
|
@ -2117,7 +2117,7 @@ public class ConstraintSet {
|
||||||
layout4.rightToLeft = -1;
|
layout4.rightToLeft = -1;
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
throw new IllegalArgumentException(a.G(a.O("right to "), sideToString(i4), " undefined"));
|
throw new IllegalArgumentException(a.H(a.R("right to "), sideToString(i4), " undefined"));
|
||||||
}
|
}
|
||||||
case 3:
|
case 3:
|
||||||
if (i4 == 3) {
|
if (i4 == 3) {
|
||||||
|
@ -2133,7 +2133,7 @@ public class ConstraintSet {
|
||||||
layout6.baselineToBaseline = -1;
|
layout6.baselineToBaseline = -1;
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
throw new IllegalArgumentException(a.G(a.O("right to "), sideToString(i4), " undefined"));
|
throw new IllegalArgumentException(a.H(a.R("right to "), sideToString(i4), " undefined"));
|
||||||
}
|
}
|
||||||
case 4:
|
case 4:
|
||||||
if (i4 == 4) {
|
if (i4 == 4) {
|
||||||
|
@ -2149,7 +2149,7 @@ public class ConstraintSet {
|
||||||
layout8.baselineToBaseline = -1;
|
layout8.baselineToBaseline = -1;
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
throw new IllegalArgumentException(a.G(a.O("right to "), sideToString(i4), " undefined"));
|
throw new IllegalArgumentException(a.H(a.R("right to "), sideToString(i4), " undefined"));
|
||||||
}
|
}
|
||||||
case 5:
|
case 5:
|
||||||
if (i4 == 5) {
|
if (i4 == 5) {
|
||||||
|
@ -2161,7 +2161,7 @@ public class ConstraintSet {
|
||||||
layout9.topToBottom = -1;
|
layout9.topToBottom = -1;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
throw new IllegalArgumentException(a.G(a.O("right to "), sideToString(i4), " undefined"));
|
throw new IllegalArgumentException(a.H(a.R("right to "), sideToString(i4), " undefined"));
|
||||||
case 6:
|
case 6:
|
||||||
if (i4 == 6) {
|
if (i4 == 6) {
|
||||||
Layout layout10 = constraint.layout;
|
Layout layout10 = constraint.layout;
|
||||||
|
@ -2174,7 +2174,7 @@ public class ConstraintSet {
|
||||||
layout11.startToStart = -1;
|
layout11.startToStart = -1;
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
throw new IllegalArgumentException(a.G(a.O("right to "), sideToString(i4), " undefined"));
|
throw new IllegalArgumentException(a.H(a.R("right to "), sideToString(i4), " undefined"));
|
||||||
}
|
}
|
||||||
case 7:
|
case 7:
|
||||||
if (i4 == 7) {
|
if (i4 == 7) {
|
||||||
|
@ -2188,13 +2188,13 @@ public class ConstraintSet {
|
||||||
layout13.endToEnd = -1;
|
layout13.endToEnd = -1;
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
throw new IllegalArgumentException(a.G(a.O("right to "), sideToString(i4), " undefined"));
|
throw new IllegalArgumentException(a.H(a.R("right to "), sideToString(i4), " undefined"));
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.append(sideToString(i2));
|
sb.append(sideToString(i2));
|
||||||
sb.append(" to ");
|
sb.append(" to ");
|
||||||
throw new IllegalArgumentException(a.G(sb, sideToString(i4), " unknown"));
|
throw new IllegalArgumentException(a.H(sb, sideToString(i4), " unknown"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2214,7 +2214,7 @@ public class ConstraintSet {
|
||||||
layout2.leftToRight = i3;
|
layout2.leftToRight = i3;
|
||||||
layout2.leftToLeft = -1;
|
layout2.leftToLeft = -1;
|
||||||
} else {
|
} else {
|
||||||
throw new IllegalArgumentException(a.G(a.O("Left to "), sideToString(i4), " undefined"));
|
throw new IllegalArgumentException(a.H(a.R("Left to "), sideToString(i4), " undefined"));
|
||||||
}
|
}
|
||||||
constraint.layout.leftMargin = i5;
|
constraint.layout.leftMargin = i5;
|
||||||
return;
|
return;
|
||||||
|
@ -2228,7 +2228,7 @@ public class ConstraintSet {
|
||||||
layout4.rightToRight = i3;
|
layout4.rightToRight = i3;
|
||||||
layout4.rightToLeft = -1;
|
layout4.rightToLeft = -1;
|
||||||
} else {
|
} else {
|
||||||
throw new IllegalArgumentException(a.G(a.O("right to "), sideToString(i4), " undefined"));
|
throw new IllegalArgumentException(a.H(a.R("right to "), sideToString(i4), " undefined"));
|
||||||
}
|
}
|
||||||
constraint.layout.rightMargin = i5;
|
constraint.layout.rightMargin = i5;
|
||||||
return;
|
return;
|
||||||
|
@ -2244,7 +2244,7 @@ public class ConstraintSet {
|
||||||
layout6.topToTop = -1;
|
layout6.topToTop = -1;
|
||||||
layout6.baselineToBaseline = -1;
|
layout6.baselineToBaseline = -1;
|
||||||
} else {
|
} else {
|
||||||
throw new IllegalArgumentException(a.G(a.O("right to "), sideToString(i4), " undefined"));
|
throw new IllegalArgumentException(a.H(a.R("right to "), sideToString(i4), " undefined"));
|
||||||
}
|
}
|
||||||
constraint.layout.topMargin = i5;
|
constraint.layout.topMargin = i5;
|
||||||
return;
|
return;
|
||||||
|
@ -2260,7 +2260,7 @@ public class ConstraintSet {
|
||||||
layout8.bottomToBottom = -1;
|
layout8.bottomToBottom = -1;
|
||||||
layout8.baselineToBaseline = -1;
|
layout8.baselineToBaseline = -1;
|
||||||
} else {
|
} else {
|
||||||
throw new IllegalArgumentException(a.G(a.O("right to "), sideToString(i4), " undefined"));
|
throw new IllegalArgumentException(a.H(a.R("right to "), sideToString(i4), " undefined"));
|
||||||
}
|
}
|
||||||
constraint.layout.bottomMargin = i5;
|
constraint.layout.bottomMargin = i5;
|
||||||
return;
|
return;
|
||||||
|
@ -2274,7 +2274,7 @@ public class ConstraintSet {
|
||||||
layout9.topToBottom = -1;
|
layout9.topToBottom = -1;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
throw new IllegalArgumentException(a.G(a.O("right to "), sideToString(i4), " undefined"));
|
throw new IllegalArgumentException(a.H(a.R("right to "), sideToString(i4), " undefined"));
|
||||||
case 6:
|
case 6:
|
||||||
if (i4 == 6) {
|
if (i4 == 6) {
|
||||||
Layout layout10 = constraint.layout;
|
Layout layout10 = constraint.layout;
|
||||||
|
@ -2285,7 +2285,7 @@ public class ConstraintSet {
|
||||||
layout11.startToEnd = i3;
|
layout11.startToEnd = i3;
|
||||||
layout11.startToStart = -1;
|
layout11.startToStart = -1;
|
||||||
} else {
|
} else {
|
||||||
throw new IllegalArgumentException(a.G(a.O("right to "), sideToString(i4), " undefined"));
|
throw new IllegalArgumentException(a.H(a.R("right to "), sideToString(i4), " undefined"));
|
||||||
}
|
}
|
||||||
constraint.layout.startMargin = i5;
|
constraint.layout.startMargin = i5;
|
||||||
return;
|
return;
|
||||||
|
@ -2299,7 +2299,7 @@ public class ConstraintSet {
|
||||||
layout13.endToStart = i3;
|
layout13.endToStart = i3;
|
||||||
layout13.endToEnd = -1;
|
layout13.endToEnd = -1;
|
||||||
} else {
|
} else {
|
||||||
throw new IllegalArgumentException(a.G(a.O("right to "), sideToString(i4), " undefined"));
|
throw new IllegalArgumentException(a.H(a.R("right to "), sideToString(i4), " undefined"));
|
||||||
}
|
}
|
||||||
constraint.layout.endMargin = i5;
|
constraint.layout.endMargin = i5;
|
||||||
return;
|
return;
|
||||||
|
@ -2307,7 +2307,7 @@ public class ConstraintSet {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.append(sideToString(i2));
|
sb.append(sideToString(i2));
|
||||||
sb.append(" to ");
|
sb.append(" to ");
|
||||||
throw new IllegalArgumentException(a.G(sb, sideToString(i4), " unknown"));
|
throw new IllegalArgumentException(a.H(sb, sideToString(i4), " unknown"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2669,7 +2669,7 @@ public class ConstraintSet {
|
||||||
for (int i = 0; i < split.length; i++) {
|
for (int i = 0; i < split.length; i++) {
|
||||||
String[] split2 = split[i].split("=");
|
String[] split2 = split[i].split("=");
|
||||||
if (split2.length != 2) {
|
if (split2.length != 2) {
|
||||||
a.m0(a.O(" Unable to parse "), split[i], TAG);
|
a.n0(a.R(" Unable to parse "), split[i], TAG);
|
||||||
} else {
|
} else {
|
||||||
Constraint.access$600(constraint, split2[0], Color.parseColor(split2[1]));
|
Constraint.access$600(constraint, split2[0], Color.parseColor(split2[1]));
|
||||||
}
|
}
|
||||||
|
@ -2681,7 +2681,7 @@ public class ConstraintSet {
|
||||||
for (int i = 0; i < split.length; i++) {
|
for (int i = 0; i < split.length; i++) {
|
||||||
String[] split2 = split[i].split("=");
|
String[] split2 = split[i].split("=");
|
||||||
if (split2.length != 2) {
|
if (split2.length != 2) {
|
||||||
a.m0(a.O(" Unable to parse "), split[i], TAG);
|
a.n0(a.R(" Unable to parse "), split[i], TAG);
|
||||||
} else {
|
} else {
|
||||||
Constraint.access$700(constraint, split2[0], Float.parseFloat(split2[1]));
|
Constraint.access$700(constraint, split2[0], Float.parseFloat(split2[1]));
|
||||||
}
|
}
|
||||||
|
@ -2693,7 +2693,7 @@ public class ConstraintSet {
|
||||||
for (int i = 0; i < split.length; i++) {
|
for (int i = 0; i < split.length; i++) {
|
||||||
String[] split2 = split[i].split("=");
|
String[] split2 = split[i].split("=");
|
||||||
if (split2.length != 2) {
|
if (split2.length != 2) {
|
||||||
a.m0(a.O(" Unable to parse "), split[i], TAG);
|
a.n0(a.R(" Unable to parse "), split[i], TAG);
|
||||||
} else {
|
} else {
|
||||||
Constraint.access$700(constraint, split2[0], (float) Integer.decode(split2[1]).intValue());
|
Constraint.access$700(constraint, split2[0], (float) Integer.decode(split2[1]).intValue());
|
||||||
}
|
}
|
||||||
|
@ -2704,7 +2704,7 @@ public class ConstraintSet {
|
||||||
String[] splitString = splitString(str);
|
String[] splitString = splitString(str);
|
||||||
for (int i = 0; i < splitString.length; i++) {
|
for (int i = 0; i < splitString.length; i++) {
|
||||||
String[] split = splitString[i].split("=");
|
String[] split = splitString[i].split("=");
|
||||||
a.m0(a.O(" Unable to parse "), splitString[i], TAG);
|
a.n0(a.R(" Unable to parse "), splitString[i], TAG);
|
||||||
Constraint.access$800(constraint, split[0], split[1]);
|
Constraint.access$800(constraint, split[0], split[1]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -379,11 +379,11 @@ public class CoordinatorLayout extends ViewGroup implements NestedScrollingParen
|
||||||
this.mAnchorDirectChild = null;
|
this.mAnchorDirectChild = null;
|
||||||
this.mAnchorView = null;
|
this.mAnchorView = null;
|
||||||
} else {
|
} else {
|
||||||
StringBuilder O = a.O("Could not find CoordinatorLayout descendant view with id ");
|
StringBuilder R = a.R("Could not find CoordinatorLayout descendant view with id ");
|
||||||
O.append(coordinatorLayout.getResources().getResourceName(this.mAnchorId));
|
R.append(coordinatorLayout.getResources().getResourceName(this.mAnchorId));
|
||||||
O.append(" to anchor view ");
|
R.append(" to anchor view ");
|
||||||
O.append(view);
|
R.append(view);
|
||||||
throw new IllegalStateException(O.toString());
|
throw new IllegalStateException(R.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -826,11 +826,11 @@ public class CoordinatorLayout extends ViewGroup implements NestedScrollingParen
|
||||||
if (behavior == null || !behavior.getInsetDodgeRect(this, view, acquireTempRect)) {
|
if (behavior == null || !behavior.getInsetDodgeRect(this, view, acquireTempRect)) {
|
||||||
acquireTempRect.set(acquireTempRect2);
|
acquireTempRect.set(acquireTempRect2);
|
||||||
} else if (!acquireTempRect2.contains(acquireTempRect)) {
|
} else if (!acquireTempRect2.contains(acquireTempRect)) {
|
||||||
StringBuilder O = a.O("Rect should be within the child's bounds. Rect:");
|
StringBuilder R = a.R("Rect should be within the child's bounds. Rect:");
|
||||||
O.append(acquireTempRect.toShortString());
|
R.append(acquireTempRect.toShortString());
|
||||||
O.append(" | Bounds:");
|
R.append(" | Bounds:");
|
||||||
O.append(acquireTempRect2.toShortString());
|
R.append(acquireTempRect2.toShortString());
|
||||||
throw new IllegalArgumentException(O.toString());
|
throw new IllegalArgumentException(R.toString());
|
||||||
}
|
}
|
||||||
releaseTempRect(acquireTempRect2);
|
releaseTempRect(acquireTempRect2);
|
||||||
if (acquireTempRect.isEmpty()) {
|
if (acquireTempRect.isEmpty()) {
|
||||||
|
@ -899,7 +899,7 @@ public class CoordinatorLayout extends ViewGroup implements NestedScrollingParen
|
||||||
}
|
}
|
||||||
return constructor.newInstance(context, attributeSet);
|
return constructor.newInstance(context, attributeSet);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new RuntimeException(a.u("Could not inflate Behavior subclass ", str), e);
|
throw new RuntimeException(a.v("Could not inflate Behavior subclass ", str), e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1257,10 +1257,10 @@ public class CoordinatorLayout extends ViewGroup implements NestedScrollingParen
|
||||||
try {
|
try {
|
||||||
layoutParams.setBehavior((Behavior) defaultBehavior.value().getDeclaredConstructor(new Class[0]).newInstance(new Object[0]));
|
layoutParams.setBehavior((Behavior) defaultBehavior.value().getDeclaredConstructor(new Class[0]).newInstance(new Object[0]));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
StringBuilder O = a.O("Default behavior class ");
|
StringBuilder R = a.R("Default behavior class ");
|
||||||
O.append(defaultBehavior.value().getName());
|
R.append(defaultBehavior.value().getName());
|
||||||
O.append(" could not be instantiated. Did you forget a default constructor?");
|
R.append(" could not be instantiated. Did you forget a default constructor?");
|
||||||
Log.e(TAG, O.toString(), e);
|
Log.e(TAG, R.toString(), e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
layoutParams.mBehaviorResolved = true;
|
layoutParams.mBehaviorResolved = true;
|
||||||
|
|
|
@ -28,27 +28,27 @@ public final class AccessibilityServiceInfoCompat {
|
||||||
|
|
||||||
@NonNull
|
@NonNull
|
||||||
public static String feedbackTypeToString(int i) {
|
public static String feedbackTypeToString(int i) {
|
||||||
StringBuilder O = a.O("[");
|
StringBuilder R = a.R("[");
|
||||||
while (i > 0) {
|
while (i > 0) {
|
||||||
int numberOfTrailingZeros = 1 << Integer.numberOfTrailingZeros(i);
|
int numberOfTrailingZeros = 1 << Integer.numberOfTrailingZeros(i);
|
||||||
i &= ~numberOfTrailingZeros;
|
i &= ~numberOfTrailingZeros;
|
||||||
if (O.length() > 1) {
|
if (R.length() > 1) {
|
||||||
O.append(", ");
|
R.append(", ");
|
||||||
}
|
}
|
||||||
if (numberOfTrailingZeros == 1) {
|
if (numberOfTrailingZeros == 1) {
|
||||||
O.append("FEEDBACK_SPOKEN");
|
R.append("FEEDBACK_SPOKEN");
|
||||||
} else if (numberOfTrailingZeros == 2) {
|
} else if (numberOfTrailingZeros == 2) {
|
||||||
O.append("FEEDBACK_HAPTIC");
|
R.append("FEEDBACK_HAPTIC");
|
||||||
} else if (numberOfTrailingZeros == 4) {
|
} else if (numberOfTrailingZeros == 4) {
|
||||||
O.append("FEEDBACK_AUDIBLE");
|
R.append("FEEDBACK_AUDIBLE");
|
||||||
} else if (numberOfTrailingZeros == 8) {
|
} else if (numberOfTrailingZeros == 8) {
|
||||||
O.append("FEEDBACK_VISUAL");
|
R.append("FEEDBACK_VISUAL");
|
||||||
} else if (numberOfTrailingZeros == 16) {
|
} else if (numberOfTrailingZeros == 16) {
|
||||||
O.append("FEEDBACK_GENERIC");
|
R.append("FEEDBACK_GENERIC");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
O.append("]");
|
R.append("]");
|
||||||
return O.toString();
|
return R.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
|
|
|
@ -220,7 +220,7 @@ public class ActivityCompat extends ContextCompat {
|
||||||
if (permissionCompatDelegate == null || !permissionCompatDelegate.requestPermissions(activity, strArr, i)) {
|
if (permissionCompatDelegate == null || !permissionCompatDelegate.requestPermissions(activity, strArr, i)) {
|
||||||
for (String str : strArr) {
|
for (String str : strArr) {
|
||||||
if (TextUtils.isEmpty(str)) {
|
if (TextUtils.isEmpty(str)) {
|
||||||
throw new IllegalArgumentException(a.G(a.O("Permission request for permissions "), Arrays.toString(strArr), " must not contain null or empty values"));
|
throw new IllegalArgumentException(a.H(a.R("Permission request for permissions "), Arrays.toString(strArr), " must not contain null or empty values"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Build.VERSION.SDK_INT >= 23) {
|
if (Build.VERSION.SDK_INT >= 23) {
|
||||||
|
|
|
@ -266,9 +266,9 @@ public abstract class JobIntentService extends Service {
|
||||||
this.mHasJobId = true;
|
this.mHasJobId = true;
|
||||||
this.mJobId = i;
|
this.mJobId = i;
|
||||||
} else if (this.mJobId != i) {
|
} else if (this.mJobId != i) {
|
||||||
StringBuilder P = a.P("Given job ID ", i, " is different than previous ");
|
StringBuilder S = a.S("Given job ID ", i, " is different than previous ");
|
||||||
P.append(this.mJobId);
|
S.append(this.mJobId);
|
||||||
throw new IllegalArgumentException(P.toString());
|
throw new IllegalArgumentException(S.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -99,10 +99,10 @@ public final class NavUtils {
|
||||||
navigateUpTo(activity, parentActivityIntent);
|
navigateUpTo(activity, parentActivityIntent);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
StringBuilder O = a.O("Activity ");
|
StringBuilder R = a.R("Activity ");
|
||||||
O.append(activity.getClass().getSimpleName());
|
R.append(activity.getClass().getSimpleName());
|
||||||
O.append(" does not have a parent activity name specified. (Did you forget to add the android.support.PARENT_ACTIVITY <meta-data> element in your manifest?)");
|
R.append(" does not have a parent activity name specified. (Did you forget to add the android.support.PARENT_ACTIVITY <meta-data> element in your manifest?)");
|
||||||
throw new IllegalArgumentException(O.toString());
|
throw new IllegalArgumentException(R.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void navigateUpTo(@NonNull Activity activity, @NonNull Intent intent) {
|
public static void navigateUpTo(@NonNull Activity activity, @NonNull Intent intent) {
|
||||||
|
|
|
@ -106,7 +106,7 @@ public final class NotificationManagerCompat {
|
||||||
sb.append(", tag:");
|
sb.append(", tag:");
|
||||||
sb.append(this.tag);
|
sb.append(this.tag);
|
||||||
sb.append(", all:");
|
sb.append(", all:");
|
||||||
return c.d.b.a.a.K(sb, this.all, "]");
|
return c.d.b.a.a.L(sb, this.all, "]");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -138,7 +138,7 @@ public final class NotificationManagerCompat {
|
||||||
sb.append(", id:");
|
sb.append(", id:");
|
||||||
sb.append(this.f28id);
|
sb.append(this.f28id);
|
||||||
sb.append(", tag:");
|
sb.append(", tag:");
|
||||||
return c.d.b.a.a.G(sb, this.tag, "]");
|
return c.d.b.a.a.H(sb, this.tag, "]");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -192,9 +192,9 @@ public final class NotificationManagerCompat {
|
||||||
if (bindService) {
|
if (bindService) {
|
||||||
listenerRecord.retryCount = 0;
|
listenerRecord.retryCount = 0;
|
||||||
} else {
|
} else {
|
||||||
StringBuilder O = c.d.b.a.a.O("Unable to bind to listener ");
|
StringBuilder R = c.d.b.a.a.R("Unable to bind to listener ");
|
||||||
O.append(listenerRecord.componentName);
|
R.append(listenerRecord.componentName);
|
||||||
Log.w(NotificationManagerCompat.TAG, O.toString());
|
Log.w(NotificationManagerCompat.TAG, R.toString());
|
||||||
this.mContext.unbindService(this);
|
this.mContext.unbindService(this);
|
||||||
}
|
}
|
||||||
return listenerRecord.bound;
|
return listenerRecord.bound;
|
||||||
|
@ -241,12 +241,12 @@ public final class NotificationManagerCompat {
|
||||||
|
|
||||||
private void processListenerQueue(ListenerRecord listenerRecord) {
|
private void processListenerQueue(ListenerRecord listenerRecord) {
|
||||||
if (Log.isLoggable(NotificationManagerCompat.TAG, 3)) {
|
if (Log.isLoggable(NotificationManagerCompat.TAG, 3)) {
|
||||||
StringBuilder O = c.d.b.a.a.O("Processing component ");
|
StringBuilder R = c.d.b.a.a.R("Processing component ");
|
||||||
O.append(listenerRecord.componentName);
|
R.append(listenerRecord.componentName);
|
||||||
O.append(", ");
|
R.append(", ");
|
||||||
O.append(listenerRecord.taskQueue.size());
|
R.append(listenerRecord.taskQueue.size());
|
||||||
O.append(" queued tasks");
|
R.append(" queued tasks");
|
||||||
Log.d(NotificationManagerCompat.TAG, O.toString());
|
Log.d(NotificationManagerCompat.TAG, R.toString());
|
||||||
}
|
}
|
||||||
if (!listenerRecord.taskQueue.isEmpty()) {
|
if (!listenerRecord.taskQueue.isEmpty()) {
|
||||||
if (!ensureServiceBound(listenerRecord) || listenerRecord.service == null) {
|
if (!ensureServiceBound(listenerRecord) || listenerRecord.service == null) {
|
||||||
|
@ -266,14 +266,14 @@ public final class NotificationManagerCompat {
|
||||||
listenerRecord.taskQueue.remove();
|
listenerRecord.taskQueue.remove();
|
||||||
} catch (DeadObjectException unused) {
|
} catch (DeadObjectException unused) {
|
||||||
if (Log.isLoggable(NotificationManagerCompat.TAG, 3)) {
|
if (Log.isLoggable(NotificationManagerCompat.TAG, 3)) {
|
||||||
StringBuilder O2 = c.d.b.a.a.O("Remote service has died: ");
|
StringBuilder R2 = c.d.b.a.a.R("Remote service has died: ");
|
||||||
O2.append(listenerRecord.componentName);
|
R2.append(listenerRecord.componentName);
|
||||||
Log.d(NotificationManagerCompat.TAG, O2.toString());
|
Log.d(NotificationManagerCompat.TAG, R2.toString());
|
||||||
}
|
}
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
StringBuilder O3 = c.d.b.a.a.O("RemoteException communicating with ");
|
StringBuilder R3 = c.d.b.a.a.R("RemoteException communicating with ");
|
||||||
O3.append(listenerRecord.componentName);
|
R3.append(listenerRecord.componentName);
|
||||||
Log.w(NotificationManagerCompat.TAG, O3.toString(), e);
|
Log.w(NotificationManagerCompat.TAG, R3.toString(), e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!listenerRecord.taskQueue.isEmpty()) {
|
if (!listenerRecord.taskQueue.isEmpty()) {
|
||||||
|
@ -287,14 +287,14 @@ public final class NotificationManagerCompat {
|
||||||
int i = listenerRecord.retryCount + 1;
|
int i = listenerRecord.retryCount + 1;
|
||||||
listenerRecord.retryCount = i;
|
listenerRecord.retryCount = i;
|
||||||
if (i > 6) {
|
if (i > 6) {
|
||||||
StringBuilder O = c.d.b.a.a.O("Giving up on delivering ");
|
StringBuilder R = c.d.b.a.a.R("Giving up on delivering ");
|
||||||
O.append(listenerRecord.taskQueue.size());
|
R.append(listenerRecord.taskQueue.size());
|
||||||
O.append(" tasks to ");
|
R.append(" tasks to ");
|
||||||
O.append(listenerRecord.componentName);
|
R.append(listenerRecord.componentName);
|
||||||
O.append(" after ");
|
R.append(" after ");
|
||||||
O.append(listenerRecord.retryCount);
|
R.append(listenerRecord.retryCount);
|
||||||
O.append(" retries");
|
R.append(" retries");
|
||||||
Log.w(NotificationManagerCompat.TAG, O.toString());
|
Log.w(NotificationManagerCompat.TAG, R.toString());
|
||||||
listenerRecord.taskQueue.clear();
|
listenerRecord.taskQueue.clear();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -338,9 +338,9 @@ public final class NotificationManagerCompat {
|
||||||
Map.Entry<ComponentName, ListenerRecord> next = it2.next();
|
Map.Entry<ComponentName, ListenerRecord> next = it2.next();
|
||||||
if (!hashSet.contains(next.getKey())) {
|
if (!hashSet.contains(next.getKey())) {
|
||||||
if (Log.isLoggable(NotificationManagerCompat.TAG, 3)) {
|
if (Log.isLoggable(NotificationManagerCompat.TAG, 3)) {
|
||||||
StringBuilder O = c.d.b.a.a.O("Removing listener record for ");
|
StringBuilder R = c.d.b.a.a.R("Removing listener record for ");
|
||||||
O.append(next.getKey());
|
R.append(next.getKey());
|
||||||
Log.d(NotificationManagerCompat.TAG, O.toString());
|
Log.d(NotificationManagerCompat.TAG, R.toString());
|
||||||
}
|
}
|
||||||
ensureServiceUnbound(next.getValue());
|
ensureServiceUnbound(next.getValue());
|
||||||
it2.remove();
|
it2.remove();
|
||||||
|
|
|
@ -160,9 +160,9 @@ public class Person {
|
||||||
if (this.mName == null) {
|
if (this.mName == null) {
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
StringBuilder O = a.O("name:");
|
StringBuilder R = a.R("name:");
|
||||||
O.append((Object) this.mName);
|
R.append((Object) this.mName);
|
||||||
return O.toString();
|
return R.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
@NonNull
|
@NonNull
|
||||||
|
|
|
@ -255,7 +255,7 @@ public final class RemoteInput {
|
||||||
}
|
}
|
||||||
|
|
||||||
private static String getExtraResultsKeyForData(String str) {
|
private static String getExtraResultsKeyForData(String str) {
|
||||||
return a.u(EXTRA_DATA_TYPE_RESULTS_DATA, str);
|
return a.v(EXTRA_DATA_TYPE_RESULTS_DATA, str);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Bundle getResultsFromIntent(Intent intent) {
|
public static Bundle getResultsFromIntent(Intent intent) {
|
||||||
|
|
|
@ -453,11 +453,11 @@ public final class ShareCompat {
|
||||||
if (i == 0) {
|
if (i == 0) {
|
||||||
return (Uri) this.mIntent.getParcelableExtra("android.intent.extra.STREAM");
|
return (Uri) this.mIntent.getParcelableExtra("android.intent.extra.STREAM");
|
||||||
}
|
}
|
||||||
StringBuilder O = a.O("Stream items available: ");
|
StringBuilder R = a.R("Stream items available: ");
|
||||||
O.append(getStreamCount());
|
R.append(getStreamCount());
|
||||||
O.append(" index requested: ");
|
R.append(" index requested: ");
|
||||||
O.append(i);
|
R.append(i);
|
||||||
throw new IndexOutOfBoundsException(O.toString());
|
throw new IndexOutOfBoundsException(R.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getStreamCount() {
|
public int getStreamCount() {
|
||||||
|
@ -507,16 +507,16 @@ public final class ShareCompat {
|
||||||
configureMenuItem(findItem, intentBuilder);
|
configureMenuItem(findItem, intentBuilder);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
throw new IllegalArgumentException(a.n("Could not find menu item with id ", i, " in the supplied menu"));
|
throw new IllegalArgumentException(a.q("Could not find menu item with id ", i, " in the supplied menu"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public static void configureMenuItem(@NonNull MenuItem menuItem, @NonNull IntentBuilder intentBuilder) {
|
public static void configureMenuItem(@NonNull MenuItem menuItem, @NonNull IntentBuilder intentBuilder) {
|
||||||
ActionProvider actionProvider = menuItem.getActionProvider();
|
ActionProvider actionProvider = menuItem.getActionProvider();
|
||||||
ShareActionProvider shareActionProvider = !(actionProvider instanceof ShareActionProvider) ? new ShareActionProvider(intentBuilder.getContext()) : (ShareActionProvider) actionProvider;
|
ShareActionProvider shareActionProvider = !(actionProvider instanceof ShareActionProvider) ? new ShareActionProvider(intentBuilder.getContext()) : (ShareActionProvider) actionProvider;
|
||||||
StringBuilder O = a.O(HISTORY_FILENAME_PREFIX);
|
StringBuilder R = a.R(HISTORY_FILENAME_PREFIX);
|
||||||
O.append(intentBuilder.getContext().getClass().getName());
|
R.append(intentBuilder.getContext().getClass().getName());
|
||||||
shareActionProvider.setShareHistoryFileName(O.toString());
|
shareActionProvider.setShareHistoryFileName(R.toString());
|
||||||
shareActionProvider.setShareIntent(intentBuilder.getIntent());
|
shareActionProvider.setShareIntent(intentBuilder.getIntent());
|
||||||
menuItem.setActionProvider(shareActionProvider);
|
menuItem.setActionProvider(shareActionProvider);
|
||||||
}
|
}
|
||||||
|
|
|
@ -108,7 +108,7 @@ public class FileProvider extends ContentProvider {
|
||||||
String substring = path2.endsWith(AutocompleteViewModel.COMMAND_DISCOVER_TOKEN) ? canonicalPath.substring(path2.length()) : canonicalPath.substring(path2.length() + 1);
|
String substring = path2.endsWith(AutocompleteViewModel.COMMAND_DISCOVER_TOKEN) ? canonicalPath.substring(path2.length()) : canonicalPath.substring(path2.length() + 1);
|
||||||
return new Uri.Builder().scheme("content").authority(this.mAuthority).encodedPath(Uri.encode(entry.getKey()) + MentionUtilsKt.SLASH_CHAR + Uri.encode(substring, AutocompleteViewModel.COMMAND_DISCOVER_TOKEN)).build();
|
return new Uri.Builder().scheme("content").authority(this.mAuthority).encodedPath(Uri.encode(entry.getKey()) + MentionUtilsKt.SLASH_CHAR + Uri.encode(substring, AutocompleteViewModel.COMMAND_DISCOVER_TOKEN)).build();
|
||||||
}
|
}
|
||||||
throw new IllegalArgumentException(a.u("Failed to find configured root that contains ", canonicalPath));
|
throw new IllegalArgumentException(a.v("Failed to find configured root that contains ", canonicalPath));
|
||||||
} catch (IOException unused) {
|
} catch (IOException unused) {
|
||||||
throw new IllegalArgumentException("Failed to resolve canonical path for " + file);
|
throw new IllegalArgumentException("Failed to resolve canonical path for " + file);
|
||||||
}
|
}
|
||||||
|
@ -180,7 +180,7 @@ public class FileProvider extends ContentProvider {
|
||||||
if ("rwt".equals(str)) {
|
if ("rwt".equals(str)) {
|
||||||
return 1006632960;
|
return 1006632960;
|
||||||
}
|
}
|
||||||
throw new IllegalArgumentException(a.u("Invalid mode: ", str));
|
throw new IllegalArgumentException(a.v("Invalid mode: ", str));
|
||||||
}
|
}
|
||||||
|
|
||||||
private static PathStrategy parsePathStrategy(Context context, String str) throws IOException, XmlPullParserException {
|
private static PathStrategy parsePathStrategy(Context context, String str) throws IOException, XmlPullParserException {
|
||||||
|
@ -232,7 +232,7 @@ public class FileProvider extends ContentProvider {
|
||||||
throw new IllegalArgumentException("Missing android.support.FILE_PROVIDER_PATHS meta-data");
|
throw new IllegalArgumentException("Missing android.support.FILE_PROVIDER_PATHS meta-data");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
throw new IllegalArgumentException(a.u("Couldn't find meta-data for provider with authority ", str));
|
throw new IllegalArgumentException(a.v("Couldn't find meta-data for provider with authority ", str));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -79,6 +79,6 @@ public final class LocusIdCompat {
|
||||||
|
|
||||||
@NonNull
|
@NonNull
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return a.G(a.O("LocusIdCompat["), getSanitizedId(), "]");
|
return a.H(a.R("LocusIdCompat["), getSanitizedId(), "]");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -94,10 +94,10 @@ public final class PackageInfoCompat {
|
||||||
throw new IllegalArgumentException("Unsupported certificate type " + num + " when verifying " + str);
|
throw new IllegalArgumentException("Unsupported certificate type " + num + " when verifying " + str);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
throw new IllegalArgumentException(a.u("Type must be specified for cert when verifying ", str));
|
throw new IllegalArgumentException(a.v("Type must be specified for cert when verifying ", str));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
throw new IllegalArgumentException(a.u("Cert byte array cannot be null when verifying ", str));
|
throw new IllegalArgumentException(a.v("Cert byte array cannot be null when verifying ", str));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
List<Signature> signatures = getSignatures(packageManager, str);
|
List<Signature> signatures = getSignatures(packageManager, str);
|
||||||
|
|
|
@ -215,7 +215,7 @@ public class ShortcutInfoCompat {
|
||||||
this.mInfo.mExtras.putStringArray(str, (String[]) map.keySet().toArray(new String[0]));
|
this.mInfo.mExtras.putStringArray(str, (String[]) map.keySet().toArray(new String[0]));
|
||||||
for (String str2 : map.keySet()) {
|
for (String str2 : map.keySet()) {
|
||||||
List<String> list = map.get(str2);
|
List<String> list = map.get(str2);
|
||||||
this.mInfo.mExtras.putStringArray(a.v(str, AutocompleteViewModel.COMMAND_DISCOVER_TOKEN, str2), list == null ? new String[0] : (String[]) list.toArray(new String[0]));
|
this.mInfo.mExtras.putStringArray(a.w(str, AutocompleteViewModel.COMMAND_DISCOVER_TOKEN, str2), list == null ? new String[0] : (String[]) list.toArray(new String[0]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -352,10 +352,10 @@ public class ShortcutInfoCompat {
|
||||||
int i = 0;
|
int i = 0;
|
||||||
while (i < this.mPersons.length) {
|
while (i < this.mPersons.length) {
|
||||||
PersistableBundle persistableBundle = this.mExtras;
|
PersistableBundle persistableBundle = this.mExtras;
|
||||||
StringBuilder O = a.O(EXTRA_PERSON_);
|
StringBuilder R = a.R(EXTRA_PERSON_);
|
||||||
int i2 = i + 1;
|
int i2 = i + 1;
|
||||||
O.append(i2);
|
R.append(i2);
|
||||||
persistableBundle.putPersistableBundle(O.toString(), this.mPersons[i].toPersistableBundle());
|
persistableBundle.putPersistableBundle(R.toString(), this.mPersons[i].toPersistableBundle());
|
||||||
i = i2;
|
i = i2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -422,10 +422,10 @@ public class ShortcutInfoCompat {
|
||||||
Person[] personArr = new Person[i];
|
Person[] personArr = new Person[i];
|
||||||
int i2 = 0;
|
int i2 = 0;
|
||||||
while (i2 < i) {
|
while (i2 < i) {
|
||||||
StringBuilder O = a.O(EXTRA_PERSON_);
|
StringBuilder R = a.R(EXTRA_PERSON_);
|
||||||
int i3 = i2 + 1;
|
int i3 = i2 + 1;
|
||||||
O.append(i3);
|
R.append(i3);
|
||||||
personArr[i2] = Person.fromPersistableBundle(persistableBundle.getPersistableBundle(O.toString()));
|
personArr[i2] = Person.fromPersistableBundle(persistableBundle.getPersistableBundle(R.toString()));
|
||||||
i2 = i3;
|
i2 = i3;
|
||||||
}
|
}
|
||||||
return personArr;
|
return personArr;
|
||||||
|
|
|
@ -276,12 +276,12 @@ public final class ResourcesCompat {
|
||||||
if (typedValue.type == 4) {
|
if (typedValue.type == 4) {
|
||||||
return typedValue.getFloat();
|
return typedValue.getFloat();
|
||||||
}
|
}
|
||||||
StringBuilder O = a.O("Resource ID #0x");
|
StringBuilder R = a.R("Resource ID #0x");
|
||||||
O.append(Integer.toHexString(i));
|
R.append(Integer.toHexString(i));
|
||||||
O.append(" type #0x");
|
R.append(" type #0x");
|
||||||
O.append(Integer.toHexString(typedValue.type));
|
R.append(Integer.toHexString(typedValue.type));
|
||||||
O.append(" is not valid");
|
R.append(" is not valid");
|
||||||
throw new Resources.NotFoundException(O.toString());
|
throw new Resources.NotFoundException(R.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
|
@ -348,10 +348,10 @@ public final class ResourcesCompat {
|
||||||
if (loadFont != null || fontCallback != null || z3) {
|
if (loadFont != null || fontCallback != null || z3) {
|
||||||
return loadFont;
|
return loadFont;
|
||||||
}
|
}
|
||||||
StringBuilder O = a.O("Font resource ID #0x");
|
StringBuilder R = a.R("Font resource ID #0x");
|
||||||
O.append(Integer.toHexString(i));
|
R.append(Integer.toHexString(i));
|
||||||
O.append(" could not be retrieved.");
|
R.append(" could not be retrieved.");
|
||||||
throw new Resources.NotFoundException(O.toString());
|
throw new Resources.NotFoundException(R.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
/* JADX WARNING: Removed duplicated region for block: B:36:0x00a7 */
|
/* JADX WARNING: Removed duplicated region for block: B:36:0x00a7 */
|
||||||
|
@ -409,13 +409,13 @@ public final class ResourcesCompat {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
StringBuilder O = a.O("Resource \"");
|
StringBuilder R = a.R("Resource \"");
|
||||||
O.append(resources.getResourceName(i));
|
R.append(resources.getResourceName(i));
|
||||||
O.append("\" (");
|
R.append("\" (");
|
||||||
O.append(Integer.toHexString(i));
|
R.append(Integer.toHexString(i));
|
||||||
O.append(") is not a Font: ");
|
R.append(") is not a Font: ");
|
||||||
O.append(typedValue);
|
R.append(typedValue);
|
||||||
throw new Resources.NotFoundException(O.toString());
|
throw new Resources.NotFoundException(R.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@ public final class CanvasKt {
|
||||||
try {
|
try {
|
||||||
function1.invoke(canvas);
|
function1.invoke(canvas);
|
||||||
} finally {
|
} finally {
|
||||||
a.a0(i, canvas, save, i);
|
a.c0(i, canvas, save, i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ public final class CanvasKt {
|
||||||
try {
|
try {
|
||||||
function1.invoke(canvas);
|
function1.invoke(canvas);
|
||||||
} finally {
|
} finally {
|
||||||
a.a0(i5, canvas, save, i5);
|
a.c0(i5, canvas, save, i5);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ public final class CanvasKt {
|
||||||
try {
|
try {
|
||||||
function1.invoke(canvas);
|
function1.invoke(canvas);
|
||||||
} finally {
|
} finally {
|
||||||
a.a0(i, canvas, save, i);
|
a.c0(i, canvas, save, i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ public final class CanvasKt {
|
||||||
try {
|
try {
|
||||||
function1.invoke(canvas);
|
function1.invoke(canvas);
|
||||||
} finally {
|
} finally {
|
||||||
a.a0(i, canvas, save, i);
|
a.c0(i, canvas, save, i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -75,7 +75,7 @@ public final class CanvasKt {
|
||||||
try {
|
try {
|
||||||
function1.invoke(canvas);
|
function1.invoke(canvas);
|
||||||
} finally {
|
} finally {
|
||||||
a.a0(i, canvas, save, i);
|
a.c0(i, canvas, save, i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -89,7 +89,7 @@ public final class CanvasKt {
|
||||||
try {
|
try {
|
||||||
function1.invoke(canvas);
|
function1.invoke(canvas);
|
||||||
} finally {
|
} finally {
|
||||||
a.a0(i, canvas, save, i);
|
a.c0(i, canvas, save, i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -106,7 +106,7 @@ public final class CanvasKt {
|
||||||
try {
|
try {
|
||||||
function1.invoke(canvas);
|
function1.invoke(canvas);
|
||||||
} finally {
|
} finally {
|
||||||
a.a0(i2, canvas, save, i2);
|
a.c0(i2, canvas, save, i2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -119,7 +119,7 @@ public final class CanvasKt {
|
||||||
try {
|
try {
|
||||||
function1.invoke(canvas);
|
function1.invoke(canvas);
|
||||||
} finally {
|
} finally {
|
||||||
a.a0(i, canvas, save, i);
|
a.c0(i, canvas, save, i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -141,7 +141,7 @@ public final class CanvasKt {
|
||||||
try {
|
try {
|
||||||
function1.invoke(canvas);
|
function1.invoke(canvas);
|
||||||
} finally {
|
} finally {
|
||||||
a.a0(i2, canvas, save, i2);
|
a.c0(i2, canvas, save, i2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -153,7 +153,7 @@ public final class CanvasKt {
|
||||||
try {
|
try {
|
||||||
function1.invoke(canvas);
|
function1.invoke(canvas);
|
||||||
} finally {
|
} finally {
|
||||||
a.a0(i, canvas, save, i);
|
a.c0(i, canvas, save, i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -166,7 +166,7 @@ public final class CanvasKt {
|
||||||
try {
|
try {
|
||||||
function1.invoke(canvas);
|
function1.invoke(canvas);
|
||||||
} finally {
|
} finally {
|
||||||
a.a0(i, canvas, save, i);
|
a.c0(i, canvas, save, i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -191,7 +191,7 @@ public final class CanvasKt {
|
||||||
try {
|
try {
|
||||||
function1.invoke(canvas);
|
function1.invoke(canvas);
|
||||||
} finally {
|
} finally {
|
||||||
a.a0(i2, canvas, save, i2);
|
a.c0(i2, canvas, save, i2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -204,7 +204,7 @@ public final class CanvasKt {
|
||||||
try {
|
try {
|
||||||
function1.invoke(canvas);
|
function1.invoke(canvas);
|
||||||
} finally {
|
} finally {
|
||||||
a.a0(i, canvas, save, i);
|
a.c0(i, canvas, save, i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -223,7 +223,7 @@ public final class CanvasKt {
|
||||||
try {
|
try {
|
||||||
function1.invoke(canvas);
|
function1.invoke(canvas);
|
||||||
} finally {
|
} finally {
|
||||||
a.a0(i2, canvas, save, i2);
|
a.c0(i2, canvas, save, i2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -236,7 +236,7 @@ public final class CanvasKt {
|
||||||
try {
|
try {
|
||||||
function1.invoke(canvas);
|
function1.invoke(canvas);
|
||||||
} finally {
|
} finally {
|
||||||
a.a0(i, canvas, save, i);
|
a.c0(i, canvas, save, i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -255,7 +255,7 @@ public final class CanvasKt {
|
||||||
try {
|
try {
|
||||||
function1.invoke(canvas);
|
function1.invoke(canvas);
|
||||||
} finally {
|
} finally {
|
||||||
a.a0(i2, canvas, save, i2);
|
a.c0(i2, canvas, save, i2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -206,9 +206,9 @@ public final class ColorUtils {
|
||||||
double calculateLuminance2 = calculateLuminance(i2) + 0.05d;
|
double calculateLuminance2 = calculateLuminance(i2) + 0.05d;
|
||||||
return Math.max(calculateLuminance, calculateLuminance2) / Math.min(calculateLuminance, calculateLuminance2);
|
return Math.max(calculateLuminance, calculateLuminance2) / Math.min(calculateLuminance, calculateLuminance2);
|
||||||
}
|
}
|
||||||
StringBuilder O = a.O("background can not be translucent: #");
|
StringBuilder R = a.R("background can not be translucent: #");
|
||||||
O.append(Integer.toHexString(i2));
|
R.append(Integer.toHexString(i2));
|
||||||
throw new IllegalArgumentException(O.toString());
|
throw new IllegalArgumentException(R.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
@FloatRange(from = ShadowDrawableWrapper.COS_45, to = 1.0d)
|
@FloatRange(from = ShadowDrawableWrapper.COS_45, to = 1.0d)
|
||||||
|
@ -236,9 +236,9 @@ public final class ColorUtils {
|
||||||
}
|
}
|
||||||
return i3;
|
return i3;
|
||||||
}
|
}
|
||||||
StringBuilder O = a.O("background can not be translucent: #");
|
StringBuilder R = a.R("background can not be translucent: #");
|
||||||
O.append(Integer.toHexString(i2));
|
R.append(Integer.toHexString(i2));
|
||||||
throw new IllegalArgumentException(O.toString());
|
throw new IllegalArgumentException(R.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
@VisibleForTesting
|
@VisibleForTesting
|
||||||
|
@ -298,12 +298,12 @@ public final class ColorUtils {
|
||||||
}
|
}
|
||||||
return Color.valueOf(components2, color2.getColorSpace());
|
return Color.valueOf(components2, color2.getColorSpace());
|
||||||
}
|
}
|
||||||
StringBuilder O = a.O("Color models must match (");
|
StringBuilder R = a.R("Color models must match (");
|
||||||
O.append(color.getModel());
|
R.append(color.getModel());
|
||||||
O.append(" vs. ");
|
R.append(" vs. ");
|
||||||
O.append(color2.getModel());
|
R.append(color2.getModel());
|
||||||
O.append(")");
|
R.append(")");
|
||||||
throw new IllegalArgumentException(O.toString());
|
throw new IllegalArgumentException(R.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
private static int compositeComponent(int i, int i2, int i3, int i4, int i5) {
|
private static int compositeComponent(int i, int i2, int i3, int i4, int i5) {
|
||||||
|
|
|
@ -86,13 +86,13 @@ public final class Insets {
|
||||||
}
|
}
|
||||||
|
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder O = a.O("Insets{left=");
|
StringBuilder R = a.R("Insets{left=");
|
||||||
O.append(this.left);
|
R.append(this.left);
|
||||||
O.append(", top=");
|
R.append(", top=");
|
||||||
O.append(this.top);
|
R.append(this.top);
|
||||||
O.append(", right=");
|
R.append(", right=");
|
||||||
O.append(this.right);
|
R.append(this.right);
|
||||||
O.append(", bottom=");
|
R.append(", bottom=");
|
||||||
return a.y(O, this.bottom, '}');
|
return a.z(R, this.bottom, '}');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -504,7 +504,7 @@ public class PathParser {
|
||||||
PathDataNode.nodesToPath(createNodesFromPathData, path);
|
PathDataNode.nodesToPath(createNodesFromPathData, path);
|
||||||
return path;
|
return path;
|
||||||
} catch (RuntimeException e) {
|
} catch (RuntimeException e) {
|
||||||
throw new RuntimeException(a.u("Error in parsing ", str), e);
|
throw new RuntimeException(a.v("Error in parsing ", str), e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -592,7 +592,7 @@ public class PathParser {
|
||||||
}
|
}
|
||||||
return copyOfRange(fArr, 0, i2);
|
return copyOfRange(fArr, 0, i2);
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
throw new RuntimeException(a.v("error in parsing \"", str, "\""), e);
|
throw new RuntimeException(a.w("error in parsing \"", str, "\""), e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -59,15 +59,15 @@ public final class PathSegment {
|
||||||
}
|
}
|
||||||
|
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder O = a.O("PathSegment{start=");
|
StringBuilder R = a.R("PathSegment{start=");
|
||||||
O.append(this.mStart);
|
R.append(this.mStart);
|
||||||
O.append(", startFraction=");
|
R.append(", startFraction=");
|
||||||
O.append(this.mStartFraction);
|
R.append(this.mStartFraction);
|
||||||
O.append(", end=");
|
R.append(", end=");
|
||||||
O.append(this.mEnd);
|
R.append(this.mEnd);
|
||||||
O.append(", endFraction=");
|
R.append(", endFraction=");
|
||||||
O.append(this.mEndFraction);
|
R.append(this.mEndFraction);
|
||||||
O.append('}');
|
R.append('}');
|
||||||
return O.toString();
|
return R.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,9 +60,9 @@ public class TypefaceCompatApi26Impl extends TypefaceCompatApi21Impl {
|
||||||
method5 = obtainCreateFromFamiliesWithDefaultMethod(obtainFontFamily);
|
method5 = obtainCreateFromFamiliesWithDefaultMethod(obtainFontFamily);
|
||||||
cls = obtainFontFamily;
|
cls = obtainFontFamily;
|
||||||
} catch (ClassNotFoundException | NoSuchMethodException e) {
|
} catch (ClassNotFoundException | NoSuchMethodException e) {
|
||||||
StringBuilder O = a.O("Unable to collect necessary methods for class ");
|
StringBuilder R = a.R("Unable to collect necessary methods for class ");
|
||||||
O.append(e.getClass().getName());
|
R.append(e.getClass().getName());
|
||||||
Log.e(TAG, O.toString(), e);
|
Log.e(TAG, R.toString(), e);
|
||||||
method5 = null;
|
method5 = null;
|
||||||
constructor = null;
|
constructor = null;
|
||||||
method4 = null;
|
method4 = null;
|
||||||
|
|
|
@ -139,14 +139,14 @@ public class TypefaceCompatUtil {
|
||||||
if (cacheDir == null) {
|
if (cacheDir == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
StringBuilder O = a.O(CACHE_FILE_PREFIX);
|
StringBuilder R = a.R(CACHE_FILE_PREFIX);
|
||||||
O.append(Process.myPid());
|
R.append(Process.myPid());
|
||||||
O.append("-");
|
R.append("-");
|
||||||
O.append(Process.myTid());
|
R.append(Process.myTid());
|
||||||
O.append("-");
|
R.append("-");
|
||||||
String sb = O.toString();
|
String sb = R.toString();
|
||||||
for (int i = 0; i < 100; i++) {
|
for (int i = 0; i < 100; i++) {
|
||||||
File file = new File(cacheDir, a.l(sb, i));
|
File file = new File(cacheDir, a.p(sb, i));
|
||||||
try {
|
try {
|
||||||
if (file.createNewFile()) {
|
if (file.createNewFile()) {
|
||||||
return file;
|
return file;
|
||||||
|
|
|
@ -134,7 +134,7 @@ public class IconCompat extends CustomVersionedParcelable {
|
||||||
break;
|
break;
|
||||||
case 0:
|
case 0:
|
||||||
default:
|
default:
|
||||||
a.i0("Unknown type ", i, TAG);
|
Log.w(TAG, "Unknown type " + i);
|
||||||
return null;
|
return null;
|
||||||
case 2:
|
case 2:
|
||||||
case 4:
|
case 4:
|
||||||
|
@ -506,9 +506,9 @@ public class IconCompat extends CustomVersionedParcelable {
|
||||||
drawable2.setBounds(0, 0, bitmap.getWidth(), bitmap.getHeight());
|
drawable2.setBounds(0, 0, bitmap.getWidth(), bitmap.getHeight());
|
||||||
drawable2.draw(new Canvas(bitmap));
|
drawable2.draw(new Canvas(bitmap));
|
||||||
} catch (PackageManager.NameNotFoundException e) {
|
} catch (PackageManager.NameNotFoundException e) {
|
||||||
StringBuilder O = a.O("Can't find package ");
|
StringBuilder R = a.R("Can't find package ");
|
||||||
O.append(this.mObj1);
|
R.append(this.mObj1);
|
||||||
throw new IllegalArgumentException(O.toString(), e);
|
throw new IllegalArgumentException(R.toString(), e);
|
||||||
}
|
}
|
||||||
} else if (i == 5) {
|
} else if (i == 5) {
|
||||||
bitmap = createLegacyIconFromAdaptiveIcon((Bitmap) this.mObj1, true);
|
bitmap = createLegacyIconFromAdaptiveIcon((Bitmap) this.mObj1, true);
|
||||||
|
@ -830,14 +830,14 @@ public class IconCompat extends CustomVersionedParcelable {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
StringBuilder O = a.O("Cannot load adaptive icon from uri: ");
|
StringBuilder R = a.R("Cannot load adaptive icon from uri: ");
|
||||||
O.append(getUri());
|
R.append(getUri());
|
||||||
throw new IllegalStateException(O.toString());
|
throw new IllegalStateException(R.toString());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
StringBuilder O2 = a.O("Context is required to resolve the file uri of the icon: ");
|
StringBuilder R2 = a.R("Context is required to resolve the file uri of the icon: ");
|
||||||
O2.append(getUri());
|
R2.append(getUri());
|
||||||
throw new IllegalArgumentException(O2.toString());
|
throw new IllegalArgumentException(R2.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ColorStateList colorStateList = this.mTintList;
|
ColorStateList colorStateList = this.mTintList;
|
||||||
|
|
|
@ -9,7 +9,6 @@ import androidx.annotation.NonNull;
|
||||||
import androidx.annotation.Nullable;
|
import androidx.annotation.Nullable;
|
||||||
import androidx.core.graphics.BitmapCompat;
|
import androidx.core.graphics.BitmapCompat;
|
||||||
import androidx.core.view.GravityCompat;
|
import androidx.core.view.GravityCompat;
|
||||||
import c.d.b.a.a;
|
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
public final class RoundedBitmapDrawableFactory {
|
public final class RoundedBitmapDrawableFactory {
|
||||||
private static final String TAG = "RoundedBitmapDrawableFa";
|
private static final String TAG = "RoundedBitmapDrawableFa";
|
||||||
|
@ -61,7 +60,7 @@ public final class RoundedBitmapDrawableFactory {
|
||||||
public static RoundedBitmapDrawable create(@NonNull Resources resources, @NonNull String str) {
|
public static RoundedBitmapDrawable create(@NonNull Resources resources, @NonNull String str) {
|
||||||
RoundedBitmapDrawable create = create(resources, BitmapFactory.decodeFile(str));
|
RoundedBitmapDrawable create = create(resources, BitmapFactory.decodeFile(str));
|
||||||
if (create.getBitmap() == null) {
|
if (create.getBitmap() == null) {
|
||||||
a.k0("RoundedBitmapDrawable cannot decode ", str, TAG);
|
Log.w(TAG, "RoundedBitmapDrawable cannot decode " + str);
|
||||||
}
|
}
|
||||||
return create;
|
return create;
|
||||||
}
|
}
|
||||||
|
|
|
@ -63,7 +63,7 @@ public final class MailTo {
|
||||||
}
|
}
|
||||||
String to = mailTo.getTo();
|
String to = mailTo.getTo();
|
||||||
if (to != null) {
|
if (to != null) {
|
||||||
str3 = a.v(str3, ", ", to);
|
str3 = a.w(str3, ", ", to);
|
||||||
}
|
}
|
||||||
mailTo.mHeaders.put(TO, str3);
|
mailTo.mHeaders.put(TO, str3);
|
||||||
return mailTo;
|
return mailTo;
|
||||||
|
|
|
@ -30,15 +30,15 @@ public final class UriCompat {
|
||||||
}
|
}
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
} else if (scheme.equalsIgnoreCase("http") || scheme.equalsIgnoreCase(Constants.SCHEME) || scheme.equalsIgnoreCase("ftp") || scheme.equalsIgnoreCase("rtsp")) {
|
} else if (scheme.equalsIgnoreCase("http") || scheme.equalsIgnoreCase(Constants.SCHEME) || scheme.equalsIgnoreCase("ftp") || scheme.equalsIgnoreCase("rtsp")) {
|
||||||
StringBuilder O = a.O("//");
|
StringBuilder R = a.R("//");
|
||||||
String str = "";
|
String str = "";
|
||||||
O.append(uri.getHost() != null ? uri.getHost() : str);
|
R.append(uri.getHost() != null ? uri.getHost() : str);
|
||||||
if (uri.getPort() != -1) {
|
if (uri.getPort() != -1) {
|
||||||
StringBuilder O2 = a.O(":");
|
StringBuilder R2 = a.R(":");
|
||||||
O2.append(uri.getPort());
|
R2.append(uri.getPort());
|
||||||
str = O2.toString();
|
str = R2.toString();
|
||||||
}
|
}
|
||||||
schemeSpecificPart = a.G(O, str, "/...");
|
schemeSpecificPart = a.H(R, str, "/...");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
StringBuilder sb2 = new StringBuilder(64);
|
StringBuilder sb2 = new StringBuilder(64);
|
||||||
|
|
|
@ -48,7 +48,7 @@ public final class LocaleListCompat {
|
||||||
return new Locale(split2[0]);
|
return new Locale(split2[0]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
throw new IllegalArgumentException(a.v("Can not parse language tag: [", str, "]"));
|
throw new IllegalArgumentException(a.w("Can not parse language tag: [", str, "]"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@NonNull
|
@NonNull
|
||||||
|
|
|
@ -41,7 +41,7 @@ public final class LocaleListCompatWrapper implements LocaleListInterface {
|
||||||
hashSet.add(locale2);
|
hashSet.add(locale2);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
throw new NullPointerException(a.n("list[", i, "] is null"));
|
throw new NullPointerException(a.q("list[", i, "] is null"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.mList = (Locale[]) arrayList.toArray(new Locale[arrayList.size()]);
|
this.mList = (Locale[]) arrayList.toArray(new Locale[arrayList.size()]);
|
||||||
|
@ -229,19 +229,19 @@ public final class LocaleListCompatWrapper implements LocaleListInterface {
|
||||||
}
|
}
|
||||||
|
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder O = a.O("[");
|
StringBuilder R = a.R("[");
|
||||||
int i = 0;
|
int i = 0;
|
||||||
while (true) {
|
while (true) {
|
||||||
Locale[] localeArr = this.mList;
|
Locale[] localeArr = this.mList;
|
||||||
if (i < localeArr.length) {
|
if (i < localeArr.length) {
|
||||||
O.append(localeArr[i]);
|
R.append(localeArr[i]);
|
||||||
if (i < this.mList.length - 1) {
|
if (i < this.mList.length - 1) {
|
||||||
O.append(',');
|
R.append(',');
|
||||||
}
|
}
|
||||||
i++;
|
i++;
|
||||||
} else {
|
} else {
|
||||||
O.append("]");
|
R.append("]");
|
||||||
return O.toString();
|
return R.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -83,7 +83,7 @@ public class FontProvider {
|
||||||
String providerAuthority = fontRequest.getProviderAuthority();
|
String providerAuthority = fontRequest.getProviderAuthority();
|
||||||
ProviderInfo resolveContentProvider = packageManager.resolveContentProvider(providerAuthority, 0);
|
ProviderInfo resolveContentProvider = packageManager.resolveContentProvider(providerAuthority, 0);
|
||||||
if (resolveContentProvider == null) {
|
if (resolveContentProvider == null) {
|
||||||
throw new PackageManager.NameNotFoundException(a.u("No package found for authority: ", providerAuthority));
|
throw new PackageManager.NameNotFoundException(a.v("No package found for authority: ", providerAuthority));
|
||||||
} else if (resolveContentProvider.packageName.equals(fontRequest.getProviderPackage())) {
|
} else if (resolveContentProvider.packageName.equals(fontRequest.getProviderPackage())) {
|
||||||
List<byte[]> convertToByteArrayList = convertToByteArrayList(packageManager.getPackageInfo(resolveContentProvider.packageName, 64).signatures);
|
List<byte[]> convertToByteArrayList = convertToByteArrayList(packageManager.getPackageInfo(resolveContentProvider.packageName, 64).signatures);
|
||||||
Collections.sort(convertToByteArrayList, sByteArrayComparator);
|
Collections.sort(convertToByteArrayList, sByteArrayComparator);
|
||||||
|
@ -97,9 +97,9 @@ public class FontProvider {
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
} else {
|
} else {
|
||||||
StringBuilder U = a.U("Found content provider ", providerAuthority, ", but package was not ");
|
StringBuilder W = a.W("Found content provider ", providerAuthority, ", but package was not ");
|
||||||
U.append(fontRequest.getProviderPackage());
|
W.append(fontRequest.getProviderPackage());
|
||||||
throw new PackageManager.NameNotFoundException(U.toString());
|
throw new PackageManager.NameNotFoundException(W.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -78,14 +78,14 @@ public final class FontRequest {
|
||||||
|
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
StringBuilder O = a.O("FontRequest {mProviderAuthority: ");
|
StringBuilder R = a.R("FontRequest {mProviderAuthority: ");
|
||||||
O.append(this.mProviderAuthority);
|
R.append(this.mProviderAuthority);
|
||||||
O.append(", mProviderPackage: ");
|
R.append(", mProviderPackage: ");
|
||||||
O.append(this.mProviderPackage);
|
R.append(this.mProviderPackage);
|
||||||
O.append(", mQuery: ");
|
R.append(", mQuery: ");
|
||||||
O.append(this.mQuery);
|
R.append(this.mQuery);
|
||||||
O.append(", mCertificates:");
|
R.append(", mCertificates:");
|
||||||
sb.append(O.toString());
|
sb.append(R.toString());
|
||||||
for (int i = 0; i < this.mCertificates.size(); i++) {
|
for (int i = 0; i < this.mCertificates.size(); i++) {
|
||||||
sb.append(" [");
|
sb.append(" [");
|
||||||
List<byte[]> list = this.mCertificates.get(i);
|
List<byte[]> list = this.mCertificates.get(i);
|
||||||
|
|
|
@ -172,36 +172,36 @@ public class PrecomputedTextCompat implements Spannable {
|
||||||
|
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder("{");
|
StringBuilder sb = new StringBuilder("{");
|
||||||
StringBuilder O = a.O("textSize=");
|
StringBuilder R = a.R("textSize=");
|
||||||
O.append(this.mPaint.getTextSize());
|
R.append(this.mPaint.getTextSize());
|
||||||
sb.append(O.toString());
|
sb.append(R.toString());
|
||||||
sb.append(", textScaleX=" + this.mPaint.getTextScaleX());
|
sb.append(", textScaleX=" + this.mPaint.getTextScaleX());
|
||||||
sb.append(", textSkewX=" + this.mPaint.getTextSkewX());
|
sb.append(", textSkewX=" + this.mPaint.getTextSkewX());
|
||||||
int i = Build.VERSION.SDK_INT;
|
int i = Build.VERSION.SDK_INT;
|
||||||
StringBuilder O2 = a.O(", letterSpacing=");
|
StringBuilder R2 = a.R(", letterSpacing=");
|
||||||
O2.append(this.mPaint.getLetterSpacing());
|
R2.append(this.mPaint.getLetterSpacing());
|
||||||
sb.append(O2.toString());
|
sb.append(R2.toString());
|
||||||
sb.append(", elegantTextHeight=" + this.mPaint.isElegantTextHeight());
|
sb.append(", elegantTextHeight=" + this.mPaint.isElegantTextHeight());
|
||||||
if (i >= 24) {
|
if (i >= 24) {
|
||||||
StringBuilder O3 = a.O(", textLocale=");
|
StringBuilder R3 = a.R(", textLocale=");
|
||||||
O3.append(this.mPaint.getTextLocales());
|
R3.append(this.mPaint.getTextLocales());
|
||||||
sb.append(O3.toString());
|
sb.append(R3.toString());
|
||||||
} else {
|
} else {
|
||||||
StringBuilder O4 = a.O(", textLocale=");
|
StringBuilder R4 = a.R(", textLocale=");
|
||||||
O4.append(this.mPaint.getTextLocale());
|
R4.append(this.mPaint.getTextLocale());
|
||||||
sb.append(O4.toString());
|
sb.append(R4.toString());
|
||||||
}
|
}
|
||||||
StringBuilder O5 = a.O(", typeface=");
|
StringBuilder R5 = a.R(", typeface=");
|
||||||
O5.append(this.mPaint.getTypeface());
|
R5.append(this.mPaint.getTypeface());
|
||||||
sb.append(O5.toString());
|
sb.append(R5.toString());
|
||||||
if (i >= 26) {
|
if (i >= 26) {
|
||||||
StringBuilder O6 = a.O(", variationSettings=");
|
StringBuilder R6 = a.R(", variationSettings=");
|
||||||
O6.append(this.mPaint.getFontVariationSettings());
|
R6.append(this.mPaint.getFontVariationSettings());
|
||||||
sb.append(O6.toString());
|
sb.append(R6.toString());
|
||||||
}
|
}
|
||||||
StringBuilder O7 = a.O(", textDir=");
|
StringBuilder R7 = a.R(", textDir=");
|
||||||
O7.append(this.mTextDir);
|
R7.append(this.mTextDir);
|
||||||
sb.append(O7.toString());
|
sb.append(R7.toString());
|
||||||
sb.append(", breakStrategy=" + this.mBreakStrategy);
|
sb.append(", breakStrategy=" + this.mBreakStrategy);
|
||||||
sb.append(", hyphenationFrequency=" + this.mHyphenationFrequency);
|
sb.append(", hyphenationFrequency=" + this.mHyphenationFrequency);
|
||||||
sb.append("}");
|
sb.append("}");
|
||||||
|
|
|
@ -273,7 +273,7 @@ public final class LinkifyCompat {
|
||||||
str = strArr[i] + str.substring(strArr[i].length());
|
str = strArr[i] + str.substring(strArr[i].length());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return (z2 || strArr.length <= 0) ? str : a.G(new StringBuilder(), strArr[0], str);
|
return (z2 || strArr.length <= 0) ? str : a.H(new StringBuilder(), strArr[0], str);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void pruneOverlaps(ArrayList<LinkSpec> arrayList, Spannable spannable) {
|
private static void pruneOverlaps(ArrayList<LinkSpec> arrayList, Spannable spannable) {
|
||||||
|
|
|
@ -56,9 +56,9 @@ public class AtomicFile {
|
||||||
Log.e(LOG_TAG, "Failed to close file output stream", e);
|
Log.e(LOG_TAG, "Failed to close file output stream", e);
|
||||||
}
|
}
|
||||||
if (!this.mNewName.delete()) {
|
if (!this.mNewName.delete()) {
|
||||||
StringBuilder O = a.O("Failed to delete new file ");
|
StringBuilder R = a.R("Failed to delete new file ");
|
||||||
O.append(this.mNewName);
|
R.append(this.mNewName);
|
||||||
Log.e(LOG_TAG, O.toString());
|
Log.e(LOG_TAG, R.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -88,9 +88,9 @@ public class AtomicFile {
|
||||||
rename(this.mLegacyBackupName, this.mBaseName);
|
rename(this.mLegacyBackupName, this.mBaseName);
|
||||||
}
|
}
|
||||||
if (this.mNewName.exists() && this.mBaseName.exists() && !this.mNewName.delete()) {
|
if (this.mNewName.exists() && this.mBaseName.exists() && !this.mNewName.delete()) {
|
||||||
StringBuilder O = a.O("Failed to delete outdated new file ");
|
StringBuilder R = a.R("Failed to delete outdated new file ");
|
||||||
O.append(this.mNewName);
|
R.append(this.mNewName);
|
||||||
Log.e(LOG_TAG, O.toString());
|
Log.e(LOG_TAG, R.toString());
|
||||||
}
|
}
|
||||||
return new FileInputStream(this.mBaseName);
|
return new FileInputStream(this.mBaseName);
|
||||||
}
|
}
|
||||||
|
@ -131,14 +131,14 @@ public class AtomicFile {
|
||||||
try {
|
try {
|
||||||
return new FileOutputStream(this.mNewName);
|
return new FileOutputStream(this.mNewName);
|
||||||
} catch (FileNotFoundException e) {
|
} catch (FileNotFoundException e) {
|
||||||
StringBuilder O = a.O("Failed to create new file ");
|
StringBuilder R = a.R("Failed to create new file ");
|
||||||
O.append(this.mNewName);
|
R.append(this.mNewName);
|
||||||
throw new IOException(O.toString(), e);
|
throw new IOException(R.toString(), e);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
StringBuilder O2 = a.O("Failed to create directory for ");
|
StringBuilder R2 = a.R("Failed to create directory for ");
|
||||||
O2.append(this.mNewName);
|
R2.append(this.mNewName);
|
||||||
throw new IOException(O2.toString());
|
throw new IOException(R2.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue