Home
last modified time | relevance | path

Searched refs:keyPrefix (Results 1 – 12 of 12) sorted by relevance

/external/libbackup/src/com/google/android/libraries/backup/shadow/
DSharedPreferencesBackupHelperSimulator.java30 private SharedPreferencesBackupHelperSimulator(String keyPrefix, Set<String> prefGroups) { in SharedPreferencesBackupHelperSimulator() argument
31 super(keyPrefix); in SharedPreferencesBackupHelperSimulator()
36 String keyPrefix, Set<String> prefGroups) { in fromPreferenceGroups() argument
37 return new SharedPreferencesBackupHelperSimulator(keyPrefix, prefGroups); in fromPreferenceGroups()
41 String keyPrefix, SharedPreferencesBackupHelper helper) { in fromHelper() argument
43 keyPrefix, extractPreferenceGroupsFromHelper(helper)); in fromHelper()
89 Log.w(TAG, "Shared prefs \"" + prefGroup + "\" are empty. The helper \"" + keyPrefix in backup()
111 + keyPrefix + "\": " + data.getClass()); in restore()
125 + keyPrefix + "\" because the corresponding file is missing in the restored data."); in restore()
128 + keyPrefix + "\" because the corresponding file is empty in the restored data."); in restore()
[all …]
DBackupAgentHelperShadow.java134 public void addHelper(String keyPrefix, BackupHelper helper) { in addHelper() argument
139 keyPrefix, (SharedPreferencesBackupHelper) helper); in addHelper()
141 simulator = FileBackupHelperSimulator.fromHelper(keyPrefix, (FileBackupHelper) helper); in addHelper()
144 TAG, "Unknown backup helper class for key prefix \"" + keyPrefix + "\": " + helperClass); in addHelper()
145 simulator = new UnsupportedBackupHelperSimulator(keyPrefix, helper); in addHelper()
147 helperSimulators.put(keyPrefix, simulator); in addHelper()
156 String keyPrefix = simulatorEntry.getKey(); in onBackup() local
158 backupDataMapBuilder.put(keyPrefix, simulator.backup(realHelper)); in onBackup()
171 String keyPrefix = simulatorEntry.getKey(); in onRestore() local
172 Object dataToRestore = backupDataMap.get(keyPrefix); in onRestore()
[all …]
DFileBackupHelperSimulator.java30 private FileBackupHelperSimulator(String keyPrefix, Set<String> fileNames) { in FileBackupHelperSimulator() argument
31 super(keyPrefix); in FileBackupHelperSimulator()
35 public static FileBackupHelperSimulator fromFileNames(String keyPrefix, Set<String> fileNames) { in fromFileNames() argument
36 return new FileBackupHelperSimulator(keyPrefix, fileNames); in fromFileNames()
39 public static FileBackupHelperSimulator fromHelper(String keyPrefix, FileBackupHelper helper) { in fromHelper() argument
40 return new FileBackupHelperSimulator(keyPrefix, extractFileNamesFromHelper(helper)); in fromHelper()
129 Log.w(TAG, "File \"" + fileName + "\" not found by helper \"" + keyPrefix + "\"."); in backup()
141 + keyPrefix + "\": " + data.getClass()); in restore()
149 Log.w(TAG, "File \"" + fileName + "\" ignored by helper \"" + keyPrefix + "\"."); in restore()
DBackupHelperSimulator.java14 protected final String keyPrefix; field in BackupHelperSimulator
16 public BackupHelperSimulator(String keyPrefix) { in BackupHelperSimulator() argument
17 this.keyPrefix = Preconditions.checkNotNull(keyPrefix); in BackupHelperSimulator()
DUnsupportedBackupHelperSimulator.java16 UnsupportedBackupHelperSimulator(String keyPrefix, BackupHelper helper) { in UnsupportedBackupHelperSimulator() argument
17 super(keyPrefix); in UnsupportedBackupHelperSimulator()
31 + keyPrefix in restore()
/external/vogar/src/vogar/
DMd5Cache.java31 private final String keyPrefix; field in Md5Cache
38 public Md5Cache(Log log, String keyPrefix, FileCache fileCache) { in Md5Cache() argument
40 this.keyPrefix = keyPrefix; in Md5Cache()
106 String key = keyPrefix; in makeKey()
122 return keyPrefix + "-" + md5(file); in makeKey()
134 return keyPrefix + "-" + md5(sb.toString()); in makeKey()
/external/guava/guava-tests/test/com/google/common/cache/
DCacheExpirationTest.java434 String keyPrefix, in runRemovalScheduler() argument
441 assertEquals(Integer.valueOf(i + shift1), cache.getUnchecked(keyPrefix + i)); in runRemovalScheduler()
456 cache.invalidate(keyPrefix + i); in runRemovalScheduler()
458 "key: " + keyPrefix + i, Integer.valueOf(i + shift2), cache.getUnchecked(keyPrefix + i)); in runRemovalScheduler()
472 assertEquals(Integer.valueOf(i + shift2), cache.getUnchecked(keyPrefix + i)); in runRemovalScheduler()
486 String keyPrefix = KEY_PREFIX; field in CacheExpirationTest.WatchedCreatorLoader
499 public void setKeyPrefix(String keyPrefix) { in setKeyPrefix() argument
500 this.keyPrefix = keyPrefix; in setKeyPrefix()
510 return valuePrefix + Integer.parseInt(key.substring(keyPrefix.length())); in load()
/external/guava/android/guava-tests/test/com/google/common/cache/
DCacheExpirationTest.java434 String keyPrefix, in runRemovalScheduler() argument
441 assertEquals(Integer.valueOf(i + shift1), cache.getUnchecked(keyPrefix + i)); in runRemovalScheduler()
456 cache.invalidate(keyPrefix + i); in runRemovalScheduler()
458 "key: " + keyPrefix + i, Integer.valueOf(i + shift2), cache.getUnchecked(keyPrefix + i)); in runRemovalScheduler()
472 assertEquals(Integer.valueOf(i + shift2), cache.getUnchecked(keyPrefix + i)); in runRemovalScheduler()
486 String keyPrefix = KEY_PREFIX; field in CacheExpirationTest.WatchedCreatorLoader
499 public void setKeyPrefix(String keyPrefix) { in setKeyPrefix() argument
500 this.keyPrefix = keyPrefix; in setKeyPrefix()
510 return valuePrefix + Integer.parseInt(key.substring(keyPrefix.length())); in load()
/external/python/cpython2/PC/os2vacpp/
Dgetpathp.c157 const char keyPrefix[] = "Software\\Python\\PythonCore\\"; in getpythonregpath() local
166 … keyBuf = alloca(sizeof(keyPrefix)-1 + versionLen + sizeof(keySuffix)); // chars only, plus 1 NULL. in getpythonregpath()
168 memcpy(keyBuf, keyPrefix, sizeof(keyPrefix)-1); in getpythonregpath()
169 memcpy(keyBuf+sizeof(keyPrefix)-1, PyWin_DLLVersionString, versionLen); in getpythonregpath()
170 …memcpy(keyBuf+sizeof(keyPrefix)-1+versionLen, keySuffix, sizeof(keySuffix)); // NULL comes with th… in getpythonregpath()
/external/python/cpython2/PC/
Dimport_nt.c24 const char keyPrefix[] = "Software\\Python\\PythonCore\\"; in PyWin_FindRegisteredModule() local
43 size_t bufSize = sizeof(keyPrefix)-1 + in PyWin_FindRegisteredModule()
Dgetpathp.c232 static const TCHAR keyPrefix[] = _T("Software\\Python\\PythonCore\\"); in getpythonregpath() local
243 keyBuf = keyBufPtr = malloc(sizeof(keyPrefix) + in getpythonregpath()
248 memcpy(keyBufPtr, keyPrefix, sizeof(keyPrefix)-sizeof(TCHAR)); in getpythonregpath()
249 keyBufPtr += sizeof(keyPrefix)/sizeof(TCHAR) - 1; in getpythonregpath()
/external/python/cpython3/PC/
Dgetpathp.c347 static const WCHAR keyPrefix[] = L"Software\\Python\\PythonCore\\"; in getpythonregpath() local
358 keyBufLen = sizeof(keyPrefix) + in getpythonregpath()
366 memcpy_s(keyBufPtr, keyBufLen, keyPrefix, sizeof(keyPrefix)-sizeof(WCHAR)); in getpythonregpath()
367 keyBufPtr += Py_ARRAY_LENGTH(keyPrefix) - 1; in getpythonregpath()