Home
last modified time | relevance | path

Searched refs:mAccount (Results 1 – 25 of 58) sorted by relevance

123

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/accounts/
DAccountSyncPreferenceControllerTest.java56 private final Account mAccount = new Account("acct1", "type1"); field in AccountSyncPreferenceControllerTest
72 mController.setAccount(mAccount); in setUp()
93 ContentResolver.setIsSyncable(mAccount, "authority", SYNCABLE); in refreshUi_notSameAccountType_shouldNotCount()
94 ContentResolver.setSyncAutomaticallyAsUser(mAccount, in refreshUi_notSameAccountType_shouldNotCount()
111 ContentResolver.setIsSyncable(mAccount, "authority", SYNCABLE); in refreshUi_adapterInvisible_shouldNotCount()
112 ContentResolver.setSyncAutomaticallyAsUser(mAccount, "authority", /* sync= */ in refreshUi_adapterInvisible_shouldNotCount()
129 ContentResolver.setIsSyncable(mAccount, "authority", NOT_SYNCABLE); in refreshUi_notSyncable_shouldNotCount()
145 ContentResolver.setIsSyncable(mAccount, "authority", SYNCABLE); in refreshUi_masterAutomaticSyncIgnoredAndAccountSyncDisabled_shouldNotCount()
147 ContentResolver.setSyncAutomaticallyAsUser(mAccount, "authority", /* sync= */ in refreshUi_masterAutomaticSyncIgnoredAndAccountSyncDisabled_shouldNotCount()
164 ContentResolver.setIsSyncable(mAccount, "authority", SYNCABLE); in refreshUi_masterAutomaticSyncUsed_shouldCount()
[all …]
DAccountSyncDetailsPreferenceControllerTest.java79 private final Account mAccount = new Account("acct1", ACCOUNT_TYPE); field in AccountSyncDetailsPreferenceControllerTest
97 mController.setAccount(mAccount); in setUp()
145 ShadowContentResolver.setIsSyncable(mAccount, AUTHORITY, /* syncable= */ NOT_SYNCABLE); in refreshUi_syncAdapterIsNotSyncable_shouldNotBeShown()
160 ShadowContentResolver.setIsSyncable(mAccount, AUTHORITY, /* syncable= */ SYNCABLE); in refreshUi_syncAdapterDoesNotHaveProviderInfo_shouldNotBeShown()
177 ShadowContentResolver.setIsSyncable(mAccount, AUTHORITY, /* syncable= */ SYNCABLE); in refreshUi_providerInfoDoesNotHaveLabel_shouldNotBeShown()
202 ShadowContentResolver.setIsSyncable(mAccount, AUTHORITY, /* syncable= */ SYNCABLE); in refreshUi_providerLabelShouldBeSet()
226 ContentResolver.setSyncAutomaticallyAsUser(mAccount, AUTHORITY, /* sync= */ false, in refreshUi_masterSyncOff_syncDisabled_shouldNotBeChecked()
241 ContentResolver.setSyncAutomaticallyAsUser(mAccount, AUTHORITY, /* sync= */ false, in refreshUi_masterSyncOn_syncDisabled_shouldBeChecked()
256 ContentResolver.setSyncAutomaticallyAsUser(mAccount, AUTHORITY, /* sync= */ true, in refreshUi_masterSyncOff_syncEnabled_shouldBeChecked()
270 ContentResolver.setSyncAutomaticallyAsUser(mAccount, AUTHORITY, /* sync= */ false, in refreshUi_syncDisabled_summaryShouldBeSet()
[all …]
DAccountSyncDetailsFragmentTest.java66 private final Account mAccount = new Account("Name", ACCOUNT_TYPE); field in AccountSyncDetailsFragmentTest
116 verify(mMockSyncListener, times(2)).onSyncRequested(eq(mAccount), argument.capture(), in onButtonClicked_doesNotHaveActiveSyncs_shouldSyncSyncableAdapters()
130 ContentResolver.setSyncAutomaticallyAsUser(mAccount, AUTHORITY_2, /* sync= */ false, in onButtonClicked_doesNotHaveActiveSyncs_oneTimeSyncIsOff_shouldNotSyncOffAdapters()
137 verify(mMockSyncListener, times(1)).onSyncRequested(eq(mAccount), argument.capture(), in onButtonClicked_doesNotHaveActiveSyncs_oneTimeSyncIsOff_shouldNotSyncOffAdapters()
151 ContentResolver.setSyncAutomaticallyAsUser(mAccount, AUTHORITY_2, /* sync= */ false, in onButtonClicked_doesNotHaveActiveSyncs_oneTimeSyncIsOn_shouldSyncOffAdapters()
158 verify(mMockSyncListener, times(2)).onSyncRequested(eq(mAccount), argument.capture(), in onButtonClicked_doesNotHaveActiveSyncs_oneTimeSyncIsOn_shouldSyncOffAdapters()
181 verify(mMockSyncListener, times(2)).onSyncCanceled(eq(mAccount), argument.capture(), in onButtonClicked_doesHaveActiveSyncs_shouldCancelSyncForSyncableAdapters()
196 mFragment = AccountSyncDetailsFragment.newInstance(mAccount, mUserHandle); in initFragment()
211 ShadowContentResolver.setIsSyncable(mAccount, authority, /* syncable= */ 1); in setUpSyncAdapters()
DAccountDetailsWithSyncStatusPreferenceControllerTest.java60 private final Account mAccount = new Account(ACCOUNT_NAME, ACCOUNT_TYPE); field in AccountDetailsWithSyncStatusPreferenceControllerTest
74 mController.setAccount(mAccount); in setUp()
101 ContentResolver.setSyncAutomaticallyAsUser(mAccount, AUTHORITY, /* sync= */ true, in refreshUi_syncIsFailing_summaryShouldBeSet()
108 ShadowContentResolver.setSyncStatus(mAccount, AUTHORITY, status); in refreshUi_syncIsFailing_summaryShouldBeSet()
125 ContentResolver.setSyncAutomaticallyAsUser(mAccount, AUTHORITY, /* sync= */ true, in onSyncStatusChanged_summaryShouldUpdated()
132 ShadowContentResolver.setSyncStatus(mAccount, AUTHORITY, status); in onSyncStatusChanged_summaryShouldUpdated()
151 ShadowContentResolver.setIsSyncable(mAccount, authority, /* syncable= */ SYNCABLE); in setUpVisibleSyncAdapters()
/packages/apps/Car/Settings/src/com/android/car/settings/accounts/
DAccountDetailsFragment.java60 private Account mAccount; field in AccountDetailsFragment
97 mAccount = getArguments().getParcelable(EXTRA_ACCOUNT); in onAttach()
101 .setAccount(mAccount); in onAttach()
106 .setAccount(mAccount); in onAttach()
108 .setAccount(mAccount); in onAttach()
161 if (mAccount == null) { in accountExists()
165 Account[] accounts = AccountManager.get(getContext()).getAccountsByTypeAsUser(mAccount.type, in accountExists()
168 return Arrays.asList(accounts).contains(mAccount); in accountExists()
172 ConfirmRemoveAccountDialogFragment.show(this, mAccount, mUserInfo.getUserHandle()); in onRemoveAccountClicked()
205 private Account mAccount; field in AccountDetailsFragment.ConfirmRemoveAccountDialogFragment
[all …]
DAccountSyncDetailsPreferenceController.java72 private Account mAccount; field in AccountSyncDetailsPreferenceController
92 mAccount = account; in setAccount()
114 if (mAccount == null) { in checkInitialized()
196 boolean oldSyncState = ContentResolver.getSyncAutomaticallyAsUser(mAccount, in onSyncPreferenceClicked()
207 ContentResolver.setSyncAutomaticallyAsUser(mAccount, authority, syncOn, userId); in onSyncPreferenceClicked()
219 AccountSyncHelper.requestSyncIfAllowed(mAccount, authority, mUserHandle.getIdentifier()); in requestSync()
223 ContentResolver.cancelSyncAsUser(mAccount, authority, mUserHandle.getIdentifier()); in cancelSync()
238 if (!accountManager.hasAccountAccess(mAccount, packageName, mUserHandle)) { in requestAccountAccessIfNeeded()
240 mAccount, packageName, mUserHandle); in requestAccountAccessIfNeeded()
313 getContext(), mAccount, mUserHandle); in getSyncPreferences()
[all …]
DAccountSyncPreferenceController.java40 private Account mAccount; field in AccountSyncPreferenceController
50 mAccount = account; in setAccount()
72 if (mAccount == null) { in checkInitialized()
92 AccountSyncDetailsFragment.newInstance(mAccount, mUserHandle)); in handlePreferenceClicked()
106 if (!sa.accountType.equals(mAccount.type) || !sa.isUserVisible()) { in getSummary()
110 ContentResolver.getIsSyncableAsUser(mAccount, sa.authority, userId); in getSummary()
119 mAccount, sa.authority, userId); in getSummary()
DAccountDetailsPreferenceController.java36 private Account mAccount; field in AccountDetailsPreferenceController
46 mAccount = account; in setAccount()
51 return mAccount; in getAccount()
79 if (mAccount == null) { in checkInitialized()
94 preference.setTitle(mAccount.name); in updateState()
97 preference.setIcon(helper.getDrawableForType(getContext(), mAccount.type)); in updateState()
DAccountDetailsSettingController.java40 private Account mAccount; field in AccountDetailsSettingController
49 mAccount = account; in setAccount()
55 if (mAccount == null) { in checkInitialized()
66 if (mAccount != null && !mAccount.type.equals( in addExtraSettings()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accounts/
DAccountSyncSettings.java65 private Account mAccount; field in AccountSyncSettings
114 mAccount = arguments.getParcelable(ACCOUNT_KEY); in onActivityCreated()
115 if (!accountExists(mAccount)) { in onActivityCreated()
116 Log.e(TAG, "Account provided does not exist: " + mAccount); in onActivityCreated()
121 Log.v(TAG, "Got account: " + mAccount); in onActivityCreated()
127 .setIcon(getDrawableForType(mAccount.type)) in onActivityCreated()
128 .setLabel(mAccount.name) in onActivityCreated()
129 .setSummary(getLabelForType(mAccount.type)) in onActivityCreated()
312 if (!accountManager.hasAccountAccess(mAccount, packageName, mUserHandle)) { in requestAccountAccessIfNeeded()
314 mAccount, packageName, mUserHandle); in requestAccountAccessIfNeeded()
[all …]
DAccountSyncPreferenceController.java45 private Account mAccount; field in AccountSyncPreferenceController
64 args.putParcelable(AccountSyncSettings.ACCOUNT_KEY, mAccount); in handlePreferenceTreeClick()
98 mAccount = account; in init()
104 if (mAccount == null) { in updateSummary()
114 if (!sa.accountType.equals(mAccount.type) || !sa.isUserVisible()) { in updateSummary()
118 ContentResolver.getIsSyncableAsUser(mAccount, sa.authority, userId); in updateSummary()
122 mAccount, sa.authority, userId); in updateSummary()
DAccountDetailDashboardFragment.java56 Account mAccount; field in AccountDetailDashboardFragment
76 mAccount = args.getParcelable(KEY_ACCOUNT); in onCreate()
85 mAccountSynController.init(mAccount, mUserHandle); in onCreate()
86 mRemoveAccountController.init(mAccount, mUserHandle); in onCreate()
105 if (account.equals(mAccount)) { in finishIfAccountMissing()
163 intent.putExtra(EXTRA_ACCOUNT_NAME, mAccount.name); in displayTile()
183 accountTypePreferenceLoader.updatePreferenceIntents(prefs, mAccountType, mAccount); in updateUi()
DAccountHeaderPreferenceController.java48 private final Account mAccount; field in AccountHeaderPreferenceController
59 mAccount = args.getParcelable(KEY_ACCOUNT); in AccountHeaderPreferenceController()
61 mAccount = null; in AccountHeaderPreferenceController()
76 return mAccount != null && mUserHandle != null; in isAvailable()
96 .setLabel(mAccount.name) in onResume()
97 .setIcon(helper.getDrawableForType(mContext, mAccount.type)) in onResume()
/packages/apps/Settings/src/com/android/settings/accounts/
DAccountSyncSettings.java65 private Account mAccount; field in AccountSyncSettings
114 mAccount = arguments.getParcelable(ACCOUNT_KEY); in onActivityCreated()
115 if (!accountExists(mAccount)) { in onActivityCreated()
116 Log.e(TAG, "Account provided does not exist: " + mAccount); in onActivityCreated()
121 Log.v(TAG, "Got account: " + mAccount); in onActivityCreated()
127 .setIcon(getDrawableForType(mAccount.type)) in onActivityCreated()
128 .setLabel(mAccount.name) in onActivityCreated()
129 .setSummary(getLabelForType(mAccount.type)) in onActivityCreated()
312 if (!accountManager.hasAccountAccess(mAccount, packageName, mUserHandle)) { in requestAccountAccessIfNeeded()
314 mAccount, packageName, mUserHandle); in requestAccountAccessIfNeeded()
[all …]
DAccountSyncPreferenceController.java45 private Account mAccount; field in AccountSyncPreferenceController
64 args.putParcelable(AccountSyncSettings.ACCOUNT_KEY, mAccount); in handlePreferenceTreeClick()
98 mAccount = account; in init()
104 if (mAccount == null) { in updateSummary()
114 if (!sa.accountType.equals(mAccount.type) || !sa.isUserVisible()) { in updateSummary()
118 ContentResolver.getIsSyncableAsUser(mAccount, sa.authority, userId); in updateSummary()
122 mAccount, sa.authority, userId); in updateSummary()
DAccountDetailDashboardFragment.java56 Account mAccount; field in AccountDetailDashboardFragment
76 mAccount = args.getParcelable(KEY_ACCOUNT); in onCreate()
85 mAccountSynController.init(mAccount, mUserHandle); in onCreate()
86 mRemoveAccountController.init(mAccount, mUserHandle); in onCreate()
105 if (account.equals(mAccount)) { in finishIfAccountMissing()
166 intent.putExtra(EXTRA_ACCOUNT_NAME, mAccount.name); in displayTile()
186 accountTypePreferenceLoader.updatePreferenceIntents(prefs, mAccountType, mAccount); in updateUi()
DAccountHeaderPreferenceController.java48 private final Account mAccount; field in AccountHeaderPreferenceController
59 mAccount = args.getParcelable(KEY_ACCOUNT); in AccountHeaderPreferenceController()
61 mAccount = null; in AccountHeaderPreferenceController()
76 return mAccount != null && mUserHandle != null; in isAvailable()
96 .setLabel(mAccount.name) in onResume()
97 .setIcon(helper.getDrawableForType(mContext, mAccount.type)) in onResume()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
DPbapClientConnectionHandler.java127 private Account mAccount; field in PbapClientConnectionHandler
149 mAccount = in PbapClientConnectionHandler()
166 mAccount = in PbapClientConnectionHandler()
256 removeAccount(mAccount); in handleMessage()
257 removeCallLog(mAccount); in handleMessage()
263 mAccountCreated = addAccount(mAccount); in handleMessage()
393 mAccount); in downloadContacts()
417 new BluetoothPbapRequestPullPhoneBook(path, mAccount, in downloadContacts()
445 new BluetoothPbapRequestPullPhoneBook(path, mAccount, 0, VCARD_TYPE_30, 0, 0); in downloadCallLog()
449 callCounter, mAccount); in downloadCallLog()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/pbapclient/
DPbapParserTest.java48 private Account mAccount; field in PbapParserTest
59 mAccount = new Account(TEST_ACCOUNT_NAME, in setUp()
77 BluetoothPbapVcardList pbapVCardList = new BluetoothPbapVcardList(mAccount, fileStream, in testNoTimestamp()
82 new HashMap<>(), mAccount); in testNoTimestamp()
99 BluetoothPbapVcardList pbapVCardList = new BluetoothPbapVcardList(mAccount, fileStream, in testMissedCall()
104 new HashMap<>(), mAccount); in testMissedCall()
120 BluetoothPbapVcardList pbapVCardList = new BluetoothPbapVcardList(mAccount, fileStream, in testUnknownCall()
125 new HashMap<>(), mAccount); in testUnknownCall()
143 BluetoothPbapVcardList pbapVCardList = new BluetoothPbapVcardList(mAccount, fileStream, in testPullPhoneBook()
146 PhonebookPullRequest processor = new PhonebookPullRequest(mTargetContext, mAccount); in testPullPhoneBook()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/
DAccountSyncFragment.java68 private Account mAccount; field in AccountSyncFragment
102 mAccount = getArguments().getParcelable(ARG_ACCOUNT); in onCreate()
108 Log.v(TAG, "Got account: " + mAccount); in onCreate()
142 getPreferenceScreen().setTitle(mAccount.name); in onCreatePreferences()
146 .putExtra(AccountSyncActivity.EXTRA_ACCOUNT, mAccount.name)); in onCreatePreferences()
221 if (mAccount != null) { in requestOrCancelSyncForEnabledProviders()
223 requestOrCancelSync(mAccount, syncAdapter.authority, startSync); in requestOrCancelSyncForEnabledProviders()
266 if (!accountExists(mAccount)) { in onAccountsUpdate()
351 if (!sa.accountType.equals(mAccount.type)) continue; in updateAccountSwitches()
369 Log.v(TAG, "looking for sync adapters that match account " + mAccount); in updateAccountSwitches()
[all …]
/packages/apps/Contacts/src/com/android/contacts/group/
DGroupNameEditDialogFragment.java87 private AccountWithDataSet mAccount; field in GroupNameEditDialogFragment
133 mAccount = getArguments().getParcelable(ARG_ACCOUNT); in onCreate()
255 serviceIntent = ContactSaveService.createNewGroupIntent(getActivity(), mAccount, in maybePersistCurrentGroupName()
359 if (mAccount.dataSet != null) { in getSelection()
366 final int len = mAccount.dataSet == null ? 3 : 4; in getSelectionArgs()
368 args[0] = mAccount.name; in getSelectionArgs()
369 args[1] = mAccount.type; in getSelectionArgs()
371 if (mAccount.dataSet != null) { in getSelectionArgs()
372 args[3] = mAccount.dataSet; in getSelectionArgs()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapMasInstance.java85 private BluetoothMapAccountItem mAccount = null; // field in BluetoothMapMasInstance
128 mAccount = account; in BluetoothMapMasInstance()
334 if (mAccount.getType() == TYPE.EMAIL) { in createMasSdpRecord()
336 } else if (mAccount.getType() == TYPE.IM) { in createMasSdpRecord()
340 masName = mAccount.getName(); in createMasSdpRecord()
343 if (mAccount.getType() == TYPE.EMAIL) { in createMasSdpRecord()
345 } else if (mAccount.getType() == TYPE.IM) { in createMasSdpRecord()
392 mObserver = new BluetoothMapContentObserver(mContext, mMnsClient, this, mAccount, in startObexServerSession()
396 new BluetoothMapObexServer(mServiceHandler, mContext, mObserver, this, mAccount, in startObexServerSession()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DGroupsTest.java150 createGroup(mAccount, "gsid1", "title1")); in testGroupDirtySetOnChange()
158 createGroup(mAccount, "gsid1", "title1")); in testMarkAsDirtyParameter()
160 Uri updateUri = setCallerIsSyncAdapter(uri, mAccount); in testMarkAsDirtyParameter()
170 createGroup(mAccount, "gsid1", "title1")); in testGroupDirtyClearedWhenSetExplicitly()
182 long groupId = createGroup(mAccount, "g1", "gt1"); in testGroupDeletion1()
190 Uri permanentDeletionUri = setCallerIsSyncAdapter(uri, mAccount); in testGroupDeletion1()
196 long groupId = createGroup(mAccount, "g1", "gt1"); in testGroupDeletion2()
200 Uri permanentDeletionUri = setCallerIsSyncAdapter(uri, mAccount); in testGroupDeletion2()
207 createGroup(mAccount, "gsid1", "title1")); in testGroupVersionUpdates()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/
DAccountTypePreferenceLoaderTest.java65 private Account mAccount; field in AccountTypePreferenceLoaderTest
78 mAccount = new Account("name", "type"); in setUp()
126 mPrefLoader.updatePreferenceIntents(prefRoot, acctType, mAccount); in updatePreferenceIntents_shouldRunRecursively()
128 verify(mPrefLoader).updatePreferenceIntents(prefGroup2, acctType, mAccount); in updatePreferenceIntents_shouldRunRecursively()
129 verify(mPrefLoader).updatePreferenceIntents(prefGroup4, acctType, mAccount); in updatePreferenceIntents_shouldRunRecursively()
130 verify(mPrefLoader).updatePreferenceIntents(prefGroup41, acctType, mAccount); in updatePreferenceIntents_shouldRunRecursively()
/packages/apps/Contacts/tests/src/com/android/contacts/database/
DSimContactDaoTests.java111 private AccountWithDataSet mAccount; field in SimContactDaoTests.ImportIntegrationTest
118 mAccount = mAccountsHelper.addTestAccount(); in setUp()
137 ), mAccount); in importFromSim() local
165 ), mAccount); in importContactWhichOnlyHasName() local
180 ), mAccount); in importContactWhichOnlyHasPhone() local
200 ), mAccount); in ignoresEmptyContacts() local
228 sut.importContacts(contacts, mAccount); in largeImport()
246 mAccount.name, in queryAllRawContactsInAccount()
247 mAccount.type in queryAllRawContactsInAccount()
256 mAccount.name, in queryAllDataInAccount()
[all …]

123