Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/
DLockSettingsStorageTests.java34 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/
DOperationScheduler.java77 private final SharedPreferences mStorage; field in OperationScheduler
84 mStorage = storage; in OperationScheduler()
152 boolean enabledState = mStorage.getBoolean(PREFIX + "enabledState", true); in getNextTimeMillis()
155 boolean permanentError = mStorage.getBoolean(PREFIX + "permanentError", false); in getNextTimeMillis()
162 int errorCount = mStorage.getInt(PREFIX + "errorCount", 0); in getNextTimeMillis()
166 long triggerTimeMillis = mStorage.getLong(PREFIX + "triggerTimeMillis", Long.MAX_VALUE); in getNextTimeMillis()
204 return mStorage.getLong(PREFIX + "lastSuccessTimeMillis", 0); in getLastSuccessTimeMillis()
215 mStorage.getLong(PREFIX + "lastSuccessTimeMillis", 0), in getLastAttemptTimeMillis()
216 mStorage.getLong(PREFIX + "lastErrorTimeMillis", 0)); in getLastAttemptTimeMillis()
229 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 …]
DEventLog.h53 char mStorage[STORAGE_MAX_SIZE]; variable
/frameworks/native/libs/ui/
DRegion.cpp59 mStorage.add(Rect(0,0)); in Region()
63 : mStorage(rhs.mStorage) in Region()
71 mStorage.add(rhs); in Region()
195 outputRegion.mStorage, direction_LTR); in createTJunctionFreeRegion()
196 outputRegion.mStorage.add(r.getBounds()); // to make region valid, mStorage must end with bounds in createTJunctionFreeRegion()
211 mStorage = rhs.mStorage; in operator =()
217 if (mStorage.size() >= 2) { in makeBoundsSelf()
219 mStorage.clear(); in makeBoundsSelf()
220 mStorage.add(bounds); in makeBoundsSelf()
243 mStorage.clear(); in clear()
[all …]
/frameworks/base/services/core/java/com/android/server/
DLockSettingsService.java69 private final LockSettingsStorage mStorage; field in LockSettingsService
86 mStorage = new LockSettingsStorage(context, new LockSettingsStorage.Callback() { in LockSettingsService()
93 mStorage.writeKeyValue(db, LockPatternUtils.DISABLE_LOCKSCREEN_KEY, "1", 0); in LockSettingsService()
119 mStorage.prefetchUser(userHandle);
126 mStorage.prefetchUser(UserHandle.USER_OWNER); in systemReady()
227 mStorage.writeKeyValue(key, value, userId); in setStringUnchecked()
234 String value = mStorage.readKeyValue(key, null, userId); in getBoolean()
243 String value = mStorage.readKeyValue(key, null, userId); in getLong()
251 return mStorage.readKeyValue(key, defaultValue, userId); in getString()
258 return mStorage.hasPassword(userId); in havePassword()
[all …]
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
DClusterManager.java72 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/
DRegion.h48 inline bool isRect() const { return mStorage.size() == 1; } in isRect()
50 inline Rect getBounds() const { return mStorage[mStorage.size() - 1]; } in getBounds()
180 Vector<Rect> mStorage; variable