Home
last modified time | relevance | path

Searched refs:authority (Results 1 – 25 of 84) sorted by relevance

1234

/packages/apps/Settings/src/com/android/settings/accounts/
DAccountSyncSettings.java213 private void addSyncStateSwitch(Account account, String authority) { in addSyncStateSwitch() argument
215 new SyncStateSwitchPreference(getActivity(), account, authority); in addSyncStateSwitch()
218 authority, 0, mUserHandle.getIdentifier()); in addSyncStateSwitch()
224 Log.e(TAG, "Provider needs a label for authority '" + authority + "'"); in addSyncStateSwitch()
229 item.setKey(authority); in addSyncStateSwitch()
288 String authority = syncPref.getAuthority(); in onPreferenceTreeClick() local
292 authority, userId); in onPreferenceTreeClick()
294 requestOrCancelSync(account, authority, true); in onPreferenceTreeClick()
300 ContentResolver.setSyncAutomaticallyAsUser(account, authority, syncOn, userId); in onPreferenceTreeClick()
305 requestOrCancelSync(account, authority, syncOn); in onPreferenceTreeClick()
[all …]
DManageAccountsSettings.java217 && ContentResolver.getSyncAutomaticallyAsUser(account, sa.authority, in requestOrCancelSyncForAccounts()
220 ContentResolver.requestSyncAsUser(account, sa.authority, userId, in requestOrCancelSyncForAccounts()
223 ContentResolver.cancelSyncAsUser(account, sa.authority, userId); in requestOrCancelSyncForAccounts()
263 userFacing.add(sa.authority); in showSyncState()
280 for (String authority : authorities) { in showSyncState()
281 SyncStatusInfo status = ContentResolver.getSyncStatusAsUser(account, authority, in showSyncState()
283 boolean syncEnabled = isSyncEnabled(userId, account, authority); in showSyncState()
284 boolean authorityIsPending = ContentResolver.isSyncPending(account, authority); in showSyncState()
285 boolean activelySyncing = isSyncing(currentSyncs, account, authority); in showSyncState()
299 syncCount += syncEnabled && userFacing.contains(authority) ? 1 : 0; in showSyncState()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/
DAccountSyncSettings.java152 String authority = action.getKey(); in onActionClicked() local
153 boolean syncAutomatically = ContentResolver.getSyncAutomatically(account, authority); in onActionClicked()
155 requestOrCancelSync(account, authority, true); in onActionClicked()
161 ContentResolver.setSyncAutomatically(account, authority, syncOn); in onActionClicked()
166 requestOrCancelSync(account, authority, syncOn); in onActionClicked()
219 Log.d(TAG, "onAccountUpdated: added authority " + sa.authority in getActions()
222 authorities.add(sa.authority); in getActions()
238 final String authority = authorities.get(j); in getActions() local
240 int syncState = ContentResolver.getIsSyncable(account, authority); in getActions()
242 Log.d(TAG, " found authority " + authority + " " + syncState); in getActions()
[all …]
/packages/apps/Bluetooth/lib/mapapi/com/android/bluetooth/mapapi/
DBluetoothMapContract.java115 public static Uri buildAccountUri(String authority) { in buildAccountUri() argument
117 .authority(authority).appendPath(TABLE_ACCOUNT).build(); in buildAccountUri()
124 public static Uri buildAccountUriwithId(String authority, String accountId) { in buildAccountUriwithId() argument
126 .authority(authority) in buildAccountUriwithId()
135 public static Uri buildMessageUri(String authority) { in buildMessageUri() argument
137 .authority(authority) in buildMessageUri()
146 public static Uri buildMessageUri(String authority, String accountId) { in buildMessageUri() argument
148 .authority(authority) in buildMessageUri()
158 public static Uri buildMessageUriWithId(String authority, String accountId,String messageId) { in buildMessageUriWithId() argument
160 .authority(authority) in buildMessageUriWithId()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DLegacyApiSupport.java289 String authority = android.provider.Contacts.AUTHORITY;
290 matcher.addURI(authority, "extensions", EXTENSIONS); in matcher.addURI() argument
291 matcher.addURI(authority, "extensions/#", EXTENSIONS_ID); in matcher.addURI() argument
292 matcher.addURI(authority, "groups", GROUPS); in matcher.addURI() argument
293 matcher.addURI(authority, "groups/#", GROUPS_ID); in matcher.addURI() argument
294 matcher.addURI(authority, "groups/name/*/members", GROUP_NAME_MEMBERS); in matcher.addURI() argument
297 matcher.addURI(authority, "groups/system_id/*/members", GROUP_SYSTEM_ID_MEMBERS); in matcher.addURI() argument
300 matcher.addURI(authority, "groupmembership", GROUPMEMBERSHIP); in matcher.addURI() argument
301 matcher.addURI(authority, "groupmembership/#", GROUPMEMBERSHIP_ID); in matcher.addURI() argument
303 matcher.addURI(authority, "people", PEOPLE); in matcher.addURI() argument
[all …]
DContactDirectoryManager.java61 String authority; field in ContactDirectoryManager.DirectoryInfo
74 + " authority=" + authority in toString()
231 Log.d(TAG, "provider=" + provider.authority); in getDirectoryProviderPackages()
234 Log.d(TAG, "Found " + provider.authority); in getDirectoryProviderPackages()
295 deleteWhereArgs.add(info.authority); in scanAllPackages()
425 .authority(provider.authority).appendPath("directories").build(); in queryDirectoriesForAuthority()
436 info.authority = provider.authority; in queryDirectoriesForAuthority()
505 values.put(Directory.DIRECTORY_AUTHORITY, info.authority); in updateDirectories()
523 info.packageName, info.authority, info.accountName, info.accountType }, in updateDirectories()
542 return "Directory provider " + provider.packageName + "(" + provider.authority + ")"; in providerDescription()
/packages/apps/Settings/src/com/android/settings/search/
DIndex.java311 final String authority = info.providerInfo.authority; in update() local
314 addIndexablesFromRemoteProvider(packageName, authority); in update()
315 addNonIndexablesKeysFromRemoteProvider(packageName, authority); in update()
321 private boolean addIndexablesFromRemoteProvider(String packageName, String authority) { in addIndexablesFromRemoteProvider() argument
323 final int baseRank = Ranking.getBaseRankForAuthority(authority); in addIndexablesFromRemoteProvider()
325 final Context context = mBaseAuthority.equals(authority) ? in addIndexablesFromRemoteProvider()
328 final Uri uriForResources = buildUriForXmlResources(authority); in addIndexablesFromRemoteProvider()
332 final Uri uriForRawData = buildUriForRawData(authority); in addIndexablesFromRemoteProvider()
344 String authority) { in addNonIndexablesKeysFromRemoteProvider() argument
346 getNonIndexablesKeysFromRemoteProvider(packageName, authority); in addNonIndexablesKeysFromRemoteProvider()
[all …]
DRanking.java171 public static int getBaseRankForAuthority(String authority) { in getBaseRankForAuthority() argument
173 Integer base = sBaseRankMap.get(authority); in getBaseRankForAuthority()
178 sBaseRankMap.put(authority, sCurrentBaseRank); in getBaseRankForAuthority()
/packages/apps/Exchange/src/com/android/exchange/adapter/
DAbstractSyncAdapter.java177 final String authority, final ArrayList<ContentProviderOperation> ops) in execute() argument
180 ContentProviderResult[] result = contentResolver.applyBatch(authority, ops); in execute()
208 final String authority, final ArrayList<Operation> ops, final int offset) in applyBatch() argument
218 return execute(contentResolver, authority, cpos); in applyBatch()
225 final String authority, final ArrayList<Operation> mini, in applyAndCopyResults() argument
230 ContentProviderResult[] miniResult = applyBatch(contentResolver, authority, mini, in applyAndCopyResults()
252 final String authority, final ArrayList<Operation> ops) throws RemoteException { in safeExecute() argument
256 return applyBatch(contentResolver, authority, ops, 0); in safeExecute()
267 applyAndCopyResults(contentResolver, authority, mini, result, offset); in safeExecute()
285 applyAndCopyResults(contentResolver, authority, mini, result, offset); in safeExecute()
DCalendarSyncParser.java1253 final String authority, final ArrayList<ContentProviderOperation> ops) in execute() argument
1257 ContentProviderResult[] result = contentResolver.applyBatch(authority, ops); in execute()
1290 final String authority, final ArrayList<Operation> ops, final int offset) in applyBatch() argument
1300 return execute(contentResolver, authority, cpos); in applyBatch()
1307 final String authority, final ArrayList<Operation> mini, in applyAndCopyResults() argument
1312 ContentProviderResult[] miniResult = applyBatch(contentResolver, authority, mini, in applyAndCopyResults()
1334 final String authority, final ArrayList<Operation> ops) throws RemoteException { in safeExecute() argument
1339 return applyBatch(contentResolver, authority, ops, 0); in safeExecute()
1351 applyAndCopyResults(contentResolver, authority, mini, result, offset); in safeExecute()
1364 applyAndCopyResults(contentResolver, authority, mini, result, offset); in safeExecute()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsActor.java265 Class<? extends ContentProvider> providerClass, String authority) throws Exception { in ContactsActor() argument
319 provider = addProvider(providerClass, authority); in ContactsActor()
326 public void addAuthority(String authority) { in addAuthority() argument
327 resolver.addProvider(authority, provider); in addAuthority()
331 String authority) throws Exception { in addProvider() argument
332 return addProvider(providerClass, authority, mProviderContext); in addProvider()
336 String authority, Context providerContext) throws Exception { in addProvider() argument
342 info.authority = stripOutUserIdFromAuthority(authority); in addProvider()
344 resolver.addProvider(authority, provider); in addProvider()
351 private String stripOutUserIdFromAuthority(String authority) { in stripOutUserIdFromAuthority() argument
[all …]
DContactDirectoryManagerTest.java67 mAuthority = info.authority; in attachInfoForTesting()
584 protected PackageInfo createProviderPackage(String packageName, String authority) { in createProviderPackage() argument
585 return createPackage(packageName, authority, true); in createProviderPackage()
588 protected PackageInfo createPackage(String packageName, String authority, in createPackage() argument
594 providerInfo.authority = authority; in createPackage()
617 protected void assertDirectoryRow(Cursor cursor, String packageName, String authority, in assertDirectoryRow() argument
622 values.put(Directory.DIRECTORY_AUTHORITY, authority); in assertDirectoryRow()
/packages/apps/Browser/src/com/android/browser/provider/
DBrowserProvider2.java78 .authority(LEGACY_AUTHORITY).scheme("content").build();
205 final String authority = BrowserContract.AUTHORITY;
206 matcher.addURI(authority, "accounts", ACCOUNTS); in matcher.addURI() argument
207 matcher.addURI(authority, "bookmarks", BOOKMARKS); in matcher.addURI() argument
208 matcher.addURI(authority, "bookmarks/#", BOOKMARKS_ID); in matcher.addURI() argument
209 matcher.addURI(authority, "bookmarks/folder", BOOKMARKS_FOLDER); in matcher.addURI() argument
210 matcher.addURI(authority, "bookmarks/folder/#", BOOKMARKS_FOLDER_ID); in matcher.addURI() argument
211 matcher.addURI(authority, "bookmarks/folder/id", BOOKMARKS_DEFAULT_FOLDER_ID); in matcher.addURI() argument
212 matcher.addURI(authority, in matcher.addURI() argument
215 matcher.addURI(authority, in matcher.addURI() argument
[all …]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/
DGoogleSuggestionProvider.java119 String authority = getAuthority(context); in buildUriMatcher() local
121 matcher.addURI(authority, SearchManager.SUGGEST_URI_PATH_QUERY, in buildUriMatcher()
123 matcher.addURI(authority, SearchManager.SUGGEST_URI_PATH_QUERY + "/*", in buildUriMatcher()
125 matcher.addURI(authority, SearchManager.SUGGEST_URI_PATH_SHORTCUT, in buildUriMatcher()
127 matcher.addURI(authority, SearchManager.SUGGEST_URI_PATH_SHORTCUT + "/*", in buildUriMatcher()
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
DEmlAttachmentProvider.java98 final String authority = in onCreate() local
100 BASE_URI = new Uri.Builder().scheme("content").authority(authority).build(); in onCreate()
104 sUriMatcher.addURI(authority, "attachments/*/*", ATTACHMENT_LIST); in onCreate()
105 sUriMatcher.addURI(authority, "attachment/*/*/#", ATTACHMENT); in onCreate()
106 sUriMatcher.addURI(authority, "attachmentByCid/*/*/*", ATTACHMENT_BY_CID); in onCreate()
/packages/providers/PartnerBookmarksProvider/src/com/android/providers/partnerbookmarks/
DPartnerBookmarksProvider.java101 final String authority = PartnerBookmarksContract.AUTHORITY;
102 matcher.addURI(authority, "bookmarks", URI_MATCH_BOOKMARKS); in matcher.addURI() argument
103 matcher.addURI(authority, "bookmarks/#", URI_MATCH_BOOKMARKS_ID); in matcher.addURI() argument
104 matcher.addURI(authority, "bookmarks/folder", URI_MATCH_BOOKMARKS_FOLDER); in matcher.addURI() argument
105 matcher.addURI(authority, "bookmarks/folder/#", URI_MATCH_BOOKMARKS_FOLDER_ID); in matcher.addURI() argument
106 matcher.addURI(authority, "bookmarks/folder/id", in matcher.addURI() argument
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DPicasaSource.java112 .authority(PICASA_AUTHORITY) in openCursor()
216 .authority(PICASA_AUTHORITY) in findImages()
261 .authority(PICASA_AUTHORITY) in resolveAccount()
295 .authority(PICASA_AUTHORITY) in resolveAlbumIds()
336 .authority(PICASA_AUTHORITY) in findAlbums()
438 .authority(PICASA_AUTHORITY) in getStream()
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DConversationCursor.java879 String authority = uri.getAuthority(); in uriFromCachingUri() local
881 if (!authority.equals(ConversationProvider.AUTHORITY)) { in uriFromCachingUri()
885 Uri.Builder builder = new Uri.Builder().scheme(uri.getScheme()).authority(path.get(0)); in uriFromCachingUri()
1609 String authority = underlyingUri.getAuthority(); in apply() local
1610 ArrayList<ContentProviderOperation> authOps = batchMap.get(authority); in apply()
1613 batchMap.put(authority, authOps); in apply()
1635 for (final String authority: batchMap.keySet()) { in apply()
1636 final ArrayList<ContentProviderOperation> opList = batchMap.get(authority); in apply()
1639 mResolver.applyBatch(authority, opList); in apply()
1648 mResolver.applyBatch(authority, opList); in apply()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DPackageIconLoader.java187 String authority = uri.getAuthority(); in getResourceId() local
189 if (TextUtils.isEmpty(authority)) { in getResourceId()
193 r = mPackageContext.getPackageManager().getResourcesForApplication(authority); in getResourceId()
211 id = r.getIdentifier(path.get(1), path.get(0), authority); in getResourceId()
/packages/apps/QuickSearchBox/benchmarks/src/com/android/quicksearchbox/benchmarks/
DSourceLatency.java169 String authority = searchable.getSuggestAuthority(); in getSuggestions() local
170 if (authority == null) { in getSuggestions()
176 .authority(authority) in getSuggestions()
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
DContactLoaderUtils.java46 final String authority = uri.getAuthority(); in ensureIsContactUri() local
49 if (ContactsContract.AUTHORITY.equals(authority)) { in ensureIsContactUri()
69 if (OBSOLETE_AUTHORITY.equals(authority)) { in ensureIsContactUri()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DTurnAutoSyncOnDialog.java92 final String authority = TextUtils.isEmpty(syncAuthority) ? in onCreateDialog()
94 if (!TextUtils.isEmpty(authority)) { in onCreateDialog()
97 authority, in onCreateDialog()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapEmailSettingsItem.java40 …MapEmailSettingsItem(String id, String name, String packageName, String authority, Drawable icon) { in BluetoothMapEmailSettingsItem() argument
45 this.mProviderAuthority = authority; in BluetoothMapEmailSettingsItem()
46 this.mBase_uri_no_account = "content://" + authority; in BluetoothMapEmailSettingsItem()
/packages/apps/ContactsCommon/src/com/android/contacts/common/
DContactsUtils.java170 final String authority = host.toLowerCase(); in getCustomImIntent() local
171 final Uri imUri = new Uri.Builder().scheme(SCHEME_IMTO).authority( in getCustomImIntent()
172 authority).appendPath(data).build(); in getCustomImIntent()
/packages/apps/Calendar/src/com/android/calendar/
DAsyncQueryService.java305 public void startBatch(int token, Object cookie, String authority, in startBatch() argument
314 info.authority = authority; in startBatch()

1234