Home
last modified time | relevance | path

Searched refs:AppCompatDelegate (Results 1 – 25 of 68) sorted by relevance

123

/appcompat/appcompat/src/androidTest/java/androidx/appcompat/app/
DLocalesSyncToFrameworkTestCase.kt57 AppCompatDelegate.Api33Impl.localeManagerSetApplicationLocales( in setUp()
58 AppCompatDelegate.getLocaleManagerForApplication(), in setUp()
72 AppCompatDelegate.APP_LOCALES_META_DATA_HOLDER_SERVICE_NAME in setUp()
86 assertNull(AppCompatDelegate.getRequestedAppLocales()) in testAutoSync_preTToPostT_syncsSuccessfully()
92 AppCompatDelegate.setIsAutoStoreLocalesOptedIn(true) in testAutoSync_preTToPostT_syncsSuccessfully()
105 AppCompatDelegate.resetStaticRequestedAndStoredLocales() in testAutoSync_preTToPostT_syncsSuccessfully()
122 AppCompatDelegate.Api33Impl.localeManagerGetApplicationLocales( in testAutoSync_preTToPostT_syncsSuccessfully()
123 AppCompatDelegate.getLocaleManagerForApplication() in testAutoSync_preTToPostT_syncsSuccessfully()
130 assertNull(AppCompatDelegate.getRequestedAppLocales()) in testAutoSync_preTToPostT_syncsSuccessfully()
137 AppCompatDelegate.setIsAutoStoreLocalesOptedIn(false) in testAutoSync_preTToPostT_syncsSuccessfully()
[all …]
DLocalesSetUsingFrameworkApiTestCase.kt50 AppCompatDelegate.Api33Impl.localeManagerSetApplicationLocales( in setUp()
51 AppCompatDelegate.getLocaleManagerForApplication(), in setUp()
76 AppCompatDelegate.getApplicationLocales() in testSetApplicationLocales_postT_frameworkApiCalled()
78 assertNull(AppCompatDelegate.getRequestedAppLocales()) in testSetApplicationLocales_postT_frameworkApiCalled()
84 assertEquals(CUSTOM_LOCALE_LIST, AppCompatDelegate.getApplicationLocales()) in testSetApplicationLocales_postT_frameworkApiCalled()
88 AppCompatDelegate.Api33Impl.localeManagerGetApplicationLocales( in testSetApplicationLocales_postT_frameworkApiCalled()
89 AppCompatDelegate.getLocaleManagerForApplication() in testSetApplicationLocales_postT_frameworkApiCalled()
96 assertNull(AppCompatDelegate.getRequestedAppLocales()) in testSetApplicationLocales_postT_frameworkApiCalled()
102 AppCompatDelegate.Api33Impl.localeManagerSetApplicationLocales( in teardown()
103 AppCompatDelegate.getLocaleManagerForApplication(), in teardown()
DLocalesPersistTestCase.kt73 AppCompatDelegate.setIsAutoStoreLocalesOptedIn(true) in testLocalesAppliedInNewActivityAfterStaticStorageCleared()
86 AppCompatDelegate.resetStaticRequestedAndStoredLocales() in testLocalesAppliedInNewActivityAfterStaticStorageCleared()
88 assertNull(AppCompatDelegate.getRequestedAppLocales()) in testLocalesAppliedInNewActivityAfterStaticStorageCleared()
121 AppCompatDelegate.setIsAutoStoreLocalesOptedIn(true) in testGetAppLocalesFromNonActivityContext()
133 AppCompatDelegate.setApplicationLocales(LocaleListCompat.getEmptyLocaleList()) in teardown()
135 AppCompatDelegate.setIsAutoStoreLocalesOptedIn(false) in teardown()
DNightModeStackedHandlingTestCase.kt28 import androidx.appcompat.app.AppCompatDelegate.MODE_NIGHT_NO in <lambda>()
29 import androidx.appcompat.app.AppCompatDelegate.MODE_NIGHT_YES in <lambda>()
75 instr.runOnMainSync { AppCompatDelegate.setDefaultNightMode(MODE_NIGHT_NO) } in <lambda>()
112 activityC.runOnUiThread { AppCompatDelegate.setDefaultNightMode(MODE_NIGHT_YES) } in <lambda>()
171 instr.runOnMainSync { AppCompatDelegate.setDefaultNightMode(MODE_NIGHT_NO) } in <lambda>()
211 AppCompatDelegate.setDefaultNightMode(MODE_NIGHT_YES) in <lambda>()
275 AppCompatDelegate.setDefaultNightMode(MODE_NIGHT_NO) in <lambda>()
DNightModeTestCase.kt23 import androidx.appcompat.app.AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM
24 import androidx.appcompat.app.AppCompatDelegate.MODE_NIGHT_NO
25 import androidx.appcompat.app.AppCompatDelegate.MODE_NIGHT_YES
135 setNightModeAndWait(rule, AppCompatDelegate.MODE_NIGHT_AUTO_TIME, setMode) in testNightModeAutoTimeRecreatesOnTimeChange()
158 setNightModeAndWait(rule, AppCompatDelegate.MODE_NIGHT_AUTO_TIME, setMode) in testNightModeAutoTimeRecreatesOnResume()
242 delegate.localNightMode = AppCompatDelegate.MODE_NIGHT_AUTO_TIME in testDialogCleansUpAutoMode()
DSystemLocalesMaintainedOnAppLanguageChangeTestCase.kt63 assertEquals(LocalesUtils.CUSTOM_LOCALE_LIST, AppCompatDelegate.getApplicationLocales()) in testGetSystemLocales_afterAppLocalesSet_systemLocalesSameAsExpectedSystemLocales()
74 AppCompatDelegate.Api33Impl.localeManagerSetApplicationLocales( in teardown()
75 AppCompatDelegate.getLocaleManagerForApplication(), in teardown()
DLocalesStackedHandlingTestCase.kt84 AppCompatDelegate.setApplicationLocales(LocaleListCompat.getEmptyLocaleList()) in <lambda>()
128 activityC.runOnUiThread { AppCompatDelegate.setApplicationLocales(CUSTOM_LOCALE_LIST) } in <lambda>()
190 AppCompatDelegate.setApplicationLocales(LocaleListCompat.getEmptyLocaleList()) in <lambda>()
237 AppCompatDelegate.setApplicationLocales(CUSTOM_LOCALE_LIST) in <lambda>()
306 AppCompatDelegate.setApplicationLocales(LocaleListCompat.getEmptyLocaleList()) in <lambda>()
DNightModeRotateDoesNotRecreateActivityTestCase.kt21 import androidx.appcompat.app.AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM
22 import androidx.appcompat.app.AppCompatDelegate.MODE_NIGHT_YES
67 AppCompatDelegate.setDefaultNightMode(MODE_NIGHT_FOLLOW_SYSTEM) in teardown()
DNightModeRotateRecreatesActivityWithConfigTestCase.kt23 import androidx.appcompat.app.AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM
24 import androidx.appcompat.app.AppCompatDelegate.MODE_NIGHT_YES
70 AppCompatDelegate.setDefaultNightMode(MODE_NIGHT_FOLLOW_SYSTEM) in teardown()
DNightModeUiModeConfigChangesTestCase.kt20 import androidx.appcompat.app.AppCompatDelegate.MODE_NIGHT_NO
21 import androidx.appcompat.app.AppCompatDelegate.MODE_NIGHT_YES
46 AppCompatDelegate.setDefaultNightMode(MODE_NIGHT_NO) in setup()
DLocalesCustomAttachBaseContextTestCase.kt20 import androidx.appcompat.app.AppCompatDelegate.MODE_NIGHT_YES
45 AppCompatDelegate.setApplicationLocales(LocaleListCompat.getEmptyLocaleList()) in setUp()
DNightModeLocalBeforeAttachBaseActivity.kt25 delegate.localNightMode = AppCompatDelegate.MODE_NIGHT_YES in attachBaseContext()
DNightModeLateOnCreateTestCase.kt50 AppCompatDelegate.MODE_NIGHT_YES, in testActivityRecreateLoop()
DNightModeForegroundDialogTestCase.kt20 import androidx.appcompat.app.AppCompatDelegate.MODE_NIGHT_YES
/appcompat/appcompat/src/main/java/androidx/appcompat/app/
DAppCompatDelegate.java114 public abstract class AppCompatDelegate { class
255 private static final ArraySet<WeakReference<AppCompatDelegate>> sActivityDelegates =
310 public static @NonNull AppCompatDelegate create(@NonNull Activity activity, in create()
321 public static @NonNull AppCompatDelegate create(@NonNull Dialog dialog, in create()
334 public static @NonNull AppCompatDelegate create(@NonNull Context context, in create()
347 public static @NonNull AppCompatDelegate create(@NonNull Context context, in create()
355 AppCompatDelegate() {} in AppCompatDelegate() method in AppCompatDelegate
890 for (WeakReference<AppCompatDelegate> activeDelegate : sActivityDelegates) { in getLocaleManagerForApplication()
891 final AppCompatDelegate delegate = activeDelegate.get(); in getLocaleManagerForApplication()
1042 static void addActiveDelegate(@NonNull AppCompatDelegate delegate) { in addActiveDelegate()
[all …]
DAppCompatDialog.java48 private AppCompatDelegate mDelegate;
61 final AppCompatDelegate delegate = getDelegate(); in AppCompatDialog()
189 public @NonNull AppCompatDelegate getDelegate() { in getDelegate()
191 mDelegate = AppCompatDelegate.create(this, this); in getDelegate()
DAppCompatActivity.java40 import androidx.appcompat.app.AppCompatDelegate.NightMode;
88 private AppCompatDelegate mDelegate;
131 final AppCompatDelegate delegate = getDelegate(); in initDelegate()
581 public @NonNull AppCompatDelegate getDelegate() { in getDelegate()
583 mDelegate = AppCompatDelegate.create(this, this); in getDelegate()
DToolbarActionBar.java562 mWindowCallback.onMenuOpened(AppCompatDelegate.FEATURE_SUPPORT_ACTION_BAR, subMenu); in onOpenSubMenu()
574 mWindowCallback.onPanelClosed(AppCompatDelegate.FEATURE_SUPPORT_ACTION_BAR, menu); in onCloseMenu()
592 mWindowCallback.onPanelClosed(AppCompatDelegate.FEATURE_SUPPORT_ACTION_BAR, menu); in onMenuModeChange()
594 mWindowCallback.onMenuOpened(AppCompatDelegate.FEATURE_SUPPORT_ACTION_BAR, menu); in onMenuModeChange()
/appcompat/appcompat/src/androidTest/java/androidx/appcompat/testutils/
DNightModeActivityTestRule.kt20 import androidx.appcompat.app.AppCompatDelegate
31 runOnUiThread { AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO) } in beforeActivityLaunched()
36 runOnUiThread { AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO) } in afterActivityFinished()
DNightModeUtils.kt25 import androidx.appcompat.app.AppCompatDelegate
26 import androidx.appcompat.app.AppCompatDelegate.NightMode
177 NightSetMode.DEFAULT -> AppCompatDelegate.setDefaultNightMode(nightMode) in setNightMode()
184 NightSetMode.DEFAULT -> AppCompatDelegate.getDefaultNightMode() in getNightMode()
DLocalesUtils.kt24 import androidx.appcompat.app.AppCompatDelegate
142 fun setLocales(locales: LocaleListCompat) = AppCompatDelegate.setApplicationLocales(locales)
144 private fun getLocales(): LocaleListCompat = AppCompatDelegate.getApplicationLocales()
DLocalesActivityTestRule.kt20 import androidx.appcompat.app.AppCompatDelegate
36 AppCompatDelegate.setApplicationLocales(LocaleListCompat.getEmptyLocaleList()) in beforeActivityLaunched()
/appcompat/appcompat/src/androidTest/java/androidx/appcompat/app/g3/
DFilternatorTestWithCustomDefault.kt20 import androidx.appcompat.app.AppCompatDelegate
60 AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM) in setup()
67 AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM) in teardown()
DFilternatorActivityWithCustomDefault.java23 import androidx.appcompat.app.AppCompatDelegate;
37 AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES); in onCreate()
/appcompat/appcompat/src/main/
Dbaseline-prof.txt11 …Landroidx/appcompat/app/AppCompatActivity;->getDelegate()Landroidx/appcompat/app/AppCompatDelegate;
24 HSPLandroidx/appcompat/app/AppCompatDelegate;-><clinit>()V
25 HSPLandroidx/appcompat/app/AppCompatDelegate;-><init>()V
26 HSPLandroidx/appcompat/app/AppCompatDelegate;->addActiveDelegate(Landroidx/appcompat/app/AppCompatD…
27 HSPLandroidx/appcompat/app/AppCompatDelegate;->attachBaseContext(Landroid/content/Context;)V
28 HSPLandroidx/appcompat/app/AppCompatDelegate;->attachBaseContext2(Landroid/content/Context;)Landroi…
29 …ompat/app/AppCompatDelegate;->create(Landroid/app/Activity;Landroidx/appcompat/app/AppCompatCallba…
30 HSPLandroidx/appcompat/app/AppCompatDelegate;->getDefaultNightMode()I
31 HSPLandroidx/appcompat/app/AppCompatDelegate;->removeDelegateFromActives(Landroidx/appcompat/app/Ap…
458 Landroidx/appcompat/app/AppCompatDelegate;
[all …]

123