OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:targetContext
(Results
1 - 25
of
78
) sorted by null
1
2
3
4
/packages/apps/Settings/tests/app/src/com/android/settings/tests/
DrawOverlayDetailsTest.java
49
final Context
targetContext
= instrumentation.getTargetContext();
51
final PackageManager packageManager =
targetContext
.getPackageManager();
55
openActionBarOverflowOrOptionsMenu(
targetContext
);
56
onView(withText(
targetContext
.getString(R.string.menu_show_system))).perform(click());
58
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
63
bool AccessControl::checkPermission(pid_t sourcePid, const char *
targetContext
,
77
allowed = (selinux_check_access(sourceContext,
targetContext
, "hwservice_manager",
86
char *
targetContext
= NULL;
90
if (selabel_lookup(mSeHandle, &
targetContext
, interface, 0) != 0) {
95
allowed = checkPermission(sourcePid,
targetContext
, perm, interface);
97
freecon(
targetContext
);
AccessControl.h
16
bool checkPermission(pid_t sourcePid, 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);
/cts/tests/app/src/android/app/cts/
ApplicationTest.java
37
final Context
targetContext
= instrumentation.getTargetContext();
39
final Intent intent = new Intent(
targetContext
, MockApplicationActivity.class);
48
final PackageManager pm =
targetContext
.getPackageManager();
/external/libmojo/base/android/javatests/src/org/chromium/base/
AdvancedMockContextTest.java
47
Context
targetContext
= getInstrumentation().getTargetContext();
48
Application targetApplication = (Application)
targetContext
.getApplicationContext();
49
AdvancedMockContext context = new AdvancedMockContext(
targetContext
);
/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);
/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/
ProviderTestCase.java
96
Context
targetContext
, Class<T> providerClass, String authority,
103
targetContext
, // The context that file methods are delegated to
ProviderTestCase2.java
198
* that uses the
targetContext
parameter for file operations and a {@link MockContext}
206
* @param
targetContext
The context to use as the basis of the IsolatedContext
221
Context
targetContext
, String filenamePrefix, Class<T> providerClass, String authority,
227
targetContext
, // The context that file methods are delegated to
IsolatedContext.java
61
ContentResolver resolver, Context
targetContext
) {
62
super(
targetContext
);
/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
;
/external/droiddriver/src/io/appium/droiddriver/finders/
By.java
62
Context
targetContext
= InstrumentationUtils.getInstrumentation().getTargetContext();
63
return resourceId(
targetContext
.getResources().getResourceName(resourceId));
/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/Launcher3/tests/src/com/android/launcher3/model/
BaseModelUpdateTaskTestCase.java
53
public Context
targetContext
;
84
targetContext
= InstrumentationRegistry.getTargetContext();
86
iconCache = new MyIconCache(
targetContext
, idp);
139
bgDataModel.addItem(
targetContext
,
AddWorkspaceItemsTaskTest.java
159
bgDataModel.addItem(
targetContext
, info, false);
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
MainFragment.java
212
final Context
targetContext
;
214
targetContext
= getContext().createPackageContext(authDesc.packageName, 0);
226
authTitle =
targetContext
.getString(authDesc.labelId);
249
authImage =
targetContext
.getDrawable(authDesc.iconId);
450
final Context
targetContext
= getContext()
453
googleSettingsPref.setIcon(
targetContext
.getDrawable(info.iconResourceId));
/frameworks/base/test-runner/tests/src/android/test/
InstrumentationTestRunnerTest.java
212
public StubInstrumentationTestRunner(Context context, Context
targetContext
,
215
this.mTargetContext =
targetContext
;
/packages/apps/Email/tests/src/com/android/email/
DBTestHelper.java
182
public MyIsolatedContext(ContentResolver resolver, Context
targetContext
,
184
super(resolver,
targetContext
);
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
ContactsManagerTest.java
139
public ContextWithMockContentResolver(final Context
targetContext
) {
140
super(
targetContext
, "test");
/cts/tests/tests/view/src/android/view/cts/
LayoutInflaterTest.java
394
final Context
targetContext
= target.getContext();
395
final CharSequence expectedValue =
targetContext
.getString(valueResId);
/prebuilts/misc/common/android-support-test/runner/
runner-0.6-beta-2-release-no-dep.jar
Completed in 711 milliseconds
1
2
3
4