Home
last modified time | relevance | path

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

1234

/cts/hostsidetests/appsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/
DStorageTest.java133 final StorageManager sm = getContext().getSystemService(StorageManager.class); in testVerifySpaceApi() local
136 final long cacheSize = sm.getCacheSizeBytes( in testVerifySpaceApi()
137 sm.getUuidForPath(getContext().getCacheDir())); in testVerifySpaceApi()
138 final long extCacheSize = sm.getCacheSizeBytes( in testVerifySpaceApi()
139 sm.getUuidForPath(getContext().getExternalCacheDir())); in testVerifySpaceApi()
183 final StorageManager sm = getContext().getSystemService(StorageManager.class); in testVerifyQuotaApi() local
185 final long cacheSize = sm.getCacheQuotaBytes( in testVerifyQuotaApi()
186 sm.getUuidForPath(getContext().getCacheDir())); in testVerifyQuotaApi()
191 final StorageManager sm = getContext().getSystemService(StorageManager.class); in testVerifyAllocateApi() local
196 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.java170 (sm) -> sm.getActiveSubscriptionInfoForIcc(info.getIccId()))); in testGetActiveSubscriptionInfoForIcc()
192 (sm) -> sm.getResourcesForSubId(InstrumentationRegistry.getContext(), mSubId)); in testGetResourcesForSubId()
561 (sm) -> sm.createSubscriptionGroup(subGroup)); in testSubscriptionGroupingWithPermission()
577 (sm) -> sm.addSubscriptionsIntoGroup(availableSubGroup, uuid)); in testSubscriptionGroupingWithPermission()
584 (sm) -> sm.removeSubscriptionsFromGroup(availableSubGroup, uuid)); in testSubscriptionGroupingWithPermission()
589 (sm) -> sm.removeSubscriptionsFromGroup(subGroup, uuid)); in testSubscriptionGroupingWithPermission()
605 (sm) -> sm.addSubscriptionsIntoGroup(subGroup, uuid)); in testAddSubscriptionIntoNewGroupWithPermission()
615 (sm) -> sm.removeSubscriptionsFromGroup(subGroup, uuid)); in testAddSubscriptionIntoNewGroupWithPermission()
678 (sm) -> sm.getEnabledSubscriptionId(slotId)); in testGetEnabledSubscriptionId()
686 (sm) -> sm.isSubscriptionEnabled(mSubId)); in testSetAndCheckSubscriptionEnabled()
[all …]
DTelephonyManagerTest.java1509 SubscriptionManager sm = getContext().getSystemService(SubscriptionManager.class); in testGetMeidForSlot() local
1510 List<SubscriptionInfo> subInfos = sm.getActiveSubscriptionInfoList(); in testGetMeidForSlot()
/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/
DScopedDirectoryAccessClientTest.java110 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/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/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/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/securitybulletin/securityPatch/CVE-2016-2419/
Dpoc.cpp44 sp<IServiceManager> sm = defaultServiceManager(); in doInforLeakTest() local
45 sp<IBinder> mediaPlayerSevice = sm->checkService(String16("media.player")); in doInforLeakTest()
/cts/tests/tests/provider/src/android/provider/cts/
DMediaStoreTest.java127 final StorageManager sm = mContext.getSystemService(StorageManager.class); in testGetStorageVolume() local
128 final StorageVolume sv = sm.getStorageVolume(uri); in testGetStorageVolume()
134 assertEquals(sm.getPrimaryStorageVolume(), sv); in testGetStorageVolume()
140 final StorageManager sm = mContext.getSystemService(StorageManager.class); in testGetStorageVolume_Unrelated() local
142 sm.getStorageVolume(Uri.parse("content://com.example/path/to/item/")); in testGetStorageVolume_Unrelated()
/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.cpp33 sp<IServiceManager> sm = defaultServiceManager(); in main() local
34 sp<IBinder> MeidaPlayerService = sm->checkService(String16("media.player")); in main()
/cts/hostsidetests/securitybulletin/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/tests/tests/view/src/android/view/cts/
DOrientationEventListenerTest.java63 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-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/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/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/tests/tests/telephony/current/src/android/telephony/ims/cts/
DImsUtils.java57 SubscriptionManager sm = (SubscriptionManager) context.getSystemService( in getPreferredActiveSubId() local
59 List<SubscriptionInfo> infos = ShellIdentityUtils.invokeMethodWithShellPermissions(sm, in getPreferredActiveSubId()
/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/rollback/app/src/com/android/cts/rollback/host/app/
DHostTestHelper.java596 StorageManager sm = (StorageManager) context.getSystemService(Context.STORAGE_SERVICE); in isCheckpointSupported() local
597 assertThat(sm.isCheckpointSupported()).isTrue(); in isCheckpointSupported()
/cts/hostsidetests/stagedinstall/app/src/com/android/tests/stagedinstall/
DStagedInstallTest.java1237 StorageManager sm = (StorageManager) context.getSystemService(Context.STORAGE_SERVICE); in isCheckpointSupported() local
1238 assertThat(sm.isCheckpointSupported()).isTrue(); in isCheckpointSupported()
/cts/tests/tests/media/assets/hls_variant/165340/
D22.ts319 …����������������������GA���&��!e����\@#��.* t[�@��%Z)�)�U��D��sm G�~V�;����^�}^�\��…
626 …�s9W������TR1"(�};��d�4���ިC��� ��w,v������fQ�~�=���?:�#��G�����m���sm�O��G�&�����N���}…
/cts/tests/tests/media/assets/hls_variant/387360/
D02.ts703 �1 s����X�f��?�z�v({I|ǎ�R����>��q"f�����{sm@���`��w֣Spld�E�}W>���,ڣ�
981 +��Ś���ܯ`�U̦G���{�G��+�K�&7;���T��*d�8�D�d�G'�-1��U��cѥ��*[��I�sm��F7MM�pJ0�D?G��k:�* …
1677 ]�>�b���<xh�LN�"�߳*�S����`��j�a7� �a�M���'N�i��%$�Ԙ�f�H`��{sm"�h6��火yG\�.j B2�G�j…
/cts/tests/tests/media/assets/hls_variant/344388/
D21.ts573 ��Tz��ח����u��Ah�jEֈ*t�VO_y3��w2-�&Պg6�\���!е+���¦k��S��K���誤D��!��8ϽLtr�sm ytHտ]؄
1144 …����ܟ�����96M$Cs��\���m2$&�g�O�Dq�6gޭ.l,H^R�����t=�ŵݶIF��zv��G��hƢ=sm�b/ XZT���}�``���…
/cts/tests/tests/media/assets/hls_variant/765178/
D01.ts502 …Q��W�x��VN 0c<:x�JNb�zq� ;��Z��+9��h!3ߑ)O�u?�~^���fd��G�-z��?ܒ��sm�5��8p/���C�DHo�4��…
1086 G�p�箥��:�q���&�i���El��bK1�~�w�.HK+�5��b�sm��.�Fλ=%I:H91E�r�Dg��P��pP�o1�
1576 L�sm��d�8��9�X�͆���^ڥ��|uG�8ϺG��qv�JU
1614 r�|��`j���P�����(��sm|��(Ez��a;i�Wϡ},^V�,j��0/����)I��C5"=�߂u���L�JG�=��\
3482 …�Q�|�?�S����f��<=��e%�;~�>�:��q��b�M���uFS&E�"w��� Y� iY(���*�SqN>sm��M�+����ʻ,2�'��>���…

1234