Home
last modified time | relevance | path

Searched refs:mBackupManager (Results 1 – 19 of 19) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/backup/
DBackupSettingsHelperTest.java73 private static IBackupManager mBackupManager; field in BackupSettingsHelperTest
81 when(mBackupManager.getCurrentTransport()).thenReturn("test_transport"); in setUp()
89 when(mBackupManager.isBackupEnabled()).thenReturn(true); in testGetSummary_backupEnabledOnlyOneProfile_showsOn()
99 when(mBackupManager.isBackupEnabled()).thenReturn(false); in testGetSummary_backupDisabledOnlyOneProfile_showsOff()
110 when(mBackupManager.isBackupEnabled()).thenReturn(true); in testGetSummary_TwoProfiles_returnsNull()
121 when(mBackupManager.getDataManagementIntent(anyString())).thenReturn(intent); in testGetIntentFromBackupTransport()
127 verify(mBackupManager).getDataManagementIntent(anyString()); in testGetIntentFromBackupTransport()
134 when(mBackupManager.getDataManagementIntent(anyString())).thenReturn(intent); in testGetIntentFromBackupTransport_WithIntent()
143 when(mBackupManager.getDataManagementIntent(anyString())).thenReturn(null); in testGetIntentFromBackupTransport_WithNullIntent()
152 when(mBackupManager.getDataManagementIntent(anyString())).thenThrow(new RemoteException()); in testGetIntentFromBackupTransport_RemoteException()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DLocalBackupPasswordPreferenceControllerTest.java39 private IBackupManager mBackupManager; field in LocalBackupPasswordPreferenceControllerTest
56 ReflectionHelpers.setField(mController, "mBackupManager", mBackupManager); in updateState_hasBackupPassword_preferenceShouldHavePasswordSetSummary()
58 when(mBackupManager.hasBackupPassword()).thenReturn(true); in updateState_hasBackupPassword_preferenceShouldHavePasswordSetSummary()
69 ReflectionHelpers.setField(mController, "mBackupManager", mBackupManager); in updateState_noBackupPassword_preferenceShouldHaveNoPasswordSetSummary()
71 when(mBackupManager.hasBackupPassword()).thenReturn(false); in updateState_noBackupPassword_preferenceShouldHaveNoPasswordSetSummary()
83 when(mBackupManager.hasBackupPassword()).thenReturn(true); in updateState_backupManagerIsNull_shouldDisablePreference()
95 ReflectionHelpers.setField(mController, "mBackupManager", mBackupManager); in updateState_backupManagerIsNotNullAndNotAdminUser_shouldDisablePreference()
97 when(mBackupManager.hasBackupPassword()).thenReturn(true); in updateState_backupManagerIsNotNullAndNotAdminUser_shouldDisablePreference()
108 ReflectionHelpers.setField(mController, "mBackupManager", mBackupManager); in updateState_backupManagerIsNotNullAndAdminUser_shouldEnablePreference()
110 when(mBackupManager.hasBackupPassword()).thenReturn(true); in updateState_backupManagerIsNotNullAndAdminUser_shouldEnablePreference()
/packages/apps/Settings/src/com/android/settings/backup/
DBackupSettingsHelper.java44 private IBackupManager mBackupManager = IBackupManager.Stub.asInterface( field in BackupSettingsHelper
61 int resId = mBackupManager.isBackupEnabled() ? R.string.backup_summary_state_on in getSummary()
197 mBackupManager.getDataManagementIntent(mBackupManager.getCurrentTransport()); in getIntentFromBackupTransport()
216 backupOkay = mBackupManager.isBackupServiceActive(UserHandle.myUserId()); in isBackupServiceActive()
229 mBackupManager.getDataManagementLabelForUser( in getLabelFromBackupTransport()
230 UserHandle.myUserId(), mBackupManager.getCurrentTransport()); in getLabelFromBackupTransport()
245 mBackupManager.getDestinationString(mBackupManager.getCurrentTransport()); in getSummaryFromBackupTransport()
DToggleBackupSettingFragment.java42 private IBackupManager mBackupManager; field in ToggleBackupSettingFragment
57 mBackupManager = IBackupManager.Stub.asInterface( in onCreate()
94 boolean backupEnabled = mBackupManager == null ? in onViewCreated()
95 false : mBackupManager.isBackupEnabled(); in onViewCreated()
206 if (mBackupManager != null) { in setBackupEnabled()
208 mBackupManager.setBackupEnabled(enable); in setBackupEnabled()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/backup/
DBackupSettingsHelper.java44 private IBackupManager mBackupManager = IBackupManager.Stub.asInterface( field in BackupSettingsHelper
61 int resId = mBackupManager.isBackupEnabled() ? R.string.backup_summary_state_on in getSummary()
197 mBackupManager.getDataManagementIntent(mBackupManager.getCurrentTransport()); in getIntentFromBackupTransport()
216 backupOkay = mBackupManager.isBackupServiceActive(UserHandle.myUserId()); in isBackupServiceActive()
229 mBackupManager.getDataManagementLabelForUser( in getLabelFromBackupTransport()
230 UserHandle.myUserId(), mBackupManager.getCurrentTransport()); in getLabelFromBackupTransport()
245 mBackupManager.getDestinationString(mBackupManager.getCurrentTransport()); in getSummaryFromBackupTransport()
DToggleBackupSettingFragment.java42 private IBackupManager mBackupManager; field in ToggleBackupSettingFragment
57 mBackupManager = IBackupManager.Stub.asInterface( in onCreate()
94 boolean backupEnabled = mBackupManager == null ? in onViewCreated()
95 false : mBackupManager.isBackupEnabled(); in onViewCreated()
206 if (mBackupManager != null) { in setBackupEnabled()
208 mBackupManager.setBackupEnabled(enable); in setBackupEnabled()
/packages/apps/Settings/src/com/android/settings/development/
DLocalBackupPasswordPreferenceController.java38 private final IBackupManager mBackupManager; field in LocalBackupPasswordPreferenceController
44 mBackupManager = IBackupManager.Stub.asInterface( in LocalBackupPasswordPreferenceController()
59 preference.setEnabled(isAdminUser() && mBackupManager != null); in updatePasswordSummary()
60 if (mBackupManager == null) { in updatePasswordSummary()
64 if (mBackupManager.hasBackupPassword()) { in updatePasswordSummary()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/
DLocalBackupPasswordPreferenceController.java38 private final IBackupManager mBackupManager; field in LocalBackupPasswordPreferenceController
44 mBackupManager = IBackupManager.Stub.asInterface( in LocalBackupPasswordPreferenceController()
59 preference.setEnabled(isAdminUser() && mBackupManager != null); in updatePasswordSummary()
60 if (mBackupManager == null) { in updatePasswordSummary()
64 if (mBackupManager.hasBackupPassword()) { in updatePasswordSummary()
/packages/apps/Contacts/src/com/android/contacts/preference/
DContactsPreferences.java88 private final BackupManager mBackupManager; field in ContactsPreferences
102 mBackupManager = new BackupManager(mContext); in ContactsPreferences()
139 mBackupManager.dataChanged(); in setSortOrder()
169 mBackupManager.dataChanged(); in setDisplayOrder()
190 mBackupManager.dataChanged(); in setPhoneticNameDisplayPreference()
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
DUserDictionaryProvider.java98 private BackupManager mBackupManager; field in UserDictionaryProvider
146 mBackupManager = new BackupManager(getContext()); in onCreate()
251 mBackupManager.dataChanged(); in insert()
283 mBackupManager.dataChanged(); in delete()
312 mBackupManager.dataChanged(); in update()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DSetFullBackupPassword.java35 IBackupManager mBackupManager; field in SetFullBackupPassword
84 mBackupManager = IBackupManager.Stub.asInterface(ServiceManager.getService("backup")); in onCreate()
106 return mBackupManager.setBackupPassword(currentPw, newPw); in setBackupPassword()
/packages/apps/Settings/src/com/android/settings/
DSetFullBackupPassword.java35 IBackupManager mBackupManager; field in SetFullBackupPassword
84 mBackupManager = IBackupManager.Stub.asInterface(ServiceManager.getService("backup")); in onCreate()
106 return mBackupManager.setBackupPassword(currentPw, newPw); in setBackupPassword()
/packages/providers/BlockedNumberProvider/tests/src/com/android/providers/blockednumber/
DMyMockContext.java56 BackupManager mBackupManager; field in MyMockContext
122 mProvider = new BlockedNumberProviderTestable(mBackupManager); in initializeContext()
DBlockedNumberProviderTestable.java22 mBackupManager = backupManager; in BlockedNumberProviderTestable()
DBlockedNumberProviderTest.java180 verify(mMockContext.mBackupManager, times(2)).dataChanged(); in testChangesNotified()
/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/
DBlockedNumberProvider.java108 protected BackupManager mBackupManager; field in BlockedNumberProvider
113 mBackupManager = new BackupManager(getContext()); in onCreate()
139 mBackupManager.dataChanged(); in insert()
210 mBackupManager.dataChanged(); in delete()
/packages/apps/Nfc/src/com/android/nfc/
DNfcService.java229 private final BackupManager mBackupManager; field in NfcService
453 mBackupManager = new BackupManager(mContext); in NfcService()
789 mBackupManager.dataChanged(); in saveNfcOnSetting()
932 mBackupManager.dataChanged(); in enableNdefPush()
957 mBackupManager.dataChanged(); in setNfcSecure()
991 mBackupManager.dataChanged(); in disableNdefPush()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
DDevelopmentFragment.java166 private IBackupManager mBackupManager; field in DevelopmentFragment
261 mBackupManager = IBackupManager.Stub.asInterface( in onCreate()
689 if (mBackupManager.hasBackupPassword()) { in updatePasswordSummary()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherProvider.java569 private final BackupManager mBackupManager; field in LauncherProvider.DatabaseHelper
599 mBackupManager = new BackupManager(mContext); in DatabaseHelper()