85.11 - Beta (85111)

This commit is contained in:
Juby210 2021-07-30 05:26:56 +02:00
parent 3fb888f713
commit a2a9f607fc
13424 changed files with 2 additions and 1150774 deletions

View File

@ -10,8 +10,8 @@ android {
applicationId 'com.discord'
minSdkVersion 21
targetSdkVersion 29
versionCode 85110
versionName "85.10 - Beta"
versionCode 85111
versionName "85.11 - Beta"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

View File

@ -1,272 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="85110" android:versionName="85.10 - Beta" android:installLocation="auto" android:compileSdkVersion="30" android:compileSdkVersionCodename="11" package="com.discord" platformBuildVersionCode="30" platformBuildVersionName="11">
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="29"/>
<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.faketouch" android:required="false"/>
<uses-feature android:name="android.hardware.microphone" android:required="false"/>
<uses-feature android:name="android.hardware.bluetooth" android:required="false"/>
<uses-permission android:name="com.android.vending.BILLING"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.BROADCAST_STICKY"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.GET_ACCOUNTS"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
<uses-permission android:name="android.permission.PACKAGE_USAGE_STATS"/>
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.USE_FULL_SCREEN_INTENT"/>
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
<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"/>
<uses-feature android:name="android.hardware.camera.any" android:required="false"/>
<queries>
<package android:name="com.samsung.android.game.gametools"/>
<package android:name="com.samsung.android.game.gamehome"/>
<intent>
<action android:name="android.support.customtabs.action.CustomTabsService"/>
</intent>
</queries>
<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.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE"/>
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<application android:theme="@style/res_2131951648_apptheme_dark" android:label="@string/discord" android:icon="@mipmap/ic_logo_square_beta" android:name="com.discord.app.App" android:allowBackup="false" android:largeHeap="true" android:supportsRtl="true" android:networkSecurityConfig="@xml/network_security_config" android:roundIcon="@mipmap/ic_logo_round_beta" android:appCategory="social" android:appComponentFactory="androidx.core.app.CoreComponentFactory">
<activity android:theme="@style/res_2131951669_apptheme_translucent" android:name="com.discord.samsung.SamsungConnectActivity"/>
<activity android:theme="@style/res_2131951648_apptheme_dark" android:name="com.discord.app.AppActivity" android:screenOrientation="fullUser" android:windowSoftInputMode="stateHidden|adjustResize"/>
<activity android:theme="@style/res_2131951659_apptheme_loading" android:name="com.discord.app.AppActivity$Main" android:exported="true" android:launchMode="singleTask" android:screenOrientation="fullUser" android:windowSoftInputMode="stateHidden|adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:scheme="https" android:host="*.discord.com" android:pathPattern="/app"/>
<data android:scheme="https" android:host="discord.com" android:pathPattern="/app"/>
<data android:scheme="https" android:host="*.discord.com" android:pathPattern="/gifts/.*"/>
<data android:scheme="https" android:host="discord.com" android:pathPattern="/gifts/.*"/>
<data android:scheme="https" android:host="*.discord.com" android:pathPattern="/invite/.*"/>
<data android:scheme="https" android:host="discord.com" android:pathPattern="/invite/.*"/>
<data android:scheme="http" android:host="discord.com" android:pathPattern="/invite/.*"/>
<data android:scheme="https" android:host="*.discord.com" android:pathPattern="/template/.*"/>
<data android:scheme="https" android:host="discord.com" android:pathPattern="/template/.*"/>
<data android:scheme="http" android:host="discord.com" android:pathPattern="/template/.*"/>
<data android:scheme="https" android:host="*.discord.com" android:pathPattern="/channels/.*"/>
<data android:scheme="https" android:host="discord.com" android:pathPattern="/channels/.*"/>
<data android:scheme="http" android:host="discord.com" android:pathPattern="/channels/.*"/>
<data android:scheme="https" android:host="*.discord.com" android:pathPattern="/users/.*"/>
<data android:scheme="https" android:host="discord.com" android:pathPattern="/users/.*"/>
<data android:scheme="https" android:host="*.discord.com" android:pathPattern="/feature/.*"/>
<data android:scheme="https" android:host="discord.com" android:pathPattern="/feature/.*"/>
<data android:scheme="https" android:host="*.discord.com" android:pathPattern="/discovery"/>
<data android:scheme="https" android:host="discord.com" android:pathPattern="/discovery"/>
<data android:scheme="https" android:host="discord.com" android:pathPattern="/query/.*"/>
<data android:scheme="https" android:host="*.discord.com" android:pathPattern="/query/.*"/>
<data android:scheme="http" android:host="discord.com" android:pathPattern="/ra/.*"/>
<data android:scheme="https" android:host="discord.com" android:pathPattern="/ra/.*"/>
<data android:scheme="https" android:host="*.discordapp.com" android:pathPattern="/app"/>
<data android:scheme="https" android:host="discordapp.com" android:pathPattern="/app"/>
<data android:scheme="https" android:host="*.discordapp.com" android:pathPattern="/gifts/.*"/>
<data android:scheme="https" android:host="discordapp.com" android:pathPattern="/gifts/.*"/>
<data android:scheme="https" android:host="*.discordapp.com" android:pathPattern="/invite/.*"/>
<data android:scheme="https" android:host="discordapp.com" android:pathPattern="/invite/.*"/>
<data android:scheme="http" android:host="discordapp.com" android:pathPattern="/invite/.*"/>
<data android:scheme="https" android:host="*.discordapp.com" android:pathPattern="/template/.*"/>
<data android:scheme="https" android:host="discordapp.com" android:pathPattern="/template/.*"/>
<data android:scheme="http" android:host="discordapp.com" android:pathPattern="/template/.*"/>
<data android:scheme="https" android:host="*.discordapp.com" android:pathPattern="/channels/.*"/>
<data android:scheme="https" android:host="discordapp.com" android:pathPattern="/channels/.*"/>
<data android:scheme="http" android:host="discordapp.com" android:pathPattern="/channels/.*"/>
<data android:scheme="https" android:host="*.discordapp.com" android:pathPattern="/users/.*"/>
<data android:scheme="https" android:host="discordapp.com" android:pathPattern="/users/.*"/>
<data android:scheme="https" android:host="discordapp.com" android:pathPattern="/discovery"/>
<data android:scheme="https" android:host="*.discordapp.com" android:pathPattern="/discovery"/>
<data android:scheme="http" android:host="discordapp.com" android:pathPattern="/ra/.*"/>
<data android:scheme="https" android:host="discordapp.com" android:pathPattern="/ra/.*"/>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:scheme="discord" android:host="app" android:pathPattern="/.*"/>
<data android:scheme="https" android:host="discord.gift" android:pathPattern="/.*"/>
<data android:scheme="http" android:host="discord.gift" android:pathPattern="/.*"/>
<data android:scheme="https" android:host="discord.gg" android:pathPattern="/.*"/>
<data android:scheme="http" android:host="discord.gg" android:pathPattern="/.*"/>
<data android:scheme="https" android:host="discord.new" android:pathPattern="/.*"/>
<data android:scheme="http" android:host="discord.new" android:pathPattern="/.*"/>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:scheme="discord" android:host="action" android:pathPattern="/oauth2/authorize"/>
<data android:scheme="discord" android:host="action" android:pathPattern="/connect/authorize"/>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:scheme="https" android:host="discord.com" android:pathPattern="/connect/authorize"/>
<data android:scheme="https" android:host="*.discord.com" android:pathPattern="/connect/authorize"/>
</intent-filter>
<meta-data android:name="android.app.shortcuts" android:resource="@xml/shortcuts"/>
</activity>
<activity android:name="com.discord.app.AppActivity$Call" android:excludeFromRecents="true" android:launchMode="singleTask"/>
<activity android:name="com.discord.app.AppActivity$IncomingCall" android:excludeFromRecents="true" android:launchMode="singleTask" android:showOnLockScreen="true" android:showWhenLocked="true" android:turnScreenOn="true"/>
<activity android:theme="@style/res_2131951659_apptheme_loading" android:label="@string/discord" android:name="com.discord.app.AppActivity$AppAction" android:exported="true" android:launchMode="standard" android:windowSoftInputMode="stateHidden|adjustResize">
<intent-filter>
<action android:name="com.discord.intent.action.SDK"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.OPENABLE"/>
<data android:scheme="discord" android:host="sdk" android:pathPattern="/.*"/>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND"/>
<action android:name="android.intent.action.SEND_MULTIPLE"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.OPENABLE"/>
<data android:mimeType="*/*"/>
</intent-filter>
<meta-data android:name="android.service.chooser.chooser_target_service" android:value="androidx.sharetarget.ChooserTargetServiceCompat"/>
</activity>
<activity android:name="com.facebook.flipper.android.diagnostics.FlipperDiagnosticActivity" android:exported="true"/>
<service android:name="com.discord.utilities.fcm.NotificationClient$FCMMessagingService" android:exported="false">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT"/>
<action android:name="com.google.firebase.INSTANCE_ID_EVENT"/>
</intent-filter>
</service>
<service android:name="com.discord.app.DiscordConnectService" android:permission="com.discord.permission.CONNECT" android:exported="true">
<intent-filter>
<action android:name="com.discord.intent.action.CONNECT"/>
<data android:scheme="discord" android:host="app" android:pathPattern="/connect/.*"/>
</intent-filter>
</service>
<service android:name="com.discord.utilities.voice.DiscordOverlayService" android:exported="false"/>
<meta-data android:name="com.discord.features.FLAG" android:value="1"/>
<meta-data android:name="com.google.firebase.messaging.default_notification_icon" android:resource="@drawable/asset_default_avatar_64dp"/>
<meta-data android:name="com.google.firebase.messaging.default_notification_color" android:resource="@color/brand_new_500"/>
<receiver android:name="com.discord.utilities.fcm.NotificationActions" android:exported="false">
<intent-filter>
<action android:name="com.discord.intent.action.ENQUEUE_WORK"/>
<action android:name="com.discord.intent.action.NOTIFICATION_DELETED"/>
<action android:name="com.discord.intent.action.NOTIFICATION_CANCEL"/>
</intent-filter>
</receiver>
<receiver android:name="com.discord.utilities.io.NetworkUtils$NetworkDownloadReceiver" android:exported="true">
<intent-filter>
<action android:name="android.intent.action.DOWNLOAD_COMPLETE"/>
</intent-filter>
</receiver>
<service android:name="com.discord.utilities.voice.VoiceEngineForegroundService" android:foregroundServiceType="mediaProjection"/>
<provider android:name="androidx.core.content.FileProvider" android:exported="false" android:authorities="com.discord.file-provider" android:grantUriPermissions="true">
<meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/file_paths"/>
</provider>
<meta-data android:name="firebase_crashlytics_collection_enabled" android:value="true"/>
<meta-data android:name="com.google.android.nearby.messages.API_KEY" android:value="AIzaSyD-4L6bgKMixqBRtrG2UktVXK6IexXlsog"/>
<meta-data android:name="com.google.android.actions" android:resource="@xml/actions"/>
<meta-data android:name="libdiscord_version" android:value="89.0.7-texture-crop-scale"/>
<activity android:theme="@style/res_2131952264_theme_appcompat_light_noactionbar" android:name="com.yalantis.ucrop.UCropActivity"/>
<service android:name="androidx.sharetarget.ChooserTargetServiceCompat" android:permission="android.permission.BIND_CHOOSER_TARGET_SERVICE">
<intent-filter>
<action android:name="android.service.chooser.ChooserTargetService"/>
</intent-filter>
</service>
<receiver android:name="com.google.android.gms.analytics.AnalyticsReceiver" android:enabled="true" android:exported="false"/>
<service android:name="com.google.android.gms.analytics.AnalyticsService" android:enabled="true" android:exported="false"/>
<service android:name="com.google.android.gms.analytics.AnalyticsJobService" android:permission="android.permission.BIND_JOB_SERVICE" android:enabled="true" android:exported="false"/>
<activity android:theme="@android:style/Theme.Translucent.NoTitleBar" android:name="com.google.android.gms.auth.api.signin.internal.SignInHubActivity" android:exported="false" android:excludeFromRecents="true"/>
<service android:name="com.google.android.gms.auth.api.signin.RevocationBoundService" android:permission="com.google.android.gms.auth.api.signin.permission.REVOCATION_NOTIFICATION" android:exported="true" android:visibleToInstantApps="true"/>
<service android:name="com.google.firebase.components.ComponentDiscoveryService" android:exported="false" android:directBootAware="true">
<meta-data android:name="com.google.firebase.components:com.google.firebase.dynamiclinks.internal.FirebaseDynamicLinkRegistrar" android:value="com.google.firebase.components.ComponentRegistrar"/>
<meta-data android:name="com.google.firebase.components:com.google.firebase.messaging.ktx.FirebaseMessagingKtxRegistrar" android:value="com.google.firebase.components.ComponentRegistrar"/>
<meta-data android:name="com.google.firebase.components:com.google.firebase.messaging.FirebaseMessagingRegistrar" android:value="com.google.firebase.components.ComponentRegistrar"/>
<meta-data android:name="com.google.firebase.components:com.google.firebase.iid.Registrar" android:value="com.google.firebase.components.ComponentRegistrar"/>
<meta-data android:name="com.google.firebase.components:com.google.firebase.analytics.connector.internal.AnalyticsConnectorRegistrar" android:value="com.google.firebase.components.ComponentRegistrar"/>
<meta-data android:name="com.google.firebase.components:com.google.firebase.crashlytics.ndk.CrashlyticsNdkRegistrar" android:value="com.google.firebase.components.ComponentRegistrar"/>
<meta-data android:name="com.google.firebase.components:com.google.firebase.crashlytics.CrashlyticsRegistrar" android:value="com.google.firebase.components.ComponentRegistrar"/>
<meta-data android:name="com.google.firebase.components:com.google.firebase.ktx.FirebaseCommonKtxRegistrar" android:value="com.google.firebase.components.ComponentRegistrar"/>
<meta-data android:name="com.google.firebase.components:com.google.firebase.installations.FirebaseInstallationsRegistrar" android:value="com.google.firebase.components.ComponentRegistrar"/>
<meta-data android:name="com.google.firebase.components:com.google.firebase.datatransport.TransportRegistrar" android:value="com.google.firebase.components.ComponentRegistrar"/>
</service>
<service android:name="com.google.firebase.messaging.FirebaseMessagingService" android:exported="false" android:directBootAware="true">
<intent-filter android:priority="-500">
<action android:name="com.google.firebase.MESSAGING_EVENT"/>
</intent-filter>
</service>
<receiver android:name="com.google.firebase.iid.FirebaseInstanceIdReceiver" android:permission="com.google.android.c2dm.permission.SEND" android:exported="true">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE"/>
</intent-filter>
</receiver>
<activity android:theme="@android:style/Theme.Translucent.NoTitleBar" android:name="com.google.android.gms.common.api.GoogleApiActivity" android:exported="false"/>
<receiver android:name="com.google.android.gms.measurement.AppMeasurementReceiver" android:enabled="true" android:exported="false"/>
<service android:name="com.google.android.gms.measurement.AppMeasurementService" android:enabled="true" android:exported="false"/>
<service android:name="com.google.android.gms.measurement.AppMeasurementJobService" android:permission="android.permission.BIND_JOB_SERVICE" android:enabled="true" android:exported="false"/>
<provider android:name="com.google.firebase.provider.FirebaseInitProvider" android:exported="false" android:authorities="com.discord.firebaseinitprovider" android:initOrder="100" android:directBootAware="true"/>
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version"/>
<provider android:name="androidx.work.impl.WorkManagerInitializer" android:exported="false" android:multiprocess="true" android:authorities="com.discord.workmanager-init" android:directBootAware="false"/>
<service android:name="androidx.work.impl.background.systemalarm.SystemAlarmService" android:enabled="@bool/enable_system_alarm_service_default" android:exported="false" android:directBootAware="false"/>
<service android:name="androidx.work.impl.background.systemjob.SystemJobService" android:permission="android.permission.BIND_JOB_SERVICE" android:enabled="@bool/enable_system_job_service_default" android:exported="true" android:directBootAware="false"/>
<service android:name="androidx.work.impl.foreground.SystemForegroundService" android:enabled="@bool/enable_system_foreground_service_default" android:exported="false" android:directBootAware="false"/>
<receiver android:name="androidx.work.impl.utils.ForceStopRunnable$BroadcastReceiver" android:enabled="true" android:exported="false" android:directBootAware="false"/>
<receiver android:name="androidx.work.impl.background.systemalarm.ConstraintProxy$BatteryChargingProxy" android:enabled="false" android:exported="false" android:directBootAware="false">
<intent-filter>
<action android:name="android.intent.action.ACTION_POWER_CONNECTED"/>
<action android:name="android.intent.action.ACTION_POWER_DISCONNECTED"/>
</intent-filter>
</receiver>
<receiver android:name="androidx.work.impl.background.systemalarm.ConstraintProxy$BatteryNotLowProxy" android:enabled="false" android:exported="false" android:directBootAware="false">
<intent-filter>
<action android:name="android.intent.action.BATTERY_OKAY"/>
<action android:name="android.intent.action.BATTERY_LOW"/>
</intent-filter>
</receiver>
<receiver android:name="androidx.work.impl.background.systemalarm.ConstraintProxy$StorageNotLowProxy" android:enabled="false" android:exported="false" android:directBootAware="false">
<intent-filter>
<action android:name="android.intent.action.DEVICE_STORAGE_LOW"/>
<action android:name="android.intent.action.DEVICE_STORAGE_OK"/>
</intent-filter>
</receiver>
<receiver android:name="androidx.work.impl.background.systemalarm.ConstraintProxy$NetworkStateProxy" android:enabled="false" android:exported="false" android:directBootAware="false">
<intent-filter>
<action android:name="android.net.conn.CONNECTIVITY_CHANGE"/>
</intent-filter>
</receiver>
<receiver android:name="androidx.work.impl.background.systemalarm.RescheduleReceiver" android:enabled="false" android:exported="false" android:directBootAware="false">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"/>
<action android:name="android.intent.action.TIME_SET"/>
<action android:name="android.intent.action.TIMEZONE_CHANGED"/>
</intent-filter>
</receiver>
<receiver android:name="androidx.work.impl.background.systemalarm.ConstraintProxyUpdateReceiver" android:enabled="@bool/enable_system_alarm_service_default" android:exported="false" android:directBootAware="false">
<intent-filter>
<action android:name="androidx.work.impl.background.systemalarm.UpdateProxies"/>
</intent-filter>
</receiver>
<receiver android:name="androidx.work.impl.diagnostics.DiagnosticsReceiver" android:permission="android.permission.DUMP" android:enabled="true" android:exported="true" android:directBootAware="false">
<intent-filter>
<action android:name="androidx.work.diagnostics.REQUEST_DIAGNOSTICS"/>
</intent-filter>
</receiver>
<service android:name="com.google.android.datatransport.runtime.backends.TransportBackendDiscovery" android:exported="false">
<meta-data android:name="backend:com.google.android.datatransport.cct.CctBackendFactory" android:value="cct"/>
</service>
<service android:name="com.google.android.datatransport.runtime.scheduling.jobscheduling.JobInfoSchedulerService" android:permission="android.permission.BIND_JOB_SERVICE" android:exported="false"/>
<receiver android:name="com.google.android.datatransport.runtime.scheduling.jobscheduling.AlarmManagerSchedulerBroadcastReceiver" android:exported="false"/>
<service android:name="androidx.room.MultiInstanceInvalidationService" android:exported="false" android:directBootAware="true"/>
<meta-data android:name="com.google.android.play.billingclient.version" android:value="3.0.3"/>
<activity android:theme="@android:style/Theme.Translucent.NoTitleBar" android:name="com.android.billingclient.api.ProxyBillingActivity" android:exported="false" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize"/>
<meta-data android:name="com.android.vending.derived.apk.id" android:value="1"/>
</application>
</manifest>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
[{"label":"Alberta","value":"AB"},{"label":"British Columbia","value":"BC"},{"label":"Manitoba","value":"MB"},{"label":"New Brunswick","value":"NB"},{"label":"Newfoundland and Labrador","value":"NL"},{"label":"Nova Scotia","value":"NS"},{"label":"Ontario","value":"ON"},{"label":"Prince Edward Island","value":"PE"},{"label":"Quebec","value":"QC"},{"label":"Saskatchewan","value":"SK"},{"label":"Northwest Territories","value":"NT"},{"label":"Nunavut","value":"NU"},{"label":"Yukon","value":"YT"}]

File diff suppressed because one or more lines are too long

View File

@ -1,255 +0,0 @@
[
{
"emoji": "angry",
"shortcuts": [
">:(",
">:-(",
">=(",
">=-("
]
},
{
"emoji": "blush",
"shortcuts": [
":\")",
":-\")",
"=\")",
"=-\")"
]
},
{
"emoji": "broken_heart",
"shortcuts": [
"</3",
"<\\3"
]
},
{
"emoji": "confused",
"shortcuts": [
":-\\",
":-/",
"=-\\",
"=-/"
]
},
{
"emoji": "cry",
"shortcuts": [
":'(",
":'-(",
":,(",
":,-(",
"='(",
"='-(",
"=,(",
"=,-("
]
},
{
"emoji": "frowning",
"shortcuts": [
":(",
":-(",
"=(",
"=-("
]
},
{
"emoji": "heart",
"shortcuts": [
"<3",
"♡"
]
},
{
"emoji": "imp",
"shortcuts": [
"]:(",
"]:-(",
"]=(",
"]=-("
]
},
{
"emoji": "innocent",
"shortcuts": [
"o:)",
"O:)",
"o:-)",
"O:-)",
"0:)",
"0:-)",
"o=)",
"O=)",
"o=-)",
"O=-)",
"0=)",
"0=-)"
]
},
{
"emoji": "joy",
"shortcuts": [
":')",
":'-)",
":,)",
":,-)",
":'D",
":'-D",
":,D",
":,-D",
"=')",
"='-)",
"=,)",
"=,-)",
"='D",
"='-D",
"=,D",
"=,-D"
]
},
{
"emoji": "kissing",
"shortcuts": [
":*",
":-*",
"=*",
"=-*"
]
},
{
"emoji": "laughing",
"shortcuts": [
"x-)",
"X-)"
]
},
{
"emoji": "neutral_face",
"shortcuts": [
":|",
":-|",
"=|",
"=-|"
]
},
{
"emoji": "open_mouth",
"shortcuts": [
":o",
":-o",
":O",
":-O",
"=o",
"=-o",
"=O",
"=-O"
]
},
{
"emoji": "rage",
"shortcuts": [
":@",
":-@",
"=@",
"=-@"
]
},
{
"emoji": "smile",
"shortcuts": [
":D",
":-D",
"=D",
"=-D"
]
},
{
"emoji": "slight_smile",
"shortcuts": [
":)",
":-)",
"=)",
"=-)"
]
},
{
"emoji": "smiling_imp",
"shortcuts": [
"]:)",
"]:-)",
"]=)",
"]=-)"
]
},
{
"emoji": "sob",
"shortcuts": [
":,'(",
":,'-(",
";(",
";-(",
"=,'(",
"=,'-("
]
},
{
"emoji": "stuck_out_tongue",
"shortcuts": [
":P",
":-P",
"=P",
"=-P"
]
},
{
"emoji": "sunglasses",
"shortcuts": [
"8-)",
"B-)"
]
},
{
"emoji": "sweat",
"shortcuts": [
",:(",
",:-(",
",=(",
",=-("
]
},
{
"emoji": "sweat_smile",
"shortcuts": [
",:)",
",:-)",
",=)",
",=-)"
]
},
{
"emoji": "unamused",
"shortcuts": [
":s",
":-S",
":z",
":-Z",
":$",
":-$",
"=s",
"=-S",
"=z",
"=-Z",
"=$",
"=-$"
]
},
{
"emoji": "wink",
"shortcuts": [
";)",
";-)"
]
}
]

File diff suppressed because it is too large Load Diff

View File

@ -1 +0,0 @@
[{"label":"Alabama","value":"AL"},{"label":"Alaska","value":"AK"},{"label":"American Samoa","value":"AS"},{"label":"Arizona","value":"AZ"},{"label":"Arkansas","value":"AR"},{"label":"Armed Forces: Americas","value":"AA"},{"label":"Armed Forces: Europe","value":"AE"},{"label":"Armed Forces: Pacific","value":"AP"},{"label":"California","value":"CA"},{"label":"Colorado","value":"CO"},{"label":"Connecticut","value":"CT"},{"label":"Delaware","value":"DE"},{"label":"District Of Columbia","value":"DC"},{"label":"Federated States Of Micronesia","value":"FM"},{"label":"Florida","value":"FL"},{"label":"Georgia","value":"GA"},{"label":"Guam","value":"GU"},{"label":"Hawaii","value":"HI"},{"label":"Idaho","value":"ID"},{"label":"Illinois","value":"IL"},{"label":"Indiana","value":"IN"},{"label":"Iowa","value":"IA"},{"label":"Kansas","value":"KS"},{"label":"Kentucky","value":"KY"},{"label":"Louisiana","value":"LA"},{"label":"Maine","value":"ME"},{"label":"Marshall Islands","value":"MH"},{"label":"Maryland","value":"MD"},{"label":"Massachusetts","value":"MA"},{"label":"Michigan","value":"MI"},{"label":"Minnesota","value":"MN"},{"label":"Mississippi","value":"MS"},{"label":"Missouri","value":"MO"},{"label":"Montana","value":"MT"},{"label":"Nebraska","value":"NE"},{"label":"Nevada","value":"NV"},{"label":"New Hampshire","value":"NH"},{"label":"New Jersey","value":"NJ"},{"label":"New Mexico","value":"NM"},{"label":"New York","value":"NY"},{"label":"North Carolina","value":"NC"},{"label":"North Dakota","value":"ND"},{"label":"Northern Mariana Islands","value":"MP"},{"label":"Ohio","value":"OH"},{"label":"Oklahoma","value":"OK"},{"label":"Oregon","value":"OR"},{"label":"Palau","value":"PW"},{"label":"Pennsylvania","value":"PA"},{"label":"Puerto Rico","value":"PR"},{"label":"Rhode Island","value":"RI"},{"label":"South Carolina","value":"SC"},{"label":"South Dakota","value":"SD"},{"label":"Tennessee","value":"TN"},{"label":"Texas","value":"TX"},{"label":"Utah","value":"UT"},{"label":"Vermont","value":"VT"},{"label":"Virgin Islands","value":"VI"},{"label":"Virginia","value":"VA"},{"label":"Washington","value":"WA"},{"label":"West Virginia","value":"WV"},{"label":"Wisconsin","value":"WI"},{"label":"Wyoming","value":"WY"}]

View File

@ -1,162 +0,0 @@
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"/>
<style>
* {
padding: 0;
margin: 0;
}
body {
display: table;
width: 100%;
height: 100%;
text-align: center;
}
#hcaptcha-container {
margin-top: 5px;
display: table-cell;
vertical-align: middle;
}
/* overwrite hCaptcha iframe overlay which adds a #FFF background with opacity 0.05 */
div > div:nth-child(2) {
opacity: 0 !important;
}
</style>
</head>
<body>
<div id="hcaptcha-container"></div>
<script type="text/javascript">
// Android will inject this bridge object as `JSInterface`
// Browser is missing it so we mock it
var BridgeObject = window.JSInterface || {
getConfig: function getConfig() {
return JSON.stringify({
siteKey: '10000000-ffff-ffff-ffff-000000000001',
locale: 'ro',
size: 'compact',
theme: 'dark',
sentry: true,
rqdata: null,
apiEndpoint: 'https://hcaptcha.com/1/api.js',
endpoint: null,
assethost: null,
imghost: null,
reportapi: null
});
},
onPass: function onPass(token) {
return console.log("pass: token ".concat(token));
},
onError: function onError(errCode) {
return console.log("error: code ".concat(errCode));
},
onLoaded: function onLoaded() {
return console.log('cb: challenge or checkbox is visible');
}
};
var bridgeConfig = JSON.parse(BridgeObject.getConfig());
function getRenderConfig() {
return {
sitekey: bridgeConfig.siteKey,
size: bridgeConfig.size,
theme: bridgeConfig.theme,
'callback': function callback(token) {
return BridgeObject.onPass(token);
},
'expired-callback': function expiredCallback() {
return BridgeObject.onError(15);
},
'chalexpired-callback': function chalexpiredCallback() {
return BridgeObject.onError(15);
},
'close-callback': function closeCallback() {
return BridgeObject.onError(30);
},
'error-callback': function errorCallback() {
return BridgeObject.onError(31);
},
'open-callback': function openCallback() {
return BridgeObject.onLoaded();
}
};
}
function onHcaptchaLoaded() {
try {
var renderConfig = getRenderConfig();
var rqdata = bridgeConfig.rqdata;
var hCaptchaID = hcaptcha.render('hcaptcha-container', renderConfig);
if (rqdata) {
hcaptcha.setData(hCaptchaID, {
rqdata: rqdata
});
}
if (renderConfig.size === 'invisible') {
hcaptcha.execute(hCaptchaID);
} else {
BridgeObject.onLoaded();
}
} catch (e) {
console.error(e);
BridgeObject.onError(29);
}
}
function addQueryParamIfDefined(url, queryName, queryValue) {
if (queryValue !== undefined && queryValue !== null) {
var link = url.indexOf('?') !== -1 ? '&' : '?';
return url + link + queryName + '=' + encodeURIComponent(queryValue);
}
return url;
}
function loadApi() {
var siteKey = bridgeConfig.siteKey;
var locale = bridgeConfig.locale;
var sentry = bridgeConfig.sentry;
var apiEndpoint = bridgeConfig.apiEndpoint;
var endpoint = bridgeConfig.endpoint;
var assethost = bridgeConfig.assethost;
var imghost = bridgeConfig.imghost;
var reportapi = bridgeConfig.reportapi;
var host = siteKey + '.android-sdk.hcaptcha.com';
var scriptSrc = apiEndpoint + '?render=explicit&onload=' + onHcaptchaLoaded.name;
scriptSrc = addQueryParamIfDefined(scriptSrc, 'recaptchacompat', 'off');
scriptSrc = addQueryParamIfDefined(scriptSrc, 'hl', locale);
scriptSrc = addQueryParamIfDefined(scriptSrc, 'host', host);
scriptSrc = addQueryParamIfDefined(scriptSrc, 'sentry', sentry);
scriptSrc = addQueryParamIfDefined(scriptSrc, 'endpoint', endpoint);
scriptSrc = addQueryParamIfDefined(scriptSrc, 'assethost', assethost);
scriptSrc = addQueryParamIfDefined(scriptSrc, 'imghost', imghost);
scriptSrc = addQueryParamIfDefined(scriptSrc, 'reportapi', reportapi);
var script = document.createElement('script');
script.async = true;
script.src = scriptSrc;
script.onerror = function () {
// network issue
BridgeObject.onError(7);
};
document.head.appendChild(script);
}
document.body.onclick = function () {
if (window.hcaptcha) {
window.hcaptcha.close();
} else {
BridgeObject.onError(30);
}
};
loadApi();
</script>
</body>
</html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

