/cts/hostsidetests/appsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/ |
D | StorageTest.java | 192 final StorageManager sm = getContext().getSystemService(StorageManager.class); in testVerifySpaceApi() local 195 final long cacheSize = sm.getCacheSizeBytes( in testVerifySpaceApi() 196 sm.getUuidForPath(getContext().getCacheDir())); in testVerifySpaceApi() 197 final long extCacheSize = sm.getCacheSizeBytes( in testVerifySpaceApi() 198 sm.getUuidForPath(getContext().getExternalCacheDir())); in testVerifySpaceApi() 242 final StorageManager sm = getContext().getSystemService(StorageManager.class); in testVerifyQuotaApi() local 244 final long cacheSize = sm.getCacheQuotaBytes( in testVerifyQuotaApi() 245 sm.getUuidForPath(getContext().getCacheDir())); in testVerifyQuotaApi() 250 final StorageManager sm = getContext().getSystemService(StorageManager.class); in testVerifyAllocateApi() local 255 final UUID filesUuid = sm.getUuidForPath(filesDir); in testVerifyAllocateApi() [all …]
|
D | UtilsReceiver.java | 54 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/ |
D | SubscriptionManagerTest.java | 192 (sm) -> sm.getActiveSubscriptionInfo(mSubId)); in testGetActiveSubscriptionInfoForIcc() 194 (sm) -> sm.getActiveSubscriptionInfoForIcc(info.getIccId()))); in testGetActiveSubscriptionInfoForIcc() 216 (sm) -> sm.getResourcesForSubId(InstrumentationRegistry.getContext(), mSubId)); in testGetResourcesForSubId() 597 (sm) -> sm.createSubscriptionGroup(subGroup)); in testSubscriptionGroupingWithPermission() 606 (sm) -> sm.getSubscriptionsInGroup(uuid)); in testSubscriptionGroupingWithPermission() 619 (sm) -> sm.getAvailableSubscriptionInfoList()); in testSubscriptionGroupingWithPermission() 627 (sm) -> sm.addSubscriptionsIntoGroup(availableSubGroup, uuid)); in testSubscriptionGroupingWithPermission() 634 (sm) -> sm.removeSubscriptionsFromGroup(availableSubGroup, uuid)); in testSubscriptionGroupingWithPermission() 639 (sm) -> sm.removeSubscriptionsFromGroup(subGroup, uuid)); in testSubscriptionGroupingWithPermission() 655 (sm) -> sm.addSubscriptionsIntoGroup(subGroup, uuid)); in testAddSubscriptionIntoNewGroupWithPermission() [all …]
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2021-0330/ |
D | poc.cpp | 32 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/ |
D | poc.cpp | 26 sp < IServiceManager > sm = defaultServiceManager(); in main() local 27 if (!sm) { in main() 31 sp < IBinder > service = sm->checkService(name); in main()
|
/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/ |
D | ScopedDirectoryAccessClientTest.java | 110 final StorageManager sm = (StorageManager) in getVolumes() local 112 final List<StorageVolume> volumes = sm.getStorageVolumes(); in getVolumes() 118 final StorageManager sm = (StorageManager) in getPrimaryVolume() local 120 return sm.getPrimaryStorageVolume(); in getPrimaryVolume()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2021-0318/ |
D | poc.cpp | 29 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/tests/tests/security/src/android/security/cts/ |
D | VoldExploitTest.java | 29 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/ |
D | poc.cpp | 23 sp<IServiceManager> sm = defaultServiceManager(); in main() local 24 sp<IBinder> binder = sm->getService(String16("power")); in main()
|
/cts/apps/NotificationBot/src/com/android/cts/robot/ |
D | NotificationBot.java | 108 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/hostsidetests/securitybulletin/securityPatch/CVE-2016-2419/ |
D | poc.cpp | 43 sp<IServiceManager> sm = defaultServiceManager(); in doInforLeakTest() local 44 sp<IBinder> mediaPlayerSevice = sm->checkService(String16("media.player")); in doInforLeakTest()
|
/cts/hostsidetests/appsecurity/test-apps/StorageStatsApp/src/com/android/cts/storagestatsapp/ |
D | StorageStatsTest.java | 282 final StorageManager sm = context.getSystemService(StorageManager.class); in testCacheClearing() local 287 final UUID filesUuid = sm.getUuidForPath(filesDir); in testCacheClearing() 291 final long beforeAllocatable = sm.getAllocatableBytes(filesUuid); in testCacheClearing() 313 sm.getAllocatableBytes(filesUuid), 10 * MB_IN_BYTES); in testCacheClearing() 318 sm.getAllocatableBytes(filesUuid), 10 * MB_IN_BYTES); in testCacheClearing() 332 sm.allocateBytes(filesUuid, clear1); in testCacheClearing() 347 sm.allocateBytes(filesUuid, clear2); in testCacheClearing() 359 final StorageManager sm = context.getSystemService(StorageManager.class); in testCacheBehavior() local 362 final UUID filesUuid = sm.getUuidForPath(context.getFilesDir()); in testCacheBehavior() 380 sm.setCacheBehaviorGroup(group, true); in testCacheBehavior() [all …]
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-13232/ |
D | poc.cpp | 75 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/ |
D | poc.cpp | 34 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/ |
D | OrientationEventListenerTest.java | 63 SensorManager sm = (SensorManager)mContext.getSystemService(Context.SENSOR_SERVICE); in testCanDetectOrientation() local 65 boolean hasSensor = (sm.getDefaultSensor(Sensor.TYPE_ACCELEROMETER) != null); in testCanDetectOrientation()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-2412/ |
D | poc.cpp | 90 sp<IServiceManager> sm = defaultServiceManager(); in main() local 91 sp<IBinder> service = sm->checkService(String16("activity")); in main()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-0243/ |
D | poc.cpp | 48 sp<IServiceManager> sm = defaultServiceManager(); in main() local 50 sp<IBinder> service = sm->checkService(name); in main()
|
/cts/tests/tests/provider/src/android/provider/cts/media/ |
D | MediaStoreTest.java | 174 final StorageManager sm = mContext.getSystemService(StorageManager.class); in testGetStorageVolume() local 175 final StorageVolume sv = sm.getStorageVolume(uri); in testGetStorageVolume() 181 assertEquals(sm.getPrimaryStorageVolume(), sv); in testGetStorageVolume() 187 final StorageManager sm = mContext.getSystemService(StorageManager.class); in testGetStorageVolume_Unrelated() local 189 sm.getStorageVolume(Uri.parse("content://com.example/path/to/item/")); in testGetStorageVolume_Unrelated()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | DeviceIdentifiersTest.java | 79 (sm) -> sm.getActiveSubscriptionInfo(subId)); in testProfileOwnerCanGetDeviceIdentifiersWithPermission()
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | DeviceIdentifiersTest.java | 77 (sm) -> sm.getActiveSubscriptionInfo(subId)); in testDeviceOwnerCanGetDeviceIdentifiersWithPermission()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2018-9424/ |
D | poc.cpp | 50 sp<IServiceManager> sm = defaultServiceManager(); in make_crypto() local 51 sp<IBinder> drm_binder = sm->getService(String16("media.drm")); in make_crypto()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2019-2025/ |
D | poc.cpp | 62 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/ |
D | DeviceIdentifierAppOpTest.java | 86 (sm) -> sm.getActiveSubscriptionInfo(subId)); in testAccessToDeviceIdentifiersWithAppOp()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/ |
D | SearchUtil.java | 105 SearchManager sm = (SearchManager) context.getSystemService(Context.SEARCH_SERVICE); in getSearchableInfos() local 106 List<SearchableInfo> globalSearchableInfos = sm.getSearchablesInGlobalSearch(); in getSearchableInfos()
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | RobustnessTest.java | 2310 public MaxStreamSizes(StaticMetadata sm, String cameraId, Context context) { in MaxStreamSizes() argument 2311 Size[] privSizes = sm.getAvailableSizesForFormatChecked(ImageFormat.PRIVATE, in MaxStreamSizes() 2313 Size[] yuvSizes = sm.getAvailableSizesForFormatChecked(ImageFormat.YUV_420_888, in MaxStreamSizes() 2316 Size[] y8Sizes = sm.getAvailableSizesForFormatChecked(ImageFormat.Y8, in MaxStreamSizes() 2318 Size[] jpegSizes = sm.getAvailableSizesForFormatChecked(ImageFormat.JPEG, in MaxStreamSizes() 2320 Size[] rawSizes = sm.getAvailableSizesForFormatChecked(ImageFormat.RAW_SENSOR, in MaxStreamSizes() 2322 Size[] heicSizes = sm.getAvailableSizesForFormatChecked(ImageFormat.HEIC, in MaxStreamSizes() 2329 StreamConfigurationMap configs = sm.getCharacteristics().get( in MaxStreamSizes() 2331 if (sm.isColorOutputSupported()) { in MaxStreamSizes() 2336 if (sm.isExternalCamera()) { in MaxStreamSizes() [all …]
|