/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/ |
D | AccountsFragment.java | 96 Context targetContext = getTargetContext(getContext(), authDesc); in updateAccounts() local 97 if (targetContext == null) { in updateAccounts() 101 String authTitle = getAuthTitle(targetContext, authDesc); in updateAccounts() 109 Drawable authImage = getAuthImage(targetContext, authDesc); in updateAccounts() 171 final Context targetContext = getTargetContext(context, authDesc); in setUpAddAccountPrefIntent() local 172 if (targetContext == null) { in setUpAddAccountPrefIntent() 175 String authTitle = getAuthTitle(targetContext, authDesc); in setUpAddAccountPrefIntent() 192 Context targetContext = null; in getTargetContext() local 194 targetContext = context.createPackageContext(authDesc.packageName, 0); in getTargetContext() 200 return targetContext; in getTargetContext() [all …]
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/parser/ |
D | DeviceAdminIconParserTest.java | 66 Context targetContext = InstrumentationRegistry.getTargetContext(); in setUpClass() local 67 ContentResolver cr = targetContext.getContentResolver(); in setUpClass() 68 TEST_FILE_DIR = new File(targetContext.getFilesDir(), TEST_FILE_DIRNAME); in setUpClass() 80 Context targetContext = InstrumentationRegistry.getTargetContext(); in setUp() local 84 when(mContext.getContentResolver()).thenReturn(targetContext.getContentResolver()); in setUp()
|
D | DisclaimersParserTest.java | 84 Context targetContext = InstrumentationRegistry.getTargetContext(); in setUpClass() local 85 ContentResolver cr = targetContext.getContentResolver(); in setUpClass() 86 TEST_FILE_DIR = new File(targetContext.getFilesDir(), TEST_FILE_DIRNAME); in setUpClass()
|
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/ |
D | BaseModelUpdateTaskTestCase.java | 57 public Context targetContext; field in BaseModelUpdateTaskTestCase 89 targetContext = RuntimeEnvironment.application; in setUp() 92 iconCache = new MyIconCache(targetContext, idp); in setUp() 98 when(appState.getContext()).thenReturn(targetContext); in setUp() 136 bgDataModel.addItem(targetContext, in initializeData()
|
D | AddWorkspaceItemsTaskTest.java | 160 bgDataModel.addItem(targetContext, info, false); in setupWorkspaceWithHoles() 163 ContentWriter writer = new ContentWriter(targetContext); in setupWorkspaceWithHoles() 166 targetContext.getContentResolver().insert(Favorites.CONTENT_URI, in setupWorkspaceWithHoles() 167 writer.getValues(targetContext)); in setupWorkspaceWithHoles()
|
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/ |
D | NavigationModeSwitchRule.java | 172 final Context targetContext = getInstrumentation().getTargetContext(); in apply() local 181 SysUINavigationMode.INSTANCE.get(targetContext); in apply() 182 targetContext.getMainExecutor().execute(() -> in apply() 185 targetContext.getMainExecutor().execute(() -> in apply()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/ |
D | HotwordSwitchController.java | 228 Context targetContext = mContext.createPackageContext(pkgName, 0); in getLocalizedStringResource() local 229 int resId = targetContext.getResources().getIdentifier(resource, null, null); in getLocalizedStringResource() 231 return targetContext.getResources().getString(resId); in getLocalizedStringResource()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/ |
D | PrivateVolumeForgetTest.java | 44 Context targetContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); in test_invalidSetupDoesNotCrashSettings() local 45 Intent intent = new Intent(targetContext, Settings.PrivateVolumeForgetActivity.class); in test_invalidSetupDoesNotCrashSettings()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/ |
D | ManagedProvisioningSharedPreferencesTest.java | 52 Context targetContext = InstrumentationRegistry.getTargetContext(); in setUp() local 53 mSharedPreferences = targetContext.getSharedPreferences(KEY_TEST_SHARED_PREFERENCE, in setUp()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/archives/ |
D | TestUtils.java | 42 public TestUtils(Context targetContext, Context testContext, ExecutorService executor) { in TestUtils() argument 43 mTargetContext = targetContext; in TestUtils()
|
/packages/services/Telephony/tests/src/com/android/phone/ |
D | CallFeaturesSettingTest.java | 60 Context targetContext = InstrumentationRegistry.getTargetContext(); in setUp() local 61 doReturn(targetContext).when(mMockPhone).getContext(); in setUp()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/ |
D | MoreKeySpecSplitTests.java | 46 final Context targetContext = InstrumentationRegistry.getTargetContext(); in setUp() local 47 final Resources targetRes = targetContext.getResources(); in setUp()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | ContactsManagerTest.java | 150 public ContextWithMockContentResolver(final Context targetContext) { in ContextWithMockContentResolver() argument 151 super(targetContext, "test"); in ContextWithMockContentResolver()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/ |
D | DevicePrefFragment.java | 179 final Context targetContext = getContext() in updateCastSettings() local 182 castPref.setIcon(targetContext.getDrawable(info.getIconResource())); in updateCastSettings()
|
/packages/apps/TV/tuner/tests/unittests/javatests/com/android/tv/tuner/ |
D | ZappingTimeTest.java | 265 private static File createCacheFile(Context context, Context targetContext, String filename) in createCacheFile() argument 267 File cacheFile = new File(targetContext.getCacheDir(), filename); in createCacheFile()
|
D | ZappingTimeTestExoV2.java | 292 private static File createCacheFile(Context context, Context targetContext, String filename) in createCacheFile() argument 294 File cacheFile = new File(targetContext.getCacheDir(), filename); in createCacheFile()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/inputmethod/ |
D | InputMethodAndSubtypePreferenceControllerTest.java | 96 private InputMethodInfo createInputMethodInfo(final String name, Context targetContext) { in createInputMethodInfo() argument
|