Home
last modified time | relevance | path

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

/cts/hostsidetests/appsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/
DStorageTest.java92 final StorageManager sm = getContext().getSystemService(StorageManager.class); in testVerifySpaceApi() local
95 final long cacheSize = sm.getCacheSizeBytes( in testVerifySpaceApi()
96 sm.getUuidForPath(getContext().getCacheDir())); in testVerifySpaceApi()
97 final long extCacheSize = sm.getCacheSizeBytes( in testVerifySpaceApi()
98 sm.getUuidForPath(getContext().getExternalCacheDir())); in testVerifySpaceApi()
142 final StorageManager sm = getContext().getSystemService(StorageManager.class); in testVerifyQuotaApi() local
144 final long cacheSize = sm.getCacheQuotaBytes( in testVerifyQuotaApi()
145 sm.getUuidForPath(getContext().getCacheDir())); in testVerifyQuotaApi()
150 final StorageManager sm = getContext().getSystemService(StorageManager.class); in testVerifyAllocateApi() local
155 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/security/src/android/security/cts/
DVoldExploitTest.java31 final StorageManager sm = (StorageManager) getContext().getSystemService( in testTryCommandInjection() local
33 String path = sm.getMountedObbPath("/dev/null\0asec list"); in testTryCommandInjection()
/cts/hostsidetests/security/securityPatch/CVE-2016-2419/
Dpoc.cpp45 sp<IServiceManager> sm = defaultServiceManager(); in doInforLeakTest() local
46 sp<IBinder> mediaPlayerSevice = sm->checkService(String16("media.player")); in doInforLeakTest()
/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/hostsidetests/security/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/security/securityPatch/CVE-2016-2460/
Dpoc.cpp33 sp<IServiceManager> sm = defaultServiceManager(); in main() local
34 sp<IBinder> MeidaPlayerService = sm->checkService(String16("media.player")); in main()
/cts/hostsidetests/security/securityPatch/CVE-2017-13253/
Dpoc.cpp34 sp<IServiceManager> sm = defaultServiceManager(); in main() local
35 sp<IBinder> binder = sm->getService(String16("media.drm")); in main()
/cts/hostsidetests/appsecurity/test-apps/StorageStatsApp/src/com/android/cts/storagestatsapp/
DStorageStatsTest.java250 final StorageManager sm = context.getSystemService(StorageManager.class); in testCacheClearing() local
255 final UUID filesUuid = sm.getUuidForPath(filesDir); in testCacheClearing()
259 final long beforeAllocatable = sm.getAllocatableBytes(filesUuid); in testCacheClearing()
279 sm.getAllocatableBytes(filesUuid), 10 * MB_IN_BYTES); in testCacheClearing()
284 sm.getAllocatableBytes(filesUuid), 10 * MB_IN_BYTES); in testCacheClearing()
298 sm.allocateBytes(filesUuid, clear1); in testCacheClearing()
313 sm.allocateBytes(filesUuid, clear2); in testCacheClearing()
325 final StorageManager sm = context.getSystemService(StorageManager.class); in testCacheBehavior() local
328 final UUID filesUuid = sm.getUuidForPath(context.getFilesDir()); in testCacheBehavior()
346 sm.setCacheBehaviorGroup(group, true); in testCacheBehavior()
[all …]
/cts/tests/tests/view/src/android/view/cts/
DOrientationEventListenerTest.java62 SensorManager sm = (SensorManager)mContext.getSystemService(Context.SENSOR_SERVICE); in testCanDetectOrientation() local
64 boolean hasSensor = (sm.getDefaultSensor(Sensor.TYPE_ACCELEROMETER) != null); in testCanDetectOrientation()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/
DSearchUtil.java105 SearchManager sm = (SearchManager) context.getSystemService(Context.SEARCH_SERVICE); in getSearchableInfos() local
106 List<SearchableInfo> globalSearchableInfos = sm.getSearchablesInGlobalSearch(); in getSearchableInfos()
/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/
DScopedDirectoryAccessClientTest.java448 final StorageManager sm = (StorageManager) in getVolumes() local
450 final List<StorageVolume> volumes = sm.getStorageVolumes(); in getVolumes()
456 final StorageManager sm = (StorageManager) in getPrimaryVolume() local
458 return sm.getPrimaryStorageVolume(); in getPrimaryVolume()
/cts/tests/camera/src/android/hardware/camera2/cts/
DRobustnessTest.java1365 public MaxStreamSizes(StaticMetadata sm, String cameraId, Context context) { in MaxStreamSizes() argument
1366 Size[] privSizes = sm.getAvailableSizesForFormatChecked(ImageFormat.PRIVATE, in MaxStreamSizes()
1368 Size[] yuvSizes = sm.getAvailableSizesForFormatChecked(ImageFormat.YUV_420_888, in MaxStreamSizes()
1370 Size[] jpegSizes = sm.getJpegOutputSizesChecked(); in MaxStreamSizes()
1371 Size[] rawSizes = sm.getRawOutputSizesChecked(); in MaxStreamSizes()
1377 StreamConfigurationMap configs = sm.getCharacteristics().get( in MaxStreamSizes()
1379 if (sm.isColorOutputSupported()) { in MaxStreamSizes()
1384 if (sm.isExternalCamera()) { in MaxStreamSizes()
1405 if (sm.isColorOutputSupported() && !sm.isHardwareLevelLegacy()) { in MaxStreamSizes()
1421 sm.getAvailableMinFrameDurationsForFormatChecked(ImageFormat.PRIVATE). in MaxStreamSizes()
[all …]
/cts/tests/tests/media/assets/
DfileSequence1.ts1393 �y��D���7Ԯa�h�P'X}��t��1 b�\L�*6�`��t9��~Vf���8����a �Zk�K�W}sm��)%�B