HomeSort by relevance Sort by last modified time
    Searched refs:targetContext (Results 1 - 25 of 82) sorted by null

1 2 3 4

  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/
AccountsFragment.java 95 Context targetContext = getTargetContext(getContext(), authDesc);
96 if (targetContext == null) {
100 String authTitle = getAuthTitle(targetContext, authDesc);
108 Drawable authImage = getAuthImage(targetContext, authDesc);
170 final Context targetContext = getTargetContext(context, authDesc);
171 if (targetContext == null) {
174 String authTitle = getAuthTitle(targetContext, authDesc);
191 Context targetContext = null;
193 targetContext = context.createPackageContext(authDesc.packageName, 0);
199 return targetContext;
    [all...]
  /external/dexmaker/dexmaker-mockito-tests/src/androidTest/java/com/android/dx/mockito/tests/
BlacklistedApis.java 59 Context targetContext = InstrumentationRegistry.getTargetContext();
61 FrameLayout child = new FrameLayout(targetContext);
62 FrameLayout parent = spy(new FrameLayout(targetContext));
89 Context targetContext = InstrumentationRegistry.getTargetContext();
91 FrameLayout child = new FrameLayout(targetContext);
92 FrameLayout parent = spy(new FrameLayout(targetContext));
  /packages/apps/Settings/tests/unit/src/com/android/settings/tests/
DrawOverlayDetailsTest.java 53 final Context targetContext = instrumentation.getTargetContext();
55 final PackageManager packageManager = targetContext.getPackageManager();
62 openActionBarOverflowOrOptionsMenu(targetContext);
63 onView(withText(targetContext.getString(R.string.menu_show_system))).perform(click());
67 new UiSelector().packageName(targetContext.getPackageName()).scrollable(true));
70 onView(withText(targetContext.getString(R.string.permit_draw_overlay))).check(matches
KeepOnScreenTest.java 50 final Context targetContext = instrumentation.getTargetContext();
51 final int prevFlag = Settings.Global.getInt(targetContext.getContentResolver(), Settings
59 final int currentFlag = Settings.Global.getInt(targetContext.getContentResolver(), Settings
  /system/hwservicemanager/
AccessControl.cpp 77 bool AccessControl::checkPermission(const Context &context, pid_t sourceAuditPid, const char *targetContext, const char *perm, const char *interface) {
88 allowed = (selinux_check_access(context.get(), targetContext, "hwservice_manager",
95 char *targetContext = NULL;
99 if (selabel_lookup(mSeHandle, &targetContext, interface, 0) != 0) {
104 allowed = checkPermission(context, sourceAuditPid, targetContext, perm, interface);
106 freecon(targetContext);
AccessControl.h 21 bool checkPermission(const Context &context, pid_t sourceAuditPid, const char *targetContext, const char *perm, const char *interface);
  /packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/
PrivateVolumeForgetTest.java 45 Context targetContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
46 Intent intent = new Intent(targetContext, Settings.PrivateVolumeForgetActivity.class);
  /packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/parser/
DeviceAdminIconParserTest.java 62 Context targetContext = InstrumentationRegistry.getTargetContext();
63 ContentResolver cr = targetContext.getContentResolver();
64 TEST_FILE_DIR = new File(targetContext.getFilesDir(), TEST_FILE_DIRNAME);
76 Context targetContext = InstrumentationRegistry.getTargetContext();
80 when(mContext.getContentResolver()).thenReturn(targetContext.getContentResolver());
DisclaimersParserTest.java 78 Context targetContext = InstrumentationRegistry.getTargetContext();
79 ContentResolver cr = targetContext.getContentResolver();
80 TEST_FILE_DIR = new File(targetContext.getFilesDir(), TEST_FILE_DIRNAME);
  /external/libmojo/base/android/javatests/src/org/chromium/base/
AdvancedMockContextTest.java 54 Context targetContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
55 Application targetApplication = (Application) targetContext.getApplicationContext();
56 AdvancedMockContext context = new AdvancedMockContext(targetContext);
  /cts/tests/app/src/android/app/cts/
ApplicationTest.java 46 final Context targetContext = instrumentation.getTargetContext();
48 final Intent intent = new Intent(targetContext, MockApplicationActivity.class);
  /packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/
ManagedProvisioningSharedPreferencesTest.java 49 Context targetContext = InstrumentationRegistry.getTargetContext();
50 mSharedPreferences = targetContext.getSharedPreferences(KEY_TEST_SHARED_PREFERENCE,
  /frameworks/base/test-runner/src/android/test/
IsolatedContext.java 52 ContentResolver resolver, Context targetContext) {
53 super(targetContext);
ProviderTestCase.java 96 Context targetContext, Class<T> providerClass, String authority,
103 targetContext, // The context that file methods are delegated to
ProviderTestCase2.java 199 * that uses the targetContext parameter for file operations and a {@link MockContext}
207 * @param targetContext The context to use as the basis of the IsolatedContext
222 Context targetContext, String filenamePrefix, Class<T> providerClass, String authority,
228 targetContext, // The context that file methods are delegated to
  /frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/migration/
MigrationTest.java 236 Context targetContext = InstrumentationRegistry.getTargetContext();
237 MigrationDb db = Room.databaseBuilder(targetContext, MigrationDb.class, TEST_DB)
253 Context targetContext = InstrumentationRegistry.getTargetContext();
254 MigrationDb db = Room.databaseBuilder(targetContext, MigrationDb.class, TEST_DB)
293 Context targetContext = InstrumentationRegistry.getTargetContext();
295 MigrationDb db = Room.databaseBuilder(targetContext, MigrationDb.class, TEST_DB)
307 Context targetContext = InstrumentationRegistry.getTargetContext();
311 Room.databaseBuilder(targetContext, MigrationDb.class, TEST_DB)
331 Context targetContext = InstrumentationRegistry.getTargetContext();
335 Room.databaseBuilder(targetContext, MigrationDb.class, TEST_DB
    [all...]
  /frameworks/base/tests/testables/src/android/testing/
LayoutInflaterBuilder.java 63 * @param targetContext Context to be provided to
67 public LayoutInflaterBuilder target(@NonNull Context targetContext) {
69 mTargetContext = targetContext;
  /packages/apps/DocumentsUI/tests/unit/com/android/documentsui/archives/
TestUtils.java 42 public TestUtils(Context targetContext, Context testContext, ExecutorService executor) {
43 mTargetContext = targetContext;
  /packages/apps/Launcher3/tests/src/com/android/launcher3/model/
BaseModelUpdateTaskTestCase.java 64 public Context targetContext;
91 targetContext = new ContextWrapper(InstrumentationRegistry.getTargetContext()) {
98 iconCache = new MyIconCache(targetContext, idp);
104 when(appState.getContext()).thenReturn(targetContext);
146 bgDataModel.addItem(targetContext,
  /external/droiddriver/src/io/appium/droiddriver/finders/
By.java 62 Context targetContext = InstrumentationUtils.getInstrumentation().getTargetContext();
63 return resourceId(targetContext.getResources().getResourceName(resourceId));
  /frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/inputmethod/
InputMethodPreferenceTest.java 119 final Context targetContext = InstrumentationRegistry.getTargetContext();
120 final Locale systemLocale = targetContext
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/
MoreKeySpecSplitTests.java 38 final Context targetContext = getContext();
39 final Resources targetRes = targetContext.getResources();
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/
HotwordSwitchController.java 227 Context targetContext = mContext.createPackageContext(pkgName, 0);
228 int resId = targetContext.getResources().getIdentifier(resource, null, null);
230 return targetContext.getResources().getString(resId);
  /frameworks/base/services/tests/servicestests/src/com/android/server/policy/
PhoneWindowManagerTestBase.java 189 public TestContextWrapper(Context targetContext) {
190 super(targetContext);
191 mResourceMocker = new TestableResources(targetContext.getResources());
  /cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
EdgeEffectTests.java 73 final Context targetContext = InstrumentationRegistry.getTargetContext();
74 mThemeContext = new ContextThemeWrapper(targetContext,

Completed in 1158 milliseconds

1 2 3 4