View File

@ -1 +0,0 @@
https://www.reddit.com/r/discordapp/comments/dlkvza/theres_a_cute_catdog_image_hidden_inside_the/

View File

@ -1,90 +0,0 @@
package c.i.a.c;
import android.os.Looper;
import android.util.Log;
import androidx.annotation.Nullable;
import c.i.a.c.i2.g;
import com.airbnb.lottie.parser.AnimatableValueParser;
import com.google.android.exoplayer2.ExoPlaybackException;
import java.util.concurrent.TimeoutException;
/* compiled from: PlayerMessage */
public final class h1 {
public final b a;
public final a b;
/* renamed from: c reason: collision with root package name */
public final g f879c;
public final r1 d;
public int e;
@Nullable
public Object f;
public Looper g;
public int h;
public boolean i;
public boolean j;
public boolean k;
/* compiled from: PlayerMessage */
public interface a {
}
/* compiled from: PlayerMessage */
public interface b {
void r(int i, @Nullable Object obj) throws ExoPlaybackException;
}
public h1(a aVar, b bVar, r1 r1Var, int i, g gVar, Looper looper) {
this.b = aVar;
this.a = bVar;
this.d = r1Var;
this.g = looper;
this.f879c = gVar;
this.h = i;
}
public synchronized boolean a(long j) throws InterruptedException, TimeoutException {
boolean z2;
AnimatableValueParser.D(this.i);
AnimatableValueParser.D(this.g.getThread() != Thread.currentThread());
long c2 = this.f879c.c() + j;
while (true) {
z2 = this.k;
if (z2 || j <= 0) {
break;
}
wait(j);
j = c2 - this.f879c.c();
}
if (!z2) {
throw new TimeoutException("Message delivery timed out.");
}
return this.j;
}
public synchronized boolean b() {
return false;
}
public synchronized void c(boolean z2) {
this.j = z2 | this.j;
this.k = true;
notifyAll();
}
public h1 d() {
AnimatableValueParser.D(!this.i);
AnimatableValueParser.k(true);
this.i = true;
q0 q0Var = (q0) this.b;
synchronized (q0Var) {
if (!q0Var.G) {
if (q0Var.p.isAlive()) {
q0Var.o.c(14, this).sendToTarget();
}
}
Log.w("ExoPlayerImplInternal", "Ignoring messages sent after release.");
c(false);
}
return this;
}
}

View File

@ -1,62 +0,0 @@
package c.i.a.c.h2;
import c.i.a.c.d2.y;
import c.i.a.c.h2.d;
import c.i.a.c.i2.o;
import c.i.a.c.u1.c1;
import c.i.a.c.u1.d1;
import c.i.a.c.u1.k;
import c.i.b.b.u;
import java.util.Iterator;
import java.util.List;
import java.util.NoSuchElementException;
/* compiled from: lambda */
public final /* synthetic */ class a implements Runnable {
public final /* synthetic */ d.a.C0092a.C0093a i;
public final /* synthetic */ int j;
public final /* synthetic */ long k;
public final /* synthetic */ long l;
public /* synthetic */ a(d.a.C0092a.C0093a aVar, int i, long j, long j2) {
this.i = aVar;
this.j = i;
this.k = j;
this.l = j2;
}
@Override // java.lang.Runnable
public final void run() {
y.a aVar;
y.a aVar2;
y.a next;
d.a.C0092a.C0093a aVar3 = this.i;
int i = this.j;
long j = this.k;
long j2 = this.l;
c1 c1Var = (c1) aVar3.b;
c1.a aVar4 = c1Var.l;
if (aVar4.b.isEmpty()) {
aVar = null;
} else {
u<y.a> uVar = aVar4.b;
if (!(uVar instanceof List)) {
Iterator<y.a> it = uVar.iterator();
do {
next = it.next();
} while (it.hasNext());
aVar2 = next;
} else if (!uVar.isEmpty()) {
aVar2 = uVar.get(uVar.size() - 1);
} else {
throw new NoSuchElementException();
}
aVar = aVar2;
}
d1.a a02 = c1Var.a0(aVar);
k kVar = new k(a02, i, j, j2);
c1Var.m.put(1006, a02);
o<d1, d1.b> oVar = c1Var.n;
oVar.b(1006, kVar);
oVar.a();
}
}

View File

@ -1,18 +0,0 @@
package c.i.a.c.h2;
import c.i.a.c.h2.n;
/* compiled from: lambda */
public final /* synthetic */ class b implements Runnable {
public final /* synthetic */ n.a i;
public final /* synthetic */ n j;
public /* synthetic */ b(n.a aVar, n nVar) {
this.i = aVar;
this.j = nVar;
}
@Override // java.lang.Runnable
public final void run() {
this.i.b(this.j);
}
}

View File

@ -1,11 +0,0 @@
package c.i.a.c.h2;
/* compiled from: Allocation */
public final class c {
public final byte[] a;
public final int b;
public c(byte[] bArr, int i) {
this.a = bArr;
this.b = i;
}
}

View File

@ -1,52 +0,0 @@
package c.i.a.c.h2;
import android.os.Handler;
import androidx.annotation.Nullable;
import java.util.Iterator;
import java.util.concurrent.CopyOnWriteArrayList;
/* compiled from: BandwidthMeter */
public interface d {
/* compiled from: BandwidthMeter */
public interface a {
/* compiled from: BandwidthMeter */
/* renamed from: c.i.a.c.h2.d$a$a reason: collision with other inner class name */
public static final class C0092a {
public final CopyOnWriteArrayList<C0093a> a = new CopyOnWriteArrayList<>();
/* compiled from: BandwidthMeter */
/* renamed from: c.i.a.c.h2.d$a$a$a reason: collision with other inner class name */
public static final class C0093a {
public final Handler a;
public final a b;
/* renamed from: c reason: collision with root package name */
public boolean f880c;
public C0093a(Handler handler, a aVar) {
this.a = handler;
this.b = aVar;
}
}
public void a(a aVar) {
Iterator<C0093a> it = this.a.iterator();
while (it.hasNext()) {
C0093a next = it.next();
if (next.b == aVar) {
next.f880c = true;
this.a.remove(next);
}
}
}
}
}
@Nullable
x c();
void d(a aVar);
void f(Handler handler, a aVar);
}

View File

@ -1,65 +0,0 @@
package c.i.a.c.h2;
import androidx.annotation.Nullable;
import c.i.a.c.i2.f0;
import java.util.ArrayList;
import java.util.Map;
import java.util.Objects;
/* compiled from: BaseDataSource */
public abstract class e implements j {
public final boolean a;
public final ArrayList<x> b = new ArrayList<>(1);
/* renamed from: c reason: collision with root package name */
public int f881c;
@Nullable
public l d;
public e(boolean z2) {
this.a = z2;
}
@Override // c.i.a.c.h2.j
public final void d(x xVar) {
Objects.requireNonNull(xVar);
if (!this.b.contains(xVar)) {
this.b.add(xVar);
this.f881c++;
}
}
@Override // c.i.a.c.h2.j
public /* synthetic */ Map j() {
return i.a(this);
}
public final void o(int i) {
l lVar = this.d;
int i2 = f0.a;
for (int i3 = 0; i3 < this.f881c; i3++) {
this.b.get(i3).e(this, lVar, this.a, i);
}
}
public final void p() {
l lVar = this.d;
int i = f0.a;
for (int i2 = 0; i2 < this.f881c; i2++) {
this.b.get(i2).a(this, lVar, this.a);
}
this.d = null;
}
public final void q(l lVar) {
for (int i = 0; i < this.f881c; i++) {
this.b.get(i).g(this, lVar, this.a);
}
}
public final void r(l lVar) {
this.d = lVar;
for (int i = 0; i < this.f881c; i++) {
this.b.get(i).b(this, lVar, this.a);
}
}
}

View File

@ -1,7 +0,0 @@
package c.i.a.c.h2;
import java.io.IOException;
/* compiled from: DataReader */
public interface f {
int read(byte[] bArr, int i, int i2) throws IOException;
}

View File

@ -1,97 +0,0 @@
package c.i.a.c.h2;
import android.net.Uri;
import android.util.Base64;
import androidx.annotation.Nullable;
import c.d.b.a.a;
import c.i.a.c.i2.f0;
import c.i.b.a.c;
import com.google.android.exoplayer2.ParserException;
import com.google.android.exoplayer2.upstream.DataSourceException;
import java.io.IOException;
import java.net.URLDecoder;
/* compiled from: DataSchemeDataSource */
public final class g extends e {
@Nullable
public l e;
@Nullable
public byte[] f;
public int g;
public int h;
public g() {
super(false);
}
@Override // c.i.a.c.h2.j
public long a(l lVar) throws IOException {
q(lVar);
this.e = lVar;
this.h = (int) lVar.f;
Uri uri = lVar.a;
String scheme = uri.getScheme();
if ("data".equals(scheme)) {
String[] G = f0.G(uri.getSchemeSpecificPart(), ",");
if (G.length == 2) {
String str = G[1];
if (G[0].contains(";base64")) {
try {
this.f = Base64.decode(str, 0);
} catch (IllegalArgumentException e) {
throw new ParserException(a.s("Error while parsing Base64 encoded string: ", str), e);
}
} else {
this.f = f0.w(URLDecoder.decode(str, c.a.name()));
}
long j = lVar.g;
int length = j != -1 ? ((int) j) + this.h : this.f.length;
this.g = length;
if (length > this.f.length || this.h > length) {
this.f = null;
throw new DataSourceException(0);
}
r(lVar);
return ((long) this.g) - ((long) this.h);
}
throw new ParserException("Unexpected URI format: " + uri);
}
throw new ParserException(a.s("Unsupported scheme: ", scheme));
}
@Override // c.i.a.c.h2.j
public void close() {
if (this.f != null) {
this.f = null;
p();
}
this.e = null;
}
@Override // c.i.a.c.h2.j
@Nullable
public Uri m() {
l lVar = this.e;
if (lVar != null) {
return lVar.a;
}
return null;
}
@Override // c.i.a.c.h2.f
public int read(byte[] bArr, int i, int i2) {
if (i2 == 0) {
return 0;
}
int i3 = this.g - this.h;
if (i3 == 0) {
return -1;
}
int min = Math.min(i2, i3);
byte[] bArr2 = this.f;
int i4 = f0.a;
System.arraycopy(bArr2, this.h, bArr, i, min);
this.h += min;
o(min);
return min;
}
}

View File

@ -1,11 +0,0 @@
package c.i.a.c.h2;
import java.io.IOException;
/* compiled from: DataSink */
public interface h {
void a(l lVar) throws IOException;
void close() throws IOException;
void write(byte[] bArr, int i, int i2) throws IOException;
}

View File

@ -1,11 +0,0 @@
package c.i.a.c.h2;
import java.util.Collections;
import java.util.Map;
/* compiled from: DataSource */
public final /* synthetic */ class i {
/* JADX WARN: Incorrect args count in method signature: ()Ljava/util/Map<Ljava/lang/String;Ljava/util/List<Ljava/lang/String;>;>; */
public static Map a(j jVar) {
return Collections.emptyMap();
}
}

View File

@ -1,26 +0,0 @@
package c.i.a.c.h2;
import android.net.Uri;
import androidx.annotation.Nullable;
import java.io.IOException;
import java.util.List;
import java.util.Map;
/* compiled from: DataSource */
public interface j extends f {
/* compiled from: DataSource */
public interface a {
j a();
}
long a(l lVar) throws IOException;
void close() throws IOException;
void d(x xVar);
Map<String, List<String>> j();
@Nullable
Uri m();
}

View File

@ -1,56 +0,0 @@
package c.i.a.c.h2;
import com.airbnb.lottie.parser.AnimatableValueParser;
import java.io.IOException;
import java.io.InputStream;
/* compiled from: DataSourceInputStream */
public final class k extends InputStream {
public final j i;
public final l j;
public final byte[] k;
public boolean l = false;
public boolean m = false;
public long n;
public k(j jVar, l lVar) {
this.i = jVar;
this.j = lVar;
this.k = new byte[1];
}
@Override // java.io.InputStream, java.io.Closeable, java.lang.AutoCloseable
public void close() throws IOException {
if (!this.m) {
this.i.close();
this.m = true;
}
}
@Override // java.io.InputStream
public int read() throws IOException {
if (read(this.k) == -1) {
return -1;
}
return this.k[0] & 255;
}
@Override // java.io.InputStream
public int read(byte[] bArr) throws IOException {
return read(bArr, 0, bArr.length);
}
@Override // java.io.InputStream
public int read(byte[] bArr, int i, int i2) throws IOException {
AnimatableValueParser.D(!this.m);
if (!this.l) {
this.i.a(this.j);
this.l = true;
}
int read = this.i.read(bArr, i, i2);
if (read == -1) {
return -1;
}
this.n += (long) read;
return read;
}
}

View File

@ -1,121 +0,0 @@
package c.i.a.c.h2;
import android.net.Uri;
import androidx.annotation.Nullable;
import com.airbnb.lottie.parser.AnimatableValueParser;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
/* compiled from: DataSpec */
public final class l {
public final Uri a;
public final long b;
/* renamed from: c reason: collision with root package name */
public final int f882c;
@Nullable
public final byte[] d;
public final Map<String, String> e;
public final long f;
public final long g;
@Nullable
public final String h;
public final int i;
@Nullable
public final Object j;
/* compiled from: DataSpec */
public static final class b {
@Nullable
public Uri a;
public long b;
/* renamed from: c reason: collision with root package name */
public int f883c;
@Nullable
public byte[] d;
public Map<String, String> e;
public long f;
public long g;
@Nullable
public String h;
public int i;
@Nullable
public Object j;
public b(l lVar, a aVar) {
this.a = lVar.a;
this.b = lVar.b;
this.f883c = lVar.f882c;
this.d = lVar.d;
this.e = lVar.e;
this.f = lVar.f;
this.g = lVar.g;
this.h = lVar.h;
this.i = lVar.i;
this.j = lVar.j;
}
public l a() {
AnimatableValueParser.I(this.a, "The uri must be set.");
return new l(this.a, this.b, this.f883c, this.d, this.e, this.f, this.g, this.h, this.i, this.j);
}
}
public l(Uri uri, long j, int i, @Nullable byte[] bArr, Map<String, String> map, long j2, long j3, @Nullable String str, int i2, @Nullable Object obj) {
byte[] bArr2 = bArr;
boolean z2 = true;
AnimatableValueParser.k(j + j2 >= 0);
AnimatableValueParser.k(j2 >= 0);
if (j3 <= 0 && j3 != -1) {
z2 = false;
}
AnimatableValueParser.k(z2);
this.a = uri;
this.b = j;
this.f882c = i;
this.d = (bArr2 == null || bArr2.length == 0) ? null : bArr2;
this.e = Collections.unmodifiableMap(new HashMap(map));
this.f = j2;
this.g = j3;
this.h = str;
this.i = i2;
this.j = obj;
}
public static String b(int i) {
if (i == 1) {
return "GET";
}
if (i == 2) {
return "POST";
}
if (i == 3) {
return "HEAD";
}
throw new IllegalStateException();
}
public b a() {
return new b(this, null);
}
public boolean c(int i) {
return (this.i & i) == i;
}
public String toString() {
StringBuilder K = c.d.b.a.a.K("DataSpec[");
K.append(b(this.f882c));
K.append(" ");
K.append(this.a);
K.append(", ");
K.append(this.f);
K.append(", ");
K.append(this.g);
K.append(", ");
K.append(this.h);
K.append(", ");
return c.d.b.a.a.w(K, this.i, "]");
}
}

View File

@ -1,61 +0,0 @@
package c.i.a.c.h2;
import c.i.a.c.i2.f0;
import com.airbnb.lottie.parser.AnimatableValueParser;
import java.util.Arrays;
/* compiled from: DefaultAllocator */
public final class m {
public final boolean a;
public final int b;
/* renamed from: c reason: collision with root package name */
public final c[] f884c;
public int d;
public int e;
public int f;
public c[] g;
public m(boolean z2, int i) {
AnimatableValueParser.k(i > 0);
AnimatableValueParser.k(true);
this.a = z2;
this.b = i;
this.f = 0;
this.g = new c[100];
this.f884c = new c[1];
}
public synchronized void a(c[] cVarArr) {
int i = this.f;
int length = cVarArr.length + i;
c[] cVarArr2 = this.g;
if (length >= cVarArr2.length) {
this.g = (c[]) Arrays.copyOf(cVarArr2, Math.max(cVarArr2.length * 2, i + cVarArr.length));
}
for (c cVar : cVarArr) {
c[] cVarArr3 = this.g;
int i2 = this.f;
this.f = i2 + 1;
cVarArr3[i2] = cVar;
}
this.e -= cVarArr.length;
notifyAll();
}
public synchronized void b(int i) {
boolean z2 = i < this.d;
this.d = i;
if (z2) {
c();
}
}
public synchronized void c() {
int max = Math.max(0, f0.f(this.d, this.b) - this.e);
int i = this.f;
if (max < i) {
Arrays.fill(this.g, max, i, (Object) null);
this.f = max;
}
}
}

View File

