/cts/tests/app/src/android/app/backup/cts/ |
FileBackupHelperTest.java | 25 new FileBackupHelper(mContext); 26 new FileBackupHelper(mContext, "test-file-1"); 27 new FileBackupHelper(mContext, "test-file-1", "test-file-2");
|
SharedPreferencesBackupHelperTest.java | 25 new SharedPreferencesBackupHelper(mContext); 26 new SharedPreferencesBackupHelper(mContext, "test-prefs-group-1"); 27 new SharedPreferencesBackupHelper(mContext, "test-prefs-group-1", "test-prefs-group-2");
|
/external/conscrypt/openjdk/src/test/java/org/conscrypt/ |
ZpenSSLX509Certificate.java | 28 public final long mContext; 31 mContext = ctx;
|
/frameworks/compile/slang/ |
slang_rs_exportable.cpp | 25 mContext = nullptr;
|
slang_rs_exportable.h | 36 RSContext *mContext; 44 : mContext(Context), 60 bool isKeep() const { return (mContext == nullptr); } 62 RSContext *getRSContext() const { return mContext; }
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/ |
MffEnvironment.java | 34 private FilterContext mContext; 50 mContext = new FilterContext(); 51 mContext.setFrameManager(frameManager); 59 return mContext; 67 mContext.initGLEnvironment(glEnvironment); 85 GLEnvironment glEnv = mContext.getGLEnvironment(); 87 mContext.getGLEnvironment().activate(); 99 GLEnvironment glEnv = mContext.getGLEnvironment(); 101 mContext.getGLEnvironment().deactivate();
|
/frameworks/base/tests/testables/tests/src/android/testing/ |
TestablePermissionsTest.java | 41 public TestableContext mContext = new TestableContext(InstrumentationRegistry.getContext()); 45 mContext.getTestablePermissions().setPermission(permission.INTERACT_ACROSS_USERS, 47 mContext.getTestablePermissions().setPermission(permission.INTERACT_ACROSS_USERS_FULL, 50 mContext.checkPermission(permission.INTERACT_ACROSS_USERS, 0, 0)); 52 mContext.checkPermission(permission.INTERACT_ACROSS_USERS_FULL, 0, 0)); 57 mContext.getTestablePermissions().setPermission(URI_1, PERMISSION_GRANTED); 58 mContext.getTestablePermissions().setPermission(URI_2, PERMISSION_DENIED); 60 assertEquals(PERMISSION_GRANTED, mContext.checkUriPermission(URI_1, 0, 0, 0)); 61 assertEquals(PERMISSION_DENIED, mContext.checkUriPermission(URI_2, 0, 0, 0)); 66 mContext.getTestablePermissions().setPermission(permission.INTERACT_ACROSS_USERS [all...] |
TestableResourcesTest.java | 38 public TestableContext mContext = new TestableContext(InstrumentationRegistry.getContext()); 42 Resources before = mContext.getResources(); 43 mContext.ensureTestableResources(); 44 Resources after = mContext.getResources(); 53 mContext.getColor(nonExistentId); 57 mContext.getOrCreateTestableResources().addOverride(nonExistentId, 0xffffff); 59 assertEquals(0xffffff, mContext.getColor(nonExistentId)); 66 mContext.getOrCreateTestableResources().addOverride(nonExistentId, 0xffffff); 67 assertEquals(0xffffff, mContext.getColor(nonExistentId)); 68 mContext.getOrCreateTestableResources().removeOverride(nonExistentId) [all...] |
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
TextAppearanceFactory.java | 26 private final Context mContext; 29 mContext = context; 34 new TextAppearanceSpan(mContext, R.style.SuggestionText1_Query) 40 new TextAppearanceSpan(mContext, R.style.SuggestionText1_Suggested)
|
/frameworks/base/core/tests/coretests/src/android/text/format/ |
FormatterTest.java | 45 private Context mContext; 49 mContext = InstrumentationRegistry.getContext(); 50 mOriginalLocale = mContext.getResources() 99 BytesResult r = Formatter.formatBytes(mContext.getResources(), 1, 0); 137 assertEquals("3 days", Formatter.formatShortElapsedTime(mContext, 2 * DAY + 12 * HOUR)); 138 assertEquals("2 days", Formatter.formatShortElapsedTime(mContext, 2 * DAY + 11 * HOUR)); 139 assertEquals("2 days", Formatter.formatShortElapsedTime(mContext, 2 * DAY)); 141 Formatter.formatShortElapsedTime(mContext, 1 * DAY + 23 * HOUR + 59 * MINUTE)); 143 Formatter.formatShortElapsedTime(mContext, 1 * DAY + 59 * MINUTE)); 144 assertEquals("1 day", Formatter.formatShortElapsedTime(mContext, 1 * DAY)) [all...] |
/cts/tests/tests/telecom2/src/android/telecom/cts/ |
TelecomManagerNoPermissionsTest.java | 29 private Context mContext; 35 mContext = getInstrumentation().getContext(); 36 if (!TestUtils.shouldTestTelecom(mContext)) { 39 mTelecomManager = (TelecomManager) mContext.getSystemService(Context.TELECOM_SERVICE); 48 if (!TestUtils.shouldTestTelecom(mContext)) {
|
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/ |
InvocationContextTest.java | 42 private InvocationContext mContext; 46 mContext = new InvocationContext(); 55 assertNull(mContext.getDeviceName(device1)); 56 mContext.addAllocatedDevice("test1", device1); 57 assertEquals("test1", mContext.getDeviceName(device1)); 58 assertNull(mContext.getDeviceName(device2)); 67 mContext.addInvocationAttribute("TEST_KEY", "TEST_VALUE"); 68 assertEquals(Arrays.asList("TEST_VALUE"), mContext.getAttributes().get("TEST_KEY")); 69 MultiMap<String, String> map = mContext.getAttributes(); 72 assertEquals(Arrays.asList("TEST_VALUE"), mContext.getAttributes().get("TEST_KEY")) [all...] |
/cts/tests/tests/appcomponentfactory/src/android/app/componentfactory/cts/ |
AppComponentFactoryTest.java | 31 private final Context mContext = InstrumentationRegistry.getContext(); 35 assertTrue(mContext.getApplicationContext() instanceof MyApplication); 40 mContext.startActivity(new Intent() 41 .setComponent(new ComponentName(mContext.getPackageName(), 42 mContext.getPackageName() + ".inject.MyActivity")) 48 mContext.sendBroadcast(new Intent() 49 .setComponent(new ComponentName(mContext.getPackageName(), 50 mContext.getPackageName() + ".inject.MyReceiver"))); 55 mContext.startService(new Intent() 56 .setComponent(new ComponentName(mContext.getPackageName() [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
RotationLockControllerImpl.java | 28 private final Context mContext; 41 mContext = context; 55 return RotationPolicy.getRotationLockOrientation(mContext); 59 return RotationPolicy.isRotationLocked(mContext); 63 RotationPolicy.setRotationLock(mContext, locked); 67 RotationPolicy.setRotationLockAtAngle(mContext, locked, rotation); 71 return RotationPolicy.isRotationLockToggleVisible(mContext); 77 RotationPolicy.registerRotationPolicyListener(mContext, mRotationPolicyListener, 80 RotationPolicy.unregisterRotationPolicyListener(mContext, mRotationPolicyListener); 91 callback.onRotationLockStateChanged(RotationPolicy.isRotationLocked(mContext), [all...] |
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/development/ |
DevelopmentSettingsEnablerTest.java | 38 private Context mContext; 42 mContext = RuntimeEnvironment.application; 53 Settings.Global.putInt(mContext.getContentResolver(), 56 assertThat(DevelopmentSettingsEnabler.isDevelopmentSettingsEnabled(mContext)).isFalse(); 58 DevelopmentSettingsEnabler.setDevelopmentSettingsEnabled(mContext, true); 60 assertThat(DevelopmentSettingsEnabler.isDevelopmentSettingsEnabled(mContext)).isTrue(); 65 Settings.Global.putInt(mContext.getContentResolver(), 68 assertThat(DevelopmentSettingsEnabler.isDevelopmentSettingsEnabled(mContext)).isTrue(); 70 DevelopmentSettingsEnabler.setDevelopmentSettingsEnabled(mContext, false); 72 assertThat(DevelopmentSettingsEnabler.isDevelopmentSettingsEnabled(mContext)).isFalse() [all...] |
/hardware/intel/img/hwcomposer/merrifield/ips/anniedale/ |
AnnRGBPlane.cpp | 30 memset(&mContext, 0, sizeof(mContext)); 51 return (void *)&mContext; 135 mContext.type = DC_SPRITE_PLANE; 137 mContext.type = DC_PRIMARY_PLANE; 147 mContext.ctx.sp_ctx.index = mIndex; 148 mContext.ctx.sp_ctx.pipe = mDevice; 149 mContext.ctx.sp_ctx.cntr = spriteFormat | 0x80000000; 150 mContext.ctx.sp_ctx.linoff = linoff; 151 mContext.ctx.sp_ctx.stride = stride [all...] |
/external/mesa3d/src/gallium/drivers/swr/rasterizer/jitter/ |
builder.cpp | 47 mVoidTy = Type::getVoidTy(pJitMgr->mContext); 48 mFP16Ty = Type::getHalfTy(pJitMgr->mContext); 49 mFP32Ty = Type::getFloatTy(pJitMgr->mContext); 50 mDoubleTy = Type::getDoubleTy(pJitMgr->mContext); 51 mInt1Ty = Type::getInt1Ty(pJitMgr->mContext); 52 mInt8Ty = Type::getInt8Ty(pJitMgr->mContext); 53 mInt16Ty = Type::getInt16Ty(pJitMgr->mContext); 54 mInt32Ty = Type::getInt32Ty(pJitMgr->mContext); 58 mInt64Ty = Type::getInt64Ty(pJitMgr->mContext); 59 mV4FP32Ty = StructType::get(pJitMgr->mContext, std::vector<Type*>(4, mFP32Ty), false); // vector4 float type (represented as structure [all...] |
/frameworks/support/documentfile/src/main/java/androidx/documentfile/provider/ |
SingleDocumentFile.java | 28 private Context mContext; 33 mContext = context; 55 return DocumentsContractApi19.getName(mContext, mUri); 61 return DocumentsContractApi19.getType(mContext, mUri); 66 return DocumentsContractApi19.isDirectory(mContext, mUri); 71 return DocumentsContractApi19.isFile(mContext, mUri); 76 return DocumentsContractApi19.isVirtual(mContext, mUri); 81 return DocumentsContractApi19.lastModified(mContext, mUri); 86 return DocumentsContractApi19.length(mContext, mUri); 91 return DocumentsContractApi19.canRead(mContext, mUri) [all...] |
/packages/apps/Email/tests/src/com/android/email/ |
ControllerProviderOpsTests.java | 43 private Context mContext; 53 mContext = getContext(); 68 Mailbox.getSystemMailboxName(mContext, -1); 69 fail("Mailbox.getSystemMailboxName(mContext, -1) succeeded without an exception"); 74 assertEquals("Inbox", Mailbox.getSystemMailboxName(mContext, Mailbox.TYPE_INBOX)); 75 assertEquals("Outbox", Mailbox.getSystemMailboxName(mContext, Mailbox.TYPE_OUTBOX)); 76 assertEquals("Trash", Mailbox.getSystemMailboxName(mContext, Mailbox.TYPE_TRASH)); 77 assertEquals("Sent", Mailbox.getSystemMailboxName(mContext, Mailbox.TYPE_SENT)); 78 assertEquals("Junk", Mailbox.getSystemMailboxName(mContext, Mailbox.TYPE_JUNK)); 83 assertEquals("Inbox", Mailbox.getSystemMailboxName(mContext, Mailbox.TYPE_INBOX)) [all...] |
/cts/hostsidetests/dumpsys/apps/storagedapp/src/com/android/server/cts/storaged/ |
StoragedTest.java | 34 protected Context mContext; 38 mContext = InstrumentationRegistry.getTargetContext(); 44 intent.setClass(mContext, SimpleIOActivity.class); 47 mContext.startActivity(intent); 54 intent.setClass(mContext, SimpleIOService.class); 55 mContext.startService(intent);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
GlobalSetting.java | 28 private final Context mContext; 35 mContext = context; 40 return Global.getInt(mContext.getContentResolver(), mSettingName, 0); 44 Global.putInt(mContext.getContentResolver(), mSettingName, value); 50 mContext.getContentResolver().registerContentObserver( 53 mContext.getContentResolver().unregisterContentObserver(this);
|
/packages/apps/Camera2/src/com/android/camera/util/ |
AndroidContext.java | 51 private final Context mContext; 53 mContext = context; 57 return mContext;
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
BaseAffiliatedProfileOwnerTest.java | 37 mDevicePolicyManager = mContext.getSystemService(DevicePolicyManager.class); 44 boolean isDeviceOwner = mDevicePolicyManager.isDeviceOwnerApp(mContext.getPackageName()); 46 mContext.getPackageName()) 52 return BasicAdminReceiver.getComponentName(mContext);
|
/cts/hostsidetests/numberblocking/app/src/com/android/cts/numberblocking/hostside/ |
NumberBlockingAppTest.java | 27 assertTrue(BlockedNumberContract.canCurrentUserBlockNumbers(mContext)); 29 assertTrue(mContext.getContentResolver().delete( 36 assertTrue(BlockedNumberContract.canCurrentUserBlockNumbers(mContext)); 42 assertFalse(BlockedNumberContract.canCurrentUserBlockNumbers(mContext)); 45 BlockedNumberContract.isBlocked(mContext, mBlockedPhoneNumber); 52 assertTrue(BlockedNumberContract.canCurrentUserBlockNumbers(mContext)); 54 assertEquals(1, mContext.getContentResolver().delete( 63 mContext.getContentResolver().insert( 65 assertTrue(BlockedNumberContract.isBlocked(mContext, mBlockedPhoneNumber));
|
/frameworks/support/preference/src/androidTest/java/androidx/preference/tests/ |
PreferenceParentGroupTest.java | 41 private Context mContext; 45 mContext = InstrumentationRegistry.getTargetContext(); 55 PreferenceManager manager = new PreferenceManager(mContext); 57 PreferenceScreen screen = manager.createPreferenceScreen(mContext); 60 PreferenceCategory category = new PreferenceCategory(mContext); 63 CheckBoxPreference pref = new CheckBoxPreference(mContext); 85 PreferenceManager manager = new PreferenceManager(mContext); 87 PreferenceScreen screen = manager.createPreferenceScreen(mContext); 89 PreferenceCategory category1 = new PreferenceCategory(mContext); 91 PreferenceCategory category2 = new PreferenceCategory(mContext); [all...] |