HomeSort by relevance Sort by last modified time
    Searched refs:StorageManager (Results 1 - 25 of 193) sorted by null

1 2 3 4 5 6 7 8

  /packages/apps/Settings/src/com/android/settings/password/
StorageManagerWrapper.java 19 import android.os.storage.StorageManager;
27 return StorageManager.isFileEncryptedNativeOrEmulated();
  /cts/tests/tests/security/src/android/security/cts/
VoldExploitTest.java 20 import android.os.storage.StorageManager;
31 final StorageManager sm = (StorageManager) getContext().getSystemService(
  /frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/
StorageManagerVolumeProvider.java 20 import android.os.storage.StorageManager;
27 * StorageManagerVolumeProvider is a thin wrapper around the StorageManager to provide insight into
31 private StorageManager mStorageManager;
33 public StorageManagerVolumeProvider(StorageManager sm) {
  /packages/apps/Settings/src/com/android/settings/deviceinfo/
StorageUnmountReceiver.java 22 import android.os.storage.StorageManager;
33 final StorageManager storage = context.getSystemService(StorageManager.class);
PrivateVolumeUnmount.java 21 import android.os.storage.StorageManager;
48 final StorageManager storage = getActivity().getSystemService(StorageManager.class);
PrivateVolumeForget.java 26 import android.os.storage.StorageManager;
54 final StorageManager storage = getActivity().getSystemService(StorageManager.class);
56 // Passing null will crash the StorageManager, so let's early exit.
106 final StorageManager storage = context.getSystemService(StorageManager.class);
StorageProfileFragment.java 25 import android.os.storage.StorageManager;
66 final StorageManager sm = context.getSystemService(StorageManager.class);
102 final StorageManager sm = context.getSystemService(StorageManager.class);
StorageWizardMigrateConfirm.java 27 import android.os.storage.StorageManager;
96 if (StorageManager.isFileEncryptedNativeOrEmulated()) {
98 if (!StorageManager.isUserKeyUnlocked(user.id)) {
114 StorageManager sm = (StorageManager) getSystemService(STORAGE_SERVICE);
  /packages/apps/StorageManager/robotests/
Android.mk 19 LOCAL_INSTRUMENTATION_FOR := StorageManager
38 LOCAL_TEST_PACKAGE := StorageManager
  /cts/hostsidetests/appsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/
StorageTest.java 19 import static android.os.storage.StorageManager.UUID_DEFAULT;
42 import android.os.storage.StorageManager;
92 final StorageManager sm = getContext().getSystemService(StorageManager.class);
107 assertTrue(stats.getTotalBytes(StorageManager.UUID_DEFAULT) >= Environment
109 assertTrue(stats.getFreeBytes(StorageManager.UUID_DEFAULT) >= Environment
134 stats.queryExternalStatsForUser(StorageManager.UUID_DEFAULT,
142 final StorageManager sm = getContext().getSystemService(StorageManager.class);
150 final StorageManager sm = getContext().getSystemService(StorageManager.class)
    [all...]
  /frameworks/base/services/core/java/com/android/server/pm/
UserDataPreparer.java 25 import android.os.storage.StorageManager;
71 final StorageManager storage = mContext.getSystemService(StorageManager.class);
83 final StorageManager storage = mContext.getSystemService(StorageManager.class);
87 if ((flags & StorageManager.FLAG_STORAGE_DE) != 0 && !mOnlyCore) {
89 if (Objects.equals(volumeUuid, StorageManager.UUID_PRIVATE_INTERNAL)) {
93 if ((flags & StorageManager.FLAG_STORAGE_CE) != 0 && !mOnlyCore) {
95 if (Objects.equals(volumeUuid, StorageManager.UUID_PRIVATE_INTERNAL)) {
103 if ((flags & StorageManager.FLAG_STORAGE_CE) != 0 &
    [all...]
  /frameworks/base/services/tests/servicestests/src/com/android/server/pm/
UserDataPreparerTest.java 22 import android.os.storage.StorageManager;
68 private StorageManager mStorageManagerMock;
86 when(mContextMock.getSystemServiceName(StorageManager.class))
101 .prepareUserData(TEST_USER_ID, TEST_USER_SERIAL, StorageManager.FLAG_STORAGE_DE);
103 eq(TEST_USER_SERIAL), eq(StorageManager.FLAG_STORAGE_DE));
105 eq(TEST_USER_SERIAL), eq(StorageManager.FLAG_STORAGE_DE));
119 .prepareUserData(TEST_USER_ID, TEST_USER_SERIAL, StorageManager.FLAG_STORAGE_CE);
121 eq(TEST_USER_SERIAL), eq(StorageManager.FLAG_STORAGE_CE));
123 eq(TEST_USER_SERIAL), eq(StorageManager.FLAG_STORAGE_CE));
158 mUserDataPreparer.destroyUserData(TEST_USER_ID, StorageManager.FLAG_STORAGE_DE)
    [all...]
  /frameworks/base/cmds/sm/src/com/android/commands/sm/
Sm.java 25 import android.os.storage.StorageManager;
142 System.out.println(StorageManager.hasAdoptable());
150 final int mask = StorageManager.DEBUG_ADOPTABLE_FORCE_ON
151 | StorageManager.DEBUG_ADOPTABLE_FORCE_OFF;
155 mSm.setDebugFlags(StorageManager.DEBUG_ADOPTABLE_FORCE_ON, mask);
158 mSm.setDebugFlags(StorageManager.DEBUG_ADOPTABLE_FORCE_OFF, mask);
168 final int mask = StorageManager.DEBUG_SDCARDFS_FORCE_ON
169 | StorageManager.DEBUG_SDCARDFS_FORCE_OFF;
172 mSm.setDebugFlags(StorageManager.DEBUG_SDCARDFS_FORCE_ON, mask);
175 mSm.setDebugFlags(StorageManager.DEBUG_SDCARDFS_FORCE_OFF, mask)
    [all...]
  /frameworks/base/services/tests/servicestests/src/com/android/server/
MountServiceTests.java 24 import android.os.storage.StorageManager;
124 private StorageManager getStorageManager() {
125 return (StorageManager) getContext().getSystemService(Context.STORAGE_SERVICE);
128 private void mountObb(StorageManager sm, final int resource, final File file,
149 private ObbObserver mountObbWithoutWait(final StorageManager sm, final int resource,
160 private void waitForObbActionCompletion(final StorageManager sm, final File file,
174 private String checkMountedPath(final StorageManager sm, final File file) {
182 private void unmountObb(final StorageManager sm, final File file, int expectedState) {
200 StorageManager sm = getStorageManager();
219 StorageManager sm = getStorageManager()
    [all...]
  /frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
MockLockSettingsContext.java 27 import android.os.storage.StorageManager;
34 private StorageManager mStorageManager;
40 StorageManager storageManager, TrustManager trustManager,
46 mStorageManager = storageManager;
  /frameworks/base/cmds/statsd/src/storage/
StorageManager.cpp 22 #include "storage/StorageManager.h"
71 void StorageManager::writeFile(const char* file, const void* buffer, int numBytes) {
95 void StorageManager::deleteFile(const char* file) {
103 void StorageManager::deleteAllFiles(const char* path) {
118 void StorageManager::deleteSuffixedFiles(const char* path, const char* suffix) {
139 void StorageManager::sendBroadcast(const char* path,
163 bool StorageManager::hasConfigMetricsReport(const ConfigKey& key) {
191 void StorageManager::appendConfigMetricsReport(const ConfigKey& key, ProtoOutputStream* proto) {
233 bool StorageManager::readFileToString(const char* file, string* content) {
247 void StorageManager::readConfigFromDisk(map<ConfigKey, StatsdConfig>& configsMap)
    [all...]
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/
AppStoragePreference.java 22 import android.os.storage.StorageManager;
33 private final StorageManager mStorageManager;
38 mStorageManager = (StorageManager) context.getSystemService(Context.STORAGE_SERVICE);
  /frameworks/base/core/java/com/android/internal/content/
PackageHelper.java 34 import android.os.storage.StorageManager;
81 Log.e(TAG, "Can't get storagemanager service");
82 throw new RemoteException("Could not contact storagemanager service");
92 abstract public StorageManager getStorageManager(Context context);
103 public StorageManager getStorageManager(Context context) {
104 return context.getSystemService(StorageManager.class);
170 final StorageManager storageManager = testInterface.getStorageManager(context);
184 for (VolumeInfo vol : storageManager.getVolumes()) {
187 final UUID target = storageManager.getUuidForPath(new File(vol.path))
    [all...]
  /build/make/target/product/
core.mk 59 StorageManager \
  /packages/apps/StorageManager/tests/app/
Android.mk 23 LOCAL_INSTRUMENTATION_FOR := StorageManager
  /packages/apps/StorageManager/tests/unit/
Android.mk 19 LOCAL_INSTRUMENTATION_FOR := StorageManager
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/
SettingsStorageService.java 23 import android.os.storage.StorageManager;
117 final StorageManager storageManager = getSystemService(StorageManager.class);
118 final List<VolumeInfo> volumes = storageManager.getVolumes();
122 storageManager.forgetVolume(volume.getFsUuid());
126 storageManager.partitionPublic(diskId);
143 final StorageManager storageManager = getSystemService(StorageManager.class)
    [all...]
NewStorageActivity.java 27 import android.os.storage.StorageManager;
134 StorageManager storageManager = getActivity().getSystemService(StorageManager.class);
142 final VolumeInfo info = storageManager.findVolumeById(mVolumeId);
143 mDescription = storageManager.getBestVolumeDescription(info);
146 final DiskInfo info = storageManager.findDiskById(mDiskId);
157 getActivity().getSystemService(StorageManager.class)
164 getActivity().getSystemService(StorageManager.class)
229 final StorageManager storageManager
    [all...]
  /development/samples/Obb/src/com/example/android/obbapp/
ObbMountActivity.java 23 import android.os.storage.StorageManager;
46 private StorageManager mSM;
67 mSM = state.storageManager;
71 // Get an instance of the StorageManager
72 mSM = (StorageManager) getApplicationContext().getSystemService(STORAGE_SERVICE);
132 // Since our OBB mount is tied to the StorageManager, retain it
138 public StorageManager storageManager;
142 ObbState(StorageManager storageManager, CharSequence status, CharSequence path)
    [all...]
  /packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/
DeletionHelperSettingsTest.java 17 package com.android.storagemanager.deletionhelper;
35 import android.os.storage.StorageManager;
38 import com.android.storagemanager.testing.StorageManagerRobolectricTestRunner;
39 import com.android.storagemanager.testing.TestingConstants;
63 Intent intent = new Intent(StorageManager.ACTION_MANAGE_STORAGE);
64 intent.putExtra(StorageManager.EXTRA_REQUESTED_BYTES, 100L);
75 Intent intent = new Intent(StorageManager.ACTION_MANAGE_STORAGE);
76 intent.putExtra(StorageManager.EXTRA_REQUESTED_BYTES, 100L);

Completed in 527 milliseconds

1 2 3 4 5 6 7 8