@ -1,496 +0,0 @@
package c.i.a.c.h2;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Handler;
import android.os.Looper;
import androidx.annotation.Nullable;
import c.i.a.c.h2.d;
import c.i.a.c.i2.f0;
import c.i.a.c.i2.g;
import c.i.a.c.i2.z;
import c.i.b.b.r0;
import c.i.b.b.u;
import c.i.b.b.v;
import c.i.b.b.w;
import com.airbnb.lottie.parser.AnimatableValueParser;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import java.util.SortedMap;
/* compiled from: DefaultBandwidthMeter */
public final class n implements d, x {
public static final v<String, Integer> a = h();
public static final u<Long> b = u.u(6100000L, 3800000L, 2100000L, 1300000L, 590000L);
/* renamed from: c reason: collision with root package name */
public static final u<Long> f885c = u.u(218000L, 159000L, 145000L, 130000L, 112000L);
public static final u<Long> d = u.u(2200000L, 1300000L, 930000L, 730000L, 530000L);
public static final u<Long> e = u.u(4800000L, 2700000L, 1800000L, 1200000L, 630000L);
public static final u<Long> f = u.u(12000000L, 8800000L, 5900000L, 3500000L, 1800000L);
@Nullable
public static n g;
@Nullable
public final Context h;
public final w<Integer, Long> i;
public final d.a.C0092a j;
public final z k;
public final g l;
public int m;
public long n;
public long o;
public int p;
public long q;
public long r;
/* renamed from: s reason: collision with root package name */
public long f886s;
public long t;
/* compiled from: DefaultBandwidthMeter */
public static class a extends BroadcastReceiver {
public static a a;
public final Handler b = new Handler(Looper.getMainLooper());
/* renamed from: c reason: collision with root package name */
public final ArrayList<WeakReference<n>> f887c = new ArrayList<>();
public final void a() {
for (int size = this.f887c.size() - 1; size >= 0; size--) {
if (this.f887c.get(size).get() == null) {
this.f887c.remove(size);
}
}
}
public final void b(n nVar) {
v<String, Integer> vVar = n.a;
synchronized (nVar) {
Context context = nVar.h;
int q = context == null ? 0 : f0.q(context);
if (nVar.p != q) {
nVar.p = q;
if (q != 1 && q != 0 && q != 8) {
nVar.f886s = nVar.i(q);
long c2 = nVar.l.c();
nVar.k(nVar.m > 0 ? (int) (c2 - nVar.n) : 0, nVar.o, nVar.f886s);
nVar.n = c2;
nVar.o = 0;
nVar.r = 0;
nVar.q = 0;
z zVar = nVar.k;
zVar.f915c.clear();
zVar.e = -1;
zVar.f = 0;
zVar.g = 0;
}
}
}
}
@Override // android.content.BroadcastReceiver
public synchronized void onReceive(Context context, Intent intent) {
if (!isInitialStickyBroadcast()) {
a();
for (int i = 0; i < this.f887c.size(); i++) {
n nVar = this.f887c.get(i).get();
if (nVar != null) {
b(nVar);
}
}
}
}
}
@Deprecated
public n() {
this(null, r0.l, 2000, g.a, false);
}
/* JADX WARNING: Code restructure failed: missing block: B:9:0x001c, code lost:
if (r0.e() == false) goto L_0x005e;
*/
public n(@Nullable Context context, Map<Integer, Long> map, int i, g gVar, boolean z2) {
w<Integer, Long> wVar;
a aVar;
this.h = context == null ? null : context.getApplicationContext();
if ((map instanceof w) && !(map instanceof SortedMap)) {
wVar = (w) map;
}
Set<Map.Entry<Integer, Long>> entrySet = map.entrySet();
boolean z3 = entrySet instanceof Collection;
w.a aVar2 = new w.a(z3 ? entrySet.size() : 4);
if (z3) {
aVar2.b(entrySet.size() + aVar2.b);
}
Iterator<T> it = entrySet.iterator();
while (it.hasNext()) {
Map.Entry entry = (Map.Entry) it.next();
aVar2.c(entry.getKey(), entry.getValue());
}
wVar = aVar2.a();
this.i = wVar;
this.j = new d.a.C0092a();
this.k = new z(i);
this.l = gVar;
int q = context == null ? 0 : f0.q(context);
this.p = q;
this.f886s = i(q);
if (context != null && z2) {
a aVar3 = a.a;
synchronized (a.class) {
if (a.a == null) {
a.a = new a();
IntentFilter intentFilter = new IntentFilter();
intentFilter.addAction("android.net.conn.CONNECTIVITY_CHANGE");
context.registerReceiver(a.a, intentFilter);
}
aVar = a.a;
}
synchronized (aVar) {
aVar.a();
aVar.f887c.add(new WeakReference<>(this));
aVar.b.post(new b(aVar, this));
}
}
}
public static v<String, Integer> h() {
v.a f2 = v.f();
f2.b("AD", 1, 2, 0, 0, 2);
f2.b("AE", 1, 4, 4, 4, 1);
f2.b("AF", 4, 4, 3, 4, 2);
f2.b("AG", 2, 2, 1, 1, 2);
f2.b("AI", 1, 2, 2, 2, 2);
f2.b("AL", 1, 1, 0, 1, 2);
f2.b("AM", 2, 2, 1, 2, 2);
f2.b("AO", 3, 4, 4, 2, 2);
f2.b("AR", 2, 4, 2, 2, 2);
f2.b("AS", 2, 2, 4, 3, 2);
f2.b("AT", 0, 3, 0, 0, 2);
f2.b("AU", 0, 2, 0, 1, 1);
f2.b("AW", 1, 2, 0, 4, 2);
f2.b("AX", 0, 2, 2, 2, 2);
f2.b("AZ", 3, 3, 3, 4, 2);
f2.b("BA", 1, 1, 0, 1, 2);
f2.b("BB", 0, 2, 0, 0, 2);
f2.b("BD", 2, 0, 3, 3, 2);
f2.b("BE", 0, 1, 2, 3, 2);
f2.b("BF", 4, 4, 4, 2, 2);
f2.b("BG", 0, 1, 0, 0, 2);
f2.b("BH", 1, 0, 2, 4, 2);
f2.b("BI", 4, 4, 4, 4, 2);
f2.b("BJ", 4, 4, 3, 4, 2);
f2.b("BL", 1, 2, 2, 2, 2);
f2.b("BM", 1, 2, 0, 0, 2);
f2.b("BN", 4, 0, 1, 1, 2);
f2.b("BO", 2, 3, 3, 2, 2);
f2.b("BQ", 1, 2, 1, 2, 2);
f2.b("BR", 2, 4, 2, 1, 2);
f2.b("BS", 3, 2, 2, 3, 2);
f2.b("BT", 3, 0, 3, 2, 2);
f2.b("BW", 3, 4, 2, 2, 2);
f2.b("BY", 1, 0, 2, 1, 2);
f2.b("BZ", 2, 2, 2, 1, 2);
f2.b("CA", 0, 3, 1, 2, 3);
f2.b("CD", 4, 3, 2, 2, 2);
f2.b("CF", 4, 2, 2, 2, 2);
f2.b("CG", 3, 4, 1, 1, 2);
f2.b("CH", 0, 1, 0, 0, 0);
f2.b("CI", 3, 3, 3, 3, 2);
f2.b("CK", 3, 2, 1, 0, 2);
f2.b("CL", 1, 1, 2, 3, 2);
f2.b("CM", 3, 4, 3, 2, 2);
f2.b("CN", 2, 2, 2, 1, 3);
f2.b("CO", 2, 4, 3, 2, 2);
f2.b("CR", 2, 3, 4, 4, 2);
f2.b("CU", 4, 4, 2, 1, 2);
f2.b("CV", 2, 3, 3, 3, 2);
f2.b("CW", 1, 2, 0, 0, 2);
f2.b("CY", 1, 2, 0, 0, 2);
f2.b("CZ", 0, 1, 0, 0, 2);
f2.b("DE", 0, 1, 1, 2, 0);
f2.b("DJ", 4, 1, 4, 4, 2);
f2.b("DK", 0, 0, 1, 0, 2);
f2.b("DM", 1, 2, 2, 2, 2);
f2.b("DO", 3, 4, 4, 4, 2);
f2.b("DZ", 3, 2, 4, 4, 2);
f2.b("EC", 2, 4, 3, 2, 2);
f2.b("EE", 0, 0, 0, 0, 2);
f2.b("EG", 3, 4, 2, 1, 2);
f2.b("EH", 2, 2, 2, 2, 2);
f2.b("ER", 4, 2, 2, 2, 2);
f2.b("ES", 0, 1, 2, 1, 2);
f2.b("ET", 4, 4, 4, 1, 2);
f2.b("FI", 0, 0, 1, 0, 0);
f2.b("FJ", 3, 0, 3, 3, 2);
f2.b("FK", 2, 2, 2, 2, 2);
f2.b("FM", 4, 2, 4, 3, 2);
f2.b("FO", 0, 2, 0, 0, 2);
f2.b("FR", 1, 0, 2, 1, 2);
f2.b("GA", 3, 3, 1, 0, 2);
f2.b("GB", 0, 0, 1, 2, 2);
f2.b("GD", 1, 2, 2, 2, 2);
f2.b("GE", 1, 0, 1, 3, 2);
f2.b("GF", 2, 2, 2, 4, 2);
f2.b("GG", 0, 2, 0, 0, 2);
f2.b("GH", 3, 2, 3, 2, 2);
f2.b("GI", 0, 2, 0, 0, 2);
f2.b("GL", 1, 2, 2, 1, 2);
f2.b("GM", 4, 3, 2, 4, 2);
f2.b("GN", 4, 3, 4, 2, 2);
f2.b("GP", 2, 2, 3, 4, 2);
f2.b("GQ", 4, 2, 3, 4, 2);
f2.b("GR", 1, 1, 0, 1, 2);
f2.b("GT", 3, 2, 3, 2, 2);
f2.b("GU", 1, 2, 4, 4, 2);
f2.b("GW", 3, 4, 4, 3, 2);
f2.b("GY", 3, 3, 1, 0, 2);
f2.b("HK", 0, 2, 3, 4, 2);
f2.b("HN", 3, 0, 3, 3, 2);
f2.b("HR", 1, 1, 0, 1, 2);
f2.b("HT", 4, 3, 4, 4, 2);
f2.b("HU", 0, 1, 0, 0, 2);
f2.b("ID", 3, 2, 2, 3, 2);
f2.b("IE", 0, 0, 1, 1, 2);
f2.b("IL", 1, 0, 2, 3, 2);
f2.b("IM", 0, 2, 0, 1, 2);
f2.b("IN", 2, 1, 3, 3, 2);
f2.b("IO", 4, 2, 2, 4, 2);
f2.b("IQ", 3, 2, 4, 3, 2);
f2.b("IR", 4, 2, 3, 4, 2);
f2.b("IS", 0, 2, 0, 0, 2);
f2.b("IT", 0, 0, 1, 1, 2);
f2.b("JE", 2, 2, 0, 2, 2);
f2.b("JM", 3, 3, 4, 4, 2);
f2.b("JO", 1, 2, 1, 1, 2);
f2.b("JP", 0, 2, 0, 1, 3);
f2.b("KE", 3, 4, 2, 2, 2);
f2.b("KG", 1, 0, 2, 2, 2);
f2.b("KH", 2, 0, 4, 3, 2);
f2.b("KI", 4, 2, 3, 1, 2);
f2.b("KM", 4, 2, 2, 3, 2);
f2.b("KN", 1, 2, 2, 2, 2);
f2.b("KP", 4, 2, 2, 2, 2);
f2.b("KR", 0, 2, 1, 1, 1);
f2.b("KW", 2, 3, 1, 1, 1);
f2.b("KY", 1, 2, 0, 0, 2);
f2.b("KZ", 1, 2, 2, 3, 2);
f2.b("LA", 2, 2, 1, 1, 2);
f2.b("LB", 3, 2, 0, 0, 2);
f2.b("LC", 1, 1, 0, 0, 2);
f2.b("LI", 0, 2, 2, 2, 2);
f2.b("LK", 2, 0, 2, 3, 2);
f2.b("LR", 3, 4, 3, 2, 2);
f2.b("LS", 3, 3, 2, 3, 2);
f2.b("LT", 0, 0, 0, 0, 2);
f2.b("LU", 0, 0, 0, 0, 2);
f2.b("LV", 0, 0, 0, 0, 2);
f2.b("LY", 4, 2, 4, 3, 2);
f2.b("MA", 2, 1, 2, 1, 2);
f2.b("MC", 0, 2, 2, 2, 2);
f2.b("MD", 1, 2, 0, 0, 2);
f2.b("ME", 1, 2, 1, 2, 2);
f2.b("MF", 1, 2, 1, 0, 2);
f2.b("MG", 3, 4, 3, 3, 2);
f2.b("MH", 4, 2, 2, 4, 2);
f2.b("MK", 1, 0, 0, 0, 2);
f2.b("ML", 4, 4, 1, 1, 2);
f2.b("MM", 2, 3, 2, 2, 2);
f2.b("MN", 2, 4, 1, 1, 2);
f2.b("MO", 0, 2, 4, 4, 2);
f2.b("MP", 0, 2, 2, 2, 2);
f2.b("MQ", 2, 2, 2, 3, 2);
f2.b("MR", 3, 0, 4, 2, 2);
f2.b("MS", 1, 2, 2, 2, 2);
f2.b("MT", 0, 2, 0, 1, 2);
f2.b("MU", 3, 1, 2, 3, 2);
f2.b("MV", 4, 3, 1, 4, 2);
f2.b("MW", 4, 1, 1, 0, 2);
f2.b("MX", 2, 4, 3, 3, 2);
f2.b("MY", 2, 0, 3, 3, 2);
f2.b("MZ", 3, 3, 2, 3, 2);
f2.b("NA", 4, 3, 2, 2, 2);
f2.b("NC", 2, 0, 4, 4, 2);
f2.b("NE", 4, 4, 4, 4, 2);
f2.b("NF", 2, 2, 2, 2, 2);
f2.b("NG", 3, 3, 2, 2, 2);
f2.b("NI", 3, 1, 4, 4, 2);
f2.b("NL", 0, 2, 4, 2, 0);
f2.b("NO", 0, 1, 1, 0, 2);
f2.b("NP", 2, 0, 4, 3, 2);
f2.b("NR", 4, 2, 3, 1, 2);
f2.b("NU", 4, 2, 2, 2, 2);
f2.b("NZ", 0, 2, 1, 2, 4);
f2.b("OM", 2, 2, 0, 2, 2);
f2.b("PA", 1, 3, 3, 4, 2);
f2.b("PE", 2, 4, 4, 4, 2);
f2.b("PF", 2, 2, 1, 1, 2);
f2.b("PG", 4, 3, 3, 2, 2);
f2.b("PH", 3, 0, 3, 4, 4);
f2.b("PK", 3, 2, 3, 3, 2);
f2.b("PL", 1, 0, 2, 2, 2);
f2.b("PM", 0, 2, 2, 2, 2);
f2.b("PR", 1, 2, 2, 3, 4);
f2.b("PS", 3, 3, 2, 2, 2);
f2.b("PT", 1, 1, 0, 0, 2);
f2.b("PW", 1, 2, 3, 0, 2);
f2.b("PY", 2, 0, 3, 3, 2);
f2.b("QA", 2, 3, 1, 2, 2);
f2.b("RE", 1, 0, 2, 1, 2);
f2.b("RO", 1, 1, 1, 2, 2);
f2.b("RS", 1, 2, 0, 0, 2);
f2.b("RU", 0, 1, 0, 1, 2);
f2.b("RW", 4, 3, 3, 4, 2);
f2.b("SA", 2, 2, 2, 1, 2);
f2.b("SB", 4, 2, 4, 2, 2);
f2.b("SC", 4, 2, 0, 1, 2);
f2.b("SD", 4, 4, 4, 3, 2);
f2.b("SE", 0, 0, 0, 0, 2);
f2.b("SG", 0, 0, 3, 3, 4);
f2.b("SH", 4, 2, 2, 2, 2);
f2.b("SI", 0, 1, 0, 0, 2);
f2.b("SJ", 2, 2, 2, 2, 2);
f2.b("SK", 0, 1, 0, 0, 2);
f2.b("SL", 4, 3, 3, 1, 2);
f2.b("SM", 0, 2, 2, 2, 2);
f2.b("SN", 4, 4, 4, 3, 2);
f2.b("SO", 3, 4, 4, 4, 2);
f2.b("SR", 3, 2, 3, 1, 2);
f2.b("SS", 4, 1, 4, 2, 2);
f2.b("ST", 2, 2, 1, 2, 2);
f2.b("SV", 2, 1, 4, 4, 2);
f2.b("SX", 2, 2, 1, 0, 2);
f2.b("SY", 4, 3, 2, 2, 2);
f2.b("SZ", 3, 4, 3, 4, 2);
f2.b("TC", 1, 2, 1, 0, 2);
f2.b("TD", 4, 4, 4, 4, 2);
f2.b("TG", 3, 2, 1, 0, 2);
f2.b("TH", 1, 3, 4, 3, 0);
f2.b("TJ", 4, 4, 4, 4, 2);
f2.b("TL", 4, 1, 4, 4, 2);
f2.b("TM", 4, 2, 1, 2, 2);
f2.b("TN", 2, 1, 1, 1, 2);
f2.b("TO", 3, 3, 4, 2, 2);
f2.b("TR", 1, 2, 1, 1, 2);
f2.b("TT", 1, 3, 1, 3, 2);
f2.b("TV", 3, 2, 2, 4, 2);
f2.b("TW", 0, 0, 0, 0, 1);
f2.b("TZ", 3, 3, 3, 2, 2);
f2.b("UA", 0, 3, 0, 0, 2);
f2.b("UG", 3, 2, 2, 3, 2);
f2.b("US", 0, 1, 3, 3, 3);
f2.b("UY", 2, 1, 1, 1, 2);
f2.b("UZ", 2, 0, 3, 2, 2);
f2.b("VC", 2, 2, 2, 2, 2);
f2.b("VE", 4, 4, 4, 4, 2);
f2.b("VG", 2, 2, 1, 2, 2);
f2.b("VI", 1, 2, 2, 4, 2);
f2.b("VN", 0, 1, 4, 4, 2);
f2.b("VU", 4, 1, 3, 1, 2);
f2.b("WS", 3, 1, 4, 2, 2);
f2.b("XK", 1, 1, 1, 0, 2);
f2.b("YE", 4, 4, 4, 4, 2);
f2.b("YT", 3, 2, 1, 3, 2);
f2.b("ZA", 2, 3, 2, 2, 2);
f2.b("ZM", 3, 2, 2, 3, 2);
f2.b("ZW", 3, 3, 3, 3, 2);
return f2.a();
}
public static boolean j(l lVar, boolean z2) {
return z2 && !lVar.c(8);
}
@Override // c.i.a.c.h2.x
public synchronized void a(j jVar, l lVar, boolean z2) {
if (j(lVar, z2)) {
AnimatableValueParser.D(this.m > 0);
long c2 = this.l.c();
int i = (int) (c2 - this.n);
this.q += (long) i;
long j = this.r;
long j2 = this.o;
this.r = j + j2;
if (i > 0) {
this.k.a((int) Math.sqrt((double) j2), (((float) j2) * 8000.0f) / ((float) i));
if (this.q >= 2000 || this.r >= 524288) {
this.f886s = (long) this.k.b(0.5f);
}
k(i, this.o, this.f886s);
this.n = c2;
this.o = 0;
}
this.m--;
}
}
@Override // c.i.a.c.h2.x
public synchronized void b(j jVar, l lVar, boolean z2) {
if (j(lVar, z2)) {
if (this.m == 0) {
this.n = this.l.c();
}
this.m++;
}
}
@Override // c.i.a.c.h2.d
public x c() {
return this;
}
@Override // c.i.a.c.h2.d
public void d(d.a aVar) {
this.j.a(aVar);
}
@Override // c.i.a.c.h2.x
public synchronized void e(j jVar, l lVar, boolean z2, int i) {
if (j(lVar, z2)) {
this.o += (long) i;
}
}
@Override // c.i.a.c.h2.d
public void f(Handler handler, d.a aVar) {
d.a.C0092a aVar2 = this.j;
Objects.requireNonNull(aVar2);
aVar2.a(aVar);
aVar2.a.add(new d.a.C0092a.C0093a(handler, aVar));
}
@Override // c.i.a.c.h2.x
public void g(j jVar, l lVar, boolean z2) {
}
public final long i(int i) {
Long l = this.i.get(Integer.valueOf(i));
if (l == null) {
l = this.i.get(0);
}
if (l == null) {
l = 1000000L;
}
return l.longValue();
}
public final void k(int i, long j, long j2) {
if (i != 0 || j != 0 || j2 != this.t) {
this.t = j2;
Iterator<d.a.C0092a.C0093a> it = this.j.a.iterator();
while (it.hasNext()) {
d.a.C0092a.C0093a next = it.next();
if (!next.f880c) {
next.a.post(new a(next, i, j, j2));
}
}
}
}
}

View File

@ -1,212 +0,0 @@
package c.i.a.c.h2;
import android.content.Context;
import android.net.Uri;
import android.text.TextUtils;
import android.util.Log;
import androidx.annotation.Nullable;
import c.i.a.c.i2.f0;
import com.airbnb.lottie.parser.AnimatableValueParser;
import com.google.android.exoplayer2.upstream.AssetDataSource;
import com.google.android.exoplayer2.upstream.ContentDataSource;
import com.google.android.exoplayer2.upstream.FileDataSource;
import com.google.android.exoplayer2.upstream.RawResourceDataSource;
import com.google.android.exoplayer2.upstream.UdpDataSource;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Objects;
/* compiled from: DefaultDataSource */
public final class o implements j {
public final Context a;
public final List<x> b = new ArrayList();
/* renamed from: c reason: collision with root package name */
public final j f888c;
@Nullable
public j d;
@Nullable
public j e;
@Nullable
public j f;
@Nullable
public j g;
@Nullable
public j h;
@Nullable
public j i;
@Nullable
public j j;
@Nullable
public j k;
public o(Context context, j jVar) {
this.a = context.getApplicationContext();
Objects.requireNonNull(jVar);
this.f888c = jVar;
}
@Override // c.i.a.c.h2.j
public long a(l lVar) throws IOException {
boolean z2 = true;
AnimatableValueParser.D(this.k == null);
String scheme = lVar.a.getScheme();
Uri uri = lVar.a;
int i = f0.a;
String scheme2 = uri.getScheme();
if (!TextUtils.isEmpty(scheme2) && !"file".equals(scheme2)) {
z2 = false;
}
if (z2) {
String path = lVar.a.getPath();
if (path == null || !path.startsWith("/android_asset/")) {
if (this.d == null) {
FileDataSource fileDataSource = new FileDataSource();
this.d = fileDataSource;
o(fileDataSource);
}
this.k = this.d;
} else {
if (this.e == null) {
AssetDataSource assetDataSource = new AssetDataSource(this.a);
this.e = assetDataSource;
o(assetDataSource);
}
this.k = this.e;
}
} else if ("asset".equals(scheme)) {
if (this.e == null) {
AssetDataSource assetDataSource2 = new AssetDataSource(this.a);
this.e = assetDataSource2;
o(assetDataSource2);
}
this.k = this.e;
} else if ("content".equals(scheme)) {
if (this.f == null) {
ContentDataSource contentDataSource = new ContentDataSource(this.a);
this.f = contentDataSource;
o(contentDataSource);
}
this.k = this.f;
} else if ("rtmp".equals(scheme)) {
if (this.g == null) {
try {
j jVar = (j) Class.forName("com.google.android.exoplayer2.ext.rtmp.RtmpDataSource").getConstructor(new Class[0]).newInstance(new Object[0]);
this.g = jVar;
o(jVar);
} catch (ClassNotFoundException unused) {
Log.w("DefaultDataSource", "Attempting to play RTMP stream without depending on the RTMP extension");
} catch (Exception e) {
throw new RuntimeException("Error instantiating RTMP extension", e);
}
if (this.g == null) {
this.g = this.f888c;
}
}
this.k = this.g;
} else if ("udp".equals(scheme)) {
if (this.h == null) {
UdpDataSource udpDataSource = new UdpDataSource();
this.h = udpDataSource;
o(udpDataSource);
}
this.k = this.h;
} else if ("data".equals(scheme)) {
if (this.i == null) {
g gVar = new g();
this.i = gVar;
o(gVar);
}
this.k = this.i;
} else if ("rawresource".equals(scheme) || "android.resource".equals(scheme)) {
if (this.j == null) {
RawResourceDataSource rawResourceDataSource = new RawResourceDataSource(this.a);
this.j = rawResourceDataSource;
o(rawResourceDataSource);
}
this.k = this.j;
} else {
this.k = this.f888c;
}
return this.k.a(lVar);
}
@Override // c.i.a.c.h2.j
public void close() throws IOException {
j jVar = this.k;
if (jVar != null) {
j jVar2 = null;
try {
jVar.close();
} finally {
this.k = jVar2;
}
}
}
@Override // c.i.a.c.h2.j
public void d(x xVar) {
Objects.requireNonNull(xVar);
this.f888c.d(xVar);
this.b.add(xVar);
j jVar = this.d;
if (jVar != null) {
jVar.d(xVar);
}
j jVar2 = this.e;
if (jVar2 != null) {
jVar2.d(xVar);
}
j jVar3 = this.f;
if (jVar3 != null) {
jVar3.d(xVar);
}
j jVar4 = this.g;
if (jVar4 != null) {
jVar4.d(xVar);
}
j jVar5 = this.h;
if (jVar5 != null) {
jVar5.d(xVar);
}
j jVar6 = this.i;
if (jVar6 != null) {
jVar6.d(xVar);
}
j jVar7 = this.j;
if (jVar7 != null) {
jVar7.d(xVar);
}
}
@Override // c.i.a.c.h2.j
public Map<String, List<String>> j() {
j jVar = this.k;
return jVar == null ? Collections.emptyMap() : jVar.j();
}
@Override // c.i.a.c.h2.j
@Nullable
public Uri m() {
j jVar = this.k;
if (jVar == null) {
return null;
}
return jVar.m();
}
public final void o(j jVar) {
for (int i = 0; i < this.b.size(); i++) {
jVar.d(this.b.get(i));
}
}
@Override // c.i.a.c.h2.f
public int read(byte[] bArr, int i, int i2) throws IOException {
j jVar = this.k;
Objects.requireNonNull(jVar);
return jVar.read(bArr, i, i2);
}
}

View File

@ -1,30 +0,0 @@
package c.i.a.c.h2;
import android.content.Context;
import androidx.annotation.Nullable;
import c.i.a.c.h2.j;
import c.i.a.c.h2.q;
/* compiled from: DefaultDataSourceFactory */
public final class p implements j.a {
public final Context a;
public final j.a b;
public p(Context context) {
q.b bVar = new q.b();
bVar.b = null;
this.a = context.getApplicationContext();
this.b = bVar;
}
public p(Context context, @Nullable String str) {
q.b bVar = new q.b();
bVar.b = str;
this.a = context.getApplicationContext();
this.b = bVar;
}
/* renamed from: b */
public o a() {
return new o(this.a, this.b.a());
}
}

View File

