Home
last modified time | relevance | path

Searched refs:mBackupHelper (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/core/java/com/android/server/grammaticalinflection/
DGrammaticalInflectionPackageMonitor.java22 private GrammaticalInflectionBackupHelper mBackupHelper; field in GrammaticalInflectionPackageMonitor
25 mBackupHelper = backupHelper; in GrammaticalInflectionPackageMonitor()
30 mBackupHelper.onPackageAdded(packageName, uid); in onPackageAdded()
35 mBackupHelper.onPackageDataCleared(); in onPackageDataCleared()
40 mBackupHelper.onPackageRemoved(); in onPackageRemoved()
DGrammaticalInflectionService.java80 private final GrammaticalInflectionBackupHelper mBackupHelper; field in GrammaticalInflectionService
105 mBackupHelper = new GrammaticalInflectionBackupHelper(mContext.getAttributionSource(), this, in GrammaticalInflectionService()
168 return mBackupHelper.getBackupPayload(userId); in getBackupPayload()
173 mBackupHelper.stageAndApplyRestoredPayload(payload, userId); in stageAndApplyRestoredPayload()
180 return mBackupHelper.getSystemBackupPayload(userId); in getSystemBackupPayload()
185 mBackupHelper.applyRestoredSystemPayload(payload, userId); in applyRestoredSystemPayload()
/frameworks/base/services/core/java/com/android/server/locales/
DLocaleManagerServicePackageMonitor.java39 private LocaleManagerBackupHelper mBackupHelper; field in LocaleManagerServicePackageMonitor
46 mBackupHelper = localeManagerBackupHelper; in LocaleManagerServicePackageMonitor()
53 mBackupHelper.onPackageAddedWithExtras(packageName, uid, extras); in onPackageAddedWithExtras()
58 mBackupHelper.onPackageDataCleared(packageName, uid); in onPackageDataCleared()
63 mBackupHelper.onPackageRemoved(packageName, uid); in onPackageRemoved()
69 mBackupHelper.onPackageUpdateFinished(packageName, uid); in onPackageUpdateFinished()
DLocaleManagerService.java101 private LocaleManagerBackupHelper mBackupHelper; field in LocaleManagerService
130 mBackupHelper = new LocaleManagerBackupHelper(this, in LocaleManagerService()
132 mPackageMonitor = new LocaleManagerServicePackageMonitor(mBackupHelper, in LocaleManagerService()
151 mBackupHelper = localeManagerBackupHelper; in LocaleManagerService()
166 return mBackupHelper.getBackupPayload(userId); in getBackupPayload()
171 mBackupHelper.stageAndApplyRestoredPayload(payload, userId); in stageAndApplyRestoredPayload()
258 mBackupHelper.persistLocalesModificationInfo(userId, appPackageName, fromDelegate, in setApplicationLocales()
293 mBackupHelper.notifyBackupManager(); in setApplicationLocalesUnchecked()
726 mBackupHelper.areLocalesSetFromDelegate(userId, appPackageName), caller); in removeUnsupportedAppLocales()
/frameworks/base/services/tests/servicestests/src/com/android/server/locales/
DLocaleManagerBackupRestoreTest.java109 private LocaleManagerBackupHelper mBackupHelper; field in LocaleManagerBackupRestoreTest
161 mBackupHelper = spy(new ShadowLocaleManagerBackupHelper(mContext, in setUp()
164 doNothing().when(mBackupHelper).notifyBackupManager(); in setUp()
166 mUserMonitor = mBackupHelper.getUserMonitor(); in setUp()
167 mPackageMonitor = new LocaleManagerServicePackageMonitor(mBackupHelper, in setUp()
191 assertNull(mBackupHelper.getBackupPayload(DEFAULT_USER_ID)); in testBackupPayload_noAppsInstalled_returnsNull()
199 assertNull(mBackupHelper.getBackupPayload(DEFAULT_USER_ID)); in testBackupPayload_noAppLocalesSet_returnsNull()
208 byte[] payload = mBackupHelper.getBackupPayload(DEFAULT_USER_ID); in testBackupPayload_appLocalesSet_returnsNonNullBlob()
220 byte[] payload = mBackupHelper.getBackupPayload(DEFAULT_USER_ID); in testBackupPayload_appLocalesSet_fromDelegateSelector()
231 assertNull(mBackupHelper.getBackupPayload(DEFAULT_USER_ID)); in testBackupPayload_exceptionInGetLocalesAllPackages_returnsNull()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/grammaticalinflection/
DGrammaticalInflectionBackupTest.java67 private GrammaticalInflectionBackupHelper mBackupHelper; field in GrammaticalInflectionBackupTest
71 mBackupHelper = new GrammaticalInflectionBackupHelper( in setUp()
77 assertNull(mBackupHelper.getBackupPayload(DEFAULT_USER_ID)); in testBackupPayload_noAppsInstalled_returnsNull()
87 readFromByteArray(mBackupHelper.getBackupPayload(DEFAULT_USER_ID)); in testBackupPayload_AppsInstalled_returnsGender()
102 mBackupHelper.stageAndApplyRestoredPayload(convertToByteArray(testData), DEFAULT_USER_ID); in testApplyPayload_onPackageAdded_setApplicationGrammaticalGender()
103 mBackupHelper.onPackageAdded(DEFAULT_PACKAGE_NAME, DEFAULT_USER_ID); in testApplyPayload_onPackageAdded_setApplicationGrammaticalGender()
117 int gender = convertByteArrayToInt(mBackupHelper.getSystemBackupPayload(DEFAULT_USER_ID)); in testSystemBackupPayload_returnsGender()
125 mBackupHelper.applyRestoredSystemPayload( in testApplySystemPayload_setSystemWideGrammaticalGender()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerService.java6555 private AccountManagerBackupHelper mBackupHelper;
6628 if (mBackupHelper == null) {
6629 mBackupHelper = new AccountManagerBackupHelper(
6632 return mBackupHelper.backupAccountAccessPermissions(userId);
6639 if (mBackupHelper == null) {
6640 mBackupHelper = new AccountManagerBackupHelper(
6643 mBackupHelper.restoreAccountAccessPermissions(data, userId);