/frameworks/base/packages/SettingsLib/DataStore/src/com/android/settingslib/datastore/ |
D | BackupRestoreStorageManager.kt | 52 val storage = storageWrapper.storage in addBackupAgentHelpers() constant 53 if (storage is BackupRestoreFileStorage) { in addBackupAgentHelpers() 54 fileStorages.add(storage) in addBackupAgentHelpers() 56 backupAgentHelper.addHelper(keyPrefix, storage) in addBackupAgentHelpers() 81 for (storage in storages) add(storage) in add() method 89 fun add(storage: BackupRestoreStorage) { in add() 90 if (storage is BackupRestoreFileStorage) storage.checkFilePaths() in add() 91 val name = storage.name in add() 92 val oldStorage = storageWrappers.put(name, StorageWrapper(storage))?.storage in add() 95 "Storage name '$name' conflicts:\n\told: $oldStorage\n\tnew: $storage" in add() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/ |
D | RecoverySessionStorageTest.java | 17 package com.android.server.locksettings.recoverablekeystore.storage; 51 RecoverySessionStorage storage = new RecoverySessionStorage(); in size_incrementsAfterAdd() local 52 storage.add(TEST_USER_ID, new RecoverySessionStorage.Entry( in size_incrementsAfterAdd() 55 assertEquals(1, storage.size()); in size_incrementsAfterAdd() 60 RecoverySessionStorage storage = new RecoverySessionStorage(); in size_decrementsAfterRemove() local 61 storage.add(TEST_USER_ID, new RecoverySessionStorage.Entry( in size_decrementsAfterRemove() 63 storage.remove(TEST_USER_ID); in size_decrementsAfterRemove() 65 assertEquals(0, storage.size()); in size_decrementsAfterRemove() 70 RecoverySessionStorage storage = new RecoverySessionStorage(); in remove_overwritesLskfHashMemory() local 73 storage.add(TEST_USER_ID, entry); in remove_overwritesLskfHashMemory() [all …]
|
/frameworks/native/libs/debugstore/rust/src/ |
D | storage.rs | 59 let storage = Storage::<i32, 10>::new(); in test_insert_and_retrieve() localVariable 60 storage.insert(7); in test_insert_and_retrieve() 62 let sum = storage.fold(0, |acc, &x| acc + x); in test_insert_and_retrieve() 68 let storage = Storage::<i32, 5>::new(); in test_fold_functionality() localVariable 69 storage.insert(1); in test_fold_functionality() 70 storage.insert(2); in test_fold_functionality() 71 storage.insert(3); in test_fold_functionality() 73 let sum = storage.fold(0, |acc, &x| acc + x); in test_fold_functionality() 82 let storage = Storage::<i32, 10>::new(); in test_insert_and_retrieve_multiple_values() localVariable 83 storage.insert(1); in test_insert_and_retrieve_multiple_values() [all …]
|
/frameworks/base/packages/SettingsLib/DataStore/tests/src/com/android/settingslib/datastore/ |
D | SharedPreferencesStorageTest.kt | 77 val storage = SharedPreferencesStorage(application, NAME, MODE) in <lambda>() constant 79 storage.addObserver(observer, executor) in <lambda>() 80 storage.addObserver("key", keyedObserver, executor) in <lambda>() 82 storage.sharedPreferences.edit().putString("key", "string").applySync() in <lambda>() 87 storage.sharedPreferences.edit().clear().applySync() in <lambda>() 96 val storage = in <lambda>() constant 100 storage.prepareBackup(File("")) in <lambda>() 106 val storage = SharedPreferencesStorage(application, NAME, MODE, codec) in <lambda>() constant 107 storage.mergeSharedPreferences(storage.sharedPreferences, map, "op").commit() in <lambda>() 108 assertThat(storage.sharedPreferences.all).isEqualTo(map) in <lambda>() [all …]
|
D | BackupRestoreStorageTest.kt | 62 val storage = spy(TestStorage().apply { enabled = false }) in <lambda>() constant 63 val unused = performBackup { data, newState -> storage.performBackup(null, data, newState) } in <lambda>() 64 verify(storage, never()).createBackupRestoreEntities() in <lambda>() 65 assertThat(storage.entities).isNull() in <lambda>() 66 assertThat(storage.entityStates.size).isEqualTo(0) in <lambda>() 71 val storage = spy(TestStorage()) in <lambda>() constant 72 val unused = performBackup { data, newState -> storage.performBackup(null, data, newState) } in <lambda>() 73 verify(storage).createBackupRestoreEntities() in <lambda>() 74 assertThat(storage.entities).isNull() in <lambda>() 75 assertThat(storage.entityStates.size).isEqualTo(0) in <lambda>() [all …]
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/mode/ |
D | SystemRequestObserverTest.kt | 51 private val storage = VotesStorage({}, null) in <lambda>() constant in com.android.server.display.mode.SystemRequestObserverTest 54 fun `requestDisplayModes adds vote to storage`() { in requestDisplayModes adds vote to storage() 55 val systemRequestObserver = SystemRequestObserver(storage) in requestDisplayModes adds vote to storage() 60 val votes = storage.getVotes(DISPLAY_ID) in requestDisplayModes adds vote to storage() 72 fun `requestDisplayModes overrides votes in storage`() { in requestDisplayModes overrides votes in storage() 73 val systemRequestObserver = SystemRequestObserver(storage) in requestDisplayModes overrides votes in storage() 80 val votes = storage.getVotes(DISPLAY_ID) in requestDisplayModes overrides votes in storage() 92 fun `requestDisplayModes removes vote to storage`() { in requestDisplayModes removes vote to storage() 93 val systemRequestObserver = SystemRequestObserver(storage) in requestDisplayModes removes vote to storage() 99 val votes = storage.getVotes(DISPLAY_ID) in requestDisplayModes removes vote to storage() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/ |
D | NetworkRequestsStats.java | 35 PersistAtomsStorage storage = PhoneFactory.getMetricsCollector().getAtomsStorage(); in addNetworkRequest() local 44 storage.addNetworkRequestsV2(networkRequestsTemplate); in addNetworkRequest() 50 storage.addNetworkRequestsV2(networkRequestsTemplate); in addNetworkRequest() 55 storage.addNetworkRequestsV2(networkRequestsTemplate); in addNetworkRequest() 60 storage.addNetworkRequestsV2(networkRequestsTemplate); in addNetworkRequest() 70 storage.addNetworkRequestsV2(networkRequestsTemplate); in addNetworkRequest() 76 storage.addNetworkRequestsV2(networkRequestsTemplate); in addNetworkRequest() 82 storage.addNetworkRequestsV2(networkRequestsTemplate); in addNetworkRequest() 88 storage.addNetworkRequestsV2(networkRequestsTemplate); in addNetworkRequest() 94 storage.addNetworkRequestsV2(networkRequestsTemplate); in addNetworkRequest() [all …]
|
D | CarrierIdMatchStats.java | 36 PersistAtomsStorage storage = PhoneFactory.getMetricsCollector().getAtomsStorage(); in onCarrierIdMismatch() local 45 boolean isAdded = storage.addCarrierIdMismatch(carrierIdMismatch); in onCarrierIdMismatch() 54 PersistAtomsStorage storage = PhoneFactory.getMetricsCollector().getAtomsStorage(); in sendCarrierIdTableVersion() local 56 if (storage.setCarrierIdTableVersion(carrierIdTableVersion)) { in sendCarrierIdTableVersion()
|
/frameworks/base/core/java/android/os/incremental/ |
D | IncrementalManager.java | 137 final IncrementalStorage storage = new IncrementalStorage(mService, id); in openStorage() local 138 return storage; in openStorage() 309 final IncrementalStorage storage = openStorage(codePath); in rmPackageDir() local 310 if (storage == null) { in rmPackageDir() 313 mLoadingProgressCallbacks.cleanUpCallbacks(storage); in rmPackageDir() 314 storage.unBind(codePath); in rmPackageDir() 330 final IncrementalStorage storage = openStorage(codePath); in registerLoadingProgressCallback() local 331 if (storage == null) { in registerLoadingProgressCallback() 335 return mLoadingProgressCallbacks.registerCallback(storage, callback); in registerLoadingProgressCallback() 343 final IncrementalStorage storage = openStorage(codePath); in unregisterLoadingProgressCallbacks() local [all …]
|
/frameworks/base/services/incremental/ |
D | IncrementalService.h | 161 bool startLoading(StorageId storage, content::pm::DataLoaderParamsParcel dataLoaderParams, 166 void onInstallationComplete(StorageId storage); 168 int bind(StorageId storage, std::string_view source, std::string_view target, BindKind kind); 169 int unbind(StorageId storage, std::string_view target); 170 void deleteStorage(StorageId storage); 172 void disallowReadLogs(StorageId storage); 173 int setStorageParams(StorageId storage, bool enableReadLogs); 175 int makeFile(StorageId storage, std::string_view path, int mode, FileId id, 177 int makeDir(StorageId storage, std::string_view path, int mode = 0755); 178 int makeDirs(StorageId storage, std::string_view path, int mode = 0755); [all …]
|
D | IncrementalService.cpp | 466 for (auto&& [storageId, storage] : mnt.storages) { in onDump() 469 storage.name.c_str(), in onDump() 470 (int)(getLoadingProgressFromPath(mnt, storage.name.c_str()).getProgress() * in onDump() 479 dprintf(fd, " [%s]->[%d]:\n", target.c_str(), bind.storage); in onDump() 531 dprintf(fd, " [%s]->[%d]:\n", target.c_str(), bind.storage); in onDump() 868 void IncrementalService::onInstallationComplete(StorageId storage) { in onInstallationComplete() argument 869 IfsMountPtr ifs = getIfs(storage); in onInstallationComplete() 891 return it->second->second.storage; in findStorageId() 1063 IncrementalService::IfsMountPtr IncrementalService::getIfs(StorageId storage) const { in getIfs() 1065 return getIfsLocked(storage); in getIfs() [all …]
|
/frameworks/libs/binary_translation/interpreter/riscv64/ |
D | faulty_memory_accesses_test.cc | 103 uint64_t storage = 0; in TEST() local 105 bool is_fault = FaultyStore(&storage, 1, data); in TEST() 106 EXPECT_EQ(static_cast<uint8_t>(storage), static_cast<uint8_t>(data)); in TEST() 109 is_fault = FaultyStore(&storage, 2, data); in TEST() 110 EXPECT_EQ(static_cast<uint16_t>(storage), static_cast<uint16_t>(data)); in TEST() 113 is_fault = FaultyStore(&storage, 4, data); in TEST() 114 EXPECT_EQ(static_cast<uint32_t>(storage), static_cast<uint32_t>(data)); in TEST() 117 is_fault = FaultyStore(&storage, 8, data); in TEST() 118 EXPECT_EQ(storage, data); in TEST()
|
/frameworks/av/media/utils/include/mediautils/ |
D | InPlaceFunction.h | 31 void (*destroy)(void* storage) = nullptr; 33 Ret (*invoke)(void* storage, Args&&...) = nullptr; 36 void (*copy_to)(const void* storage, void* other) = nullptr; 38 void (*move_to)(void* storage, void* other) = nullptr; 105 constexpr static T& getRef(void* storage) { in getRef() 106 return *std::launder(reinterpret_cast<T*>(storage)); in getRef() 109 constexpr static const T& getRef(const void* storage) { in getRef() 110 return *std::launder(reinterpret_cast<const T*>(storage)); in getRef() 116 .destroy = [](void* storage) { getRef(storage).~T(); }, 117 .invoke = [](void* storage, Args&&... args) -> Ret { [all …]
|
/frameworks/base/libs/hwui/jni/ |
D | CreateJavaOutputStreamAdaptor.cpp | 175 SkStream* CreateJavaInputStreamAdaptor(JNIEnv* env, jobject stream, jbyteArray storage, in CreateJavaInputStreamAdaptor() argument 177 return JavaInputStreamAdaptor::Create(env, stream, storage, swallowExceptions); in CreateJavaInputStreamAdaptor() 184 sk_sp<SkData> CopyJavaInputStream(JNIEnv* env, jobject inputStream, jbyteArray storage) { in CopyJavaInputStream() argument 185 std::unique_ptr<SkStream> stream(CreateJavaInputStreamAdaptor(env, inputStream, storage)); in CopyJavaInputStream() 227 SkJavaOutputStream(JNIEnv* env, jobject stream, jbyteArray storage) in SkJavaOutputStream() argument 228 : fEnv(env), fJavaOutputStream(stream), fJavaByteArray(storage), fBytesWritten(0) { in SkJavaOutputStream() 229 fCapacity = env->GetArrayLength(storage); in SkJavaOutputStream() 238 jbyteArray storage = fJavaByteArray; in write() local 250 env->SetByteArrayRegion(storage, 0, requested, in write() 260 storage, 0, requested); in write() [all …]
|
D | CreateJavaOutputStreamAdaptor.h | 27 SkStream* CreateJavaInputStreamAdaptor(JNIEnv* env, jobject stream, jbyteArray storage, 38 sk_sp<SkData> CopyJavaInputStream(JNIEnv* env, jobject stream, jbyteArray storage); 40 SkWStream* CreateJavaOutputStreamAdaptor(JNIEnv* env, jobject stream, jbyteArray storage);
|
D | ByteBufferStreamAdaptor.cpp | 16 jbyteArray storage) in ByteBufferStream() argument 22 , mStorage(storage) {} in ByteBufferStream() 33 jbyteArray storage = env->NewByteArray(kStorageSize); in Create() local 34 if (!storage) { in Create() 40 storage = static_cast<jbyteArray>(env->NewGlobalRef(storage)); in Create() 41 if (!storage) { in Create() 46 return new ByteBufferStream(jvm, jbyteBuffer, position, length, storage); in Create()
|
/frameworks/base/core/java/android/os/storage/ |
D | IStorageEventListener.aidl | 17 package android.os.storage; 19 import android.os.storage.DiskInfo; 20 import android.os.storage.VolumeInfo; 21 import android.os.storage.VolumeRecord;
|
D | IStorageManager.aidl | 17 package android.os.storage; 23 import android.os.storage.DiskInfo; 24 import android.os.storage.IStorageEventListener; 25 import android.os.storage.IStorageShutdownObserver; 26 import android.os.storage.IObbActionListener; 27 import android.os.storage.StorageVolume; 28 import android.os.storage.VolumeInfo; 29 import android.os.storage.VolumeRecord;
|
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/scene/session/ui/composable/ |
D | Session.kt | 73 fun Session(storage: SessionStorage = SessionStorage()): Session = SessionImpl(storage) in Session() 157 private val storage: SessionStorage = SessionStorage(), constant in com.android.systemui.scene.session.ui.composable.SessionImpl 161 val storage = storage.storage in rememberSession() constant 170 if (finalKey !in storage) { in rememberSession() 172 SideEffect { storage[finalKey] = SessionStorage.StorageEntry(inputs, value) } in rememberSession() 175 val entry = storage[finalKey]!! in rememberSession()
|
/frameworks/av/media/mtp/tests/MtpFuzzer/ |
D | MtpMockDatabase.h | 36 void addStorage(MtpStorage* storage) { in addStorage() argument 38 mStorage[storage->getStorageID()] = storage; in addStorage() 41 bool hasStorage(MtpStorageID storage) { return mStorage.find(storage) != mStorage.end(); } in hasStorage() argument 50 MtpObjectHandle parent, MtpStorageID storage);
|
/frameworks/base/media/java/android/mtp/ |
D | MtpServer.java | 139 public void addStorage(MtpStorage storage) { in addStorage() argument 140 native_add_storage(storage); in addStorage() 143 public void removeStorage(MtpStorage storage) { in removeStorage() argument 144 native_remove_storage(storage.getStorageId()); in removeStorage() 161 private native final void native_add_storage(MtpStorage storage); in native_add_storage() argument
|
/frameworks/libs/binary_translation/guest_state/ |
D | guest_state.cc | 85 void* storage = Mmap(kThreadStateStoragePageAlignedSize); in CreateThreadState() local 86 if (storage == MAP_FAILED) { in CreateThreadState() 90 new (AlignUp(reinterpret_cast<uint8_t*>(storage) + sizeof(NativeBridgeGuestStateHeader), in CreateThreadState() 93 state->thread_state_storage = storage; in CreateThreadState() 97 InitializeNativeBridgeGuestStateHeader(static_cast<NativeBridgeGuestStateHeader*>(storage), in CreateThreadState()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | FreeStorageHelper.java | 28 import android.os.storage.IStorageManager; 29 import android.os.storage.StorageManager; 30 import android.os.storage.StorageManagerInternal; 86 final StorageManager storage = mInjector.getSystemService(StorageManager.class); in freeStorage() local 87 final File file = storage.findPathForUuid(volumeUuid); in freeStorage() 188 final StorageManager storage = StorageManager.from(mContext); in freeCacheForInstallation() local 189 final long lowThreshold = storage.getStorageLowBytes(Environment.getDataDirectory()); in freeCacheForInstallation()
|
/frameworks/av/media/mtp/ |
D | MtpServer.cpp | 141 void MtpServer::addStorage(MtpStorage* storage) { in addStorage() argument 144 mStorages.push_back(storage); in addStorage() 145 sendStoreAdded(storage->getStorageID()); in addStorage() 148 void MtpServer::removeStorage(MtpStorage* storage) { in removeStorage() argument 150 auto iter = std::find(mStorages.begin(), mStorages.end(), storage); in removeStorage() 152 sendStoreRemoved(storage->getStorageID()); in removeStorage() 160 for (MtpStorage *storage : mStorages) { in getStorage() 161 if (storage->getStorageID() == id) in getStorage() 162 return storage; in getStorage() 554 MtpStorage* storage = getStorage(id); in doGetStorageInfo() local [all …]
|
/frameworks/base/core/java/com/android/internal/content/ |
D | InstallLocationUtils.java | 20 import static android.os.storage.VolumeInfo.ID_PRIVATE_INTERNAL; 35 import android.os.storage.IStorageManager; 36 import android.os.storage.StorageManager; 37 import android.os.storage.StorageVolume; 38 import android.os.storage.VolumeInfo; 306 final StorageManager storage = context.getSystemService(StorageManager.class); in fitsOnInternal() local 307 final UUID target = storage.getUuidForPath(Environment.getDataDirectory()); in fitsOnInternal() 310 final long allocateableBytes = storage.getAllocatableBytes(target, in fitsOnInternal() 319 final long cacheClearable = storage.getAllocatableBytes(target, in fitsOnInternal() 326 final StorageManager storage = context.getSystemService(StorageManager.class); in fitsOnExternal() local [all …]
|