@ -1,453 +0,0 @@
package c.i.a.c.h2;
import android.net.Uri;
import android.text.TextUtils;
import android.util.Log;
import androidx.annotation.Nullable;
import c.i.a.c.i2.f0;
import c.i.a.c.i2.p;
import c.i.b.a.h;
import com.google.android.exoplayer2.upstream.DataSourceException;
import com.google.android.exoplayer2.upstream.HttpDataSource$CleartextNotPermittedException;
import com.google.android.exoplayer2.upstream.HttpDataSource$HttpDataSourceException;
import com.google.android.exoplayer2.upstream.HttpDataSource$InvalidContentTypeException;
import com.google.android.exoplayer2.upstream.HttpDataSource$InvalidResponseCodeException;
import java.io.EOFException;
import java.io.IOException;
import java.io.InputStream;
import java.io.InterruptedIOException;
import java.io.OutputStream;
import java.lang.reflect.Method;
import java.net.HttpURLConnection;
import java.net.NoRouteToHostException;
import java.net.ProtocolException;
import java.net.URL;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.zip.GZIPInputStream;
/* compiled from: DefaultHttpDataSource */
public class q extends e implements j {
public static final Pattern e = Pattern.compile("^bytes (\\d+)-(\\d+)/(\\d+)$");
public final boolean f;
public final int g;
public final int h;
@Nullable
public final String i;
@Nullable
public final t j;
public final t k = new t();
@Nullable
public h<String> l = null;
@Nullable
public l m;
@Nullable
public HttpURLConnection n;
@Nullable
public InputStream o;
public byte[] p;
public boolean q;
public int r;
/* renamed from: s reason: collision with root package name */
public long f889s;
public long t;
public long u;
public long v;
/* compiled from: DefaultHttpDataSource */
public static final class b implements s {
public final t a = new t();
@Nullable
public String b;
/* renamed from: c reason: collision with root package name */
public int f890c = 8000;
public int d = 8000;
/* renamed from: b */
public q a() {
return new q(this.b, this.f890c, this.d, false, this.a, null, null);
}
}
public q(String str, int i, int i2, boolean z2, t tVar, h hVar, a aVar) {
super(true);
this.i = str;
this.g = i;
this.h = i2;
this.f = z2;
this.j = tVar;
}
public static URL t(URL url, @Nullable String str) throws IOException {
if (str != null) {
URL url2 = new URL(url, str);
String protocol = url2.getProtocol();
if ("https".equals(protocol) || "http".equals(protocol)) {
return url2;
}
throw new ProtocolException(c.d.b.a.a.s("Unsupported protocol redirect: ", protocol));
}
throw new ProtocolException("Null location redirect");
}
public static void w(@Nullable HttpURLConnection httpURLConnection, long j) {
int i;
if (httpURLConnection != null && (i = f0.a) >= 19 && i <= 20) {
try {
InputStream inputStream = httpURLConnection.getInputStream();
if (j == -1) {
if (inputStream.read() == -1) {
return;
}
} else if (j <= 2048) {
return;
}
String name = inputStream.getClass().getName();
if ("com.android.okhttp.internal.http.HttpTransport$ChunkedInputStream".equals(name) || "com.android.okhttp.internal.http.HttpTransport$FixedLengthInputStream".equals(name)) {
Class<? super Object> superclass = inputStream.getClass().getSuperclass();
Objects.requireNonNull(superclass);
Method declaredMethod = superclass.getDeclaredMethod("unexpectedEndOfInput", new Class[0]);
declaredMethod.setAccessible(true);
declaredMethod.invoke(inputStream, new Object[0]);
}
} catch (Exception unused) {
}
}
}
/* JADX WARNING: Code restructure failed: missing block: B:18:0x004e, code lost:
if (r7 != 0) goto L_0x0052;
*/
/* JADX WARNING: Removed duplicated region for block: B:34:0x00a7 */
/* JADX WARNING: Removed duplicated region for block: B:48:0x011b */
/* JADX WARNING: Removed duplicated region for block: B:49:0x0120 */
@Override // c.i.a.c.h2.j
public long a(l lVar) throws HttpDataSource$HttpDataSourceException {
byte[] bArr;
long j;
long j2;
String headerField;
this.m = lVar;
this.v = 0;
this.u = 0;
q(lVar);
try {
HttpURLConnection u = u(lVar);
this.n = u;
try {
this.r = u.getResponseCode();
String responseMessage = u.getResponseMessage();
int i = this.r;
if (i < 200 || i > 299) {
Map<String, List<String>> headerFields = u.getHeaderFields();
InputStream errorStream = u.getErrorStream();
if (errorStream != null) {
try {
bArr = f0.J(errorStream);
} catch (IOException unused) {
bArr = f0.f;
}
} else {
bArr = f0.f;
}
s();
HttpDataSource$InvalidResponseCodeException httpDataSource$InvalidResponseCodeException = new HttpDataSource$InvalidResponseCodeException(this.r, responseMessage, headerFields, lVar, bArr);
if (this.r == 416) {
httpDataSource$InvalidResponseCodeException.initCause(new DataSourceException(0));
}
throw httpDataSource$InvalidResponseCodeException;
}
String contentType = u.getContentType();
h<String> hVar = this.l;
if (hVar == null || hVar.apply(contentType)) {
if (this.r == 200) {
j = lVar.f;
}
j = 0;
this.f889s = j;
boolean equalsIgnoreCase = "gzip".equalsIgnoreCase(u.getHeaderField("Content-Encoding"));
if (!equalsIgnoreCase) {
long j3 = lVar.g;
if (j3 != -1) {
this.t = j3;
} else {
String headerField2 = u.getHeaderField("Content-Length");
if (!TextUtils.isEmpty(headerField2)) {
try {
j2 = Long.parseLong(headerField2);
} catch (NumberFormatException unused2) {
Log.e("DefaultHttpDataSource", "Unexpected Content-Length [" + headerField2 + "]");
}
headerField = u.getHeaderField("Content-Range");
if (!TextUtils.isEmpty(headerField)) {
Matcher matcher = e.matcher(headerField);
if (matcher.find()) {
try {
String group = matcher.group(2);
Objects.requireNonNull(group);
long parseLong = Long.parseLong(group);
String group2 = matcher.group(1);
Objects.requireNonNull(group2);
long parseLong2 = (parseLong - Long.parseLong(group2)) + 1;
if (j2 < 0) {
j2 = parseLong2;
} else if (j2 != parseLong2) {
Log.w("DefaultHttpDataSource", "Inconsistent headers [" + headerField2 + "] [" + headerField + "]");
j2 = Math.max(j2, parseLong2);
}
} catch (NumberFormatException unused3) {
Log.e("DefaultHttpDataSource", "Unexpected Content-Range [" + headerField + "]");
}
}
}
this.t = j2 == -1 ? j2 - this.f889s : -1;
}
j2 = -1;
headerField = u.getHeaderField("Content-Range");
if (!TextUtils.isEmpty(headerField)) {
}
this.t = j2 == -1 ? j2 - this.f889s : -1;
}
} else {
this.t = lVar.g;
}
try {
this.o = u.getInputStream();
if (equalsIgnoreCase) {
this.o = new GZIPInputStream(this.o);
}
this.q = true;
r(lVar);
return this.t;
} catch (IOException e2) {
s();
throw new HttpDataSource$HttpDataSourceException(e2, lVar, 1);
}
} else {
s();
throw new HttpDataSource$InvalidContentTypeException(contentType, lVar);
}
} catch (IOException e3) {
s();
throw new HttpDataSource$HttpDataSourceException("Unable to connect", e3, lVar, 1);
}
} catch (IOException e4) {
String message = e4.getMessage();
if (message == null || !f0.K(message).matches("cleartext http traffic.*not permitted.*")) {
throw new HttpDataSource$HttpDataSourceException("Unable to connect", e4, lVar, 1);
}
throw new HttpDataSource$CleartextNotPermittedException(e4, lVar);
}
}
@Override // c.i.a.c.h2.j
public void close() throws HttpDataSource$HttpDataSourceException {
boolean z2 = false;
InputStream inputStream = null;
try {
InputStream inputStream2 = this.o;
if (inputStream2 != null) {
HttpURLConnection httpURLConnection = this.n;
long j = this.t;
if (j != -1) {
j -= this.v;
}
w(httpURLConnection, j);
try {
inputStream2.close();
} catch (IOException e2) {
l lVar = this.m;
int i = f0.a;
throw new HttpDataSource$HttpDataSourceException(e2, lVar, 3);
}
}
} finally {
this.o = inputStream;
s();
if (this.q) {
this.q = z2;
p();
}
}
}
@Override // c.i.a.c.h2.e, c.i.a.c.h2.j
public Map<String, List<String>> j() {
HttpURLConnection httpURLConnection = this.n;
return httpURLConnection == null ? Collections.emptyMap() : httpURLConnection.getHeaderFields();
}
@Override // c.i.a.c.h2.j
@Nullable
public Uri m() {
HttpURLConnection httpURLConnection = this.n;
if (httpURLConnection == null) {
return null;
}
return Uri.parse(httpURLConnection.getURL().toString());
}
@Override // c.i.a.c.h2.f
public int read(byte[] bArr, int i, int i2) throws HttpDataSource$HttpDataSourceException {
try {
x();
if (i2 == 0) {
return 0;
}
long j = this.t;
if (j != -1) {
long j2 = j - this.v;
if (j2 != 0) {
i2 = (int) Math.min((long) i2, j2);
}
return -1;
}
InputStream inputStream = this.o;
int i3 = f0.a;
int read = inputStream.read(bArr, i, i2);
if (read != -1) {
this.v += (long) read;
o(read);
return read;
} else if (this.t == -1) {
return -1;
} else {
throw new EOFException();
}
} catch (IOException e2) {
l lVar = this.m;
int i4 = f0.a;
throw new HttpDataSource$HttpDataSourceException(e2, lVar, 2);
}
}
public final void s() {
HttpURLConnection httpURLConnection = this.n;
if (httpURLConnection != null) {
try {
httpURLConnection.disconnect();
} catch (Exception e2) {
p.b("DefaultHttpDataSource", "Unexpected error while disconnecting", e2);
}
this.n = null;
}
}
public final HttpURLConnection u(l lVar) throws IOException {
HttpURLConnection v;
l lVar2 = lVar;
URL url = new URL(lVar2.a.toString());
int i = lVar2.f882c;
byte[] bArr = lVar2.d;
long j = lVar2.f;
long j2 = lVar2.g;
boolean c2 = lVar2.c(1);
if (!this.f) {
return v(url, i, bArr, j, j2, c2, true, lVar2.e);
}
int i2 = 0;
while (true) {
int i3 = i2 + 1;
if (i2 <= 20) {
v = v(url, i, bArr, j, j2, c2, false, lVar2.e);
int responseCode = v.getResponseCode();
String headerField = v.getHeaderField("Location");
if ((i == 1 || i == 3) && (responseCode == 300 || responseCode == 301 || responseCode == 302 || responseCode == 303 || responseCode == 307 || responseCode == 308)) {
v.disconnect();
url = t(url, headerField);
} else if (i != 2 || (responseCode != 300 && responseCode != 301 && responseCode != 302 && responseCode != 303)) {
break;
} else {
v.disconnect();
url = t(url, headerField);
i = 1;
bArr = null;
}
lVar2 = lVar;
i2 = i3;
j2 = j2;
j = j;
} else {
throw new NoRouteToHostException(c.d.b.a.a.j("Too many redirects: ", i3));
}
}
return v;
}
public final HttpURLConnection v(URL url, int i, @Nullable byte[] bArr, long j, long j2, boolean z2, boolean z3, Map<String, String> map) throws IOException {
HttpURLConnection httpURLConnection = (HttpURLConnection) url.openConnection();
httpURLConnection.setConnectTimeout(this.g);
httpURLConnection.setReadTimeout(this.h);
HashMap hashMap = new HashMap();
t tVar = this.j;
if (tVar != null) {
hashMap.putAll(tVar.a());
}
hashMap.putAll(this.k.a());
hashMap.putAll(map);
for (Map.Entry entry : hashMap.entrySet()) {
httpURLConnection.setRequestProperty((String) entry.getKey(), (String) entry.getValue());
}
if (!(j == 0 && j2 == -1)) {
String p = c.d.b.a.a.p("bytes=", j, "-");
if (j2 != -1) {
StringBuilder K = c.d.b.a.a.K(p);
K.append((j + j2) - 1);
p = K.toString();
}
httpURLConnection.setRequestProperty("Range", p);
}
String str = this.i;
if (str != null) {
httpURLConnection.setRequestProperty("User-Agent", str);
}
httpURLConnection.setRequestProperty("Accept-Encoding", z2 ? "gzip" : "identity");
httpURLConnection.setInstanceFollowRedirects(z3);
httpURLConnection.setDoOutput(bArr != null);
httpURLConnection.setRequestMethod(l.b(i));
if (bArr != null) {
httpURLConnection.setFixedLengthStreamingMode(bArr.length);
httpURLConnection.connect();
OutputStream outputStream = httpURLConnection.getOutputStream();
outputStream.write(bArr);
outputStream.close();
} else {
httpURLConnection.connect();
}
return httpURLConnection;
}
public final void x() throws IOException {
if (this.u != this.f889s) {
if (this.p == null) {
this.p = new byte[4096];
}
while (true) {
long j = this.u;
long j2 = this.f889s;
if (j != j2) {
int min = (int) Math.min(j2 - j, (long) this.p.length);
InputStream inputStream = this.o;
int i = f0.a;
int read = inputStream.read(this.p, 0, min);
if (Thread.currentThread().isInterrupted()) {
throw new InterruptedIOException();
} else if (read != -1) {
this.u += (long) read;
o(read);
} else {
throw new EOFException();
}
} else {
return;
}
}
}
}
}

View File

@ -1,7 +0,0 @@
package c.i.a.c.h2;
/* compiled from: DefaultLoadErrorHandlingPolicy */
public class r implements u {
public int a(int i) {
return i == 7 ? 6 : 3;
}
}

View File

@ -1,6 +0,0 @@
package c.i.a.c.h2;
import c.i.a.c.h2.j;
/* compiled from: HttpDataSource */
public interface s extends j.a {
}

View File

@ -1,19 +0,0 @@
package c.i.a.c.h2;
import androidx.annotation.Nullable;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
/* compiled from: HttpDataSource */
public final class t {
public final Map<String, String> a = new HashMap();
@Nullable
public Map<String, String> b;
public synchronized Map<String, String> a() {
if (this.b == null) {
this.b = Collections.unmodifiableMap(new HashMap(this.a));
}
return this.b;
}
}

View File

@ -1,4 +0,0 @@
package c.i.a.c.h2;
/* compiled from: LoadErrorHandlingPolicy */
public interface u {
}

View File

@ -1,66 +0,0 @@
package c.i.a.c.h2;
import android.net.Uri;
import androidx.annotation.Nullable;
import java.io.IOException;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Objects;
/* compiled from: StatsDataSource */
public final class v implements j {
public final j a;
public long b;
/* renamed from: c reason: collision with root package name */
public Uri f891c = Uri.EMPTY;
public Map<String, List<String>> d = Collections.emptyMap();
public v(j jVar) {
Objects.requireNonNull(jVar);
this.a = jVar;
}
@Override // c.i.a.c.h2.j
public long a(l lVar) throws IOException {
this.f891c = lVar.a;
this.d = Collections.emptyMap();
long a = this.a.a(lVar);
Uri m = m();
Objects.requireNonNull(m);
this.f891c = m;
this.d = j();
return a;
}
@Override // c.i.a.c.h2.j
public void close() throws IOException {
this.a.close();
}
@Override // c.i.a.c.h2.j
public void d(x xVar) {
Objects.requireNonNull(xVar);
this.a.d(xVar);
}
@Override // c.i.a.c.h2.j
public Map<String, List<String>> j() {
return this.a.j();
}
@Override // c.i.a.c.h2.j
@Nullable
public Uri m() {
return this.a.m();
}
@Override // c.i.a.c.h2.f
public int read(byte[] bArr, int i, int i2) throws IOException {
int read = this.a.read(bArr, i, i2);
if (read != -1) {
this.b += (long) read;
}
return read;
}
}

View File

@ -1,85 +0,0 @@
package c.i.a.c.h2;
import android.net.Uri;
import androidx.annotation.Nullable;
import java.io.IOException;
import java.util.List;
import java.util.Map;
import java.util.Objects;
/* compiled from: TeeDataSource */
public final class w implements j {
public final j a;
public final h b;
/* renamed from: c reason: collision with root package name */
public boolean f892c;
public long d;
public w(j jVar, h hVar) {
this.a = jVar;
this.b = hVar;
}
@Override // c.i.a.c.h2.j
public long a(l lVar) throws IOException {
l lVar2 = lVar;
long a = this.a.a(lVar2);
this.d = a;
if (a == 0) {
return 0;
}
long j = lVar2.g;
if (j == -1 && a != -1) {
lVar2 = j == a ? lVar2 : new l(lVar2.a, lVar2.b, lVar2.f882c, lVar2.d, lVar2.e, lVar2.f + 0, a, lVar2.h, lVar2.i, lVar2.j);
}
this.f892c = true;
this.b.a(lVar2);
return this.d;
}
@Override // c.i.a.c.h2.j
public void close() throws IOException {
boolean z2 = false;
try {
this.a.close();
} finally {
if (this.f892c) {
this.f892c = z2;
this.b.close();
}
}
}
@Override // c.i.a.c.h2.j
public void d(x xVar) {
Objects.requireNonNull(xVar);
this.a.d(xVar);
}
@Override // c.i.a.c.h2.j
public Map<String, List<String>> j() {
return this.a.j();
}
@Override // c.i.a.c.h2.j
@Nullable
public Uri m() {
return this.a.m();
}
@Override // c.i.a.c.h2.f
public int read(byte[] bArr, int i, int i2) throws IOException {
if (this.d == 0) {
return -1;
}
int read = this.a.read(bArr, i, i2);
if (read > 0) {
this.b.write(bArr, i, read);
long j = this.d;
if (j != -1) {
this.d = j - ((long) read);
}
}
return read;
}
}

View File

@ -1,11 +0,0 @@
package c.i.a.c.h2;
/* compiled from: TransferListener */
public interface x {
void a(j jVar, l lVar, boolean z2);
void b(j jVar, l lVar, boolean z2);
void e(j jVar, l lVar, boolean z2, int i);
void g(j jVar, l lVar, boolean z2);
}

View File

@ -1,5 +0,0 @@
package c.i.a.c.h2.y;
/* compiled from: lambda */
public final /* synthetic */ class a implements g {
public static final /* synthetic */ a b = new a();
}

View File

@ -1,16 +0,0 @@
package c.i.a.c.h2.y;
import java.util.Comparator;
/* compiled from: lambda */
public final /* synthetic */ class b implements Comparator {
public static final /* synthetic */ b i = new b();
@Override // java.util.Comparator
public final int compare(Object obj, Object obj2) {
h hVar = (h) obj;
h hVar2 = (h) obj2;
long j = hVar.n;
long j2 = hVar2.n;
return j - j2 == 0 ? hVar.compareTo(hVar2) : j < j2 ? -1 : 1;
}
}

View File

@ -1,391 +0,0 @@
package c.i.a.c.h2.y;
import android.net.Uri;
import androidx.annotation.Nullable;
import c.i.a.c.h2.h;
import c.i.a.c.h2.j;
import c.i.a.c.h2.l;
import c.i.a.c.h2.w;
import c.i.a.c.h2.x;
import c.i.a.c.i2.f0;
import com.airbnb.lottie.parser.AnimatableValueParser;
import com.google.android.exoplayer2.upstream.DataSourceException;
import com.google.android.exoplayer2.upstream.cache.Cache;
import java.io.IOException;
import java.io.InterruptedIOException;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Objects;
/* compiled from: CacheDataSource */
public final class c implements j {
public final Cache a;
public final j b;
@Nullable
/* renamed from: c reason: collision with root package name */
public final j f893c;
public final j d;
public final g e = a.b;
@Nullable
public final a f;
public final boolean g;
public final boolean h;
public final boolean i;
@Nullable
public Uri j;
@Nullable
public l k;
@Nullable
public j l;
public boolean m;
public long n;
public long o;
@Nullable
public h p;
public boolean q;
public boolean r;
/* renamed from: s reason: collision with root package name */
public long f894s;
public long t;
/* compiled from: CacheDataSource */
public interface a {
void a(int i);
void b(long j, long j2);
}
public c(Cache cache, @Nullable j jVar, j jVar2, @Nullable h hVar, int i, @Nullable a aVar) {
this.a = cache;
this.b = jVar2;
int i2 = g.a;
boolean z2 = false;
this.g = (i & 1) != 0;
this.h = (i & 2) != 0;
this.i = (i & 4) != 0 ? true : z2;
this.d = jVar;
this.f893c = new w(jVar, hVar);
this.f = null;
}
@Override // c.i.a.c.h2.j
public long a(l lVar) throws IOException {
a aVar;
try {
Objects.requireNonNull((a) this.e);
String str = lVar.h;
if (str == null) {
str = lVar.a.toString();
}
l.b a2 = lVar.a();
a2.h = str;
l a3 = a2.a();
this.k = a3;
Cache cache = this.a;
Uri uri = a3.a;
byte[] bArr = ((n) cache.b(str)).f900c.get("exo_redir");
Uri uri2 = null;
String str2 = bArr != null ? new String(bArr, c.i.b.a.c.f1266c) : null;
if (str2 != null) {
uri2 = Uri.parse(str2);
}
if (uri2 != null) {
uri = uri2;
}
this.j = uri;
this.n = lVar.f;
boolean z2 = true;
int i = (!this.h || !this.q) ? (!this.i || lVar.g != -1) ? -1 : 1 : 0;
if (i == -1) {
z2 = false;
}
this.r = z2;
if (z2 && (aVar = this.f) != null) {
aVar.a(i);
}
long j = lVar.g;
if (j == -1) {
if (!this.r) {
long a4 = k.a(this.a.b(str));
this.o = a4;
if (a4 != -1) {
long j2 = a4 - lVar.f;
this.o = j2;
if (j2 <= 0) {
throw new DataSourceException(0);
}
}
r(a3, false);
return this.o;
}
}
this.o = j;
r(a3, false);
return this.o;
} catch (Throwable th) {
p(th);
throw th;
}
}
@Override // c.i.a.c.h2.j
public void close() throws IOException {
this.k = null;
this.j = null;
this.n = 0;
a aVar = this.f;
if (aVar != null && this.f894s > 0) {
aVar.b(this.a.h(), this.f894s);
this.f894s = 0;
}
try {
o();
} catch (Throwable th) {
p(th);
throw th;
}
}
@Override // c.i.a.c.h2.j
public void d(x xVar) {
Objects.requireNonNull(xVar);
this.b.d(xVar);
this.d.d(xVar);
}
@Override // c.i.a.c.h2.j
public Map<String, List<String>> j() {
return q() ^ true ? this.d.j() : Collections.emptyMap();
}
@Override // c.i.a.c.h2.j
@Nullable
public Uri m() {
return this.j;
}
/* JADX WARNING: Unknown variable types count: 1 */
public final void o() throws IOException {
j jVar = this.l;
if (jVar != null) {
boolean z2 = false;
?? r2 = 0;
try {
jVar.close();
} finally {
this.l = r2;
this.m = z2;
h hVar = this.p;
if (hVar != null) {
this.a.i(hVar);
this.p = r2;
}
}
}
}
public final void p(Throwable th) {
if (q() || (th instanceof Cache.CacheException)) {
this.q = true;
}
}
public final boolean q() {
return this.l == this.b;
}
public final void r(l lVar, boolean z2) throws IOException {
h hVar;
l lVar2;
j jVar;
String str = lVar.h;
int i = f0.a;
Uri uri = null;
if (this.r) {
hVar = null;
} else if (this.g) {
try {
hVar = this.a.f(str, this.n, this.o);
} catch (InterruptedException unused) {
Thread.currentThread().interrupt();
throw new InterruptedIOException();
}
} else {
hVar = this.a.e(str, this.n, this.o);
}
if (hVar == null) {
jVar = this.d;
l.b a2 = lVar.a();
a2.f = this.n;
a2.g = this.o;
lVar2 = a2.a();
} else if (hVar.l) {
Uri fromFile = Uri.fromFile(hVar.m);
long j = hVar.j;
long j2 = this.n - j;
long j3 = hVar.k - j2;
long j4 = this.o;
if (j4 != -1) {
j3 = Math.min(j3, j4);
}
l.b a3 = lVar.a();
a3.a = fromFile;
a3.b = j;
a3.f = j2;
a3.g = j3;
lVar2 = a3.a();
jVar = this.b;
} else {
long j5 = hVar.k;
if (j5 == -1) {
j5 = this.o;
} else {
long j6 = this.o;
if (j6 != -1) {
j5 = Math.min(j5, j6);
}
}
l.b a4 = lVar.a();
a4.f = this.n;
a4.g = j5;
lVar2 = a4.a();
jVar = this.f893c;
if (jVar == null) {
jVar = this.d;
this.a.i(hVar);
hVar = null;
}
}
this.t = (this.r || jVar != this.d) ? Long.MAX_VALUE : this.n + 102400;
if (z2) {
AnimatableValueParser.D(this.l == this.d);
if (jVar != this.d) {
try {
o();
} catch (Throwable th) {
if (!hVar.l) {
this.a.i(hVar);
}
throw th;
}
} else {
return;
}
}
if (hVar != null && (!hVar.l)) {
this.p = hVar;
}
this.l = jVar;
this.m = lVar2.g == -1;
long a5 = jVar.a(lVar2);
m mVar = new m();
if (this.m && a5 != -1) {
this.o = a5;
m.a(mVar, this.n + a5);
}
if (!q()) {
Uri m = jVar.m();
this.j = m;
if (!lVar.a.equals(m)) {
uri = this.j;
}
if (uri == null) {
mVar.b.add("exo_redir");
mVar.a.remove("exo_redir");
} else {
String uri2 = uri.toString();
Map<String, Object> map = mVar.a;
Objects.requireNonNull(uri2);
map.put("exo_redir", uri2);
mVar.b.remove("exo_redir");
}
}
if (this.l == this.f893c) {
this.a.c(str, mVar);
}
}
@Override // c.i.a.c.h2.f
public int read(byte[] bArr, int i, int i2) throws IOException {
l lVar = this.k;
Objects.requireNonNull(lVar);
boolean z2 = false;
if (i2 == 0) {
return 0;
}
if (this.o == 0) {
return -1;
}
try {
if (this.n >= this.t) {
r(lVar, true);
}
j jVar = this.l;
Objects.requireNonNull(jVar);
int read = jVar.read(bArr, i, i2);
if (read != -1) {
if (q()) {
this.f894s += (long) read;
}
long j = (long) read;
this.n += j;
long j2 = this.o;
if (j2 != -1) {
this.o = j2 - j;
}
} else if (this.m) {
String str = lVar.h;
int i3 = f0.a;
s(str);
} else {
long j3 = this.o;
if (j3 <= 0) {
if (j3 == -1) {
}
}
o();
r(lVar, false);
return read(bArr, i, i2);
}
return read;
} catch (IOException e) {
if (this.m) {
int i4 = DataSourceException.i;
Throwable th = e;
while (true) {
if (th != null) {
if ((th instanceof DataSourceException) && ((DataSourceException) th).reason == 0) {
z2 = true;
break;
}
th = th.getCause();
} else {
break;
}
}
if (z2) {
String str2 = lVar.h;
int i5 = f0.a;
s(str2);
return -1;
}
}
p(e);
throw e;
} catch (Throwable th2) {
p(th2);
throw th2;
}
}
public final void s(String str) throws IOException {
this.o = 0;
if (this.l == this.f893c) {
m mVar = new m();
m.a(mVar, this.n);
this.a.c(str, mVar);
}
}
}

