Searched defs:mContext (Results 1 - 25 of 237) sorted by relevance

12345678910

/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
H A DSanityTest.java45 private Context mContext; field in class:SanityTest
49 mContext = InstrumentationRegistry.getTargetContext();
58 new BlockingBroadcastReceiver(mContext, ACTIVITY_LAUNCHED_ACTION);
65 mContext.startActivity(intent);
H A DBaseManagedProfileTest.java41 protected Context mContext; field in class:BaseManagedProfileTest
46 mContext = getInstrumentation().getContext();
49 mContext.getSystemService(Context.DEVICE_POLICY_SERVICE);
/cts/hostsidetests/services/activityandwindowmanager/activitymanager/app/src/android/server/cts/
H A DKeyguardDismissLoggerCallback.java28 private final Context mContext; field in class:KeyguardDismissLoggerCallback
31 mContext = context;
41 if (mContext.getSystemService(KeyguardManager.class).isDeviceLocked()) {
/cts/tests/tests/content/src/android/content/cts/
H A DMutableContextWrapperTest.java27 Context mContext; field in class:MutableContextWrapperTest
33 mContext = getInstrumentation().getTargetContext();
38 mMutableContextWrapper = new MutableContextWrapper(mContext);
44 mMutableContextWrapper = new MutableContextWrapper(mContext);
45 assertTrue(mContext.equals(mMutableContextWrapper.getBaseContext()));
H A DIntent_ShortcutIconResourceTest.java31 Context mContext; field in class:Intent_ShortcutIconResourceTest
38 mContext = getContext();
42 String resourceName = mContext.getResources().getResourceName(
44 mShortcutIconResource = ShortcutIconResource.fromContext(mContext,
52 String resourceName = mContext.getResources().getResourceName(
54 mShortcutIconResource = ShortcutIconResource.fromContext(mContext,
59 assertEquals(mContext.getPackageName(),
65 mShortcutIconResource = ShortcutIconResource.fromContext(mContext,
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
H A DMediaStoreSaver.java38 Context mContext) {
42 picDir = mContext.getFilesDir();
35 savePNG(Bitmap bitmap, String folderName, String imageName, Context mContext) argument
/cts/tests/tests/text/src/android/text/cts/
H A DAutoTextTest.java42 private Context mContext; field in class:AutoTextTest
46 mContext = InstrumentationRegistry.getTargetContext();
50 Configuration config = mContext.getResources().getConfiguration();
53 mContext.getResources().updateConfiguration(config, null);
64 View view = new View(mContext);
105 View view = new View(mContext);
/cts/tests/tests/text/src/android/text/style/cts/
H A DImageSpanTest.java44 private Context mContext; field in class:ImageSpanTest
48 mContext = InstrumentationRegistry.getTargetContext();
62 new ImageSpan(mContext, b);
63 new ImageSpan(mContext, b, DynamicDrawableSpan.ALIGN_BOTTOM);
64 new ImageSpan(mContext, b, DynamicDrawableSpan.ALIGN_BASELINE);
66 Drawable d = mContext.getResources().getDrawable(R.drawable.pass);
75 new ImageSpan(mContext, Uri.parse("content://user/a/b"));
76 new ImageSpan(mContext, Uri.parse("content://user/a/b"),
78 new ImageSpan(mContext, Uri.parse("content://user/a/b"),
81 new ImageSpan(mContext,
[all...]
/cts/tests/tests/view/src/android/view/cts/
H A DViewOutlineProviderTest.java41 private Context mContext; field in class:ViewOutlineProviderTest
45 mContext = InstrumentationRegistry.getTargetContext();
51 View view = new View(mContext);
81 View view = new View(mContext);
103 View view = new View(mContext);
/cts/tests/tests/widget/src/android/widget/cts/
H A DAbsListView_LayoutParamsTest.java40 private Context mContext; field in class:AbsListView_LayoutParamsTest
45 mContext = InstrumentationRegistry.getTargetContext();
46 XmlPullParser parser = mContext.getResources().getXml(R.layout.abslistview_layout);
58 layoutParams = new AbsListView.LayoutParams(mContext, mAttributeSet);
H A DAbsoluteLayout_LayoutParamsTest.java44 private Context mContext; field in class:AbsoluteLayout_LayoutParamsTest
48 mContext = InstrumentationRegistry.getTargetContext();
52 XmlPullParser parser = mContext.getResources().getLayout(R.layout.absolute_layout);
73 new AbsoluteLayout.LayoutParams(mContext, getAttributeSet());
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
H A DByodFlowTestHelper.java8 private Context mContext; field in class:ByodFlowTestHelper
12 this.mContext = context;
13 this.mPackageManager = mContext.getPackageManager();
24 Utils.requestDeleteManagedProfile(mContext);
47 mPackageManager.setComponentEnabledSetting(new ComponentName(mContext, component),
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
H A DBaseDeviceAdminTest.java48 protected Context mContext; field in class:BaseDeviceAdminTest
55 mContext = getInstrumentation().getContext();
57 mDevicePolicyManager = mContext.getSystemService(DevicePolicyManager.class);
60 mUserManager = mContext.getSystemService(UserManager.class);
70 final PackageManager pm = mContext.getPackageManager();
71 final PackageInfo pi = pm.getPackageInfo(mContext.getPackageName(), /* flags =*/ 0);
/cts/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/
H A DBatteryStatsDeviceTestBase.java40 protected Context mContext; field in class:BatteryStatsDeviceTestBase
45 mContext = InstrumentationRegistry.getTargetContext();
46 mPowerManager = mContext.getSystemService(PowerManager.class);
/cts/hostsidetests/incident/apps/storagedapp/src/com/android/server/cts/storaged/
H A DStoragedTest.java34 protected Context mContext; field in class:StoragedTest
38 mContext = InstrumentationRegistry.getTargetContext();
44 intent.setClass(mContext, SimpleIOActivity.class);
47 mContext.startActivity(intent);
54 intent.setClass(mContext, SimpleIOService.class);
55 mContext.startService(intent);
/cts/hostsidetests/numberblocking/app/src/com/android/cts/numberblocking/hostside/
H A DBaseNumberBlockingClientTest.java30 protected Context mContext; field in class:BaseNumberBlockingClientTest
37 mContext = getInstrumentation().getContext();
38 mTelecomManager = (TelecomManager) mContext.getSystemService(Context.TELECOM_SERVICE);
/cts/tests/sensor/src/android/hardware/cts/helpers/sensoroperations/
H A DWakeLockOperation.java32 private final Context mContext; field in class:WakeLockOperation
45 mContext = context;
64 PowerManager pm = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE);
79 return new WakeLockOperation(mOperation.clone(), mContext, mWakeLockFlags);
/cts/tests/tests/externalservice/service/src/android/externalservice/service/
H A DBaseService.java45 private Context mContext; field in class:BaseService.BaseHandler
48 mContext = context;
59 mContext.getPackageName());
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
H A DCustomAnimationScaleListDrawableTest.java47 private Context mContext; field in class:CustomAnimationScaleListDrawableTest
52 mContext = InstrumentationRegistry.getTargetContext();
67 Drawable dr = mContext.getDrawable(DRAWABLE_ID);
77 Drawable dr = mContext.getDrawable(DRAWABLE_ID);
H A DRippleDrawableTest.java49 private Context mContext; field in class:RippleDrawableTest
53 mContext = InstrumentationRegistry.getTargetContext();
73 (RippleDrawable) mContext.getDrawable(R.drawable.rippledrawable_radius);
79 final Resources res = mContext.getResources();
H A DVectorDrawableSizeTest.java39 private Context mContext = null; field in class:VectorDrawableSizeTest
59 mContext = InstrumentationRegistry.getTargetContext();
60 mResources = mContext.getResources();
/cts/tests/tests/provider/src/android/provider/cts/
H A DMediaStore_Images_ThumbnailsTest.java45 private Context mContext; field in class:MediaStore_Images_ThumbnailsTest
70 mContext = getInstrumentation().getTargetContext();
71 mContentResolver = mContext.getContentResolver();
73 mHelper = new FileCopyHelper(mContext);
119 Bitmap src = BitmapFactory.decodeResource(mContext.getResources(), R.raw.scenery,opts);
288 Bitmap src = BitmapFactory.decodeResource(mContext.getResources(), R.raw.scenery);
H A DMediaStore_VideoTest.java39 private Context mContext; field in class:MediaStore_VideoTest
57 mContext = getInstrumentation().getTargetContext();
58 mContentResolver = mContext.getContentResolver();
59 mHelper = new FileCopyHelper(mContext);
/cts/tests/tests/provider/src/android/provider/cts/contacts/
H A DContactsContract_PhotoTest.java41 private Context mContext; field in class:ContactsContract_PhotoTest
49 mContext= getInstrumentation().getTargetContext();
50 mResolver = mContext.getContentResolver();
71 .with(Photo.PHOTO, PhotoUtil.getTestPhotoData(mContext))
/cts/tests/tests/telecom/src/android/telecom/cts/
H A DBasicInCallServiceTest.java40 private Context mContext; field in class:BasicInCallServiceTest
46 mContext = getInstrumentation().getContext();
66 if (!shouldTestTelecom(mContext)) {
77 mContext.startActivity(intent);

Completed in 2620 milliseconds

12345678910