Home
last modified time | relevance | path

Searched refs:StorageManager (Results 1 – 25 of 122) sorted by relevance

12345

/packages/providers/MediaProvider/src/com/android/providers/media/
DLocalCallingIdentity.java36 import android.os.storage.StorageManager;
174 return AppGlobals.getInitialApplication().getSystemService(StorageManager.class) in hasPermissionInternal()
177 return AppGlobals.getInitialApplication().getSystemService(StorageManager.class) in hasPermissionInternal()
180 return AppGlobals.getInitialApplication().getSystemService(StorageManager.class) in hasPermissionInternal()
183 return AppGlobals.getInitialApplication().getSystemService(StorageManager.class) in hasPermissionInternal()
186 return AppGlobals.getInitialApplication().getSystemService(StorageManager.class) in hasPermissionInternal()
189 return AppGlobals.getInitialApplication().getSystemService(StorageManager.class) in hasPermissionInternal()
208 final boolean hasStorage = StorageManager.checkPermissionAndAppOp(getContext(), false, 0, in isSystemInternal()
221 final boolean hasStorage = StorageManager.checkPermissionAndAppOp(getContext(), false, 0, in isLegacyInternal()
DMtpService.java36 import android.os.storage.StorageManager;
98 private StorageManager mStorageManager;
115 mVolumes = StorageManager.getVolumeList(getUserId(), 0); in onCreate()
118 mStorageManager = this.getSystemService(StorageManager.class); in onCreate()
154 final StorageVolume primary = StorageManager.getPrimaryVolume(mVolumes); in onStartCommand()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/
DNewStorageActivity.java27 import android.os.storage.StorageManager;
135 StorageManager storageManager = getActivity().getSystemService(StorageManager.class); in onCreate()
158 getActivity().getSystemService(StorageManager.class) in onStart()
165 getActivity().getSystemService(StorageManager.class) in onStop()
230 final StorageManager storageManager = in checkForUnmount()
231 getContext().getSystemService(StorageManager.class); in checkForUnmount()
286 StorageManager storageManager = getActivity().getSystemService(StorageManager.class); in onCreate()
340 getContext().getSystemService(StorageManager.class).getVolumes(); in checkForRemount()
DSettingsStorageService.java23 import android.os.storage.StorageManager;
118 final StorageManager storageManager = getSystemService(StorageManager.class); in formatAsPublic()
144 final StorageManager storageManager = getSystemService(StorageManager.class); in formatAsPrivate()
171 private VolumeInfo findPrivateVolume(@NonNull StorageManager storageManager, in findPrivateVolume()
187 final StorageManager storageManager = getSystemService(StorageManager.class); in unmount()
DMigrateStorageActivity.java25 import android.os.storage.StorageManager;
90 final StorageManager storageManager = getSystemService(StorageManager.class); in onCreate()
142 final StorageManager storageManager = getSystemService(StorageManager.class); in onChoose()
156 StorageManager sm = (StorageManager) getSystemService(STORAGE_SERVICE); in startMigrationInternal()
264 final StorageManager storageManager = in onCreateActions()
265 getContext().getSystemService(StorageManager.class); in onCreateActions()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DStorageSettings.java32 import android.os.storage.StorageManager;
77 private StorageManager mStorageManager;
103 mStorageManager = context.getSystemService(StorageManager.class); in onCreate()
354 private final StorageManager mStorageManager;
360 mStorageManager = mContext.getSystemService(StorageManager.class); in MountTask()
390 private final StorageManager mStorageManager;
396 mStorageManager = mContext.getSystemService(StorageManager.class); in UnmountTask()
443 final StorageManager sm = context.getSystemService(StorageManager.class); in onCreateDialog()
520 final StorageManager sm = context.getSystemService(StorageManager.class); in onCreateDialog()
566 final StorageManager storage = context.getSystemService(StorageManager.class);
[all …]
DStorageDashboardFragment.java27 import android.os.storage.StorageManager;
87 StorageManager sm = activity.getSystemService(StorageManager.class); in onCreate()
191 StorageManager sm = context.getSystemService(StorageManager.class); in createPreferenceControllers()
239 final StorageManager sm = context.getSystemService(StorageManager.class);
376 StorageManager sm = context.getSystemService(StorageManager.class); in onCreateLoader()
DStorageProfileFragment.java24 import android.os.storage.StorageManager;
66 final StorageManager sm = context.getSystemService(StorageManager.class); in onCreate()
102 final StorageManager sm = context.getSystemService(StorageManager.class); in createPreferenceControllers()
DStorageWizardMigrateConfirm.java28 import android.os.storage.StorageManager;
100 if (StorageManager.isFileEncryptedNativeOrEmulated()) { in onNavigateNext()
102 if (!StorageManager.isUserKeyUnlocked(user.id)) { in onNavigateNext()
118 StorageManager sm = (StorageManager) getSystemService(STORAGE_SERVICE); in onNavigateNext()
DPrivateVolumeForget.java24 import android.os.storage.StorageManager;
64 final StorageManager storage = getActivity().getSystemService(StorageManager.class); in onCreateView()
116 final StorageManager storage = context.getSystemService(StorageManager.class); in onCreateDialog()
DStorageUnmountReceiver.java24 import android.os.storage.StorageManager;
33 final StorageManager storage = context.getSystemService(StorageManager.class); in onReceive()
DTopLevelStoragePreferenceController.java20 import android.os.storage.StorageManager;
35 private final StorageManager mStorageManager;
40 mStorageManager = mContext.getSystemService(StorageManager.class); in TopLevelStoragePreferenceController()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/
DStorageSettings.java32 import android.os.storage.StorageManager;
77 private StorageManager mStorageManager;
103 mStorageManager = context.getSystemService(StorageManager.class); in onCreate()
354 private final StorageManager mStorageManager;
360 mStorageManager = mContext.getSystemService(StorageManager.class); in MountTask()
390 private final StorageManager mStorageManager;
396 mStorageManager = mContext.getSystemService(StorageManager.class); in UnmountTask()
443 final StorageManager sm = context.getSystemService(StorageManager.class); in onCreateDialog()
520 final StorageManager sm = context.getSystemService(StorageManager.class); in onCreateDialog()
566 final StorageManager storage = context.getSystemService(StorageManager.class);
[all …]
DStorageDashboardFragment.java27 import android.os.storage.StorageManager;
87 StorageManager sm = activity.getSystemService(StorageManager.class); in onCreate()
191 StorageManager sm = context.getSystemService(StorageManager.class); in createPreferenceControllers()
239 final StorageManager sm = context.getSystemService(StorageManager.class);
376 StorageManager sm = context.getSystemService(StorageManager.class); in onCreateLoader()
DStorageProfileFragment.java24 import android.os.storage.StorageManager;
66 final StorageManager sm = context.getSystemService(StorageManager.class); in onCreate()
102 final StorageManager sm = context.getSystemService(StorageManager.class); in createPreferenceControllers()
DStorageWizardMigrateConfirm.java28 import android.os.storage.StorageManager;
100 if (StorageManager.isFileEncryptedNativeOrEmulated()) { in onNavigateNext()
102 if (!StorageManager.isUserKeyUnlocked(user.id)) { in onNavigateNext()
118 StorageManager sm = (StorageManager) getSystemService(STORAGE_SERVICE); in onNavigateNext()
DPrivateVolumeForget.java24 import android.os.storage.StorageManager;
64 final StorageManager storage = getActivity().getSystemService(StorageManager.class); in onCreateView()
116 final StorageManager storage = context.getSystemService(StorageManager.class); in onCreateDialog()
DStorageUnmountReceiver.java24 import android.os.storage.StorageManager;
33 final StorageManager storage = context.getSystemService(StorageManager.class); in onReceive()
DTopLevelStoragePreferenceController.java20 import android.os.storage.StorageManager;
32 private final StorageManager mStorageManager;
37 mStorageManager = mContext.getSystemService(StorageManager.class); in TopLevelStoragePreferenceController()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DCryptKeeper.java38 import android.os.storage.StorageManager;
255 int passwordType = StorageManager.CRYPT_TYPE_PASSWORD; in handleBadAttempt()
263 if (passwordType == StorageManager.CRYPT_TYPE_PIN) { in handleBadAttempt()
265 } else if (passwordType == StorageManager.CRYPT_TYPE_PATTERN) { in handleBadAttempt()
295 if (state == StorageManager.ENCRYPTION_STATE_NONE) { in doInBackground()
299 return state == StorageManager.ENCRYPTION_STATE_OK; in doInBackground()
312 mCorrupt = state == StorageManager.ENCRYPTION_STATE_ERROR_CORRUPT; in onPostExecute()
477 int passwordType = StorageManager.CRYPT_TYPE_PASSWORD; in setupUi()
487 owner_info = service.getField(StorageManager.OWNER_INFO_KEY); in setupUi()
488 … pattern_visible = !("0".equals(service.getField(StorageManager.PATTERN_VISIBLE_KEY))); in setupUi()
[all …]
/packages/apps/Settings/src/com/android/settings/
DCryptKeeper.java38 import android.os.storage.StorageManager;
255 int passwordType = StorageManager.CRYPT_TYPE_PASSWORD; in handleBadAttempt()
263 if (passwordType == StorageManager.CRYPT_TYPE_PIN) { in handleBadAttempt()
265 } else if (passwordType == StorageManager.CRYPT_TYPE_PATTERN) { in handleBadAttempt()
295 if (state == StorageManager.ENCRYPTION_STATE_NONE) { in doInBackground()
299 return state == StorageManager.ENCRYPTION_STATE_OK; in doInBackground()
312 mCorrupt = state == StorageManager.ENCRYPTION_STATE_ERROR_CORRUPT; in onPostExecute()
477 int passwordType = StorageManager.CRYPT_TYPE_PASSWORD; in setupUi()
487 owner_info = service.getField(StorageManager.OWNER_INFO_KEY); in setupUi()
488 … pattern_visible = !("0".equals(service.getField(StorageManager.PATTERN_VISIBLE_KEY))); in setupUi()
[all …]
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/
DDeletionHelperSettingsTest.java36 import android.os.storage.StorageManager;
59 Intent intent = new Intent(StorageManager.ACTION_MANAGE_STORAGE); in nullAppHasNoGaugeTitle()
60 intent.putExtra(StorageManager.EXTRA_REQUESTED_BYTES, 100L); in nullAppHasNoGaugeTitle()
71 Intent intent = new Intent(StorageManager.ACTION_MANAGE_STORAGE); in realAppHasGaugeTitle()
72 intent.putExtra(StorageManager.EXTRA_REQUESTED_BYTES, 100L); in realAppHasGaugeTitle()
/packages/modules/ExtServices/src/android/ext/services/storage/
DCacheQuotaServiceImpl.java22 import android.os.storage.StorageManager;
122 StorageManager storageManager = getSystemService(StorageManager.class); in getReservedCacheSize()
124 if (uuid == StorageManager.UUID_PRIVATE_INTERNAL) { // regular equals because of null in getReservedCacheSize()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/
DApplicationsSettingsFragment.java24 import android.os.storage.StorageManager;
47 StorageManager sm = context.getSystemService(StorageManager.class); in onAttach()
/packages/apps/Car/Settings/src/com/android/car/settings/storage/
DStorageFileCategoryPreferenceController.java23 import android.os.storage.StorageManager;
42 StorageManager sm = context.getSystemService(StorageManager.class); in StorageFileCategoryPreferenceController()

12345