View File

@ -1,9 +0,0 @@
package c.i.a.c.h2.y;
import com.google.android.exoplayer2.upstream.cache.Cache;
/* compiled from: CacheEvictor */
public interface d extends Cache.a {
void a(Cache cache, String str, long j, long j2);
void e();
}

View File

@ -1,11 +0,0 @@
package c.i.a.c.h2.y;
/* compiled from: CacheFileMetadata */
public final class e {
public final long a;
public final long b;
public e(long j, long j2) {
this.a = j;
this.b = j2;
}
}

View File

@ -1,119 +0,0 @@
package c.i.a.c.h2.y;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import androidx.annotation.WorkerThread;
import c.i.a.c.w1.a;
import com.airbnb.lottie.parser.AnimatableValueParser;
import com.google.android.exoplayer2.database.DatabaseIOException;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
/* compiled from: CacheFileMetadataIndex */
public final class f {
public static final String[] a = {"name", "length", "last_touch_timestamp"};
public final a b;
/* renamed from: c reason: collision with root package name */
public String f895c;
public f(a aVar) {
this.b = aVar;
}
/* JADX WARNING: Code restructure failed: missing block: B:12:0x0045, code lost:
r2 = move-exception;
*/
/* JADX WARNING: Code restructure failed: missing block: B:13:0x0046, code lost:
if (r0 != null) goto L_0x0048;
*/
/* JADX WARNING: Code restructure failed: missing block: B:15:?, code lost:
r0.close();
*/
/* JADX WARNING: Code restructure failed: missing block: B:16:0x004c, code lost:
r0 = move-exception;
*/
/* JADX WARNING: Code restructure failed: missing block: B:17:0x004d, code lost:
r1.addSuppressed(r0);
*/
/* JADX WARNING: Code restructure failed: missing block: B:18:0x0050, code lost:
throw r2;
*/
@WorkerThread
public Map<String, e> a() throws DatabaseIOException {
try {
Objects.requireNonNull(this.f895c);
Cursor query = this.b.getReadableDatabase().query(this.f895c, a, null, null, null, null, null);
HashMap hashMap = new HashMap(query.getCount());
while (query.moveToNext()) {
hashMap.put(query.getString(0), new e(query.getLong(1), query.getLong(2)));
}
query.close();
return hashMap;
} catch (SQLException e) {
throw new DatabaseIOException(e);
}
}
@WorkerThread
public void b(long j) throws DatabaseIOException {
try {
String hexString = Long.toHexString(j);
this.f895c = "ExoPlayerCacheFileMetadata" + hexString;
if (AnimatableValueParser.Q0(this.b.getReadableDatabase(), 2, hexString) != 1) {
SQLiteDatabase writableDatabase = this.b.getWritableDatabase();
writableDatabase.beginTransactionNonExclusive();
try {
AnimatableValueParser.A2(writableDatabase, 2, hexString, 1);
String str = this.f895c;
writableDatabase.execSQL("DROP TABLE IF EXISTS " + str);
writableDatabase.execSQL("CREATE TABLE " + this.f895c + " (name TEXT PRIMARY KEY NOT NULL,length INTEGER NOT NULL,last_touch_timestamp INTEGER NOT NULL)");
writableDatabase.setTransactionSuccessful();
} finally {
writableDatabase.endTransaction();
}
}
} catch (SQLException e) {
throw new DatabaseIOException(e);
}
}
@WorkerThread
public void c(Set<String> set) throws DatabaseIOException {
Objects.requireNonNull(this.f895c);
try {
SQLiteDatabase writableDatabase = this.b.getWritableDatabase();
writableDatabase.beginTransactionNonExclusive();
try {
Iterator<String> it = set.iterator();
while (it.hasNext()) {
writableDatabase.delete(this.f895c, "name = ?", new String[]{it.next()});
}
writableDatabase.setTransactionSuccessful();
} finally {
writableDatabase.endTransaction();
}
} catch (SQLException e) {
throw new DatabaseIOException(e);
}
}
@WorkerThread
public void d(String str, long j, long j2) throws DatabaseIOException {
Objects.requireNonNull(this.f895c);
try {
SQLiteDatabase writableDatabase = this.b.getWritableDatabase();
ContentValues contentValues = new ContentValues();
contentValues.put("name", str);
contentValues.put("length", Long.valueOf(j));
contentValues.put("last_touch_timestamp", Long.valueOf(j2));
writableDatabase.replaceOrThrow(this.f895c, null, contentValues);
} catch (SQLException e) {
throw new DatabaseIOException(e);
}
}
}

View File

@ -1,5 +0,0 @@
package c.i.a.c.h2.y;
/* compiled from: CacheKeyFactory */
public interface g {
public static final /* synthetic */ int a = 0;
}

View File

@ -1,44 +0,0 @@
package c.i.a.c.h2.y;
import androidx.annotation.Nullable;
import c.d.b.a.a;
import java.io.File;
/* compiled from: CacheSpan */
public class h implements Comparable<h> {
public final String i;
public final long j;
public final long k;
public final boolean l;
@Nullable
public final File m;
public final long n;
public h(String str, long j, long j2, long j3, @Nullable File file) {
this.i = str;
this.j = j;
this.k = j2;
this.l = file != null;
this.m = file;
this.n = j3;
}
/* renamed from: f */
public int compareTo(h hVar) {
if (!this.i.equals(hVar.i)) {
return this.i.compareTo(hVar.i);
}
int i = ((this.j - hVar.j) > 0 ? 1 : ((this.j - hVar.j) == 0 ? 0 : -1));
if (i == 0) {
return 0;
}
return i < 0 ? -1 : 1;
}
@Override // java.lang.Object
public String toString() {
StringBuilder K = a.K("[");
K.append(this.j);
K.append(", ");
return a.y(K, this.k, "]");
}
}

View File

@ -1,78 +0,0 @@
package c.i.a.c.h2.y;
import androidx.annotation.Nullable;
import java.util.ArrayList;
import java.util.TreeSet;
/* compiled from: CachedContent */
public final class i {
public final int a;
public final String b;
/* renamed from: c reason: collision with root package name */
public final TreeSet<r> f896c = new TreeSet<>();
public final ArrayList<a> d = new ArrayList<>();
public n e;
/* compiled from: CachedContent */
public static final class a {
public final long a;
public final long b;
public a(long j, long j2) {
this.a = j;
this.b = j2;
}
}
public i(int i, String str, n nVar) {
this.a = i;
this.b = str;
this.e = nVar;
}
/* JADX WARNING: Code restructure failed: missing block: B:14:0x0035, code lost:
if ((r11 + r13) <= (r5 + r3)) goto L_0x0021;
*/
/* JADX WARNING: Code restructure failed: missing block: B:6:0x001f, code lost:
if (r11 >= r2.a) goto L_0x0021;
*/
/* JADX WARNING: Removed duplicated region for block: B:17:0x003b A[LOOP:0: B:1:0x0002->B:17:0x003b, LOOP_END] */
/* JADX WARNING: Removed duplicated region for block: B:20:0x003a A[SYNTHETIC] */
public boolean a(long j, long j2) {
boolean z2;
for (int i = 0; i < this.d.size(); i++) {
a aVar = this.d.get(i);
long j3 = aVar.b;
if (j3 != -1) {
if (j2 != -1) {
long j4 = aVar.a;
if (j4 <= j) {
}
}
z2 = false;
if (!z2) {
return true;
}
}
z2 = true;
if (!z2) {
}
}
return false;
}
public boolean equals(@Nullable Object obj) {
if (this == obj) {
return true;
}
if (obj == null || i.class != obj.getClass()) {
return false;
}
i iVar = (i) obj;
return this.a == iVar.a && this.b.equals(iVar.b) && this.f896c.equals(iVar.f896c) && this.e.equals(iVar.e);
}
public int hashCode() {
return this.e.hashCode() + c.d.b.a.a.m(this.b, this.a * 31, 31);
}
}

View File

@ -1,675 +0,0 @@
package c.i.a.c.h2.y;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteException;
import android.util.SparseArray;
import android.util.SparseBooleanArray;
import androidx.annotation.Nullable;
import androidx.annotation.WorkerThread;
import c.i.a.c.i2.f;
import c.i.a.c.i2.f0;
import c.i.a.c.i2.y;
import com.airbnb.lottie.parser.AnimatableValueParser;
import com.google.android.exoplayer2.database.DatabaseIOException;
import java.io.BufferedInputStream;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.File;
import java.io.IOException;
import java.io.OutputStream;
import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import javax.crypto.Cipher;
import javax.crypto.CipherInputStream;
import javax.crypto.CipherOutputStream;
import javax.crypto.NoSuchPaddingException;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;
/* compiled from: CachedContentIndex */
public class j {
public final HashMap<String, i> a;
public final SparseArray<String> b;
/* renamed from: c reason: collision with root package name */
public final SparseBooleanArray f897c;
public final SparseBooleanArray d;
public c e;
@Nullable
public c f;
/* compiled from: CachedContentIndex */
public static final class a implements c {
public static final String[] a = {"id", "key", "metadata"};
public final c.i.a.c.w1.a b;
/* renamed from: c reason: collision with root package name */
public final SparseArray<i> f898c = new SparseArray<>();
public String d;
public String e;
public a(c.i.a.c.w1.a aVar) {
this.b = aVar;
}
@Override // c.i.a.c.h2.y.j.c
public void a(i iVar, boolean z2) {
if (z2) {
this.f898c.delete(iVar.a);
} else {
this.f898c.put(iVar.a, null);
}
}
@Override // c.i.a.c.h2.y.j.c
public void b(HashMap<String, i> hashMap) throws IOException {
try {
SQLiteDatabase writableDatabase = this.b.getWritableDatabase();
writableDatabase.beginTransactionNonExclusive();
try {
j(writableDatabase);
for (i iVar : hashMap.values()) {
i(writableDatabase, iVar);
}
writableDatabase.setTransactionSuccessful();
this.f898c.clear();
} finally {
writableDatabase.endTransaction();
}
} catch (SQLException e) {
throw new DatabaseIOException(e);
}
}
@Override // c.i.a.c.h2.y.j.c
public void c(i iVar) {
this.f898c.put(iVar.a, iVar);
}
@Override // c.i.a.c.h2.y.j.c
public boolean d() throws DatabaseIOException {
SQLiteDatabase readableDatabase = this.b.getReadableDatabase();
String str = this.d;
Objects.requireNonNull(str);
return AnimatableValueParser.Q0(readableDatabase, 1, str) != -1;
}
@Override // c.i.a.c.h2.y.j.c
public void e(HashMap<String, i> hashMap) throws IOException {
if (this.f898c.size() != 0) {
try {
SQLiteDatabase writableDatabase = this.b.getWritableDatabase();
writableDatabase.beginTransactionNonExclusive();
for (int i = 0; i < this.f898c.size(); i++) {
try {
i valueAt = this.f898c.valueAt(i);
if (valueAt == null) {
int keyAt = this.f898c.keyAt(i);
String str = this.e;
Objects.requireNonNull(str);
writableDatabase.delete(str, "id = ?", new String[]{Integer.toString(keyAt)});
} else {
i(writableDatabase, valueAt);
}
} finally {
writableDatabase.endTransaction();
}
}
writableDatabase.setTransactionSuccessful();
this.f898c.clear();
writableDatabase.endTransaction();
} catch (SQLException e) {
throw new DatabaseIOException(e);
}
}
}
@Override // c.i.a.c.h2.y.j.c
public void f(long j) {
String hexString = Long.toHexString(j);
this.d = hexString;
this.e = c.d.b.a.a.s("ExoPlayerCacheIndex", hexString);
}
/* JADX WARNING: Code restructure failed: missing block: B:25:0x0082, code lost:
r2 = move-exception;
*/
/* JADX WARNING: Code restructure failed: missing block: B:26:0x0083, code lost:
if (r0 != null) goto L_0x0085;
*/
/* JADX WARNING: Code restructure failed: missing block: B:28:?, code lost:
r0.close();
*/
/* JADX WARNING: Code restructure failed: missing block: B:29:0x0089, code lost:
r0 = move-exception;
*/
/* JADX WARNING: Code restructure failed: missing block: B:30:0x008a, code lost:
r1.addSuppressed(r0);
*/
/* JADX WARNING: Code restructure failed: missing block: B:31:0x008d, code lost:
throw r2;
*/
@Override // c.i.a.c.h2.y.j.c
public void g(HashMap<String, i> hashMap, SparseArray<String> sparseArray) throws IOException {
AnimatableValueParser.D(this.f898c.size() == 0);
try {
SQLiteDatabase readableDatabase = this.b.getReadableDatabase();
String str = this.d;
Objects.requireNonNull(str);
if (AnimatableValueParser.Q0(readableDatabase, 1, str) != 1) {
SQLiteDatabase writableDatabase = this.b.getWritableDatabase();
writableDatabase.beginTransactionNonExclusive();
try {
j(writableDatabase);
writableDatabase.setTransactionSuccessful();
} finally {
writableDatabase.endTransaction();
}
}
SQLiteDatabase readableDatabase2 = this.b.getReadableDatabase();
String str2 = this.e;
Objects.requireNonNull(str2);
Cursor query = readableDatabase2.query(str2, a, null, null, null, null, null);
while (query.moveToNext()) {
int i = query.getInt(0);
String string = query.getString(1);
hashMap.put(string, new i(i, string, j.a(new DataInputStream(new ByteArrayInputStream(query.getBlob(2))))));
sparseArray.put(i, string);
}
query.close();
} catch (SQLiteException e) {
hashMap.clear();
sparseArray.clear();
throw new DatabaseIOException(e);
}
}
@Override // c.i.a.c.h2.y.j.c
public void h() throws DatabaseIOException {
c.i.a.c.w1.a aVar = this.b;
String str = this.d;
Objects.requireNonNull(str);
try {
String str2 = "ExoPlayerCacheIndex" + str;
SQLiteDatabase writableDatabase = aVar.getWritableDatabase();
writableDatabase.beginTransactionNonExclusive();
try {
if (f0.I(writableDatabase, "ExoPlayerVersions")) {
writableDatabase.delete("ExoPlayerVersions", "feature = ? AND instance_uid = ?", new String[]{Integer.toString(1), str});
}
writableDatabase.execSQL("DROP TABLE IF EXISTS " + str2);
writableDatabase.setTransactionSuccessful();
writableDatabase.endTransaction();
} catch (SQLException e) {
throw new DatabaseIOException(e);
}
} catch (SQLException e2) {
throw new DatabaseIOException(e2);
}
}
public final void i(SQLiteDatabase sQLiteDatabase, i iVar) throws IOException {
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
j.b(iVar.e, new DataOutputStream(byteArrayOutputStream));
byte[] byteArray = byteArrayOutputStream.toByteArray();
ContentValues contentValues = new ContentValues();
contentValues.put("id", Integer.valueOf(iVar.a));
contentValues.put("key", iVar.b);
contentValues.put("metadata", byteArray);
String str = this.e;
Objects.requireNonNull(str);
sQLiteDatabase.replaceOrThrow(str, null, contentValues);
}
public final void j(SQLiteDatabase sQLiteDatabase) throws DatabaseIOException {
String str = this.d;
Objects.requireNonNull(str);
AnimatableValueParser.A2(sQLiteDatabase, 1, str, 1);
String str2 = this.e;
Objects.requireNonNull(str2);
sQLiteDatabase.execSQL("DROP TABLE IF EXISTS " + str2);
sQLiteDatabase.execSQL("CREATE TABLE " + this.e + " (id INTEGER PRIMARY KEY NOT NULL,key TEXT NOT NULL,metadata BLOB NOT NULL)");
}
}
/* compiled from: CachedContentIndex */
public static class b implements c {
public final boolean a;
@Nullable
public final Cipher b;
@Nullable
/* renamed from: c reason: collision with root package name */
public final SecretKeySpec f899c;
@Nullable
public final SecureRandom d;
public final f e;
public boolean f;
@Nullable
public y g;
public b(File file, @Nullable byte[] bArr, boolean z2) {
SecretKeySpec secretKeySpec;
Cipher cipher;
boolean z3 = false;
AnimatableValueParser.D(bArr != null || !z2);
SecureRandom secureRandom = null;
if (bArr != null) {
AnimatableValueParser.k(bArr.length == 16 ? true : z3);
try {
if (f0.a == 18) {
try {
cipher = Cipher.getInstance("AES/CBC/PKCS5PADDING", "BC");
} catch (Throwable unused) {
}
secretKeySpec = new SecretKeySpec(bArr, "AES");
}
cipher = Cipher.getInstance("AES/CBC/PKCS5PADDING");
secretKeySpec = new SecretKeySpec(bArr, "AES");
} catch (NoSuchAlgorithmException | NoSuchPaddingException e) {
throw new IllegalStateException(e);
}
} else {
AnimatableValueParser.k(!z2);
cipher = null;
secretKeySpec = null;
}
this.a = z2;
this.b = cipher;
this.f899c = secretKeySpec;
this.d = z2 ? new SecureRandom() : secureRandom;
this.e = new f(file);
}
@Override // c.i.a.c.h2.y.j.c
public void a(i iVar, boolean z2) {
this.f = true;
}
/* JADX WARNING: Removed duplicated region for block: B:33:0x00b3 A[SYNTHETIC, Splitter:B:33:0x00b3] */
@Override // c.i.a.c.h2.y.j.c
public void b(HashMap<String, i> hashMap) throws IOException {
Throwable th;
DataOutputStream dataOutputStream = null;
try {
OutputStream c2 = this.e.c();
y yVar = this.g;
if (yVar == null) {
this.g = new y(c2);
} else {
yVar.a(c2);
}
y yVar2 = this.g;
DataOutputStream dataOutputStream2 = new DataOutputStream(yVar2);
try {
dataOutputStream2.writeInt(2);
dataOutputStream2.writeInt(this.a ? 1 : 0);
if (this.a) {
byte[] bArr = new byte[16];
SecureRandom secureRandom = this.d;
int i = f0.a;
secureRandom.nextBytes(bArr);
dataOutputStream2.write(bArr);
try {
this.b.init(1, this.f899c, new IvParameterSpec(bArr));
dataOutputStream2.flush();
dataOutputStream2 = new DataOutputStream(new CipherOutputStream(yVar2, this.b));
} catch (InvalidAlgorithmParameterException | InvalidKeyException e) {
throw new IllegalStateException(e);
}
}
dataOutputStream2.writeInt(hashMap.size());
int i2 = 0;
for (i iVar : hashMap.values()) {
dataOutputStream2.writeInt(iVar.a);
dataOutputStream2.writeUTF(iVar.b);
j.b(iVar.e, dataOutputStream2);
i2 += i(iVar, 2);
}
dataOutputStream2.writeInt(i2);
f fVar = this.e;
Objects.requireNonNull(fVar);
dataOutputStream2.close();
fVar.b.delete();
int i3 = f0.a;
this.f = false;
} catch (Throwable th2) {
th = th2;
dataOutputStream = dataOutputStream2;
int i4 = f0.a;
if (dataOutputStream != null) {
try {
dataOutputStream.close();
} catch (IOException unused) {
}
}
throw th;
}
} catch (Throwable th3) {
th = th3;
int i4 = f0.a;
if (dataOutputStream != null) {
}
throw th;
}
}
@Override // c.i.a.c.h2.y.j.c
public void c(i iVar) {
this.f = true;
}
@Override // c.i.a.c.h2.y.j.c
public boolean d() {
return this.e.a();
}
@Override // c.i.a.c.h2.y.j.c
public void e(HashMap<String, i> hashMap) throws IOException {
if (this.f) {
b(hashMap);
}
}
@Override // c.i.a.c.h2.y.j.c
public void f(long j) {
}
/* JADX WARNING: Removed duplicated region for block: B:48:0x00b6 */
/* JADX WARNING: Removed duplicated region for block: B:55:0x00bf */
/* JADX WARNING: Removed duplicated region for block: B:59:0x00c7 */
/* JADX WARNING: Removed duplicated region for block: B:62:? A[RETURN, SYNTHETIC] */
@Override // c.i.a.c.h2.y.j.c
public void g(HashMap<String, i> hashMap, SparseArray<String> sparseArray) {
Throwable th;
boolean z2 = true;
AnimatableValueParser.D(!this.f);
if (this.e.a()) {
DataInputStream dataInputStream = null;
try {
BufferedInputStream bufferedInputStream = new BufferedInputStream(this.e.b());
DataInputStream dataInputStream2 = new DataInputStream(bufferedInputStream);
try {
int readInt = dataInputStream2.readInt();
if (readInt >= 0) {
if (readInt <= 2) {
if ((dataInputStream2.readInt() & 1) != 0) {
if (this.b != null) {
byte[] bArr = new byte[16];
dataInputStream2.readFully(bArr);
IvParameterSpec ivParameterSpec = new IvParameterSpec(bArr);
try {
Cipher cipher = this.b;
SecretKeySpec secretKeySpec = this.f899c;
int i = f0.a;
cipher.init(2, secretKeySpec, ivParameterSpec);
dataInputStream2 = new DataInputStream(new CipherInputStream(bufferedInputStream, this.b));
} catch (InvalidAlgorithmParameterException | InvalidKeyException e) {
throw new IllegalStateException(e);
}
}
} else if (this.a) {
this.f = true;
}
int readInt2 = dataInputStream2.readInt();
int i2 = 0;
for (int i3 = 0; i3 < readInt2; i3++) {
i j = j(readInt, dataInputStream2);
hashMap.put(j.b, j);
sparseArray.put(j.a, j.b);
i2 += i(j, readInt);
}
int readInt3 = dataInputStream2.readInt();
boolean z3 = dataInputStream2.read() == -1;
if (readInt3 == i2 && z3) {
int i4 = f0.a;
try {
dataInputStream2.close();
} catch (IOException unused) {
}
}
}
}
int i5 = f0.a;
try {
dataInputStream2.close();
} catch (IOException unused2) {
}
} catch (IOException unused3) {
dataInputStream = dataInputStream2;
if (dataInputStream != null) {
}
z2 = false;
if (!z2) {
}
} catch (Throwable th2) {
th = th2;
dataInputStream = dataInputStream2;
if (dataInputStream != null) {
}
throw th;
}
} catch (IOException unused4) {
if (dataInputStream != null) {
int i6 = f0.a;
dataInputStream.close();
}
z2 = false;
if (!z2) {
}
} catch (Throwable th3) {
th = th3;
if (dataInputStream != null) {
int i7 = f0.a;
try {
dataInputStream.close();
} catch (IOException unused5) {
}
}
throw th;
}
z2 = false;
}
if (!z2) {
hashMap.clear();
sparseArray.clear();
f fVar = this.e;
fVar.a.delete();
fVar.b.delete();
}
}
@Override // c.i.a.c.h2.y.j.c
public void h() {
f fVar = this.e;
fVar.a.delete();
fVar.b.delete();
}
public final int i(i iVar, int i) {
int hashCode = iVar.b.hashCode() + (iVar.a * 31);
if (i >= 2) {
return (hashCode * 31) + iVar.e.hashCode();
}
long a = k.a(iVar.e);
return (hashCode * 31) + ((int) (a ^ (a >>> 32)));
}
public final i j(int i, DataInputStream dataInputStream) throws IOException {
n nVar;
int readInt = dataInputStream.readInt();
String readUTF = dataInputStream.readUTF();
if (i < 2) {
long readLong = dataInputStream.readLong();
m mVar = new m();
m.a(mVar, readLong);
nVar = n.a.a(mVar);
} else {
nVar = j.a(dataInputStream);
}
return new i(readInt, readUTF, nVar);
}
}
/* compiled from: CachedContentIndex */
public interface c {
void a(i iVar, boolean z2);
void b(HashMap<String, i> hashMap) throws IOException;
void c(i iVar);
boolean d() throws IOException;
void e(HashMap<String, i> hashMap) throws IOException;
void f(long j);
void g(HashMap<String, i> hashMap, SparseArray<String> sparseArray) throws IOException;
void h() throws IOException;
}
public j(@Nullable c.i.a.c.w1.a aVar, @Nullable File file, @Nullable byte[] bArr, boolean z2, boolean z3) {
AnimatableValueParser.D((aVar == null && file == null) ? false : true);
this.a = new HashMap<>();
this.b = new SparseArray<>();
this.f897c = new SparseBooleanArray();
this.d = new SparseBooleanArray();
b bVar = null;
a aVar2 = aVar != null ? new a(aVar) : null;
bVar = file != null ? new b(new File(file, "cached_content_index.exi"), bArr, z2) : bVar;
if (aVar2 == null || (bVar != null && z3)) {
int i = f0.a;
this.e = bVar;
this.f = aVar2;
return;
}
this.e = aVar2;
this.f = bVar;
}
public static n a(DataInputStream dataInputStream) throws IOException {
int readInt = dataInputStream.readInt();
HashMap hashMap = new HashMap();
for (int i = 0; i < readInt; i++) {
String readUTF = dataInputStream.readUTF();
int readInt2 = dataInputStream.readInt();
if (readInt2 >= 0) {
int min = Math.min(readInt2, 10485760);
byte[] bArr = f0.f;
int i2 = 0;
while (i2 != readInt2) {
int i3 = i2 + min;
bArr = Arrays.copyOf(bArr, i3);
dataInputStream.readFully(bArr, i2, min);
min = Math.min(readInt2 - i3, 10485760);
i2 = i3;
}
hashMap.put(readUTF, bArr);
} else {
throw new IOException(c.d.b.a.a.j("Invalid value size: ", readInt2));
}
}
return new n(hashMap);
}
public static void b(n nVar, DataOutputStream dataOutputStream) throws IOException {
Set<Map.Entry<String, byte[]>> entrySet = nVar.f900c.entrySet();
dataOutputStream.writeInt(entrySet.size());
for (Map.Entry<String, byte[]> entry : entrySet) {
dataOutputStream.writeUTF(entry.getKey());
byte[] value = entry.getValue();
dataOutputStream.writeInt(value.length);
dataOutputStream.write(value);
}
}
@Nullable
public i c(String str) {
return this.a.get(str);
}
public i d(String str) {
i iVar = this.a.get(str);
if (iVar != null) {
return iVar;
}
SparseArray<String> sparseArray = this.b;
int size = sparseArray.size();
int i = 0;
int keyAt = size == 0 ? 0 : sparseArray.keyAt(size - 1) + 1;
if (keyAt < 0) {
while (i < size && i == sparseArray.keyAt(i)) {
i++;
}
keyAt = i;
}
i iVar2 = new i(keyAt, str, n.a);
this.a.put(str, iVar2);
this.b.put(keyAt, str);
this.d.put(keyAt, true);
this.e.c(iVar2);
return iVar2;
}
@WorkerThread
public void e(long j) throws IOException {
c cVar;
this.e.f(j);
c cVar2 = this.f;
if (cVar2 != null) {
cVar2.f(j);
}
if (this.e.d() || (cVar = this.f) == null || !cVar.d()) {
this.e.g(this.a, this.b);
} else {
this.f.g(this.a, this.b);
this.e.b(this.a);
}
c cVar3 = this.f;
if (cVar3 != null) {
cVar3.h();
this.f = null;
}
}
public void f(String str) {
i iVar = this.a.get(str);
if (iVar != null && iVar.f896c.isEmpty() && iVar.d.isEmpty()) {
this.a.remove(str);
int i = iVar.a;
boolean z2 = this.d.get(i);
this.e.a(iVar, z2);
if (z2) {
this.b.remove(i);
this.d.delete(i);
return;
}
this.b.put(i, null);
this.f897c.put(i, true);
}
}
@WorkerThread
public void g() throws IOException {
this.e.e(this.a);
int size = this.f897c.size();
for (int i = 0; i < size; i++) {
this.b.remove(this.f897c.keyAt(i));
}
this.f897c.clear();
this.d.clear();
}
}

