Home
last modified time | relevance | path

Searched refs:getContext (Results 1 – 25 of 849) sorted by relevance

12345678910>>...34

/cts/tests/tests/tv/src/android/media/tv/cts/
DTvInputInfoTest.java56 if (!Utils.hasTvInputFramework(getContext())) { in setUp()
60 (TvInputManager) getContext().getSystemService(Context.TV_INPUT_SERVICE); in setUp()
68 mPackageManager = getContext().getPackageManager(); in setUp()
72 if (!Utils.hasTvInputFramework(getContext())) { in testTvInputInfoOp()
83 new ComponentName(getContext(), StubTunerTvInputService.class); in testTvInputInfoOp()
88 assertEquals(getContext().getPackageManager().getServiceInfo(componentName, 0).name, in testTvInputInfoOp()
103 TvInputInfoTest.compareTvInputInfos(getContext(), mStubInfo, infoFromParcel)); in testTvInputInfoOp()
110 assertEquals(mStubInfo.loadIcon(getContext()).getConstantState(), in testTvInputInfoOp()
111 infoFromParcel.loadIcon(getContext()).getConstantState()); in testTvInputInfoOp()
112 assertEquals(mStubInfo.loadLabel(getContext()), infoFromParcel.loadLabel(getContext())); in testTvInputInfoOp()
[all …]
/cts/tests/tests/content/src/android/content/pm/cts/
DPermissionFeatureTest.java26 PackageManager pm = getContext().getPackageManager(); in testPermissionRequiredFeatureDefined()
29 getContext().getPackageName())); in testPermissionRequiredFeatureDefined()
33 PackageManager pm = getContext().getPackageManager(); in testPermissionRequiredFeatureUndefined()
36 getContext().getPackageName())); in testPermissionRequiredFeatureUndefined()
40 PackageManager pm = getContext().getPackageManager(); in testPermissionRequiredNotFeatureDefined()
43 getContext().getPackageName())); in testPermissionRequiredNotFeatureDefined()
47 PackageManager pm = getContext().getPackageManager(); in testPermissionRequiredNotFeatureUndefined()
50 getContext().getPackageName())); in testPermissionRequiredNotFeatureUndefined()
54 PackageManager pm = getContext().getPackageManager(); in testPermissionRequiredMultiDeny()
57 getContext().getPackageName())); in testPermissionRequiredMultiDeny()
[all …]
DApplicationInfoTest.java66 mPackageName = getContext().getPackageName(); in setUp()
69 private Context getContext() { in getContext() method in ApplicationInfoTest
85 mApplicationInfo = getContext().getPackageManager().getApplicationInfo(mPackageName, 0); in testWriteToParcel()
116 mApplicationInfo = getContext().getPackageManager().getApplicationInfo(mPackageName, 0); in testDescribeContents()
137 mApplicationInfo = getContext().getPackageManager().getApplicationInfo(mPackageName, 0); in testLoadDescription()
139 assertNull(mApplicationInfo.loadDescription(getContext().getPackageManager())); in testLoadDescription()
142 assertEquals(getContext().getResources().getString(R.string.hello_world), in testLoadDescription()
143 mApplicationInfo.loadDescription(getContext().getPackageManager())); in testLoadDescription()
148 mApplicationInfo = getContext().getPackageManager().getApplicationInfo(mPackageName, 0); in verifyOwnInfo()
161 mApplicationInfo = getContext().getPackageManager().getApplicationInfo( in verifyDefaultValues()
[all …]
/cts/hostsidetests/appsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/
DStorageTest.java64 private Context getContext() { in getContext() method in StorageTest
65 return getInstrumentation().getContext(); in getContext()
69 useSpace(getContext()); in testAllocate()
73 final StorageStatsManager stats = getContext() in testFullDisk()
76 final File dataDir = getContext().getDataDir(); in testFullDisk()
84 getContext().getPackageManager().setComponentEnabledSetting( in testTweakComponent()
85 new ComponentName(getContext().getPackageName(), UtilsReceiver.class.getName()), in testTweakComponent()
91 assertTrue(getContext().getDataDir().getUsableSpace() < 256_000_000); in testClearSpace()
103 if (!isTV(getContext())) { in testClearSpace()
109 String clearString = isCar(getContext()) ? "Clear storage" : "Clear"; in testClearSpace()
[all …]
/cts/tests/filesystem/src/android/filesystem/cts/
DAlmostFullTest.java19 import static androidx.test.InstrumentationRegistry.getContext;
65 long freeDisk = SystemUtil.getFreeDiskSize(getContext()); in setUp()
83 FileUtil.createNewFilledFile(getContext(), in setUp()
88 Log.i(TAG, "free disk " + SystemUtil.getFreeDiskSize(getContext())); in setUp()
93 Log.i(TAG, "tearDown free disk " + SystemUtil.getFreeDiskSize(getContext())); in tearDown()
97 FileUtil.removeFileOrDir(getContext(), DIR_INITIAL_FILL); in tearDown()
99 FileUtil.removeFileOrDir(getContext(), DIR_SEQ_UPDATE); in tearDown()
100 FileUtil.removeFileOrDir(getContext(), DIR_RANDOM_WR); in tearDown()
101 FileUtil.removeFileOrDir(getContext(), DIR_RANDOM_RD); in tearDown()
102 Log.i(TAG, "tearDown free disk " + SystemUtil.getFreeDiskSize(getContext())); in tearDown()
[all …]
/cts/tests/tests/os/src/android/os/cts/
DBinderTest.java213 getContext().bindService(mService, conn1, 0); in testTransact()
214 getContext().startService(mService); in testTransact()
218 getContext().bindService(mService, conn2, 0); in testTransact()
221 getContext().unbindService(conn2); in testTransact()
226 getContext().stopService(mService); in testTransact()
227 getContext().unbindService(conn1); in testTransact()
228 getContext().unbindService(conn2); in testTransact()
237 getContext().stopService(mService); in testTransact()
240 getContext().unbindService(conn1); in testTransact()
249 getContext().bindService(mService, conn1, 0); in testTransact()
[all …]
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/
DClientTest.java120 InstrumentationRegistry.getContext() in setUp()
126 InstrumentationRegistry.getContext().unregisterReceiver(mReceiver); in tearDown()
134 final List<ResolveInfo> resolveInfo = InstrumentationRegistry.getContext() in testQuery()
157 final List<ResolveInfo> resolveInfo = InstrumentationRegistry.getContext() in testQuery()
180 final List<ResolveInfo> resolveInfo = InstrumentationRegistry.getContext() in testQuery()
205 final List<ResolveInfo> resolveInfo = InstrumentationRegistry.getContext() in testQuery()
230 final List<ResolveInfo> resolveInfo = InstrumentationRegistry.getContext() in testQuery()
249 .getContext().getPackageManager().queryIntentServices(queryIntent, 0 /*flags*/); in testQuery()
271 .getContext().getPackageManager().queryIntentServices(queryIntent, 0 /*flags*/); in testQuery()
289 .getContext().getPackageManager().queryIntentServices(queryIntent, 0 /*flags*/); in testQuery()
[all …]
/cts/hostsidetests/shortcuts/deviceside/multiuser/src/android/content/pm/cts/shortcut/multiuser/
DShortcutManagerManagedUserTest.java35 Launcher.setAsDefaultLauncher(getInstrumentation(), getContext()); in test01_managedProfileNotStarted()
52 new ShortcutInfo.Builder(getContext(), "s1") in test02_createShortuctsOnPrimaryUser()
55 new ComponentName(getContext(), MainActivity.class))).build()))); in test02_createShortuctsOnPrimaryUser()
60 new ShortcutInfo.Builder(getContext(), "s1") in test03_createShortuctsOnManagedProfile()
63 new ComponentName(getContext(), MainActivity.class))).build()))); in test03_createShortuctsOnManagedProfile()
67 Launcher.setAsDefaultLauncher(getInstrumentation(), getContext()); in test04_getAndLaunch_primary()
74 .setPackage(getContext().getPackageName()) in test04_getAndLaunch_primary()
92 getLauncherApps().startShortcut(getContext().getPackageName(), "s1", null, null, in test04_getAndLaunch_primary()
96 getLauncherApps().startShortcut(getContext().getPackageName(), "s1", null, null, in test04_getAndLaunch_primary()
102 Launcher.setAsDefaultLauncher(getInstrumentation(), getContext()); in test05_getAndLaunch_managed()
[all …]
/cts/tests/tests/provider/src/android/provider/cts/
DMediaStoreTest.java76 private Context getContext() { in getContext() method in MediaStoreTest
107 assertNotNull(MediaStore.getVersion(getContext(), MediaStore.VOLUME_INTERNAL)); in testGetVersion()
108 assertNotNull(MediaStore.getVersion(getContext(), MediaStore.VOLUME_EXTERNAL)); in testGetVersion()
109 assertNotNull(MediaStore.getVersion(getContext(), MediaStore.VOLUME_EXTERNAL_PRIMARY)); in testGetVersion()
114 Set<String> volumeNames = MediaStore.getExternalVolumeNames(getContext()); in testGetExternalVolumeNames()
159 MediaStore.deleteContributedMedia(getContext(), getContext().getPackageName(), in testContributedMedia()
169 final long beforeContributed = MediaStore.getContributedMediaSize(getContext(), in testContributedMedia()
170 getContext().getPackageName(), android.os.Process.myUserHandle()); in testContributedMedia()
173 try (AssetFileDescriptor fd = getContext().getResources() in testContributedMedia()
198 final long afterContributed = MediaStore.getContributedMediaSize(getContext(), in testContributedMedia()
[all …]
DSettingsTest.java90 ContentResolver cr = getContext().getContentResolver(); in testSystemTable()
141 ContentResolver cr = getContext().getContentResolver(); in testSecureTable()
165 ContentResolver cr = getContext().getContentResolver(); in tryBadTableAccess()
238 final ResolveInfo ri = getContext().getPackageManager().resolveActivity( in testUserDictionarySettingsExists()
245 final int initialValue = Settings.System.getInt(getContext().getContentResolver(), in testNoStaleValueModifiedFromSameProcess()
250 Settings.System.putInt(getInstrumentation().getContext().getContentResolver(), in testNoStaleValueModifiedFromSameProcess()
252 final int actualValue = Settings.System.getInt(getContext().getContentResolver(), in testNoStaleValueModifiedFromSameProcess()
257 Settings.System.putInt(getContext().getContentResolver(), in testNoStaleValueModifiedFromSameProcess()
264 final int initialValue = Settings.System.getInt(getContext().getContentResolver(), in testNoStaleValueModifiedFromOtherProcess()
271 final int actualValue = Settings.System.getInt(getContext().getContentResolver(), in testNoStaleValueModifiedFromOtherProcess()
[all …]
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/
DUsePermissionTest23.java46 private final Context mContext = getInstrumentation().getContext();
53 PackageManager pm = getInstrumentation().getContext().getPackageManager(); in initialize()
79 assertEquals(PackageManager.PERMISSION_GRANTED, getInstrumentation().getContext() in testGranted()
81 assertEquals(PackageManager.PERMISSION_GRANTED, getInstrumentation().getContext() in testGranted()
92 assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext() in testInteractiveGrant()
94 assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext() in testInteractiveGrant()
129 assertEquals(PackageManager.PERMISSION_GRANTED, getInstrumentation().getContext() in testInteractiveGrant()
131 assertEquals(PackageManager.PERMISSION_GRANTED, getInstrumentation().getContext() in testInteractiveGrant()
142 assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext() in testRuntimeGroupGrantSpecificity()
144 assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext() in testRuntimeGroupGrantSpecificity()
[all …]
/cts/hostsidetests/appsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/
DSplitAppTest.java79 final Resources r = getContext().getResources(); in testSingleBase()
80 final PackageManager pm = getContext().getPackageManager(); in testSingleBase()
135 final Resources r = getContext().getResources(); in testDensitySingle()
147 final Resources r = getContext().getResources(); in testDensityAll()
168 final Resources r = getContext().getResources(); in testDensityBest1()
176 final Resources r = getContext().getResources(); in testDensityBest2()
184 final Resources r = getContext().getResources(); in testApi()
185 final PackageManager pm = getContext().getPackageManager(); in testApi()
200 final Resources r = getContext().getResources(); in testLocale()
223 final Resources r = getContext().getResources(); in testFeatureBase()
[all …]
/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyPairGeneratorSpecTest.java43 KeyPairGeneratorSpec spec = new KeyPairGeneratorSpec.Builder(getContext()) in testBuilder_Unencrypted_Success()
51 assertEquals("Context should be the one specified", getContext(), spec.getContext()); in testBuilder_Unencrypted_Success()
65 KeyPairGeneratorSpec spec = new KeyPairGeneratorSpec.Builder(getContext()) in testBuilder_Encrypted_Success()
74 assertEquals("Context should be the one specified", getContext(), spec.getContext()); in testBuilder_Encrypted_Success()
97 new KeyPairGeneratorSpec.Builder(getContext()) in testBuilder_MissingAlias_Failure()
110 new KeyPairGeneratorSpec.Builder(getContext()) in testBuilder_MissingSubjectDN_Failure()
123 new KeyPairGeneratorSpec.Builder(getContext()) in testBuilder_MissingSerialNumber_Failure()
136 new KeyPairGeneratorSpec.Builder(getContext()) in testBuilder_MissingStartDate_Failure()
149 new KeyPairGeneratorSpec.Builder(getContext()) in testBuilder_MissingEndDate_Failure()
162 new KeyPairGeneratorSpec.Builder(getContext()) in testBuilder_EndBeforeStart_Failure()
/cts/tests/tests/rscpp/src/android/cts/rscpp/
DRSAllocationTest.java32 assertTrue(typedTest(this.getContext().getCacheDir().toString())); in testRSAllocationTypes()
37 assertTrue(test1DCopy(this.getContext().getCacheDir().toString())); in testRSAllocationCopy1D()
42 assertTrue(test2DCopy(this.getContext().getCacheDir().toString())); in testRSAllocationCopy2D()
47 assertTrue(test3DCopy(this.getContext().getCacheDir().toString())); in testRSAllocationCopy3D()
52 assertTrue(test1DCopyPadded(this.getContext().getCacheDir().toString())); in testRSAllocationCopy1DPadded()
57 assertTrue(test2DCopyPadded(this.getContext().getCacheDir().toString())); in testRSAllocationCopy2DPadded()
62 assertTrue(test3DCopyPadded(this.getContext().getCacheDir().toString())); in testRSAllocationCopy3DPadded()
67 assertTrue(testSetElementAt(this.getContext().getCacheDir().toString())); in testRSAllocationSetElementAt()
/cts/tests/tests/provider/src/android/provider/cts/contacts/
DContacts_PhonesTest.java26 String display = Phones.getDisplayLabel(getContext(), in testGetDisplayLabel()
42 String display = Phones.getDisplayLabel(getContext(), in testGetDisplayLabelCharSequenceArray()
46 display = Phones.getDisplayLabel(getContext(), in testGetDisplayLabelCharSequenceArray()
50 display = Phones.getDisplayLabel(getContext(), in testGetDisplayLabelCharSequenceArray()
54 display = Phones.getDisplayLabel(getContext(), in testGetDisplayLabelCharSequenceArray()
58 display = Phones.getDisplayLabel(getContext(), in testGetDisplayLabelCharSequenceArray()
62 display = Phones.getDisplayLabel(getContext(), in testGetDisplayLabelCharSequenceArray()
66 display = Phones.getDisplayLabel(getContext(), in testGetDisplayLabelCharSequenceArray()
70 display = Phones.getDisplayLabel(getContext(), in testGetDisplayLabelCharSequenceArray()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DSessionLifecycleTest.java24 import static android.autofillservice.cts.Helper.getContext;
121 return getDestroyedMarker(getContext()).exists(); in finishLoginActivityOnAnotherProcess()
128 return getStoppedMarker(getContext()).exists(); in killOfProcessLoginActivityProcess()
140 final Intent outOfProcessAcvitityStartIntent = new Intent(getContext(), in startAndWaitExternalActivity()
142 getStartedMarker(getContext()).delete(); in startAndWaitExternalActivity()
143 getContext().startActivity(outOfProcessAcvitityStartIntent); in startAndWaitExternalActivity()
145 return getStartedMarker(getContext()).exists(); in startAndWaitExternalActivity()
147 getStartedMarker(getContext()).delete(); in startAndWaitExternalActivity()
157 final ActivityManager activityManager = (ActivityManager) getContext() in testDatasetAuthResponseWhileAutofilledAppIsLifecycled()
174 IntentSender authentication = PendingIntent.getActivity(getContext(), 0, in testDatasetAuthResponseWhileAutofilledAppIsLifecycled()
[all …]
/cts/hostsidetests/appsecurity/test-apps/InstantUpgradeApp/src/com/android/cts/instantupgradeapp/
DClientTest.java43 assertTrue(InstrumentationRegistry.getContext().getPackageManager().isInstantApp()); in testInstantApplicationWritePreferences()
45 InstrumentationRegistry.getContext().getSharedPreferences("preferences", 0); in testInstantApplicationWritePreferences()
51 assertFalse(InstrumentationRegistry.getContext().getPackageManager().isInstantApp()); in testFullApplicationReadPreferences()
53 InstrumentationRegistry.getContext().getSharedPreferences("preferences", 0); in testFullApplicationReadPreferences()
59 assertTrue(InstrumentationRegistry.getContext().getPackageManager().isInstantApp()); in testInstantApplicationWriteFile()
61 .getContext().openFileOutput("test.txt", Context.MODE_PRIVATE)) { in testInstantApplicationWriteFile()
68 assertFalse(InstrumentationRegistry.getContext().getPackageManager().isInstantApp()); in testFullApplicationReadFile()
70 .getContext().openFileInput("test.txt")) { in testFullApplicationReadFile()
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/
DClientTest.java80 InstrumentationRegistry.getContext() in setUp()
86 InstrumentationRegistry.getContext().unregisterReceiver(mReceiver); in tearDown()
94 final List<ResolveInfo> resolveInfo = InstrumentationRegistry.getContext() in testQuery()
119 final List<ResolveInfo> resolveInfo = InstrumentationRegistry.getContext() in testQuery()
143 final List<ResolveInfo> resolveInfo = InstrumentationRegistry.getContext() in testQuery()
154 final List<ResolveInfo> resolveInfo = InstrumentationRegistry.getContext() in testQuery()
162 final List<ResolveInfo> resolveInfo = InstrumentationRegistry.getContext() in testQuery()
187 final List<ResolveInfo> resolveInfo = InstrumentationRegistry.getContext() in testQuery()
211 final List<ResolveInfo> resolveInfo = InstrumentationRegistry.getContext() in testQuery()
222 final List<ResolveInfo> resolveInfo = InstrumentationRegistry.getContext() in testQuery()
[all …]
/cts/tests/tests/externalservice/src/android/externalservice/cts/
DExternalServiceTest.java51 getContext().unbindService(mConnection); in tearDown()
59 getContext().bindService(intent, mConnection, Context.BIND_AUTO_CREATE); in testFailBindIsolated()
70 getContext().bindService(intent, mConnection, in testFailBindExternalIsolated()
83 getContext().bindService(intent, mConnection, in testFailBindExternalExported()
96 getContext().bindService(intent, mConnection, in testFailBindExternalNonExported()
109 getContext().bindService(intent, mConnection, in testFailBindExternalNonIsolated()
121 getContext().bindService(intent, mConnection, Context.BIND_AUTO_CREATE); in testFailBindWithoutBindExternal()
134 assertTrue(getContext().bindService(intent, mConnection, in testBindExternalService()
138 assertEquals(getContext().getPackageName(), mConnection.name.getPackageName()); in testBindExternalService()
149 assertEquals(getContext().getPackageName(), id.packageName); in testBindExternalService()
[all …]
/cts/tests/tests/permission/telephony/src/android/permission/cts/telephony/
DTelephonyManagerPermissionTest.java52 mHasTelephony = getContext().getPackageManager().hasSystemFeature( in setUp()
55 (TelephonyManager) getContext().getSystemService(Context.TELEPHONY_SERVICE); in setUp()
57 mAudioManager = (AudioManager) getContext().getSystemService(Context.AUDIO_SERVICE); in setUp()
213 getContext().sendBroadcast(intent); in testProtectedBroadcasts()
218 getContext().sendBroadcast(intent); in testProtectedBroadcasts()
223 getContext().sendBroadcast(intent); in testProtectedBroadcasts()
229 getContext().sendBroadcast(intent); in testProtectedBroadcasts()
235 getContext().sendBroadcast(intent); in testProtectedBroadcasts()
241 getContext().sendBroadcast(intent); in testProtectedBroadcasts()
246 getContext().sendBroadcast(intent); in testProtectedBroadcasts()
[all …]
/cts/hostsidetests/shortcuts/deviceside/upgrade/src/android/content/pm/cts/shortcut/upgrade/
DShortcutManagerPreUpgradeTest.java36 final Icon icon1 = Icon.createWithResource(getContext(), R.drawable.black_32x32); in testPreUpgrade()
37 final Icon icon2 = Icon.createWithResource(getContext(), R.drawable.black_64x64); in testPreUpgrade()
42 final ShortcutInfo s1 = new ShortcutInfo.Builder(getContext(), "s1") in testPreUpgrade()
51 final ShortcutInfo s2 = new ShortcutInfo.Builder(getContext(), "s2") in testPreUpgrade()
61 Launcher.setAsDefaultLauncher(getInstrumentation(), getContext()); in testPreUpgrade()
64 assertIconDimensions(getContext().getPackageName(), "s1", icon1); in testPreUpgrade()
65 assertIconDimensions(getContext().getPackageName(), "s2", icon2); in testPreUpgrade()
70 assertIconDimensions(getContext().getPackageName(), "s1", icon2); in testPreUpgrade()
/cts/tests/tests/content/src/android/content/cts/
DContentProviderTest.java77 mockContentProvider.attachInfo(getContext(), info1); in testAttachInfo()
78 assertSame(getContext(), mockContentProvider.getContext()); in testAttachInfo()
86 assertSame(getContext(), mockContentProvider.getContext()); in testAttachInfo()
92 assertNull(mockContentProvider.getContext()); in testAttachInfo()
97 assertNull(mockContentProvider.getContext()); in testAttachInfo()
101 mockContentProvider.attachInfo(getContext(), info1); in testAttachInfo()
102 assertSame(getContext(), mockContentProvider.getContext()); in testAttachInfo()
129 assertNull(mockContentProvider.getContext()); in testGetContext()
131 mockContentProvider.attachInfo(getContext(), null); in testGetContext()
132 assertSame(getContext(), mockContentProvider.getContext()); in testGetContext()
[all …]
/cts/tests/tests/permission/src/android/permission/cts/
DContactsProviderTest.java38 getContext().getContentResolver().query(ContactsContract.Contacts.CONTENT_URI, in testQueryContacts()
56 getContext().getContentResolver().insert(ContactsContract.Contacts.CONTENT_URI, in testInsertContacts()
74 getContext().getContentResolver().query(ContactsContract.Profile.CONTENT_URI, in testQueryProfile()
94 getContext().getContentResolver().insert(ContactsContract.Profile.CONTENT_URI, in testInsertProfile()
112 getContext().getContentResolver().update(ContactsContract.Profile.CONTENT_URI, in testUpdateProfile()
130 getContext().getContentResolver().query( in testQueryPhoneEnterprise()
149 getContext().getContentResolver().query( in testRawContactsEntityCorp()
/cts/tests/tests/telecom/src/android/telecom/cts/
DConnectionTest.java40 if (!shouldTestTelecom(getContext())) { in testStateCallbacks()
127 if (!shouldTestTelecom(getContext())) { in testSetAndGetCallerDisplayName()
142 if (!shouldTestTelecom(getContext())) { in testSetAndGetAddress()
157 if (!shouldTestTelecom(getContext())) { in testSetAndGetConnectionCapabilities()
174 if (!shouldTestTelecom(getContext())) { in testSetAndGetConnectionProperties()
190 if (!shouldTestTelecom(getContext())) { in testSetAndGetDisconnectCause()
209 if (!shouldTestTelecom(getContext())) { in testSetAndGetAudioModeIsVoip()
223 if (!shouldTestTelecom(getContext())) { in testSetAndGetExtras()
250 if (!shouldTestTelecom(getContext())) { in testPutExtras()
277 if (!shouldTestTelecom(getContext())) { in testRemoveExtras()
[all …]
/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/
DWriteExternalStorageTest.java147 final List<File> paths = getPrimaryPackageSpecificPaths(getContext()); in testPrimaryWalkingUpTreeReadWrite()
148 final String packageName = getContext().getPackageName(); in testPrimaryWalkingUpTreeReadWrite()
170 final File ourCache = getContext().getExternalCacheDir(); in testPrimaryOtherPackageWriteAccess()
172 .replace(getContext().getPackageName(), PACKAGE_NONE)); in testPrimaryOtherPackageWriteAccess()
185 File path = getContext().getExternalCacheDir(); in testMountStatusWalkingUpTree()
217 Environment.getExternalStorageState(getContext().getCacheDir())); in testMountStatus()
225 final List<File> paths = getSecondaryPackageSpecificPaths(getContext()); in testSecondaryWalkingUpTreeReadOnly()
226 final String packageName = getContext().getPackageName(); in testSecondaryWalkingUpTreeReadOnly()
258 for (File file : getAllPackageSpecificPathsExceptMedia(getContext())) { in testVerifyNoMediaCreated()
261 final List<File> paths = getAllPackageSpecificPathsExceptMedia(getContext()); in testVerifyNoMediaCreated()
[all …]

12345678910>>...34