Home
last modified time | relevance | path

Searched refs:mStorage (Results 1 – 25 of 37) sorted by relevance

12

/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DLockSettingsStorageTests.java79 LockSettingsStorageTestable mStorage; field in LockSettingsStorageTests
103 mStorage = new LockSettingsStorageTestable(context, in setUp()
105 mStorage.setDatabaseOnCreateCallback(new LockSettingsStorage.Callback() { in setUp()
108 mStorage.writeKeyValue(db, "initializedKey", "initialValue", 0); in setUp()
115 mStorage.closeDatabase(); in tearDown()
120 assertEquals("initialValue", mStorage.readKeyValue("initializedKey", "default", 0)); in testKeyValue_InitializeWorked()
121 mStorage.clearCache(); in testKeyValue_InitializeWorked()
122 assertEquals("initialValue", mStorage.readKeyValue("initializedKey", "default", 0)); in testKeyValue_InitializeWorked()
127 mStorage.writeKeyValue("key", "value", 0); in testKeyValue_WriteThenRead()
128 assertEquals("value", mStorage.readKeyValue("key", "default", 0)); in testKeyValue_WriteThenRead()
[all …]
DBaseLockSettingsServiceTests.java84 LockSettingsStorageTestable mStorage; field in BaseLockSettingsServiceTests
126 mStorage = new LockSettingsStorageTestable(mContext, in setUp_baseServices()
128 File storageDir = mStorage.mStorageDir; in setUp_baseServices()
147 mSpManager = new MockSyntheticPasswordManager(mContext, mStorage, mGateKeeperService, in setUp_baseServices()
150 mService = new LockSettingsServiceTestable(mContext, mLockPatternUtils, mStorage, in setUp_baseServices()
244 mStorage.closeDatabase(); in tearDown_baseServices()
248 File storageDir = mStorage.mStorageDir; in tearDown_baseServices()
DLockSettingsServiceTestable.java147 mStorage.writeChildProfileLock(userId, password); in tieProfileLockToParent()
153 byte[] storedData = mStorage.readChildProfileLock(userId); in getDecryptedPasswordForTiedProfile()
/frameworks/ex/common/java/com/android/common/
DOperationScheduler.java76 private final SharedPreferences mStorage; field in OperationScheduler
83 mStorage = storage; in OperationScheduler()
151 boolean enabledState = mStorage.getBoolean(PREFIX + "enabledState", true); in getNextTimeMillis()
154 boolean permanentError = mStorage.getBoolean(PREFIX + "permanentError", false); in getNextTimeMillis()
161 int errorCount = mStorage.getInt(PREFIX + "errorCount", 0); in getNextTimeMillis()
165 long triggerTimeMillis = mStorage.getLong(PREFIX + "triggerTimeMillis", Long.MAX_VALUE); in getNextTimeMillis()
200 return mStorage.getLong(PREFIX + "lastSuccessTimeMillis", 0); in getLastSuccessTimeMillis()
211 mStorage.getLong(PREFIX + "lastSuccessTimeMillis", 0), in getLastAttemptTimeMillis()
212 mStorage.getLong(PREFIX + "lastErrorTimeMillis", 0)); in getLastAttemptTimeMillis()
225 long time = mStorage.getLong(name, 0); in getTimeBefore()
[all …]
/frameworks/native/services/surfaceflinger/EventLog/
DEventLog.cpp61 } else if (android_bWriteLog(mTag, mStorage, mPos) < 0) { in log()
76 mStorage[mPos + 0] = EVENT_TYPE_LIST; in startList()
77 mStorage[mPos + 1] = count; in startList()
88 mStorage[mPos + 0] = '\n'; in endList()
99 mStorage[mPos + 0] = EVENT_TYPE_INT; in writeInt32()
100 memcpy(&mStorage[mPos + 1], &value, sizeof(value)); in writeInt32()
111 mStorage[mPos + 0] = EVENT_TYPE_LONG; in writeInt64()
112 memcpy(&mStorage[mPos + 1], &value, sizeof(value)); in writeInt64()
124 mStorage[mPos + 0] = EVENT_TYPE_STRING; in writeString8()
125 memcpy(&mStorage[mPos + 1], &stringLen, sizeof(int32_t)); in writeString8()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DRecoverySnapshotListenersStorageTest.java31 private final RecoverySnapshotListenersStorage mStorage = field in RecoverySnapshotListenersStorageTest
36 assertFalse(mStorage.hasListener(1000)); in hasListener_isFalseForUnregisteredUid()
45 mStorage.setSnapshotListener(recoveryAgentUid, intent); in hasListener_isTrueForRegisteredUid()
47 assertTrue(mStorage.hasListener(recoveryAgentUid)); in hasListener_isTrueForRegisteredUid()
55 mStorage.recoverySnapshotAvailable(recoveryAgentUid); in setSnapshotListener_invokesIntentImmediatelyIfPreviouslyNotified()
67 mStorage.setSnapshotListener(recoveryAgentUid, intent); in setSnapshotListener_invokesIntentImmediatelyIfPreviouslyNotified()
76 mStorage.recoverySnapshotAvailable(recoveryAgentUid); in setSnapshotListener_doesNotRepeatedlyInvokeListener()
88 mStorage.setSnapshotListener(recoveryAgentUid, intent); in setSnapshotListener_doesNotRepeatedlyInvokeListener()
89 mStorage.setSnapshotListener(recoveryAgentUid, intent); in setSnapshotListener_doesNotRepeatedlyInvokeListener()
/frameworks/native/libs/ui/
DRegion.cpp71 mStorage.add(Rect(0,0)); in Region()
75 : mStorage(rhs.mStorage) in Region()
83 mStorage.add(rhs); in Region()
210 outputRegion.mStorage, direction_LTR); in createTJunctionFreeRegion()
211 outputRegion.mStorage.add(r.getBounds()); // to make region valid, mStorage must end with bounds in createTJunctionFreeRegion()
226 mStorage = rhs.mStorage; in operator =()
232 if (mStorage.size() >= 2) { in makeBoundsSelf()
234 mStorage.clear(); in makeBoundsSelf()
235 mStorage.add(bounds); in makeBoundsSelf()
258 mStorage.clear(); in clear()
[all …]
/frameworks/native/services/surfaceflinger/
DSurfaceTracing.cpp86 std::queue<LayersTraceProto>().swap(mStorage); in reset()
94 if (mStorage.empty()) { in emplace()
97 mUsedInBytes -= mStorage.front().ByteSize(); in emplace()
98 mStorage.pop(); in emplace()
101 mStorage.emplace(); in emplace()
102 mStorage.back().Swap(&proto); in emplace()
106 fileProto->mutable_entry()->Reserve(mStorage.size()); in flush()
108 while (!mStorage.empty()) { in flush()
110 entry->Swap(&mStorage.front()); in flush()
111 mStorage.pop(); in flush()
DSurfaceTracing.h71 size_t frameCount() const { return mStorage.size(); } in frameCount()
81 std::queue<LayersTraceProto> mStorage; variable
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DMetricsCollector.java64 private PersistAtomsStorage mStorage; field in MetricsCollector
69 mStorage = new PersistAtomsStorage(context); in MetricsCollector()
89 mStorage = storage; in setPersistAtomsStorage()
94 return mStorage; in getAtomsStorage()
/frameworks/av/media/libaaudio/src/utility/
DFixedBlockAdapter.cpp28 mStorage = new uint8_t[bytesPerFixedBlock]; in open()
35 delete[] mStorage; in close()
36 mStorage = nullptr; in close()
DFixedBlockWriter.cpp33 memcpy(mStorage + mPosition, buffer, bytesToStore); in writeToStorage()
49 result = mFixedBlockProcessor.onProcessFixedBlock(mStorage, mSize); in processVariableBlock()
DFixedBlockReader.cpp42 memcpy(buffer, mStorage + mPosition, bytesToRead); in readFromStorage()
63 result = mFixedBlockProcessor.onProcessFixedBlock(mStorage, mSize); in processVariableBlock()
DFixedBlockAdapter.h66 uint8_t *mStorage = nullptr; // Store data here while assembling buffers. variable
/frameworks/av/media/libaaudio/src/fifo/
DFifoBuffer.cpp42 mStorage = new uint8_t[bytesPerBuffer]; in FifoBuffer()
55 , mStorage(static_cast<uint8_t *>(dataStorageAddress)) in FifoBuffer()
66 delete[] mStorage; in ~FifoBuffer()
81 uint8_t *source = &mStorage[convertFramesToBytes(startIndex)]; in fillWrappingBuffer()
87 wrappingBuffer->data[1] = &mStorage[0]; in fillWrappingBuffer()
194 memset(mStorage, 0, (size_t) numBytes); in eraseMemory()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayWindowSettingsTests.java91 private TestStorage mStorage; field in DisplayWindowSettingsTests
101 mStorage = new TestStorage(); in setUp()
102 mTarget = new DisplayWindowSettings(mWm, mStorage); in setUp()
517 final DisplayWindowSettings settings = new DisplayWindowSettings(mWm, mStorage); in testReadingDisplaySettingsFromStorage_LegacyDisplayId_UpdateAfterAccess()
521 assertTrue(mStorage.wasWriteSuccessful()); in testReadingDisplaySettingsFromStorage_LegacyDisplayId_UpdateAfterAccess()
556 final DisplayWindowSettings settings = new DisplayWindowSettings(mWm, mStorage); in testWritingDisplaySettingsToStorage()
559 assertTrue(mStorage.wasWriteSuccessful()); in testWritingDisplaySettingsToStorage()
578 final DisplayWindowSettings settings = new DisplayWindowSettings(mWm, mStorage); in testWritingDisplaySettingsToStorage_UsePortAsId()
581 assertTrue(mStorage.wasWriteSuccessful()); in testWritingDisplaySettingsToStorage_UsePortAsId()
631 mStorage.setReadStream(is); in prepareDisplaySettings()
[all …]
/frameworks/base/core/java/android/preference/
DPreferenceManager.java142 private int mStorage = STORAGE_DEFAULT; field in PreferenceManager
423 mStorage = STORAGE_DEFAULT; in setStorageDefault()
445 mStorage = STORAGE_DEVICE_PROTECTED; in setStorageDeviceProtected()
464 mStorage = STORAGE_CREDENTIAL_PROTECTED; in setStorageCredentialProtected()
476 return mStorage == STORAGE_DEFAULT; in isStorageDefault()
487 return mStorage == STORAGE_DEVICE_PROTECTED; in isStorageDeviceProtected()
500 return mStorage == STORAGE_CREDENTIAL_PROTECTED; in isStorageCredentialProtected()
517 switch (mStorage) { in getSharedPreferences()
/frameworks/base/libs/hwui/
DSkiaCanvas.h183 if (!mStorage) { in writeable()
185 mStorage.emplace(); in writeable()
187 mStorage.emplace(*mPtr); in writeable()
189 mPtr = &*mStorage; in writeable()
191 return *mStorage; in writeable()
199 std::optional<SkPaint> mStorage; member
/frameworks/base/core/jni/android/graphics/
DByteBufferStreamAdaptor.cpp40 , mStorage(storage) {} in ByteBufferStream()
70 env->DeleteGlobalRef(mStorage); in ~ByteBufferStream()
90 env->CallObjectMethod(mByteBuffer, gByteBuffer_getMethodID, mStorage, 0, jrequested); in read()
99 env->GetByteArrayRegion(mStorage, 0, requested, reinterpret_cast<jbyte*>(buffer)); in read()
187 jbyteArray mStorage; member in ByteBufferStream
DGraphicsJNI.h143 return mStorage.release(); in getStorageObjAndReset()
148 sk_sp<android::Bitmap> mStorage;
218 return mStorage.release(); in getStorageObjAndReset()
223 sk_sp<android::Bitmap> mStorage; variable
/frameworks/native/libs/ui/include/ui/
DRegion.h50 inline bool isRect() const { return mStorage.size() == 1; } in isRect()
52 inline Rect getBounds() const { return mStorage[mStorage.size() - 1]; } in getBounds()
180 Vector<Rect> mStorage; variable
/frameworks/native/libs/ui/include_vndk/ui/
DRegion.h50 inline bool isRect() const { return mStorage.size() == 1; } in isRect()
52 inline Rect getBounds() const { return mStorage[mStorage.size() - 1]; } in getBounds()
180 Vector<Rect> mStorage; variable
/frameworks/base/services/core/java/com/android/server/locksettings/
DSyntheticPasswordManager.java290 private LockSettingsStorage mStorage; field in SyntheticPasswordManager
300 mStorage = storage; in SyntheticPasswordManager()
425 for (long handle : mStorage.listSyntheticPasswordHandlesForUser(SP_BLOB_NAME, userId)) { in removeUser()
591 Map<Integer, List<Long>> slotHandles = mStorage.listSyntheticPasswordHandlesForAllUsers( in getUsedWeaverSlots()
684 PersistentData persistentData = mStorage.readPersistentDataBlock(); in verifyFrpCredential()
707 if (mStorage.getPersistentDataBlock() != null in migrateFrpPasswordLocked()
724 if (mStorage.getPersistentDataBlock() != null in synchronizeFrpPassword()
728 mStorage.writePersistentDataBlock(PersistentData.TYPE_SP, userId, requestedQuality, in synchronizeFrpPassword()
731 mStorage.writePersistentDataBlock(PersistentData.TYPE_NONE, userId, 0, null); in synchronizeFrpPassword()
738 if (mStorage.getPersistentDataBlock() != null in synchronizeWeaverFrpPassword()
[all …]
DLockSettingsService.java198 protected final LockSettingsStorage mStorage; field in LockSettingsService
320 if (mStorage.hasChildProfileLock(managedUserId)) { in tieManagedProfileLockIfNecessary()
484 mStorage = injector.getStorage(); in LockSettingsService()
491 mSpManager = injector.getSyntheticPasswordManager(mStorage); in LockSettingsService()
683 mStorage.prefetchUser(userHandle);
716 mStorage.prefetchUser(UserHandle.USER_SYSTEM); in systemReady()
825 if (userInfo.isManagedProfile() && mStorage.hasChildProfileLock(userInfo.id)) { in migrateOldData()
894 if (mStorage.readPersistentDataBlock() != PersistentData.NONE) { in migrateFrpCredential()
1009 mStorage.removeChildProfileLock(userId); in setSeparateProfileChallengeEnabledLocked()
1049 mStorage.writeKeyValue(key, value, userId); in setStringUnchecked()
[all …]
/frameworks/base/services/usage/java/com/android/server/usage/
DStorageStatsService.java98 private final StorageManager mStorage; field in StorageStatsService
109 mStorage = Preconditions.checkNotNull(context.getSystemService(StorageManager.class)); in StorageStatsService()
119 mStorage.registerListener(new StorageEventListener() { in StorageStatsService()
182 return FileUtils.roundStorageSize(mStorage.getPrimaryStorageSize()); in getTotalBytes()
184 final VolumeInfo vol = mStorage.findVolumeByUuid(volumeUuid); in getTotalBytes()
201 path = mStorage.findPathForUuid(volumeUuid); in getFreeBytes()
211 final long cacheReserved = mStorage.getStorageCacheBytes(path, 0); in getFreeBytes()

12