View File

@ -1,13 +0,0 @@
package c.i.a.c.h2.y;
import java.nio.ByteBuffer;
/* compiled from: ContentMetadata */
public final /* synthetic */ class k {
public static long a(l lVar) {
byte[] bArr = ((n) lVar).f900c.get("exo_len");
if (bArr != null) {
return ByteBuffer.wrap(bArr).getLong();
}
return -1;
}
}

View File

@ -1,4 +0,0 @@
package c.i.a.c.h2.y;
/* compiled from: ContentMetadata */
public interface l {
}

View File

@ -1,21 +0,0 @@
package c.i.a.c.h2.y;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
/* compiled from: ContentMetadataMutations */
public class m {
public final Map<String, Object> a = new HashMap();
public final List<String> b = new ArrayList();
public static m a(m mVar, long j) {
Long valueOf = Long.valueOf(j);
Map<String, Object> map = mVar.a;
Objects.requireNonNull(valueOf);
map.put("exo_len", valueOf);
mVar.b.remove("exo_len");
return mVar;
}
}

View File

@ -1,94 +0,0 @@
package c.i.a.c.h2.y;
import androidx.annotation.Nullable;
import c.i.b.a.c;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
/* compiled from: DefaultContentMetadata */
public final class n implements l {
public static final n a = new n(Collections.emptyMap());
public int b;
/* renamed from: c reason: collision with root package name */
public final Map<String, byte[]> f900c;
public n() {
this(Collections.emptyMap());
}
public n(Map<String, byte[]> map) {
this.f900c = Collections.unmodifiableMap(map);
}
public static boolean b(Map<String, byte[]> map, Map<String, byte[]> map2) {
if (map.size() != map2.size()) {
return false;
}
for (Map.Entry<String, byte[]> entry : map.entrySet()) {
if (!Arrays.equals(entry.getValue(), map2.get(entry.getKey()))) {
return false;
}
}
return true;
}
public n a(m mVar) {
byte[] bArr;
HashMap hashMap = new HashMap(this.f900c);
Objects.requireNonNull(mVar);
List unmodifiableList = Collections.unmodifiableList(new ArrayList(mVar.b));
for (int i = 0; i < unmodifiableList.size(); i++) {
hashMap.remove(unmodifiableList.get(i));
}
HashMap hashMap2 = new HashMap(mVar.a);
for (Map.Entry entry : hashMap2.entrySet()) {
Object value = entry.getValue();
if (value instanceof byte[]) {
byte[] bArr2 = (byte[]) value;
entry.setValue(Arrays.copyOf(bArr2, bArr2.length));
}
}
for (Map.Entry entry2 : Collections.unmodifiableMap(hashMap2).entrySet()) {
String str = (String) entry2.getKey();
Object value2 = entry2.getValue();
if (value2 instanceof Long) {
bArr = ByteBuffer.allocate(8).putLong(((Long) value2).longValue()).array();
} else if (value2 instanceof String) {
bArr = ((String) value2).getBytes(c.f1266c);
} else if (value2 instanceof byte[]) {
bArr = (byte[]) value2;
} else {
throw new IllegalArgumentException();
}
hashMap.put(str, bArr);
}
return b(this.f900c, hashMap) ? this : new n(hashMap);
}
public boolean equals(@Nullable Object obj) {
if (this == obj) {
return true;
}
if (obj == null || n.class != obj.getClass()) {
return false;
}
return b(this.f900c, ((n) obj).f900c);
}
public int hashCode() {
if (this.b == 0) {
int i = 0;
for (Map.Entry<String, byte[]> entry : this.f900c.entrySet()) {
i += Arrays.hashCode(entry.getValue()) ^ entry.getKey().hashCode();
}
this.b = i;
}
return this.b;
}
}

View File

@ -1,49 +0,0 @@
package c.i.a.c.h2.y;
import com.google.android.exoplayer2.upstream.cache.Cache;
import java.util.TreeSet;
/* compiled from: LeastRecentlyUsedCacheEvictor */
public final class o implements d {
public final TreeSet<h> a = new TreeSet<>(b.i);
public long b;
public o(long j) {
}
@Override // c.i.a.c.h2.y.d
public void a(Cache cache, String str, long j, long j2) {
if (j2 != -1) {
f(cache, j2);
}
}
@Override // com.google.android.exoplayer2.upstream.cache.Cache.a
public void b(Cache cache, h hVar) {
this.a.remove(hVar);
this.b -= hVar.k;
}
@Override // com.google.android.exoplayer2.upstream.cache.Cache.a
public void c(Cache cache, h hVar, h hVar2) {
this.a.remove(hVar);
this.b -= hVar.k;
d(cache, hVar2);
}
@Override // com.google.android.exoplayer2.upstream.cache.Cache.a
public void d(Cache cache, h hVar) {
this.a.add(hVar);
this.b += hVar.k;
f(cache, 0);
}
@Override // c.i.a.c.h2.y.d
public void e() {
}
public final void f(Cache cache, long j) {
while (this.b + j > 104857600 && !this.a.isEmpty()) {
cache.d(this.a.first());
}
}
}

View File

@ -1,24 +0,0 @@
package c.i.a.c.h2.y;
import android.os.ConditionVariable;
/* compiled from: SimpleCache */
public class p extends Thread {
public final /* synthetic */ ConditionVariable i;
public final /* synthetic */ q j;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public p(q qVar, String str, ConditionVariable conditionVariable) {
super(str);
this.j = qVar;
this.i = conditionVariable;
}
@Override // java.lang.Thread, java.lang.Runnable
public void run() {
synchronized (this.j) {
this.i.open();
q.j(this.j);
this.j.f901c.e();
}
}
}

View File

@ -1,563 +0,0 @@
package c.i.a.c.h2.y;
import android.database.SQLException;
import android.os.ConditionVariable;
import android.util.Log;
import androidx.annotation.Nullable;
import c.i.a.c.h2.y.i;
import c.i.a.c.i2.p;
import c.i.a.c.w1.a;
import c.i.b.b.z;
import com.airbnb.lottie.parser.AnimatableValueParser;
import com.google.android.exoplayer2.database.DatabaseIOException;
import com.google.android.exoplayer2.upstream.cache.Cache;
import java.io.File;
import java.io.IOException;
import java.security.SecureRandom;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Map;
import java.util.Objects;
import java.util.Random;
/* compiled from: SimpleCache */
public final class q implements Cache {
public static final HashSet<File> a = new HashSet<>();
public final File b;
/* renamed from: c reason: collision with root package name */
public final d f901c;
public final j d;
@Nullable
public final f e;
public final HashMap<String, ArrayList<Cache.a>> f;
public final Random g;
public final boolean h;
public long i;
public long j;
public Cache.CacheException k;
public q(File file, d dVar, a aVar) {
boolean add;
j jVar = new j(aVar, file, null, false, false);
f fVar = new f(aVar);
synchronized (q.class) {
add = a.add(file.getAbsoluteFile());
}
if (add) {
this.b = file;
this.f901c = dVar;
this.d = jVar;
this.e = fVar;
this.f = new HashMap<>();
this.g = new Random();
this.h = true;
this.i = -1;
ConditionVariable conditionVariable = new ConditionVariable();
new p(this, "ExoPlayer:SimpleCacheInit", conditionVariable).start();
conditionVariable.block();
return;
}
throw new IllegalStateException("Another SimpleCache instance uses the folder: " + file);
}
public static void j(q qVar) {
long j;
if (!qVar.b.exists()) {
try {
m(qVar.b);
} catch (Cache.CacheException e) {
qVar.k = e;
return;
}
}
File[] listFiles = qVar.b.listFiles();
if (listFiles == null) {
StringBuilder K = c.d.b.a.a.K("Failed to list cache directory files: ");
K.append(qVar.b);
String sb = K.toString();
Log.e("SimpleCache", sb);
qVar.k = new Cache.CacheException(sb);
return;
}
int length = listFiles.length;
int i = 0;
while (true) {
if (i >= length) {
j = -1;
break;
}
File file = listFiles[i];
String name = file.getName();
if (name.endsWith(".uid")) {
try {
j = Long.parseLong(name.substring(0, name.indexOf(46)), 16);
break;
} catch (NumberFormatException unused) {
Log.e("SimpleCache", "Malformed UID file: " + file);
file.delete();
}
} else {
i++;
}
}
qVar.i = j;
if (j == -1) {
try {
qVar.i = n(qVar.b);
} catch (IOException e2) {
StringBuilder K2 = c.d.b.a.a.K("Failed to create cache UID: ");
K2.append(qVar.b);
String sb2 = K2.toString();
p.b("SimpleCache", sb2, e2);
qVar.k = new Cache.CacheException(sb2, e2);
return;
}
}
try {
qVar.d.e(qVar.i);
f fVar = qVar.e;
if (fVar != null) {
fVar.b(qVar.i);
Map<String, e> a2 = qVar.e.a();
qVar.p(qVar.b, true, listFiles, a2);
qVar.e.c(((HashMap) a2).keySet());
} else {
qVar.p(qVar.b, true, listFiles, null);
}
j jVar = qVar.d;
Iterator j2 = z.m(jVar.a.keySet()).iterator();
while (j2.hasNext()) {
jVar.f((String) j2.next());
}
try {
qVar.d.g();
} catch (IOException e3) {
p.b("SimpleCache", "Storing index file failed", e3);
}
} catch (IOException e4) {
StringBuilder K3 = c.d.b.a.a.K("Failed to initialize cache indices: ");
K3.append(qVar.b);
String sb3 = K3.toString();
p.b("SimpleCache", sb3, e4);
qVar.k = new Cache.CacheException(sb3, e4);
}
}
public static void m(File file) throws Cache.CacheException {
if (!file.mkdirs() && !file.isDirectory()) {
String str = "Failed to create cache directory: " + file;
Log.e("SimpleCache", str);
throw new Cache.CacheException(str);
}
}
public static long n(File file) throws IOException {
long nextLong = new SecureRandom().nextLong();
long abs = nextLong == Long.MIN_VALUE ? 0 : Math.abs(nextLong);
File file2 = new File(file, c.d.b.a.a.s(Long.toString(abs, 16), ".uid"));
if (file2.createNewFile()) {
return abs;
}
throw new IOException("Failed to create UID file: " + file2);
}
@Override // com.google.android.exoplayer2.upstream.cache.Cache
public synchronized File a(String str, long j, long j2) throws Cache.CacheException {
i iVar;
File file;
AnimatableValueParser.D(true);
l();
iVar = this.d.a.get(str);
Objects.requireNonNull(iVar);
AnimatableValueParser.D(iVar.a(j, j2));
if (!this.b.exists()) {
m(this.b);
r();
}
this.f901c.a(this, str, j, j2);
file = new File(this.b, Integer.toString(this.g.nextInt(10)));
if (!file.exists()) {
m(file);
}
return r.h(file, iVar.a, j, System.currentTimeMillis());
}
@Override // com.google.android.exoplayer2.upstream.cache.Cache
public synchronized l b(String str) {
i iVar;
AnimatableValueParser.D(true);
iVar = this.d.a.get(str);
return iVar != null ? iVar.e : n.a;
}
@Override // com.google.android.exoplayer2.upstream.cache.Cache
public synchronized void c(String str, m mVar) throws Cache.CacheException {
AnimatableValueParser.D(true);
l();
j jVar = this.d;
i d = jVar.d(str);
n nVar = d.e;
n a2 = nVar.a(mVar);
d.e = a2;
if (!a2.equals(nVar)) {
jVar.e.c(d);
}
try {
this.d.g();
} catch (IOException e) {
throw new Cache.CacheException(e);
}
}
@Override // com.google.android.exoplayer2.upstream.cache.Cache
public synchronized void d(h hVar) {
AnimatableValueParser.D(true);
q(hVar);
}
/* JADX WARNING: Code restructure failed: missing block: B:17:0x0049, code lost:
if ((r11 + r4) <= r18) goto L_0x0059;
*/
/* JADX WARNING: Code restructure failed: missing block: B:21:0x0056, code lost:
if ((r18 + r6) <= r11) goto L_0x0059;
*/
/* JADX WARNING: Removed duplicated region for block: B:26:0x0060 A[LOOP:0: B:10:0x0026->B:26:0x0060, LOOP_END] */
/* JADX WARNING: Removed duplicated region for block: B:38:0x005e A[SYNTHETIC] */
@Override // com.google.android.exoplayer2.upstream.cache.Cache
@Nullable
public synchronized h e(String str, long j, long j2) throws Cache.CacheException {
r rVar;
boolean z2;
boolean z3;
AnimatableValueParser.D(true);
l();
r o = o(str, j, j2);
if (o.l) {
return s(str, o);
}
i d = this.d.d(str);
long j3 = o.k;
int i = 0;
while (true) {
if (i >= d.d.size()) {
rVar = o;
d.d.add(new i.a(j, j3));
z2 = true;
break;
}
i.a aVar = d.d.get(i);
long j4 = aVar.a;
if (j4 <= j) {
rVar = o;
long j5 = aVar.b;
if (j5 != -1) {
}
z3 = true;
if (z3) {
z2 = false;
break;
}
i++;
o = rVar;
} else {
rVar = o;
if (j3 != -1) {
}
z3 = true;
if (z3) {
}
}
z3 = false;
if (z3) {
}
}
if (z2) {
return rVar;
}
return null;
}
@Override // com.google.android.exoplayer2.upstream.cache.Cache
public synchronized h f(String str, long j, long j2) throws InterruptedException, Cache.CacheException {
h e;
AnimatableValueParser.D(true);
l();
while (true) {
e = e(str, j, j2);
if (e == null) {
wait();
}
}
return e;
}
@Override // com.google.android.exoplayer2.upstream.cache.Cache
public synchronized void g(File file, long j) throws Cache.CacheException {
boolean z2 = true;
AnimatableValueParser.D(true);
if (file.exists()) {
if (j == 0) {
file.delete();
return;
}
r g = r.g(file, j, -9223372036854775807L, this.d);
Objects.requireNonNull(g);
i c2 = this.d.c(g.i);
Objects.requireNonNull(c2);
AnimatableValueParser.D(c2.a(g.j, g.k));
long a2 = k.a(c2.e);
if (a2 != -1) {
if (g.j + g.k > a2) {
z2 = false;
}
AnimatableValueParser.D(z2);
}
if (this.e != null) {
try {
this.e.d(file.getName(), g.k, g.n);
} catch (IOException e) {
throw new Cache.CacheException(e);
}
}
k(g);
try {
this.d.g();
notifyAll();
} catch (IOException e2) {
throw new Cache.CacheException(e2);
}
}
}
@Override // com.google.android.exoplayer2.upstream.cache.Cache
public synchronized long h() {
AnimatableValueParser.D(true);
return this.j;
}
@Override // com.google.android.exoplayer2.upstream.cache.Cache
public synchronized void i(h hVar) {
AnimatableValueParser.D(true);
i c2 = this.d.c(hVar.i);
Objects.requireNonNull(c2);
long j = hVar.j;
for (int i = 0; i < c2.d.size(); i++) {
if (c2.d.get(i).a == j) {
c2.d.remove(i);
this.d.f(c2.b);
notifyAll();
}
}
throw new IllegalStateException();
}
public final void k(r rVar) {
this.d.d(rVar.i).f896c.add(rVar);
this.j += rVar.k;
ArrayList<Cache.a> arrayList = this.f.get(rVar.i);
if (arrayList != null) {
int size = arrayList.size();
while (true) {
size--;
if (size < 0) {
break;
}
arrayList.get(size).d(this, rVar);
}
}
this.f901c.d(this, rVar);
}
public synchronized void l() throws Cache.CacheException {
Cache.CacheException cacheException = this.k;
if (cacheException != null) {
throw cacheException;
}
}
public final r o(String str, long j, long j2) {
r floor;
long j3;
i iVar = this.d.a.get(str);
if (iVar == null) {
return new r(str, j, j2, -9223372036854775807L, null);
}
while (true) {
r rVar = new r(iVar.b, j, -1, -9223372036854775807L, null);
floor = iVar.f896c.floor(rVar);
if (floor == null || floor.j + floor.k <= j) {
r ceiling = iVar.f896c.ceiling(rVar);
if (ceiling != null) {
long j4 = ceiling.j - j;
if (j2 != -1) {
j4 = Math.min(j4, j2);
}
j3 = j4;
} else {
j3 = j2;
}
floor = new r(iVar.b, j, j3, -9223372036854775807L, null);
}
if (!floor.l || floor.m.length() == floor.k) {
break;
}
r();
}
return floor;
}
public final void p(File file, boolean z2, @Nullable File[] fileArr, @Nullable Map<String, e> map) {
if (fileArr != null && fileArr.length != 0) {
for (File file2 : fileArr) {
String name = file2.getName();
if (z2 && name.indexOf(46) == -1) {
p(file2, false, file2.listFiles(), map);
} else if (!z2 || (!name.startsWith("cached_content_index.exi") && !name.endsWith(".uid"))) {
long j = -1;
long j2 = -9223372036854775807L;
e remove = map != null ? map.remove(name) : null;
if (remove != null) {
j = remove.a;
j2 = remove.b;
}
r g = r.g(file2, j, j2, this.d);
if (g != null) {
k(g);
} else {
file2.delete();
}
}
}
} else if (!z2) {
file.delete();
}
}
public final void q(h hVar) {
boolean z2;
i c2 = this.d.c(hVar.i);
if (c2 != null) {
if (c2.f896c.remove(hVar)) {
File file = hVar.m;
if (file != null) {
file.delete();
}
z2 = true;
} else {
z2 = false;
}
if (z2) {
this.j -= hVar.k;
if (this.e != null) {
String name = hVar.m.getName();
try {
f fVar = this.e;
Objects.requireNonNull(fVar.f895c);
try {
fVar.b.getWritableDatabase().delete(fVar.f895c, "name = ?", new String[]{name});
} catch (SQLException e) {
throw new DatabaseIOException(e);
}
} catch (IOException unused) {
c.d.b.a.a.g0("Failed to remove file index entry for: ", name, "SimpleCache");
}
}
this.d.f(c2.b);
ArrayList<Cache.a> arrayList = this.f.get(hVar.i);
if (arrayList != null) {
int size = arrayList.size();
while (true) {
size--;
if (size < 0) {
break;
}
arrayList.get(size).b(this, hVar);
}
}
this.f901c.b(this, hVar);
}
}
}
public final void r() {
ArrayList arrayList = new ArrayList();
for (i iVar : Collections.unmodifiableCollection(this.d.a.values())) {
Iterator<r> it = iVar.f896c.iterator();
while (it.hasNext()) {
r next = it.next();
if (next.m.length() != next.k) {
arrayList.add(next);
}
}
}
for (int i = 0; i < arrayList.size(); i++) {
q((h) arrayList.get(i));
}
}
/* JADX WARNING: Removed duplicated region for block: B:20:0x00a0 */
public final r s(String str, r rVar) {
File file;
ArrayList<Cache.a> arrayList;
if (!this.h) {
return rVar;
}
File file2 = rVar.m;
Objects.requireNonNull(file2);
String name = file2.getName();
long j = rVar.k;
long currentTimeMillis = System.currentTimeMillis();
boolean z2 = false;
f fVar = this.e;
if (fVar != null) {
try {
fVar.d(name, j, currentTimeMillis);
} catch (IOException unused) {
Log.w("SimpleCache", "Failed to update index with new touch timestamp.");
}
} else {
z2 = true;
}
i iVar = this.d.a.get(str);
AnimatableValueParser.D(iVar.f896c.remove(rVar));
File file3 = rVar.m;
Objects.requireNonNull(file3);
if (z2) {
File parentFile = file3.getParentFile();
Objects.requireNonNull(parentFile);
File h = r.h(parentFile, iVar.a, rVar.j, currentTimeMillis);
if (file3.renameTo(h)) {
file = h;
AnimatableValueParser.D(rVar.l);
r rVar2 = new r(rVar.i, rVar.j, rVar.k, currentTimeMillis, file);
iVar.f896c.add(rVar2);
arrayList = this.f.get(rVar.i);
if (arrayList != null) {
int size = arrayList.size();
while (true) {
size--;
if (size < 0) {
break;
}
arrayList.get(size).c(this, rVar, rVar2);
}
}
this.f901c.c(this, rVar, rVar2);
return rVar2;
}
Log.w("CachedContent", "Failed to rename " + file3 + " to " + h);
}
file = file3;
AnimatableValueParser.D(rVar.l);
r rVar2 = new r(rVar.i, rVar.j, rVar.k, currentTimeMillis, file);
iVar.f896c.add(rVar2);
arrayList = this.f.get(rVar.i);
if (arrayList != null) {
}
this.f901c.c(this, rVar, rVar2);
return rVar2;
}
}

