/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
H A D | SanityTest.java | 45 private Context mContext; field in class:SanityTest 49 mContext = InstrumentationRegistry.getTargetContext(); 58 new BlockingBroadcastReceiver(mContext, ACTIVITY_LAUNCHED_ACTION); 65 mContext.startActivity(intent);
|
H A D | BaseManagedProfileTest.java | 41 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 D | KeyguardDismissLoggerCallback.java | 28 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 D | MutableContextWrapperTest.java | 27 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 D | Intent_ShortcutIconResourceTest.java | 31 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 D | MediaStoreSaver.java | 38 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 D | AutoTextTest.java | 42 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 D | ImageSpanTest.java | 44 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 D | ViewOutlineProviderTest.java | 41 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 D | AbsListView_LayoutParamsTest.java | 40 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 D | AbsoluteLayout_LayoutParamsTest.java | 44 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 D | ByodFlowTestHelper.java | 8 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 D | BaseDeviceAdminTest.java | 48 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 D | BatteryStatsDeviceTestBase.java | 40 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 D | StoragedTest.java | 34 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 D | BaseNumberBlockingClientTest.java | 30 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 D | WakeLockOperation.java | 32 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 D | BaseService.java | 45 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 D | CustomAnimationScaleListDrawableTest.java | 47 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 D | RippleDrawableTest.java | 49 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 D | VectorDrawableSizeTest.java | 39 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 D | MediaStore_Images_ThumbnailsTest.java | 45 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 D | MediaStore_VideoTest.java | 39 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 D | ContactsContract_PhotoTest.java | 41 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 D | BasicInCallServiceTest.java | 40 private Context mContext; field in class:BasicInCallServiceTest 46 mContext = getInstrumentation().getContext(); 66 if (!shouldTestTelecom(mContext)) { 77 mContext.startActivity(intent);
|