Home
last modified time | relevance | path

Searched refs:sm (Results 1 – 25 of 45) sorted by relevance

12

/cts/hostsidetests/appsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/
DStorageTest.java204 final StorageManager sm = getContext().getSystemService(StorageManager.class); in testVerifySpaceApi() local
207 final long cacheSize = sm.getCacheSizeBytes( in testVerifySpaceApi()
208 sm.getUuidForPath(getContext().getCacheDir())); in testVerifySpaceApi()
209 final long extCacheSize = sm.getCacheSizeBytes( in testVerifySpaceApi()
210 sm.getUuidForPath(getContext().getExternalCacheDir())); in testVerifySpaceApi()
254 final StorageManager sm = getContext().getSystemService(StorageManager.class); in testVerifyQuotaApi() local
256 final long cacheSize = sm.getCacheQuotaBytes( in testVerifyQuotaApi()
257 sm.getUuidForPath(getContext().getCacheDir())); in testVerifyQuotaApi()
262 final StorageManager sm = getContext().getSystemService(StorageManager.class); in testVerifyAllocateApi() local
267 final UUID filesUuid = sm.getUuidForPath(filesDir); in testVerifyAllocateApi()
[all …]
DUtilsReceiver.java54 final StorageManager sm = context.getSystemService(StorageManager.class); in doAllocation() local
62 final UUID intUuid = sm.getUuidForPath(intDir); in doAllocation()
63 final UUID extUuid = sm.getUuidForPath(extDir); in doAllocation()
69 final long quota = sm.getCacheQuotaBytes(intUuid); in doAllocation()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DSubscriptionManagerTest.java279 (sm) -> sm.getActiveSubscriptionInfo(mSubId)); in testGetActiveSubscriptionInfoForIcc()
281 (sm) -> sm.getActiveSubscriptionInfoForIcc(info.getIccId()))); in testGetActiveSubscriptionInfoForIcc()
289 (sm) -> sm.getActiveSubscriptionInfo(mSubId)); in testGetAllSubscriptionInfoList()
315 (sm) -> sm.getResourcesForSubId(InstrumentationRegistry.getContext(), mSubId)); in testGetResourcesForSubId()
330 (sm) -> sm.getActiveSubscriptionInfoList()); in testActiveSubscriptions()
332 (sm) -> sm.getActiveSubscriptionIdList()); in testActiveSubscriptions()
753 (sm) -> sm.createSubscriptionGroup(subGroup)); in testSubscriptionGroupingWithPermission()
768 (sm) -> sm.getSubscriptionsInGroup(uuid), READ_PRIVILEGED_PHONE_STATE); in testSubscriptionGroupingWithPermission()
777 (sm) -> sm.getSubscriptionsInGroup(uuid)); in testSubscriptionGroupingWithPermission()
790 (sm) -> sm.getAvailableSubscriptionInfoList()); in testSubscriptionGroupingWithPermission()
[all …]
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2021-0330/
Dpoc.cpp32 sp<IServiceManager> sm = defaultServiceManager(); in trigger_onUserStarted() local
33 sp<IBinder> service = sm->checkService(String16("storaged")); in trigger_onUserStarted()
61 sp<IServiceManager> sm = defaultServiceManager(); in main() local
62 sp<IBinder> service = sm->checkService(String16("storaged")); in main()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-0226/
Dpoc.cpp26 sp < IServiceManager > sm = defaultServiceManager(); in main() local
27 if (!sm) { in main()
31 sp < IBinder > service = sm->checkService(name); in main()
/cts/tests/tests/security/src/android/security/cts/
DVoldExploitTest.java29 final StorageManager sm = (StorageManager) getContext().getSystemService( in testTryCommandInjection() local
31 String path = sm.getMountedObbPath("/dev/null\0asec list"); in testTryCommandInjection()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2021-0439/
Dpoc.cpp23 sp<IServiceManager> sm = defaultServiceManager(); in main() local
24 sp<IBinder> binder = sm->getService(String16("power")); in main()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2021-0318/
Dpoc.cpp29 sp<IServiceManager> sm = defaultServiceManager(); in poc() local
31 sp<IBinder> service = sm->getService(name); in poc()
91 sp<IServiceManager> sm = defaultServiceManager(); in get_sensor_list() local
93 sp<IBinder> service = sm->getService(name); in get_sensor_list()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-2419/
Dpoc.cpp43 sp<IServiceManager> sm = defaultServiceManager(); in doInforLeakTest() local
44 sp<IBinder> mediaPlayerSevice = sm->checkService(String16("media.player")); in doInforLeakTest()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DDeviceIdentifiersTest.java48 (sm) -> sm.getActiveSubscriptionInfo(subId)); in testDeviceOwnerCanGetDeviceIdentifiersWithPermission()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-0420/
Dpoc.cpp25 sp<IServiceManager> sm = defaultServiceManager(); in main() local
27 sp<IBinder> service = sm->checkService(name); in main()
/cts/apps/NotificationBot/src/com/android/cts/robot/
DNotificationBot.java108 final ShortcutManager sm = context.getSystemService(ShortcutManager.class); in testShortcutResetSetupNotification() local
115 while (!sm.isRateLimitingActive()) { in testShortcutResetSetupNotification()
116 sm.setDynamicShortcuts(EMPTY_LIST); in testShortcutResetSetupNotification()
168 final ShortcutManager sm = context.getSystemService(ShortcutManager.class); in testShortcutResetInlineReplyReceived() local
171 final boolean success = !sm.isRateLimitingActive(); in testShortcutResetInlineReplyReceived()
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/os/
DSharedMemoryHelperTest.java44 SharedMemory sm = SharedMemory.create(/* name */ null, memSize); in testCreateParcelFileDescriptor() local
45 ByteBuffer bb = sm.map(OsConstants.PROT_READ | OsConstants.PROT_WRITE, 0, bufSize); in testCreateParcelFileDescriptor()
49 ParcelFileDescriptor pfd = SharedMemoryHelper.createParcelFileDescriptor(sm); in testCreateParcelFileDescriptor()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-13232/
Dpoc.cpp75 sp<IServiceManager> sm = defaultServiceManager(); in getOutputForAttr() local
76 sp<IBinder> binder = sm->getService(String16("media.audio_policy")); in getOutputForAttr()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-2460/
Dpoc.cpp34 sp<IServiceManager> sm = defaultServiceManager(); in main() local
35 sp<IBinder> MeidaPlayerService = sm->checkService(String16("media.player")); in main()
/cts/tests/tests/view/src/android/view/cts/
DOrientationEventListenerTest.java65 SensorManager sm = (SensorManager)mContext.getSystemService(Context.SENSOR_SERVICE); in testCanDetectOrientation() local
67 boolean hasSensor = (sm.getDefaultSensor(Sensor.TYPE_ACCELEROMETER) != null); in testCanDetectOrientation()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-2412/
Dpoc.cpp90 sp<IServiceManager> sm = defaultServiceManager(); in main() local
91 sp<IBinder> service = sm->checkService(String16("activity")); in main()
/cts/tests/location/location_privileged/src/android/location/cts/privileged/
DSmsNiSuplTest.java83 (sm) -> in sendSmsWithPdu()
84 sm.injectSmsPdu( in sendSmsWithPdu()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-0243/
Dpoc.cpp48 sp<IServiceManager> sm = defaultServiceManager(); in main() local
50 sp<IBinder> service = sm->checkService(name); in main()
/cts/hostsidetests/appsecurity/test-apps/StorageStatsApp/src/com/android/cts/storagestatsapp/
DStorageStatsTest.java367 final StorageManager sm = context.getSystemService(StorageManager.class); in testCacheClearing() local
372 final UUID filesUuid = sm.getUuidForPath(filesDir); in testCacheClearing()
376 final long beforeAllocatable = sm.getAllocatableBytes(filesUuid); in testCacheClearing()
398 sm.getAllocatableBytes(filesUuid), 10 * MB_IN_BYTES); in testCacheClearing()
403 sm.getAllocatableBytes(filesUuid), 10 * MB_IN_BYTES); in testCacheClearing()
417 sm.allocateBytes(filesUuid, clear1); in testCacheClearing()
432 sm.allocateBytes(filesUuid, clear2); in testCacheClearing()
444 final StorageManager sm = context.getSystemService(StorageManager.class); in testCacheBehavior() local
447 final UUID filesUuid = sm.getUuidForPath(context.getFilesDir()); in testCacheBehavior()
465 sm.setCacheBehaviorGroup(group, true); in testCacheBehavior()
[all …]
/cts/tests/mediaprovider/src/android/provider/cts/media/
DMediaStoreTest.java172 final StorageManager sm = mContext.getSystemService(StorageManager.class); in testGetStorageVolume() local
173 final StorageVolume sv = sm.getStorageVolume(uri); in testGetStorageVolume()
179 assertEquals(sm.getPrimaryStorageVolume(), sv); in testGetStorageVolume()
185 final StorageManager sm = mContext.getSystemService(StorageManager.class); in testGetStorageVolume_Unrelated() local
187 sm.getStorageVolume(Uri.parse("content://com.example/path/to/item/")); in testGetStorageVolume_Unrelated()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2018-9424/
Dpoc.cpp50 sp<IServiceManager> sm = defaultServiceManager(); in make_crypto() local
51 sp<IBinder> drm_binder = sm->getService(String16("media.drm")); in make_crypto()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DDeviceIdentifiersTest.java85 (sm) -> sm.getActiveSubscriptionInfo(subId)); in testProfileOwnerCanGetDeviceIdentifiersWithPermission()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2019-2025/
Dpoc.cpp62 sp<IServiceManager> sm = defaultServiceManager(); in bcfree_helper() local
63 sp<IBinder> binder = sm->getService(String16("sensorservice")); in bcfree_helper()
83 sp<IServiceManager> sm = defaultServiceManager(); in bcfree() local
84 sp<IBinder> binder = sm->getService(String16("sensorservice")); in bcfree()
/cts/hostsidetests/appsecurity/test-apps/DeviceIdentifiers/src/android/appsecurity/cts/deviceids/
DDeviceIdentifierAppOpTest.java86 (sm) -> sm.getActiveSubscriptionInfo(subId)); in testAccessToDeviceIdentifiersWithAppOp()

12