View File

@ -1,141 +0,0 @@
package c.i.a.c.h2.y;
import androidx.annotation.Nullable;
import c.d.b.a.a;
import c.i.a.c.i2.f0;
import com.airbnb.lottie.parser.AnimatableValueParser;
import java.io.File;
import java.util.Objects;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/* compiled from: SimpleCacheSpan */
public final class r extends h {
public static final Pattern o = Pattern.compile("^(.+)\\.(\\d+)\\.(\\d+)\\.v1\\.exo$", 32);
public static final Pattern p = Pattern.compile("^(.+)\\.(\\d+)\\.(\\d+)\\.v2\\.exo$", 32);
public static final Pattern q = Pattern.compile("^(\\d+)\\.(\\d+)\\.(\\d+)\\.v3\\.exo$", 32);
public r(String str, long j, long j2, long j3, @Nullable File file) {
super(str, j, j2, j3, file);
}
/* JADX WARNING: Code restructure failed: missing block: B:28:0x00d1, code lost:
if (r16.renameTo(r1) == false) goto L_0x00a2;
*/
/* JADX WARNING: Removed duplicated region for block: B:27:0x00a4 */
/* JADX WARNING: Removed duplicated region for block: B:30:0x00d6 A[RETURN] */
/* JADX WARNING: Removed duplicated region for block: B:31:0x00d7 */
@Nullable
public static r g(File file, long j, long j2, j jVar) {
File file2;
long j3;
String str;
File file3;
String name = file.getName();
if (!name.endsWith(".v3.exo")) {
String name2 = file.getName();
Matcher matcher = p.matcher(name2);
if (matcher.matches()) {
str = matcher.group(1);
Objects.requireNonNull(str);
int i = f0.a;
int length = str.length();
int i2 = 0;
int i3 = 0;
for (int i4 = 0; i4 < length; i4++) {
if (str.charAt(i4) == '%') {
i3++;
}
}
if (i3 != 0) {
int i5 = length - (i3 * 2);
StringBuilder sb = new StringBuilder(i5);
Matcher matcher2 = f0.g.matcher(str);
while (i3 > 0 && matcher2.find()) {
String group = matcher2.group(1);
Objects.requireNonNull(group);
sb.append((CharSequence) str, i2, matcher2.start());
sb.append((char) Integer.parseInt(group, 16));
i2 = matcher2.end();
i3--;
}
if (i2 < length) {
sb.append((CharSequence) str, i2, length);
}
if (sb.length() == i5) {
str = sb.toString();
}
}
if (str != null) {
File parentFile = file.getParentFile();
AnimatableValueParser.H(parentFile);
int i6 = jVar.d(str).a;
String group2 = matcher.group(2);
Objects.requireNonNull(group2);
long parseLong = Long.parseLong(group2);
String group3 = matcher.group(3);
Objects.requireNonNull(group3);
file3 = h(parentFile, i6, parseLong, Long.parseLong(group3));
}
file3 = null;
if (file3 == null) {
return null;
}
file2 = file3;
name = file3.getName();
} else {
matcher = o.matcher(name2);
if (matcher.matches()) {
str = matcher.group(1);
Objects.requireNonNull(str);
if (str != null) {
}
file3 = null;
if (file3 == null) {
}
}
}
str = null;
if (str != null) {
}
file3 = null;
if (file3 == null) {
}
} else {
file2 = file;
}
Matcher matcher3 = q.matcher(name);
if (!matcher3.matches()) {
return null;
}
String group4 = matcher3.group(1);
Objects.requireNonNull(group4);
String str2 = jVar.b.get(Integer.parseInt(group4));
if (str2 == null) {
return null;
}
long length2 = j == -1 ? file2.length() : j;
if (length2 == 0) {
return null;
}
String group5 = matcher3.group(2);
Objects.requireNonNull(group5);
long parseLong2 = Long.parseLong(group5);
if (j2 == -9223372036854775807L) {
String group6 = matcher3.group(3);
Objects.requireNonNull(group6);
j3 = Long.parseLong(group6);
} else {
j3 = j2;
}
return new r(str2, parseLong2, length2, j3, file2);
}
public static File h(File file, int i, long j, long j2) {
StringBuilder sb = new StringBuilder();
sb.append(i);
sb.append(".");
sb.append(j);
sb.append(".");
return new File(file, a.y(sb, j2, ".v3.exo"));
}
}

View File

@ -1,17 +0,0 @@
package c.i.a.c;
import c.i.a.c.g1;
import c.i.a.c.i2.o;
/* compiled from: lambda */
public final /* synthetic */ class i implements o.a {
public final /* synthetic */ c1 a;
public /* synthetic */ i(c1 c1Var) {
this.a = c1Var;
}
@Override // c.i.a.c.i2.o.a
public final void invoke(Object obj) {
((g1.a) obj).X(o0.N(this.a));
}
}

View File

@ -1,4 +0,0 @@
package c.i.a.c;
/* compiled from: ControlDispatcher */
public interface i0 {
}

View File

@ -1,50 +0,0 @@
package c.i.a.c;
import c.i.a.c.d2.h0;
import java.util.Collection;
import java.util.HashMap;
/* compiled from: PlaylistTimeline */
public final class i1 extends c0 {
public final int e;
public final int f;
public final int[] g;
public final int[] h;
public final r1[] i;
public final Object[] j;
public final HashMap<Object, Integer> k = new HashMap<>();
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public i1(Collection<? extends a1> collection, h0 h0Var) {
super(false, h0Var);
int i = 0;
int size = collection.size();
this.g = new int[size];
this.h = new int[size];
this.i = new r1[size];
this.j = new Object[size];
int i2 = 0;
int i3 = 0;
for (a1 a1Var : collection) {
this.i[i3] = a1Var.a();
this.h[i3] = i;
this.g[i3] = i2;
i += this.i[i3].p();
i2 += this.i[i3].i();
this.j[i3] = a1Var.getUid();
this.k.put(this.j[i3], Integer.valueOf(i3));
i3++;
}
this.e = i;
this.f = i2;
}
@Override // c.i.a.c.r1
public int i() {
return this.f;
}
@Override // c.i.a.c.r1
public int p() {
return this.e;
}
}

View File

@ -1,35 +0,0 @@
package c.i.a.c.i2;
import c.i.a.c.i2.o;
import java.util.Iterator;
import java.util.concurrent.CopyOnWriteArraySet;
/* compiled from: lambda */
public final /* synthetic */ class a implements Runnable {
public final /* synthetic */ CopyOnWriteArraySet i;
public final /* synthetic */ int j;
public final /* synthetic */ o.a k;
public /* synthetic */ a(CopyOnWriteArraySet copyOnWriteArraySet, int i, o.a aVar) {
this.i = copyOnWriteArraySet;
this.j = i;
this.k = aVar;
}
@Override // java.lang.Runnable
public final void run() {
CopyOnWriteArraySet copyOnWriteArraySet = this.i;
int i = this.j;
o.a aVar = this.k;
Iterator it = copyOnWriteArraySet.iterator();
while (it.hasNext()) {
o.c cVar = (o.c) it.next();
if (!cVar.d) {
if (i != -1) {
cVar.b.a.append(i, true);
}
cVar.f908c = true;
aVar.invoke(cVar.a);
}
}
}
}

View File

@ -1,54 +0,0 @@
package c.i.a.c.i2;
import c.i.a.c.d1;
import c.i.a.c.h0;
/* compiled from: StandaloneMediaClock */
public final class a0 implements r {
public final g i;
public boolean j;
public long k;
public long l;
public d1 m = d1.a;
public a0(g gVar) {
this.i = gVar;
}
public void a(long j) {
this.k = j;
if (this.j) {
this.l = this.i.c();
}
}
public void b() {
if (!this.j) {
this.l = this.i.c();
this.j = true;
}
}
@Override // c.i.a.c.i2.r
public d1 c() {
return this.m;
}
@Override // c.i.a.c.i2.r
public void e(d1 d1Var) {
if (this.j) {
a(m());
}
this.m = d1Var;
}
@Override // c.i.a.c.i2.r
public long m() {
long j = this.k;
if (!this.j) {
return j;
}
long c2 = this.i.c() - this.l;
d1 d1Var = this.m;
return d1Var.b == 1.0f ? j + h0.a(c2) : j + (c2 * ((long) d1Var.d));
}
}

View File

@ -1,46 +0,0 @@
package c.i.a.c.i2;
import android.os.Handler;
import android.os.Message;
import c.i.a.c.i2.o;
import c.i.b.a.l;
import java.util.Iterator;
import java.util.Objects;
/* compiled from: lambda */
public final /* synthetic */ class b implements Handler.Callback {
public final /* synthetic */ o i;
public /* synthetic */ b(o oVar) {
this.i = oVar;
}
/* JADX WARNING: Unknown variable types count: 1 */
@Override // android.os.Handler.Callback
public final boolean handleMessage(Message message) {
o oVar = this.i;
Objects.requireNonNull(oVar);
int i = message.what;
if (i == 0) {
Iterator it = oVar.e.iterator();
while (it.hasNext()) {
o.c cVar = (o.c) it.next();
l<E> lVar = oVar.f907c;
o.b<T, E> bVar = oVar.d;
if (!cVar.d && cVar.f908c) {
E e = cVar.b;
cVar.b = (t) lVar.get();
cVar.f908c = false;
bVar.a(cVar.a, e);
}
if (oVar.b.a.hasMessages(0)) {
break;
}
}
} else if (i == 1) {
oVar.b(message.arg1, (o.a) message.obj);
oVar.a();
oVar.c();
}
return true;
}
}

View File

@ -1,23 +0,0 @@
package c.i.a.c.i2;
import android.os.Handler;
import android.os.Looper;
import android.os.SystemClock;
import androidx.annotation.Nullable;
/* compiled from: SystemClock */
public class b0 implements g {
@Override // c.i.a.c.i2.g
public long a() {
return SystemClock.uptimeMillis();
}
@Override // c.i.a.c.i2.g
public c0 b(Looper looper, @Nullable Handler.Callback callback) {
return new c0(new Handler(looper, callback));
}
@Override // c.i.a.c.i2.g
public long c() {
return SystemClock.elapsedRealtime();
}
}

View File

@ -1,14 +0,0 @@
package c.i.a.c.i2;
import c.i.a.c.i2.z;
import java.util.Comparator;
/* compiled from: lambda */
public final /* synthetic */ class c implements Comparator {
public static final /* synthetic */ c i = new c();
@Override // java.util.Comparator
public final int compare(Object obj, Object obj2) {
int i2 = z.a;
return ((z.b) obj).a - ((z.b) obj2).a;
}
}

View File

@ -1,29 +0,0 @@
package c.i.a.c.i2;
import android.os.Handler;
import android.os.Message;
import androidx.annotation.Nullable;
/* compiled from: SystemHandlerWrapper */
public final class c0 {
public final Handler a;
public c0(Handler handler) {
this.a = handler;
}
public Message a(int i) {
return this.a.obtainMessage(i);
}
public Message b(int i, int i2, int i3) {
return this.a.obtainMessage(i, i2, i3);
}
public Message c(int i, @Nullable Object obj) {
return this.a.obtainMessage(i, obj);
}
public boolean d(int i) {
return this.a.sendEmptyMessage(i);
}
}

View File

@ -1,14 +0,0 @@
package c.i.a.c.i2;
import c.i.a.c.i2.z;
import java.util.Comparator;
/* compiled from: lambda */
public final /* synthetic */ class d implements Comparator {
public static final /* synthetic */ d i = new d();
@Override // java.util.Comparator
public final int compare(Object obj, Object obj2) {
int i2 = z.a;
return Float.compare(((z.b) obj).f916c, ((z.b) obj2).f916c);
}
}

View File

@ -1,90 +0,0 @@
package c.i.a.c.i2;
import androidx.annotation.Nullable;
import com.airbnb.lottie.parser.AnimatableValueParser;
import java.util.Arrays;
/* compiled from: TimedValueQueue */
public final class d0<V> {
public long[] a = new long[10];
public V[] b = ((V[]) new Object[10]);
/* renamed from: c reason: collision with root package name */
public int f902c;
public int d;
public synchronized void a(long j, V v) {
int i = this.d;
if (i > 0) {
if (j <= this.a[((this.f902c + i) - 1) % this.b.length]) {
b();
}
}
c();
int i2 = this.f902c;
int i3 = this.d;
V[] vArr = this.b;
int length = (i2 + i3) % vArr.length;
this.a[length] = j;
vArr[length] = v;
this.d = i3 + 1;
}
public synchronized void b() {
this.f902c = 0;
this.d = 0;
Arrays.fill(this.b, (Object) null);
}
public final void c() {
int length = this.b.length;
if (this.d >= length) {
int i = length * 2;
long[] jArr = new long[i];
V[] vArr = (V[]) new Object[i];
int i2 = this.f902c;
int i3 = length - i2;
System.arraycopy(this.a, i2, jArr, 0, i3);
System.arraycopy(this.b, this.f902c, vArr, 0, i3);
int i4 = this.f902c;
if (i4 > 0) {
System.arraycopy(this.a, 0, jArr, i3, i4);
System.arraycopy(this.b, 0, vArr, i3, this.f902c);
}
this.a = jArr;
this.b = vArr;
this.f902c = 0;
}
}
@Nullable
public final V d(long j, boolean z2) {
V v = null;
long j2 = Long.MAX_VALUE;
while (this.d > 0) {
long j3 = j - this.a[this.f902c];
if (j3 < 0 && (z2 || (-j3) >= j2)) {
break;
}
v = f();
j2 = j3;
}
return v;
}
@Nullable
public synchronized V e(long j) {
return d(j, true);
}
@Nullable
public final V f() {
AnimatableValueParser.D(this.d > 0);
V[] vArr = this.b;
int i = this.f902c;
V v = vArr[i];
vArr[i] = null;
this.f902c = (i + 1) % vArr.length;
this.d--;
return v;
}
}

View File

@ -1,16 +0,0 @@
package c.i.a.c.i2;
import java.util.concurrent.ThreadFactory;
/* compiled from: lambda */
public final /* synthetic */ class e implements ThreadFactory {
public final /* synthetic */ String i;
public /* synthetic */ e(String str) {
this.i = str;
}
@Override // java.util.concurrent.ThreadFactory
public final Thread newThread(Runnable runnable) {
return new Thread(runnable, this.i);
}
}

View File

@ -1,65 +0,0 @@
package c.i.a.c.i2;
import androidx.annotation.GuardedBy;
/* compiled from: TimestampAdjuster */
public final class e0 {
@GuardedBy("this")
public long a;
@GuardedBy("this")
public long b;
@GuardedBy("this")
/* renamed from: c reason: collision with root package name */
public long f903c = -9223372036854775807L;
public e0(long j) {
this.a = j;
}
public synchronized long a(long j) {
if (j == -9223372036854775807L) {
return -9223372036854775807L;
}
if (this.f903c != -9223372036854775807L) {
this.f903c = j;
} else {
long j2 = this.a;
if (j2 != Long.MAX_VALUE) {
this.b = j2 - j;
}
this.f903c = j;
notifyAll();
}
return j + this.b;
}
public synchronized long b(long j) {
if (j == -9223372036854775807L) {
return -9223372036854775807L;
}
long j2 = this.f903c;
if (j2 != -9223372036854775807L) {
long j3 = (j2 * 90000) / 1000000;
long j4 = (4294967296L + j3) / 8589934592L;
long j5 = ((j4 - 1) * 8589934592L) + j;
long j6 = (j4 * 8589934592L) + j;
j = Math.abs(j5 - j3) < Math.abs(j6 - j3) ? j5 : j6;
}
return a((j * 1000000) / 90000);
}
public synchronized long c() {
return this.a;
}
public synchronized long d() {
long j;
j = -9223372036854775807L;
if (this.a == Long.MAX_VALUE) {
j = 0;
} else if (this.f903c != -9223372036854775807L) {
j = this.b;
}
return j;
}
}

View File

@ -1,107 +0,0 @@
package c.i.a.c.i2;
import android.util.Log;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
/* compiled from: AtomicFile */
public final class f {
public final File a;
public final File b;
/* compiled from: AtomicFile */
public static final class a extends OutputStream {
public final FileOutputStream i;
public boolean j = false;
public a(File file) throws FileNotFoundException {
this.i = new FileOutputStream(file);
}
@Override // java.io.OutputStream, java.io.Closeable, java.lang.AutoCloseable
public void close() throws IOException {
if (!this.j) {
this.j = true;
this.i.flush();
try {
this.i.getFD().sync();
} catch (IOException e) {
p.c("AtomicFile", "Failed to sync file descriptor:", e);
}
this.i.close();
}
}
@Override // java.io.OutputStream, java.io.Flushable
public void flush() throws IOException {
this.i.flush();
}
@Override // java.io.OutputStream
public void write(int i) throws IOException {
this.i.write(i);
}
@Override // java.io.OutputStream
public void write(byte[] bArr) throws IOException {
this.i.write(bArr);
}
@Override // java.io.OutputStream
public void write(byte[] bArr, int i, int i2) throws IOException {
this.i.write(bArr, i, i2);
}
}
public f(File file) {
this.a = file;
this.b = new File(file.getPath() + ".bak");
}
public boolean a() {
return this.a.exists() || this.b.exists();
}
public InputStream b() throws FileNotFoundException {
if (this.b.exists()) {
this.a.delete();
this.b.renameTo(this.a);
}
return new FileInputStream(this.a);
}
public OutputStream c() throws IOException {
if (this.a.exists()) {
if (this.b.exists()) {
this.a.delete();
} else if (!this.a.renameTo(this.b)) {
StringBuilder K = c.d.b.a.a.K("Couldn't rename file ");
K.append(this.a);
K.append(" to backup file ");
K.append(this.b);
Log.w("AtomicFile", K.toString());
}
}
try {
return new a(this.a);
} catch (FileNotFoundException e) {
File parentFile = this.a.getParentFile();
if (parentFile == null || !parentFile.mkdirs()) {
StringBuilder K2 = c.d.b.a.a.K("Couldn't create ");
K2.append(this.a);
throw new IOException(K2.toString(), e);
}
try {
return new a(this.a);
} catch (FileNotFoundException e2) {
StringBuilder K3 = c.d.b.a.a.K("Couldn't create ");
K3.append(this.a);
throw new IOException(K3.toString(), e2);
}
}
}
}

View File

