/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | LockSettingsStorageTests.java | 34 LockSettingsStorage mStorage; field in LockSettingsStorageTests 73 mStorage = new LockSettingsStorage(getContext(), new LockSettingsStorage.Callback() { in setUp() 76 mStorage.writeKeyValue(db, "initializedKey", "initialValue", 0); in setUp() 96 mStorage.closeDatabase(); in tearDown() 100 assertEquals("initialValue", mStorage.readKeyValue("initializedKey", "default", 0)); in testKeyValue_InitializeWorked() 101 mStorage.clearCache(); in testKeyValue_InitializeWorked() 102 assertEquals("initialValue", mStorage.readKeyValue("initializedKey", "default", 0)); in testKeyValue_InitializeWorked() 106 mStorage.writeKeyValue("key", "value", 0); in testKeyValue_WriteThenRead() 107 assertEquals("value", mStorage.readKeyValue("key", "default", 0)); in testKeyValue_WriteThenRead() 108 mStorage.clearCache(); in testKeyValue_WriteThenRead() [all …]
|
/frameworks/ex/common/java/com/android/common/ |
D | OperationScheduler.java | 76 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() 203 return mStorage.getLong(PREFIX + "lastSuccessTimeMillis", 0); in getLastSuccessTimeMillis() 214 mStorage.getLong(PREFIX + "lastSuccessTimeMillis", 0), in getLastAttemptTimeMillis() 215 mStorage.getLong(PREFIX + "lastErrorTimeMillis", 0)); in getLastAttemptTimeMillis() 228 long time = mStorage.getLong(name, 0); in getTimeBefore() [all …]
|
/frameworks/base/tools/aapt2/ |
D | Maybe.h | 103 typename std::aligned_storage<sizeof(T), alignof(T)>::type mStorage; variable 122 new (&mStorage) T(reinterpret_cast<const T&>(rhs.mStorage)); in Maybe() 131 new (&mStorage) T(reinterpret_cast<const U&>(rhs.mStorage)); in Maybe() 142 new (&mStorage) T(std::move(reinterpret_cast<T&>(rhs.mStorage))); in Maybe() 155 new (&mStorage) T(std::move(reinterpret_cast<U&>(rhs.mStorage))); in Maybe() 180 reinterpret_cast<T&>(mStorage) = reinterpret_cast<const U&>(rhs.mStorage); in copy() 186 new (&mStorage) T(reinterpret_cast<const U&>(rhs.mStorage)); in copy() 216 reinterpret_cast<T&>(mStorage) = std::move(reinterpret_cast<U&>(rhs.mStorage)); in move() 224 new (&mStorage) T(std::move(reinterpret_cast<U&>(rhs.mStorage))); in move() 237 new (&mStorage) T(value); in Maybe() [all …]
|
/frameworks/native/services/surfaceflinger/EventLog/ |
D | EventLog.cpp | 61 } 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 …]
|
D | EventLog.h | 53 char mStorage[STORAGE_MAX_SIZE]; variable
|
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/ |
D | CopyTest.java | 119 private StubProvider mStorage; field in CopyTest 130 mStorage.clearCacheAndBuildRoots(); in setUp() 157 Uri testFile = mStorage.createFile(SRC, srcPath, "text/plain", in testCopyFile() 187 mStorage.createFile(SRC, srcPaths[0], "text/plain", testContent[0].getBytes()), in testCopyMultipleFiles() 188 mStorage.createFile(SRC, srcPaths[1], "text/plain", testContent[1].getBytes()), in testCopyMultipleFiles() 189 mStorage.createFile(SRC, srcPaths[2], "text/plain", testContent[2].getBytes())); in testCopyMultipleFiles() 207 Uri testDir = mStorage.createFile(SRC, srcPath, DocumentsContract.Document.MIME_TYPE_DIR, in testCopyEmptyDir() 219 File dst = mStorage.getFile(DST, srcPath); in testCopyEmptyDir() 225 Uri testFile = mStorage.createFile(SRC, srcPath, "text/plain", in testReadErrors() 230 mStorage.simulateReadErrors(true); in testReadErrors() [all …]
|
D | StubProvider.java | 70 private HashMap<String, StubDocument> mStorage = new HashMap<String, StubDocument>(); field in StubProvider 93 mStorage.clear(); in clearCacheAndBuildRoots() 141 final StubDocument file = mStorage.get(documentId); in queryDocument() 151 final StubDocument parentDocument = mStorage.get(parentDocId); in isChildDocument() 152 final StubDocument childDocument = mStorage.get(docId); in isChildDocument() 159 final StubDocument parentDocument = mStorage.get(parentDocumentId); in createDocument() 190 final StubDocument document = mStorage.get(documentId); in deleteDocument() 206 final StubDocument parentDocument = mStorage.get(parentDocumentId); in queryChildDocuments() 216 document = mStorage.get(getDocumentIdForFile(file)); in queryChildDocuments() 235 final StubDocument document = mStorage.get(docId); in openDocument() [all …]
|
/frameworks/native/libs/ui/ |
D | Region.cpp | 61 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/base/services/core/java/com/android/server/ |
D | LockSettingsService.java | 72 private final LockSettingsStorage mStorage; field in LockSettingsService 98 mStorage = new LockSettingsStorage(context, new LockSettingsStorage.Callback() { in LockSettingsService() 105 mStorage.writeKeyValue(db, LockPatternUtils.DISABLE_LOCKSCREEN_KEY, "1", 0); in LockSettingsService() 124 mStorage.prefetchUser(userHandle); 141 mStorage.prefetchUser(UserHandle.USER_OWNER); in systemReady() 307 mStorage.writeKeyValue(key, value, userId); in setStringUnchecked() 346 return mStorage.readKeyValue(key, defaultValue, userId); in getStringUnchecked() 353 return mStorage.hasPassword(userId); in havePassword() 360 return mStorage.hasPattern(userId); in havePattern() 388 int currentHandleType = mStorage.getStoredCredentialType(userId); in getCurrentHandle() [all …]
|
/frameworks/base/core/jni/android/graphics/ |
D | GraphicsJNI.h | 137 android::Bitmap* result = mStorage; in getStorageObjAndReset() 138 mStorage = NULL; in getStorageObjAndReset() 144 android::Bitmap* mStorage = nullptr; variable 153 android::Bitmap* result = mStorage; in getStorageObjAndReset() 154 mStorage = NULL; in getStorageObjAndReset() 160 android::Bitmap* mStorage = nullptr; variable
|
D | Graphics.cpp | 666 if (mStorage) { in ~JavaPixelAllocator() 667 mStorage->detachFromJava(); in ~JavaPixelAllocator() 674 mStorage = GraphicsJNI::allocateJavaPixelRef(env, bitmap, ctable); in allocPixelRef() 675 return mStorage != nullptr; in allocPixelRef() 686 if (mStorage) { in ~AshmemPixelAllocator() 687 mStorage->detachFromJava(); in ~AshmemPixelAllocator() 693 mStorage = GraphicsJNI::allocateAshmemPixelRef(env, bitmap, ctable); in allocPixelRef() 694 return mStorage != nullptr; in allocPixelRef()
|
D | Bitmap.cpp | 40 , mStorage(storage) { in WrappedPixelRef() 81 setPreLocked(mStorage, mRowBytes, mColorTable); in reconfigure() 102 rec->fPixels = mStorage; in onNewLockPixels() 118 void* mStorage; member in android::WrappedPixelRef
|
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/ |
D | ClusterManager.java | 72 private AggregatorRecordStorage mStorage; field in ClusterManager 102 mStorage = new AggregatorRecordStorage(context, SEMANTIC_TABLE, SEMANTIC_COLUMNS); in ClusterManager() 258 List<Map<String, String> > allData = mStorage.getAllData(); in loadSemanticClusters() 289 mStorage.removeAllData(); in saveSemanticClusters() 306 mStorage.addData(rowFeatures); in saveSemanticClusters()
|
/frameworks/native/include/ui/ |
D | Region.h | 50 inline bool isRect() const { return mStorage.size() == 1; } in isRect() 52 inline Rect getBounds() const { return mStorage[mStorage.size() - 1]; } in getBounds() 183 Vector<Rect> mStorage; variable
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageInstallerService.java | 159 private StorageManager mStorage; field in PackageInstallerService 243 mStorage = mContext.getSystemService(StorageManager.class); in systemReady()
|