OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
full:targetcontext
(Results
1 - 25
of
36
) sorted by null
1
2
/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/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
/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,
/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/Launcher3/tests/src/com/android/launcher3/model/
BaseModelUpdateTaskTestCase.java
53
public Context
targetContext
;
86
targetContext
= InstrumentationRegistry.getTargetContext();
88
iconCache = new MyIconCache(
targetContext
, idp);
134
bgDataModel.addItem(
targetContext
,
AddWorkspaceItemsTaskTest.java
164
bgDataModel.addItem(
targetContext
, info, false);
/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
60
ContentResolver resolver, Context
targetContext
) {
61
super(
targetContext
);
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/archives/
TestUtils.java
42
public TestUtils(Context
targetContext
, Context testContext, ExecutorService executor) {
43
mTargetContext =
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
;
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/android/arch/persistence/room/integration/testapp/migration/
MigrationTest.java
230
Context
targetContext
= InstrumentationRegistry.getTargetContext();
231
MigrationDb db = Room.databaseBuilder(
targetContext
, MigrationDb.class, TEST_DB)
247
Context
targetContext
= InstrumentationRegistry.getTargetContext();
248
MigrationDb db = Room.databaseBuilder(
targetContext
, MigrationDb.class, TEST_DB)
/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");
/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);
/external/droiddriver/src/io/appium/droiddriver/finders/
By.java
62
Context
targetContext
= InstrumentationUtils.getInstrumentation().getTargetContext();
63
return resourceId(
targetContext
.getResources().getResourceName(resourceId));
/frameworks/base/test-runner/tests/src/android/test/
InstrumentationTestRunnerTest.java
212
public StubInstrumentationTestRunner(Context context, Context
targetContext
,
215
this.mTargetContext =
targetContext
;
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/
MoreKeySpecSplitTests.java
38
final Context
targetContext
= getContext();
39
final Resources targetRes =
targetContext
.getResources();
/frameworks/multidex/library/src/android/support/multidex/
MultiDex.java
133
* @param
targetContext
target application context.
138
Context
targetContext
) {
159
ApplicationInfo applicationInfo = getApplicationInfo(
targetContext
);
170
doInstallation(
targetContext
,
176
doInstallation(
targetContext
,
Completed in 3223 milliseconds
1
2