/external/libbackup/src/com/google/android/libraries/backup/shadow/ |
D | SharedPreferencesBackupHelperSimulator.java | 30 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 …]
|
D | FileBackupHelperSimulator.java | 30 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()
|
D | BackupAgentHelperShadow.java | 135 public void addHelper(String keyPrefix, BackupHelper helper) { in addHelper() argument 140 keyPrefix, (SharedPreferencesBackupHelper) helper); in addHelper() 142 simulator = FileBackupHelperSimulator.fromHelper(keyPrefix, (FileBackupHelper) helper); in addHelper() 145 "Unknown backup helper class for key prefix \"" + keyPrefix + "\": " + helperClass); 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() 174 Log.w(TAG, "No data to restore for key prefix: \"" + keyPrefix + "\"."); in onRestore()
|
D | BackupHelperSimulator.java | 14 protected final String keyPrefix; field in BackupHelperSimulator 16 public BackupHelperSimulator(String keyPrefix) { in BackupHelperSimulator() argument 17 this.keyPrefix = Preconditions.checkNotNull(keyPrefix); in BackupHelperSimulator()
|
/external/vogar/src/vogar/ |
D | Md5Cache.java | 31 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/ |
D | CacheExpirationTest.java | 400 FakeTicker ticker, String keyPrefix, long ttl) { in runRemovalScheduler() argument 406 assertEquals(Integer.valueOf(i + shift1), cache.getUnchecked(keyPrefix + i)); in runRemovalScheduler() 421 cache.invalidate(keyPrefix + i); in runRemovalScheduler() 422 assertEquals("key: " + keyPrefix + i, in runRemovalScheduler() 423 Integer.valueOf(i + shift2), cache.getUnchecked(keyPrefix + i)); in runRemovalScheduler() 437 assertEquals(Integer.valueOf(i + shift2), cache.getUnchecked(keyPrefix + i)); in runRemovalScheduler() 451 String keyPrefix = KEY_PREFIX; field in CacheExpirationTest.WatchedCreatorLoader 465 public void setKeyPrefix(String keyPrefix) { in setKeyPrefix() argument 466 this.keyPrefix = keyPrefix; in setKeyPrefix() 475 return valuePrefix + Integer.parseInt(key.substring(keyPrefix.length())); in load()
|
/external/python/cpython2/PC/os2vacpp/ |
D | getpathp.c | 157 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/ |
D | import_nt.c | 24 const char keyPrefix[] = "Software\\Python\\PythonCore\\"; in PyWin_FindRegisteredModule() local 43 size_t bufSize = sizeof(keyPrefix)-1 + in PyWin_FindRegisteredModule()
|
D | getpathp.c | 232 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/ |
D | getpathp.c | 364 static const WCHAR keyPrefix[] = L"Software\\Python\\PythonCore\\"; in getpythonregpath() local 375 keyBufLen = sizeof(keyPrefix) + in getpythonregpath() 383 memcpy_s(keyBufPtr, keyBufLen, keyPrefix, sizeof(keyPrefix)-sizeof(WCHAR)); in getpythonregpath() 384 keyBufPtr += Py_ARRAY_LENGTH(keyPrefix) - 1; in getpythonregpath()
|