/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() 102 mStorage.closeDatabase(); in tearDown() 106 assertEquals("initialValue", mStorage.readKeyValue("initializedKey", "default", 0)); in testKeyValue_InitializeWorked() 107 mStorage.clearCache(); in testKeyValue_InitializeWorked() 108 assertEquals("initialValue", mStorage.readKeyValue("initializedKey", "default", 0)); in testKeyValue_InitializeWorked() 112 mStorage.writeKeyValue("key", "value", 0); in testKeyValue_WriteThenRead() 113 assertEquals("value", mStorage.readKeyValue("key", "default", 0)); in testKeyValue_WriteThenRead() 114 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/util/ |
D | Maybe.h | 105 typename std::aligned_storage<sizeof(T), alignof(T)>::type mStorage; variable 124 new (&mStorage) T(reinterpret_cast<const T&>(rhs.mStorage)); in Maybe() 133 new (&mStorage) T(reinterpret_cast<const U&>(rhs.mStorage)); in Maybe() 144 new (&mStorage) T(std::move(reinterpret_cast<T&>(rhs.mStorage))); in Maybe() 157 new (&mStorage) T(std::move(reinterpret_cast<U&>(rhs.mStorage))); in Maybe() 182 reinterpret_cast<T&>(mStorage) = reinterpret_cast<const U&>(rhs.mStorage); in copy() 188 new (&mStorage) T(reinterpret_cast<const U&>(rhs.mStorage)); in copy() 218 reinterpret_cast<T&>(mStorage) = std::move(reinterpret_cast<U&>(rhs.mStorage)); in move() 226 new (&mStorage) T(std::move(reinterpret_cast<U&>(rhs.mStorage))); in move() 239 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/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/packages/DocumentsUI/tests/src/com/android/documentsui/ |
D | StubProvider.java | 87 private final Map<String, StubDocument> mStorage = new HashMap<>(); field in StubProvider 111 mStorage.clear(); in clearCacheAndBuildRoots() 134 mStorage.put(rootInfo.document.documentId, rootInfo.document); in clearCacheAndBuildRoots() 169 final StubDocument file = mStorage.get(documentId); in queryDocument() 179 final StubDocument parentDocument = mStorage.get(parentDocId); in isChildDocument() 180 final StubDocument childDocument = mStorage.get(docId); in isChildDocument() 187 StubDocument parent = mStorage.get(parentId); in createDocument() 191 mStorage.put(document.documentId, document); in createDocument() 204 final StubDocument document = mStorage.get(documentId); in deleteDocument() 210 mStorage.remove(documentId); in deleteDocument() [all …]
|
/frameworks/support/v7/preference/src/android/support/v7/preference/ |
D | PreferenceManager.java | 84 private int mStorage = STORAGE_DEFAULT; field in PreferenceManager 200 mStorage = STORAGE_DEFAULT; in setStorageDefault() 227 mStorage = STORAGE_DEVICE_PROTECTED; in setStorageDeviceProtected() 250 return mStorage == STORAGE_DEFAULT; in isStorageDefault() 265 return mStorage == STORAGE_DEVICE_PROTECTED; in isStorageDeviceProtected() 281 switch (mStorage) { in getSharedPreferences()
|
/frameworks/base/services/core/java/com/android/server/ |
D | LockSettingsService.java | 123 private final LockSettingsStorage mStorage; field in LockSettingsService 233 if (mStorage.hasChildProfileLock(managedUserId)) { in tieManagedProfileLockIfNecessary() 238 if (!mStorage.hasPassword(parentId) && !mStorage.hasPattern(parentId)) { in tieManagedProfileLockIfNecessary() 275 mStorage = new LockSettingsStorage(context, new LockSettingsStorage.Callback() { in LockSettingsService() 282 mStorage.writeKeyValue(db, LockPatternUtils.DISABLE_LOCKSCREEN_KEY, "1", 0); in LockSettingsService() 435 mStorage.prefetchUser(userHandle); 454 mStorage.prefetchUser(UserHandle.USER_SYSTEM); in systemReady() 564 if (userInfo.isManagedProfile() && mStorage.hasChildProfileLock(userInfo.id)) { in migrateOldData() 636 mStorage.removeChildProfileLock(userId); in setSeparateProfileChallengeEnabled() 663 mStorage.writeKeyValue(key, value, userId); in setStringUnchecked() [all …]
|
/frameworks/base/core/java/android/preference/ |
D | PreferenceManager.java | 119 private int mStorage = STORAGE_DEFAULT; field in PreferenceManager 357 mStorage = STORAGE_DEFAULT; in setStorageDefault() 379 mStorage = STORAGE_DEVICE_PROTECTED; in setStorageDeviceProtected() 404 mStorage = STORAGE_CREDENTIAL_PROTECTED; in setStorageCredentialProtected() 422 return mStorage == STORAGE_DEFAULT; in isStorageDefault() 433 return mStorage == STORAGE_DEVICE_PROTECTED; in isStorageDeviceProtected() 446 return mStorage == STORAGE_CREDENTIAL_PROTECTED; in isStorageCredentialProtected() 459 switch (mStorage) { in getSharedPreferences()
|
/frameworks/base/core/jni/android/graphics/ |
D | GraphicsJNI.h | 139 android::Bitmap* result = mStorage; in getStorageObjAndReset() 140 mStorage = NULL; in getStorageObjAndReset() 152 android::Bitmap* mStorage = nullptr; variable 222 android::Bitmap* result = mStorage; in getStorageObjAndReset() 223 mStorage = NULL; in getStorageObjAndReset() 229 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() 774 if (mStorage) { in ~AshmemPixelAllocator() 775 mStorage->detachFromJava(); in ~AshmemPixelAllocator() 781 mStorage = GraphicsJNI::allocateAshmemPixelRef(env, bitmap, ctable); in allocPixelRef() 782 return mStorage != nullptr; in allocPixelRef()
|
D | Bitmap.cpp | 41 , mStorage(storage) { in WrappedPixelRef() 82 setPreLocked(mStorage, mRowBytes, mColorTable); in reconfigure() 103 rec->fPixels = mStorage; in onNewLockPixels() 119 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 | 49 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
|