Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DLockSettingsStorageTests.java60 LockSettingsStorageTestable mStorage; field in LockSettingsStorageTests
84 mStorage = new LockSettingsStorageTestable(context, in setUp()
86 mStorage.setDatabaseOnCreateCallback(new LockSettingsStorage.Callback() { in setUp()
89 mStorage.writeKeyValue(db, "initializedKey", "initialValue", 0); in setUp()
97 mStorage.closeDatabase(); in tearDown()
101 assertEquals("initialValue", mStorage.readKeyValue("initializedKey", "default", 0)); in testKeyValue_InitializeWorked()
102 mStorage.clearCache(); in testKeyValue_InitializeWorked()
103 assertEquals("initialValue", mStorage.readKeyValue("initializedKey", "default", 0)); in testKeyValue_InitializeWorked()
107 mStorage.writeKeyValue("key", "value", 0); in testKeyValue_WriteThenRead()
108 assertEquals("value", mStorage.readKeyValue("key", "default", 0)); in testKeyValue_WriteThenRead()
[all …]
DBaseLockSettingsServiceTests.java75 LockSettingsStorageTestable mStorage; field in BaseLockSettingsServiceTests
108 mStorage = new LockSettingsStorageTestable(mContext, in setUp()
110 File storageDir = mStorage.mStorageDir; in setUp()
123 mSpManager = new MockSyntheticPasswordManager(mContext, mStorage, mGateKeeperService, in setUp()
126 mService = new LockSettingsServiceTestable(mContext, mLockPatternUtils, mStorage, in setUp()
206 mStorage.closeDatabase(); in tearDown()
210 File storageDir = mStorage.mStorageDir; in tearDown()
/frameworks/base/core/java/android/os/
DStatsLogEventWrapper.java27 private ByteArrayOutputStream mStorage = new ByteArrayOutputStream(); field in StatsLogEventWrapper
54 mStorage.write(EVENT_TYPE_LIST); // This is required to start the log entry. in StatsLogEventWrapper()
55 mStorage.write(fields + 2); // Indicate number of elements in this list. +1 for the tag in StatsLogEventWrapper()
77 mStorage.write(val); in write4Bytes()
78 mStorage.write(val >>> 8); in write4Bytes()
79 mStorage.write(val >>> 16); in write4Bytes()
80 mStorage.write(val >>> 24); in write4Bytes()
92 mStorage.write(EVENT_TYPE_INT); in writeInt()
100 mStorage.write(EVENT_TYPE_LONG); in writeLong()
109 mStorage.write(EVENT_TYPE_FLOAT); in writeFloat()
[all …]
/frameworks/support/paging/common/src/main/java/androidx/paging/
DContiguousPagedList.java54 mStorage.init(pageResult.leadingNulls, page, pageResult.trailingNulls,
63 mStorage.appendPage(page, ContiguousPagedList.this);
65 mStorage.prependPage(page, ContiguousPagedList.this);
72 boolean deferEmpty = mStorage.size() == 0;
115 final PagedStorage<V> snapshot = pagedListSnapshot.mStorage; in dispatchUpdatesSinceSnapshot()
117 final int newlyAppended = mStorage.getNumberAppended() - snapshot.getNumberAppended(); in dispatchUpdatesSinceSnapshot()
118 final int newlyPrepended = mStorage.getNumberPrepended() - snapshot.getNumberPrepended(); in dispatchUpdatesSinceSnapshot()
128 || mStorage.getTrailingNullCount() != Math.max(previousTrailing - newlyAppended, 0) in dispatchUpdatesSinceSnapshot()
129 || mStorage.getLeadingNullCount() != Math.max(previousLeading - newlyPrepended, 0) in dispatchUpdatesSinceSnapshot()
130 || (mStorage.getStorageCount() in dispatchUpdatesSinceSnapshot()
[all …]
DTiledPagedList.java51 if (mStorage.getPageCount() == 0) {
52 mStorage.initAndSplit(
56 mStorage.insertPage(pageResult.positionOffset, pageResult.page,
61 boolean deferEmpty = mStorage.size() == 0;
124 final PagedStorage<T> snapshot = pagedListSnapshot.mStorage; in dispatchUpdatesSinceSnapshot()
127 || mStorage.size() != snapshot.size()) { in dispatchUpdatesSinceSnapshot()
135 final int leadingNullPages = mStorage.getLeadingNullCount() / pageSize; in dispatchUpdatesSinceSnapshot()
136 final int pageCount = mStorage.getPageCount(); in dispatchUpdatesSinceSnapshot()
141 while (updatedPages < mStorage.getPageCount() in dispatchUpdatesSinceSnapshot()
142 && mStorage.hasPage(pageSize, pageIndex + updatedPages) in dispatchUpdatesSinceSnapshot()
[all …]
DPagedList.java124 final PagedStorage<T> mStorage; field in PagedList
148 mStorage = storage; in PagedList()
384 T item = mStorage.get(index); in get()
432 mLowestIndexAccessed = mStorage.size(); in deferBoundaryCallbacks()
499 mBoundaryCallback.onItemAtFrontLoaded(mStorage.getFirstLoadedItem()); in dispatchBoundaryCallbacks()
503 mBoundaryCallback.onItemAtEndLoaded(mStorage.getLastLoadedItem()); in dispatchBoundaryCallbacks()
521 return mStorage.size(); in size()
624 return mStorage.getPositionOffset(); in getPositionOffset()
654 if (!mStorage.isEmpty()) { in addWeakCallback()
657 callback.onInserted(0, mStorage.size()); in addWeakCallback()
/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.java30 private final RecoverySnapshotListenersStorage mStorage = field in RecoverySnapshotListenersStorageTest
35 assertFalse(mStorage.hasListener(1000)); in hasListener_isFalseForUnregisteredUid()
44 mStorage.setSnapshotListener(recoveryAgentUid, intent); in hasListener_isTrueForRegisteredUid()
46 assertTrue(mStorage.hasListener(recoveryAgentUid)); in hasListener_isTrueForRegisteredUid()
54 mStorage.recoverySnapshotAvailable(recoveryAgentUid); in setSnapshotListener_invokesIntentImmediatelyIfPreviouslyNotified()
66 mStorage.setSnapshotListener(recoveryAgentUid, intent); in setSnapshotListener_invokesIntentImmediatelyIfPreviouslyNotified()
75 mStorage.recoverySnapshotAvailable(recoveryAgentUid); in setSnapshotListener_doesNotRepeatedlyInvokeListener()
87 mStorage.setSnapshotListener(recoveryAgentUid, intent); in setSnapshotListener_doesNotRepeatedlyInvokeListener()
88 mStorage.setSnapshotListener(recoveryAgentUid, intent); in setSnapshotListener_doesNotRepeatedlyInvokeListener()
/frameworks/native/libs/ui/
DRegion.cpp61 mStorage.add(Rect(0,0)); in Region()
65 : mStorage(rhs.mStorage) in Region()
73 mStorage.add(rhs); in Region()
200 outputRegion.mStorage, direction_LTR); in createTJunctionFreeRegion()
201 outputRegion.mStorage.add(r.getBounds()); // to make region valid, mStorage must end with bounds in createTJunctionFreeRegion()
216 mStorage = rhs.mStorage; in operator =()
222 if (mStorage.size() >= 2) { in makeBoundsSelf()
224 mStorage.clear(); in makeBoundsSelf()
225 mStorage.add(bounds); in makeBoundsSelf()
248 mStorage.clear(); in clear()
[all …]
/frameworks/support/recyclerview-selection/src/androidTest/java/androidx/recyclerview/selection/
DStorageStrategy_LongTest.java35 private StorageStrategy<Long> mStorage; field in StorageStrategy_LongTest
39 mStorage = StorageStrategy.createLongStorage(); in setUp()
49 Bundle parceled = Bundles.forceParceling(mStorage.asBundle(orig)); in testReadWrite()
50 Selection<Long> restored = mStorage.asSelection(parceled); in testReadWrite()
DStorageStrategy_StringTest.java35 private StorageStrategy<String> mStorage; field in StorageStrategy_StringTest
39 mStorage = StorageStrategy.createStringStorage(); in setUp()
49 Bundle parceled = Bundles.forceParceling(mStorage.asBundle(orig)); in testReadWrite()
50 Selection<String> restored = mStorage.asSelection(parceled); in testReadWrite()
DStorageStrategy_ParcelableTest.java49 private StorageStrategy<Uri> mStorage; field in StorageStrategy_ParcelableTest
53 mStorage = StorageStrategy.createParcelableStorage(Uri.class); in setUp()
64 Bundle parceled = Bundles.forceParceling(mStorage.asBundle(orig)); in testReadWrite()
65 Selection<Uri> restored = mStorage.asSelection(parceled); in testReadWrite()
/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()
/frameworks/av/media/libaaudio/src/fifo/
DFifoBuffer.cpp37 , mStorage(nullptr) in FifoBuffer()
46 mStorage = new uint8_t[bytesPerBuffer]; in FifoBuffer()
60 , mStorage(static_cast<uint8_t *>(dataStorageAddress)) in FifoBuffer()
74 delete[] mStorage; in ~FifoBuffer()
90 uint8_t *source = &mStorage[convertFramesToBytes(startIndex)]; in fillWrappingBuffer()
96 wrappingBuffer->data[1] = &mStorage[0]; in fillWrappingBuffer()
218 memset(mStorage, 0, (size_t) numBytes); in eraseMemory()
/frameworks/support/preference/src/main/java/androidx/preference/
DPreferenceManager.java97 private int mStorage = STORAGE_DEFAULT; field in PreferenceManager
219 mStorage = STORAGE_DEFAULT; in setStorageDefault()
246 mStorage = STORAGE_DEVICE_PROTECTED; in setStorageDeviceProtected()
260 return mStorage == STORAGE_DEFAULT; in isStorageDefault()
275 return mStorage == STORAGE_DEVICE_PROTECTED; in isStorageDeviceProtected()
322 switch (mStorage) { in getSharedPreferences()
/frameworks/base/core/java/android/preference/
DPreferenceManager.java131 private int mStorage = STORAGE_DEFAULT; field in PreferenceManager
404 mStorage = STORAGE_DEFAULT; in setStorageDefault()
426 mStorage = STORAGE_DEVICE_PROTECTED; in setStorageDeviceProtected()
445 mStorage = STORAGE_CREDENTIAL_PROTECTED; in setStorageCredentialProtected()
457 return mStorage == STORAGE_DEFAULT; in isStorageDefault()
468 return mStorage == STORAGE_DEVICE_PROTECTED; in isStorageDeviceProtected()
481 return mStorage == STORAGE_CREDENTIAL_PROTECTED; in isStorageCredentialProtected()
498 switch (mStorage) { in getSharedPreferences()
/frameworks/support/paging/runtime/src/main/java/androidx/paging/
DAsyncPagedListDiffer.java300 oldSnapshot.mStorage, in submitList()
301 newSnapshot.mStorage, in submitList()
329 previousSnapshot.mStorage, newList.mStorage, diffResult); in latchPagedList()
/frameworks/base/core/jni/android/graphics/
DByteBufferStreamAdaptor.cpp21 , mStorage(storage) {} in ByteBufferStream()
51 env->DeleteGlobalRef(mStorage); in ~ByteBufferStream()
71 env->CallObjectMethod(mByteBuffer, gByteBuffer_getMethodID, mStorage, 0, jrequested); in read()
80 env->GetByteArrayRegion(mStorage, 0, requested, reinterpret_cast<jbyte*>(buffer)); in read()
168 jbyteArray mStorage; member in ByteBufferStream
DGraphicsJNI.h132 return mStorage.release(); in getStorageObjAndReset()
137 sk_sp<android::Bitmap> mStorage;
207 return mStorage.release(); in getStorageObjAndReset()
212 sk_sp<android::Bitmap> mStorage; variable
/frameworks/base/services/core/java/com/android/server/locksettings/
DSyntheticPasswordManager.java273 private LockSettingsStorage mStorage; field in SyntheticPasswordManager
282 mStorage = storage; in SyntheticPasswordManager()
405 for (long handle : mStorage.listSyntheticPasswordHandlesForUser(SP_BLOB_NAME, userId)) { in removeUser()
570 Map<Integer, List<Long>> slotHandles = mStorage.listSyntheticPasswordHandlesForAllUsers( in getUsedWeaverSlots()
661 PersistentData persistentData = mStorage.readPersistentDataBlock(); in verifyFrpCredential()
684 if (mStorage.getPersistentDataBlock() != null in migrateFrpPasswordLocked()
701 if (mStorage.getPersistentDataBlock() != null in synchronizeFrpPassword()
705 mStorage.writePersistentDataBlock(PersistentData.TYPE_SP, userId, requestedQuality, in synchronizeFrpPassword()
708 mStorage.writePersistentDataBlock(PersistentData.TYPE_NONE, userId, 0, null); in synchronizeFrpPassword()
715 if (mStorage.getPersistentDataBlock() != null in synchronizeWeaverFrpPassword()
[all …]
/frameworks/native/libs/ui/include/ui/
DRegion.h49 inline bool isRect() const { return mStorage.size() == 1; } in isRect()
51 inline Rect getBounds() const { return mStorage[mStorage.size() - 1]; } in getBounds()
177 Vector<Rect> mStorage; variable
/frameworks/native/libs/ui/include_vndk/ui/
DRegion.h49 inline bool isRect() const { return mStorage.size() == 1; } in isRect()
51 inline Rect getBounds() const { return mStorage[mStorage.size() - 1]; } in getBounds()
177 Vector<Rect> mStorage; variable

12