@ -1,538 +0,0 @@
package c.i.a.c.i2;
import android.app.UiModeManager;
import android.content.Context;
import android.database.DatabaseUtils;
import android.database.sqlite.SQLiteDatabase;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Build;
import android.os.Handler;
import android.os.Looper;
import android.text.TextUtils;
import androidx.annotation.Nullable;
import c.d.b.a.a;
import c.i.b.a.c;
import com.airbnb.lottie.parser.AnimatableValueParser;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Arrays;
import java.util.Formatter;
import java.util.HashMap;
import java.util.Locale;
import java.util.MissingResourceException;
import java.util.regex.Pattern;
import java.util.zip.DataFormatException;
import java.util.zip.Inflater;
/* compiled from: Util */
public final class f0 {
public static final int a;
public static final String b;
/* renamed from: c reason: collision with root package name */
public static final String f904c;
public static final String d;
public static final String e;
public static final byte[] f = new byte[0];
public static final Pattern g = Pattern.compile("%([A-Fa-f0-9]{2})");
@Nullable
public static HashMap<String, String> h;
public static final String[] i = {"alb", "sq", "arm", "hy", "baq", "eu", "bur", "my", "tib", "bo", "chi", "zh", "cze", "cs", "dut", "nl", "ger", "de", "gre", "el", "fre", "fr", "geo", "ka", "ice", "is", "mac", "mk", "mao", "mi", "may", "ms", "per", "fa", "rum", "ro", "scc", "hbs-srp", "slo", "sk", "wel", "cy", "id", "ms-ind", "iw", "he", "heb", "he", "ji", "yi", "in", "ms-ind", "ind", "ms-ind", "nb", "no-nob", "nob", "no-nob", "nn", "no-nno", "nno", "no-nno", "tw", "ak-twi", "twi", "ak-twi", "bs", "hbs-bos", "bos", "hbs-bos", "hr", "hbs-hrv", "hrv", "hbs-hrv", "sr", "hbs-srp", "srp", "hbs-srp", "cmn", "zh-cmn", "hak", "zh-hak", "nan", "zh-nan", "hsn", "zh-hsn"};
public static final String[] j = {"i-lux", "lb", "i-hak", "zh-hak", "i-navajo", "nv", "no-bok", "no-nob", "no-nyn", "no-nno", "zh-guoyu", "zh-cmn", "zh-hakka", "zh-hak", "zh-min-nan", "zh-nan", "zh-xiang", "zh-hsn"};
public static final int[] k = {0, 79764919, 159529838, 222504665, 319059676, 398814059, 445009330, 507990021, 638119352, 583659535, 797628118, 726387553, 890018660, 835552979, 1015980042, 944750013, 1276238704, 1221641927, 1167319070, 1095957929, 1595256236, 1540665371, 1452775106, 1381403509, 1780037320, 1859660671, 1671105958, 1733955601, 2031960084, 2111593891, 1889500026, 1952343757, -1742489888, -1662866601, -1851683442, -1788833735, -1960329156, -1880695413, -2103051438, -2040207643, -1104454824, -1159051537, -1213636554, -1284997759, -1389417084, -1444007885, -1532160278, -1603531939, -734892656, -789352409, -575645954, -646886583, -952755380, -1007220997, -827056094, -898286187, -231047128, -151282273, -71779514, -8804623, -515967244, -436212925, -390279782, -327299027, 881225847, 809987520, 1023691545, 969234094, 662832811, 591600412, 771767749, 717299826, 311336399, 374308984, 453813921, 533576470, 25881363, 88864420, 134795389, 214552010, 2023205639, 2086057648, 1897238633, 1976864222, 1804852699, 1867694188, 1645340341, 1724971778, 1587496639, 1516133128, 1461550545, 1406951526, 1302016099, 1230646740, 1142491917, 1087903418, -1398421865, -1469785312, -1524105735, -1578704818, -1079922613, -1151291908, -1239184603, -1293773166, -1968362705, -1905510760, -2094067647, -2014441994, -1716953613, -1654112188, -1876203875, -1796572374, -525066777, -462094256, -382327159, -302564546, -206542021, -143559028, -97365931, -17609246, -960696225, -1031934488, -817968335, -872425850, -709327229, -780559564, -600130067, -654598054, 1762451694, 1842216281, 1619975040, 1682949687, 2047383090, 2127137669, 1938468188, 2001449195, 1325665622, 1271206113, 1183200824, 1111960463, 1543535498, 1489069629, 1434599652, 1363369299, 622672798, 568075817, 748617968, 677256519, 907627842, 853037301, 1067152940, 995781531, 51762726, 131386257, 177728840, 240578815, 269590778, 349224269, 429104020, 491947555, -248556018, -168932423, -122852000, -60002089, -500490030, -420856475, -341238852, -278395381, -685261898, -739858943, -559578920, -630940305, -1004286614, -1058877219, -845023740, -916395085, -1119974018, -1174433591, -1262701040, -1333941337, -1371866206, -1426332139, -1481064244, -1552294533, -1690935098, -1611170447, -1833673816, -1770699233, -2009983462, -1930228819, -2119160460, -2056179517, 1569362073, 1498123566, 1409854455, 1355396672, 1317987909, 1246755826, 1192025387, 1137557660, 2072149281, 2135122070, 1912620623, 1992383480, 1753615357, 1816598090, 1627664531, 1707420964, 295390185, 358241886, 404320391, 483945776, 43990325, 106832002, 186451547, 266083308, 932423249, 861060070, 1041341759, 986742920, 613929101, 542559546, 756411363, 701822548, -978770311, -1050133554, -869589737, -924188512, -693284699, -764654318, -550540341, -605129092, -475935807, -413084042, -366743377, -287118056, -257573603, -194731862, -114850189, -35218492, -1984365303, -1921392450, -2143631769, -2063868976, -1698919467, -1635936670, -1824608069, -1744851700, -1347415887, -1418654458, -1506661409, -1561119128, -1129027987, -1200260134, -1254728445, -1309196108};
public static final int[] l = {0, 7, 14, 9, 28, 27, 18, 21, 56, 63, 54, 49, 36, 35, 42, 45, 112, 119, 126, 121, 108, 107, 98, 101, 72, 79, 70, 65, 84, 83, 90, 93, 224, 231, 238, 233, 252, 251, 242, 245, 216, 223, 214, 209, 196, 195, 202, 205, 144, 151, 158, 153, 140, 139, 130, 133, 168, 175, 166, 161, 180, 179, 186, 189, 199, 192, 201, 206, 219, 220, 213, 210, 255, 248, 241, 246, 227, 228, 237, 234, 183, 176, 185, 190, 171, 172, 165, 162, 143, 136, 129, 134, 147, 148, 157, 154, 39, 32, 41, 46, 59, 60, 53, 50, 31, 24, 17, 22, 3, 4, 13, 10, 87, 80, 89, 94, 75, 76, 69, 66, 111, 104, 97, 102, 115, 116, 125, 122, 137, 142, 135, 128, 149, 146, 155, 156, 177, 182, 191, 184, 173, 170, 163, 164, 249, 254, 247, 240, 229, 226, 235, 236, 193, 198, 207, 200, 221, 218, 211, 212, 105, 110, 103, 96, 117, 114, 123, 124, 81, 86, 95, 88, 77, 74, 67, 68, 25, 30, 23, 16, 5, 2, 11, 12, 33, 38, 47, 40, 61, 58, 51, 52, 78, 73, 64, 71, 82, 85, 92, 91, 118, 113, 120, 127, 106, 109, 100, 99, 62, 57, 48, 55, 34, 37, 44, 43, 6, 1, 8, 15, 26, 29, 20, 19, 174, 169, 160, 167, 178, 181, 188, 187, 150, 145, 152, 159, 138, 141, 132, 131, 222, 217, 208, 215, 194, 197, 204, 203, 230, 225, 232, 239, 250, 253, 244, 243};
static {
String str = Build.VERSION.CODENAME;
int i2 = "S".equals(str) ? 31 : "R".equals(str) ? 30 : Build.VERSION.SDK_INT;
a = i2;
String str2 = Build.DEVICE;
b = str2;
String str3 = Build.MANUFACTURER;
f904c = str3;
String str4 = Build.MODEL;
d = str4;
e = str2 + ", " + str4 + ", " + str3 + ", " + i2;
Pattern.compile("(\\d\\d\\d\\d)\\-(\\d\\d)\\-(\\d\\d)[Tt](\\d\\d):(\\d\\d):(\\d\\d)([\\.,](\\d+))?([Zz]|((\\+|\\-)(\\d?\\d):?(\\d\\d)))?");
Pattern.compile("^(-)?P(([0-9]*)Y)?(([0-9]*)M)?(([0-9]*)D)?(T(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?)?$");
Pattern.compile(".*\\.isml?(?:/(manifest(.*))?)?");
}
public static boolean A(Context context) {
UiModeManager uiModeManager = (UiModeManager) context.getApplicationContext().getSystemService("uimode");
return uiModeManager != null && uiModeManager.getCurrentModeType() == 4;
}
public static String B(String str) {
if (str == null) {
return null;
}
String replace = str.replace('_', '-');
if (!replace.isEmpty() && !"und".equals(replace)) {
str = replace;
}
String K = K(str);
int i2 = 0;
String str2 = H(K, "-")[0];
if (h == null) {
String[] iSOLanguages = Locale.getISOLanguages();
HashMap<String, String> hashMap = new HashMap<>(iSOLanguages.length + i.length);
for (String str3 : iSOLanguages) {
try {
String iSO3Language = new Locale(str3).getISO3Language();
if (!TextUtils.isEmpty(iSO3Language)) {
hashMap.put(iSO3Language, str3);
}
} catch (MissingResourceException unused) {
}
}
int i3 = 0;
while (true) {
String[] strArr = i;
if (i3 >= strArr.length) {
break;
}
hashMap.put(strArr[i3], strArr[i3 + 1]);
i3 += 2;
}
h = hashMap;
}
String str4 = h.get(str2);
if (str4 != null) {
StringBuilder K2 = a.K(str4);
K2.append(K.substring(str2.length()));
K = K2.toString();
str2 = str4;
}
if (!("no".equals(str2) || "i".equals(str2) || "zh".equals(str2))) {
return K;
}
while (true) {
String[] strArr2 = j;
if (i2 >= strArr2.length) {
return K;
}
if (K.startsWith(strArr2[i2])) {
return strArr2[i2 + 1] + K.substring(strArr2[i2].length());
}
i2 += 2;
}
}
public static <T> T[] C(T[] tArr, int i2) {
AnimatableValueParser.k(i2 <= tArr.length);
return (T[]) Arrays.copyOf(tArr, i2);
}
public static boolean D(Handler handler, Runnable runnable) {
if (!handler.getLooper().getThread().isAlive()) {
return false;
}
if (handler.getLooper() != Looper.myLooper()) {
return handler.post(runnable);
}
runnable.run();
return true;
}
public static long E(long j2, long j3, long j4) {
int i2 = (j4 > j3 ? 1 : (j4 == j3 ? 0 : -1));
if (i2 >= 0 && j4 % j3 == 0) {
return j2 / (j4 / j3);
}
if (i2 < 0 && j3 % j4 == 0) {
return (j3 / j4) * j2;
}
return (long) (((double) j2) * (((double) j3) / ((double) j4)));
}
public static void F(long[] jArr, long j2, long j3) {
int i2 = 0;
int i3 = (j3 > j2 ? 1 : (j3 == j2 ? 0 : -1));
if (i3 >= 0 && j3 % j2 == 0) {
long j4 = j3 / j2;
while (i2 < jArr.length) {
jArr[i2] = jArr[i2] / j4;
i2++;
}
} else if (i3 >= 0 || j2 % j3 != 0) {
double d2 = ((double) j2) / ((double) j3);
while (i2 < jArr.length) {
jArr[i2] = (long) (((double) jArr[i2]) * d2);
i2++;
}
} else {
long j5 = j2 / j3;
while (i2 < jArr.length) {
jArr[i2] = jArr[i2] * j5;
i2++;
}
}
}
public static String[] G(String str, String str2) {
return str.split(str2, -1);
}
public static String[] H(String str, String str2) {
return str.split(str2, 2);
}
public static boolean I(SQLiteDatabase sQLiteDatabase, String str) {
return DatabaseUtils.queryNumEntries(sQLiteDatabase, "sqlite_master", "tbl_name = ?", new String[]{str}) > 0;
}
public static byte[] J(InputStream inputStream) throws IOException {
byte[] bArr = new byte[4096];
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
while (true) {
int read = inputStream.read(bArr);
if (read == -1) {
return byteArrayOutputStream.toByteArray();
}
byteArrayOutputStream.write(bArr, 0, read);
}
}
public static String K(String str) {
return str == null ? str : str.toLowerCase(Locale.US);
}
public static long L(int i2) {
return ((long) i2) & 4294967295L;
}
public static boolean a(@Nullable Object obj, @Nullable Object obj2) {
return obj == null ? obj2 == null : obj.equals(obj2);
}
public static int b(long[] jArr, long j2, boolean z2, boolean z3) {
int i2;
int binarySearch = Arrays.binarySearch(jArr, j2);
if (binarySearch < 0) {
i2 = ~binarySearch;
} else {
do {
binarySearch++;
if (binarySearch >= jArr.length) {
break;
}
} while (jArr[binarySearch] == j2);
i2 = z2 ? binarySearch - 1 : binarySearch;
}
return z3 ? Math.min(jArr.length - 1, i2) : i2;
}
public static int c(q qVar, long j2, boolean z2, boolean z3) {
int i2;
int i3 = qVar.a - 1;
int i4 = 0;
while (i4 <= i3) {
int i5 = (i4 + i3) >>> 1;
if (qVar.b(i5) < j2) {
i4 = i5 + 1;
} else {
i3 = i5 - 1;
}
}
if (z2 && (i2 = i3 + 1) < qVar.a && qVar.b(i2) == j2) {
return i2;
}
if (!z3 || i3 != -1) {
return i3;
}
return 0;
}
public static int d(int[] iArr, int i2, boolean z2, boolean z3) {
int i3;
int binarySearch = Arrays.binarySearch(iArr, i2);
if (binarySearch < 0) {
i3 = -(binarySearch + 2);
} else {
do {
binarySearch--;
if (binarySearch < 0) {
break;
}
} while (iArr[binarySearch] == i2);
i3 = z2 ? binarySearch + 1 : binarySearch;
}
return z3 ? Math.max(0, i3) : i3;
}
public static int e(long[] jArr, long j2, boolean z2, boolean z3) {
int i2;
int binarySearch = Arrays.binarySearch(jArr, j2);
if (binarySearch < 0) {
i2 = -(binarySearch + 2);
} else {
do {
binarySearch--;
if (binarySearch < 0) {
break;
}
} while (jArr[binarySearch] == j2);
i2 = z2 ? binarySearch + 1 : binarySearch;
}
return z3 ? Math.max(0, i2) : i2;
}
public static int f(int i2, int i3) {
return ((i2 + i3) - 1) / i3;
}
public static float g(float f2, float f3, float f4) {
return Math.max(f3, Math.min(f2, f4));
}
public static int h(int i2, int i3, int i4) {
return Math.max(i3, Math.min(i2, i4));
}
public static long i(long j2, long j3, long j4) {
return Math.max(j3, Math.min(j2, j4));
}
public static Handler j() {
Looper myLooper = Looper.myLooper();
AnimatableValueParser.H(myLooper);
return new Handler(myLooper, null);
}
public static String k(String str, Object... objArr) {
return String.format(Locale.US, str, objArr);
}
public static String l(byte[] bArr) {
return new String(bArr, c.f1266c);
}
public static String m(byte[] bArr, int i2, int i3) {
return new String(bArr, i2, i3, c.f1266c);
}
public static int n(int i2) {
switch (i2) {
case 1:
return 4;
case 2:
return 12;
case 3:
return 28;
case 4:
return 204;
case 5:
return 220;
case 6:
return 252;
case 7:
return 1276;
case 8:
int i3 = a;
return (i3 < 23 && i3 < 21) ? 0 : 6396;
default:
return 0;
}
}
public static Looper o() {
Looper myLooper = Looper.myLooper();
return myLooper != null ? myLooper : Looper.getMainLooper();
}
public static long p(long j2, float f2) {
return f2 == 1.0f ? j2 : Math.round(((double) j2) * ((double) f2));
}
public static int q(Context context) {
ConnectivityManager connectivityManager;
int i2 = 0;
if (context == null || (connectivityManager = (ConnectivityManager) context.getSystemService("connectivity")) == null) {
return 0;
}
try {
NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();
if (activeNetworkInfo == null || !activeNetworkInfo.isConnected()) {
return 1;
}
int type = activeNetworkInfo.getType();
if (type != 0) {
if (type == 1) {
return 2;
}
if (!(type == 4 || type == 5)) {
if (type != 6) {
return type != 9 ? 8 : 7;
}
return 5;
}
}
switch (activeNetworkInfo.getSubtype()) {
case 1:
case 2:
return 3;
case 3:
case 4:
case 5:
case 6:
case 7:
case 8:
case 9:
case 10:
case 11:
case 12:
case 14:
case 15:
case 17:
return 4;
case 13:
return 5;
case 16:
case 19:
default:
return 6;
case 18:
return 2;
case 20:
if (a >= 29) {
i2 = 9;
}
return i2;
}
} catch (SecurityException unused) {
return 0;
}
}
public static int r(int i2) {
if (i2 == 8) {
return 3;
}
if (i2 == 16) {
return 2;
}
if (i2 != 24) {
return i2 != 32 ? 0 : 805306368;
}
return 536870912;
}
public static int s(int i2, int i3) {
if (i2 != 2) {
if (i2 == 3) {
return i3;
}
if (i2 != 4) {
if (i2 != 268435456) {
if (i2 == 536870912) {
return i3 * 3;
}
if (i2 != 805306368) {
throw new IllegalArgumentException();
}
}
}
return i3 * 4;
}
return i3 * 2;
}
public static int t(int i2) {
if (i2 == 13) {
return 1;
}
switch (i2) {
case 2:
return 0;
case 3:
return 8;
case 4:
return 4;
case 5:
case 7:
case 8:
case 9:
case 10:
return 5;
case 6:
return 2;
default:
return 3;
}
}
public static String u(StringBuilder sb, Formatter formatter, long j2) {
if (j2 == -9223372036854775807L) {
j2 = 0;
}
String str = j2 < 0 ? "-" : "";
long abs = (Math.abs(j2) + 500) / 1000;
long j3 = abs % 60;
long j4 = (abs / 60) % 60;
long j5 = abs / 3600;
sb.setLength(0);
return j5 > 0 ? formatter.format("%s%d:%02d:%02d", str, Long.valueOf(j5), Long.valueOf(j4), Long.valueOf(j3)).toString() : formatter.format("%s%02d:%02d", str, Long.valueOf(j4), Long.valueOf(j3)).toString();
}
@Nullable
public static String v(String str) {
try {
Class<?> cls = Class.forName("android.os.SystemProperties");
return (String) cls.getMethod("get", String.class).invoke(cls, str);
} catch (Exception e2) {
p.b("Util", "Failed to read system property " + str, e2);
return null;
}
}
public static byte[] w(String str) {
return str.getBytes(c.f1266c);
}
public static boolean x(w wVar, w wVar2, @Nullable Inflater inflater) {
if (wVar.a() <= 0) {
return false;
}
if (wVar2.a.length < wVar.a()) {
wVar2.b(wVar.a() * 2);
}
if (inflater == null) {
inflater = new Inflater();
}
inflater.setInput(wVar.a, wVar.b, wVar.a());
int i2 = 0;
while (true) {
try {
byte[] bArr = wVar2.a;
i2 += inflater.inflate(bArr, i2, bArr.length - i2);
} catch (DataFormatException unused) {
return false;
} finally {
inflater.reset();
}
if (inflater.finished()) {
wVar2.C(i2);
inflater.reset();
return true;
} else if (inflater.needsDictionary() || inflater.needsInput()) {
break;
} else {
byte[] bArr2 = wVar2.a;
if (i2 == bArr2.length) {
wVar2.b(bArr2.length * 2);
}
}
}
return false;
}
public static boolean y(int i2) {
return i2 == 536870912 || i2 == 805306368 || i2 == 4;
}
public static boolean z(int i2) {
return i2 == 3 || i2 == 2 || i2 == 268435456 || i2 == 536870912 || i2 == 805306368 || i2 == 4;
}
}

View File

@ -1,15 +0,0 @@
package c.i.a.c.i2;
import android.os.Handler;
import android.os.Looper;
import androidx.annotation.Nullable;
/* compiled from: Clock */
public interface g {
public static final g a = new b0();
long a();
c0 b(Looper looper, @Nullable Handler.Callback callback);
long c();
}

View File

@ -1,52 +0,0 @@
package c.i.a.c.i2;
/* compiled from: CodecSpecificDataUtil */
public final class h {
public static final byte[] a = {0, 0, 0, 1};
public static final String[] b = {"", "A", "B", "C"};
public static String a(int i, int i2, int i3) {
return String.format("avc1.%02X%02X%02X", Integer.valueOf(i), Integer.valueOf(i2), Integer.valueOf(i3));
}
/* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x005e: APUT
(r3v1 java.lang.Object[])
(3 ??[int, float, short, byte, char])
(wrap: java.lang.Character : 0x005a: INVOKE (r1v5 java.lang.Character) = (r1v4 char) type: STATIC call: java.lang.Character.valueOf(char):java.lang.Character)
*/
public static String b(x xVar) {
xVar.k(24);
int e = xVar.e(2);
boolean d = xVar.d();
int e2 = xVar.e(5);
int i = 0;
for (int i2 = 0; i2 < 32; i2++) {
if (xVar.d()) {
i |= 1 << i2;
}
}
int i3 = 6;
int[] iArr = new int[6];
for (int i4 = 0; i4 < 6; i4++) {
iArr[i4] = xVar.e(8);
}
int e3 = xVar.e(8);
Object[] objArr = new Object[5];
objArr[0] = b[e];
objArr[1] = Integer.valueOf(e2);
objArr[2] = Integer.valueOf(i);
objArr[3] = Character.valueOf(d ? 'H' : 'L');
objArr[4] = Integer.valueOf(e3);
StringBuilder sb = new StringBuilder(f0.k("hvc1.%s%d.%X.%c%d", objArr));
while (i3 > 0) {
int i5 = i3 - 1;
if (iArr[i5] != 0) {
break;
}
i3 = i5;
}
for (int i6 = 0; i6 < i3; i6++) {
sb.append(String.format(".%02X", Integer.valueOf(iArr[i6])));
}
return sb.toString();
}
}

View File

@ -1,162 +0,0 @@
package c.i.a.c.i2;
import android.graphics.Color;
import android.text.TextUtils;
import androidx.annotation.ColorInt;
import c.d.b.a.a;
import com.airbnb.lottie.parser.AnimatableValueParser;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/* compiled from: ColorParser */
public final class i {
public static final Pattern a = Pattern.compile("^rgb\\((\\d{1,3}),(\\d{1,3}),(\\d{1,3})\\)$");
public static final Pattern b = Pattern.compile("^rgba\\((\\d{1,3}),(\\d{1,3}),(\\d{1,3}),(\\d{1,3})\\)$");
/* renamed from: c reason: collision with root package name */
public static final Pattern f905c = Pattern.compile("^rgba\\((\\d{1,3}),(\\d{1,3}),(\\d{1,3}),(\\d*\\.?\\d*?)\\)$");
public static final Map<String, Integer> d;
static {
HashMap hashMap = new HashMap();
d = hashMap;
hashMap.put("aliceblue", -984833);
hashMap.put("antiquewhite", -332841);
hashMap.put("aqua", -16711681);
a.Z(-8388652, hashMap, "aquamarine", -983041, "azure", -657956, "beige", -6972, "bisque");
a.Z(-16777216, hashMap, "black", -5171, "blanchedalmond", -16776961, "blue", -7722014, "blueviolet");
a.Z(-5952982, hashMap, "brown", -2180985, "burlywood", -10510688, "cadetblue", -8388864, "chartreuse");
a.Z(-2987746, hashMap, "chocolate", -32944, "coral", -10185235, "cornflowerblue", -1828, "cornsilk");
hashMap.put("crimson", -2354116);
hashMap.put("cyan", -16711681);
hashMap.put("darkblue", -16777077);
hashMap.put("darkcyan", -16741493);
hashMap.put("darkgoldenrod", -4684277);
hashMap.put("darkgray", -5658199);
hashMap.put("darkgreen", -16751616);
hashMap.put("darkgrey", -5658199);
hashMap.put("darkkhaki", -4343957);
a.Z(-7667573, hashMap, "darkmagenta", -11179217, "darkolivegreen", -29696, "darkorange", -6737204, "darkorchid");
a.Z(-7667712, hashMap, "darkred", -1468806, "darksalmon", -7357297, "darkseagreen", -12042869, "darkslateblue");
hashMap.put("darkslategray", -13676721);
hashMap.put("darkslategrey", -13676721);
hashMap.put("darkturquoise", -16724271);
hashMap.put("darkviolet", -7077677);
hashMap.put("deeppink", -60269);
hashMap.put("deepskyblue", -16728065);
hashMap.put("dimgray", -9868951);
hashMap.put("dimgrey", -9868951);
a.Z(-14774017, hashMap, "dodgerblue", -5103070, "firebrick", -1296, "floralwhite", -14513374, "forestgreen");
hashMap.put("fuchsia", -65281);
hashMap.put("gainsboro", -2302756);
hashMap.put("ghostwhite", -460545);
hashMap.put("gold", -10496);
hashMap.put("goldenrod", -2448096);
hashMap.put("gray", -8355712);
hashMap.put("green", -16744448);
hashMap.put("greenyellow", -5374161);
hashMap.put("grey", -8355712);
a.Z(-983056, hashMap, "honeydew", -38476, "hotpink", -3318692, "indianred", -11861886, "indigo");
a.Z(-16, hashMap, "ivory", -989556, "khaki", -1644806, "lavender", -3851, "lavenderblush");
a.Z(-8586240, hashMap, "lawngreen", -1331, "lemonchiffon", -5383962, "lightblue", -1015680, "lightcoral");
hashMap.put("lightcyan", -2031617);
hashMap.put("lightgoldenrodyellow", -329006);
hashMap.put("lightgray", -2894893);
hashMap.put("lightgreen", -7278960);
hashMap.put("lightgrey", -2894893);
hashMap.put("lightpink", -18751);
hashMap.put("lightsalmon", -24454);
hashMap.put("lightseagreen", -14634326);
hashMap.put("lightskyblue", -7876870);
hashMap.put("lightslategray", -8943463);
hashMap.put("lightslategrey", -8943463);
hashMap.put("lightsteelblue", -5192482);
hashMap.put("lightyellow", -32);
hashMap.put("lime", -16711936);
hashMap.put("limegreen", -13447886);
hashMap.put("linen", -331546);
hashMap.put("magenta", -65281);
hashMap.put("maroon", -8388608);
hashMap.put("mediumaquamarine", -10039894);
a.Z(-16777011, hashMap, "mediumblue", -4565549, "mediumorchid", -7114533, "mediumpurple", -12799119, "mediumseagreen");
a.Z(-8689426, hashMap, "mediumslateblue", -16713062, "mediumspringgreen", -12004916, "mediumturquoise", -3730043, "mediumvioletred");
a.Z(-15132304, hashMap, "midnightblue", -655366, "mintcream", -6943, "mistyrose", -6987, "moccasin");
a.Z(-8531, hashMap, "navajowhite", -16777088, "navy", -133658, "oldlace", -8355840, "olive");
a.Z(-9728477, hashMap, "olivedrab", -23296, "orange", -47872, "orangered", -2461482, "orchid");
a.Z(-1120086, hashMap, "palegoldenrod", -6751336, "palegreen", -5247250, "paleturquoise", -2396013, "palevioletred");
a.Z(-4139, hashMap, "papayawhip", -9543, "peachpuff", -3308225, "peru", -16181, "pink");
a.Z(-2252579, hashMap, "plum", -5185306, "powderblue", -8388480, "purple", -10079335, "rebeccapurple");
a.Z(-65536, hashMap, "red", -4419697, "rosybrown", -12490271, "royalblue", -7650029, "saddlebrown");
a.Z(-360334, hashMap, "salmon", -744352, "sandybrown", -13726889, "seagreen", -2578, "seashell");
a.Z(-6270419, hashMap, "sienna", -4144960, "silver", -7876885, "skyblue", -9807155, "slateblue");
hashMap.put("slategray", -9404272);
hashMap.put("slategrey", -9404272);
hashMap.put("snow", -1286);
hashMap.put("springgreen", -16711809);
a.Z(-12156236, hashMap, "steelblue", -2968436, "tan", -16744320, "teal", -2572328, "thistle");
a.Z(-40121, hashMap, "tomato", 0, "transparent", -12525360, "turquoise", -1146130, "violet");
a.Z(-663885, hashMap, "wheat", -1, "white", -657931, "whitesmoke", -256, "yellow");
hashMap.put("yellowgreen", -6632142);
}
@ColorInt
public static int a(String str, boolean z2) {
int i;
AnimatableValueParser.k(!TextUtils.isEmpty(str));
String replace = str.replace(" ", "");
if (replace.charAt(0) == '#') {
int parseLong = (int) Long.parseLong(replace.substring(1), 16);
if (replace.length() == 7) {
return -16777216 | parseLong;
}
if (replace.length() == 9) {
return ((parseLong & 255) << 24) | (parseLong >>> 8);
}
throw new IllegalArgumentException();
}
if (replace.startsWith("rgba")) {
Matcher matcher = (z2 ? f905c : b).matcher(replace);
if (matcher.matches()) {
if (z2) {
String group = matcher.group(4);
Objects.requireNonNull(group);
i = (int) (Float.parseFloat(group) * 255.0f);
} else {
String group2 = matcher.group(4);
Objects.requireNonNull(group2);
i = Integer.parseInt(group2, 10);
}
String group3 = matcher.group(1);
Objects.requireNonNull(group3);
int parseInt = Integer.parseInt(group3, 10);
String group4 = matcher.group(2);
Objects.requireNonNull(group4);
int parseInt2 = Integer.parseInt(group4, 10);
String group5 = matcher.group(3);
Objects.requireNonNull(group5);
return Color.argb(i, parseInt, parseInt2, Integer.parseInt(group5, 10));
}
} else if (replace.startsWith("rgb")) {
Matcher matcher2 = a.matcher(replace);
if (matcher2.matches()) {
String group6 = matcher2.group(1);
Objects.requireNonNull(group6);
int parseInt3 = Integer.parseInt(group6, 10);
String group7 = matcher2.group(2);
Objects.requireNonNull(group7);
int parseInt4 = Integer.parseInt(group7, 10);
String group8 = matcher2.group(3);
Objects.requireNonNull(group8);
return Color.rgb(parseInt3, parseInt4, Integer.parseInt(group8, 10));
}
} else {
Integer num = d.get(f0.K(replace));
if (num != null) {
return num.intValue();
}
}
throw new IllegalArgumentException();
}
}

View File

@ -1,22 +0,0 @@
package c.i.a.c.i2;
/* compiled from: ConditionVariable */
public class j {
public final g a = g.a;
public boolean b;
public synchronized boolean a() {
boolean z2;
z2 = this.b;
this.b = false;
return z2;
}
public synchronized boolean b() {
if (this.b) {
return false;
}
this.b = true;
notifyAll();
return true;
}
}

Some files were not shown because too many files have changed in this diff Show More