Searched refs:authority (Results 1 - 25 of 82) sorted by relevance

1234

/packages/apps/Bluetooth/lib/mapapi/com/android/bluetooth/mapapi/
H A DBluetoothMapContract.java53 * [PROVIDER AUTHORITY] shall be the providers authority value which implements this
54 * contract. Only a single authority shall be used. The android.permission.BLUETOOTH_MAP
115 public static Uri buildAccountUri(String authority) { argument
117 .authority(authority).appendPath(TABLE_ACCOUNT).build();
124 public static Uri buildAccountUriwithId(String authority, String accountId) { argument
126 .authority(authority)
135 public static Uri buildMessageUri(String authority) { argument
137 .authority(authorit
146 buildMessageUri(String authority, String accountId) argument
158 buildMessageUriWithId(String authority, String accountId,String messageId) argument
171 buildFolderUri(String authority, String accountId) argument
[all...]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/
H A DAccountSyncSettings.java152 String authority = action.getKey();
153 boolean syncAutomatically = ContentResolver.getSyncAutomatically(account, authority);
155 requestOrCancelSync(account, authority, true);
161 ContentResolver.setSyncAutomatically(account, authority, syncOn);
166 requestOrCancelSync(account, authority, syncOn);
219 Log.d(TAG, "onAccountUpdated: added authority " + sa.authority
222 authorities.add(sa.authority);
238 final String authority = authorities.get(j);
240 int syncState = ContentResolver.getIsSyncable(account, authority);
277 getAction(Account account, String authority, List<SyncInfo> currentSyncs) argument
389 requestOrCancelSync(Account account, String authority, boolean sync) argument
399 isSyncing(List<SyncInfo> currentSyncs, Account account, String authority) argument
[all...]
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
H A DContactLoaderUtils.java37 * can be thrown if the URI is null or the authority is not recognized.
46 final String authority = uri.getAuthority();
49 if (ContactsContract.AUTHORITY.equals(authority)) {
69 if (OBSOLETE_AUTHORITY.equals(authority)) {
76 throw new IllegalArgumentException("uri authority is unknown");
/packages/apps/Settings/src/com/android/settings/accounts/
H A DAccountSyncSettings.java212 private void addSyncStateCheckBox(Account account, String authority) { argument
214 new SyncStateCheckBoxPreference(getActivity(), account, authority);
217 authority, 0, mUserHandle.getIdentifier());
223 Log.e(TAG, "Provider needs a label for authority '" + authority + "'");
228 item.setKey(authority);
287 String authority = syncPref.getAuthority();
291 authority, userId);
293 requestOrCancelSync(account, authority, true);
299 ContentResolver.setSyncAutomaticallyAsUser(account, authority, syncO
346 requestOrCancelSync(Account account, String authority, boolean flag) argument
357 isSyncing(List<SyncInfo> currentSyncs, Account account, String authority) argument
[all...]
H A DManageAccountsSettings.java213 && ContentResolver.getSyncAutomaticallyAsUser(account, sa.authority,
216 ContentResolver.requestSyncAsUser(account, sa.authority, userId,
219 ContentResolver.cancelSyncAsUser(account, sa.authority, userId);
250 userFacing.add(sa.authority);
267 for (String authority : authorities) {
268 SyncStatusInfo status = ContentResolver.getSyncStatusAsUser(account, authority,
270 boolean syncEnabled = isSyncEnabled(userId, account, authority);
271 boolean authorityIsPending = ContentResolver.isSyncPending(account, authority);
272 boolean activelySyncing = isSyncing(currentSyncs, account, authority);
286 syncCount += syncEnabled && userFacing.contains(authority)
319 isSyncing(List<SyncInfo> currentSyncs, Account account, String authority) argument
330 isSyncEnabled(int userId, Account account, String authority) argument
[all...]
H A DSyncStateCheckBoxPreference.java52 public SyncStateCheckBoxPreference(Context context, Account account, String authority) { argument
55 mAuthority = authority;
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/
H A DGoogleSuggestionProvider.java119 String authority = getAuthority(context);
121 matcher.addURI(authority, SearchManager.SUGGEST_URI_PATH_QUERY,
123 matcher.addURI(authority, SearchManager.SUGGEST_URI_PATH_QUERY + "/*",
125 matcher.addURI(authority, SearchManager.SUGGEST_URI_PATH_SHORTCUT,
127 matcher.addURI(authority, SearchManager.SUGGEST_URI_PATH_SHORTCUT + "/*",
/packages/apps/Exchange/src/com/android/exchange/adapter/
H A DAbstractSyncAdapter.java177 final String authority, final ArrayList<ContentProviderOperation> ops)
180 ContentProviderResult[] result = contentResolver.applyBatch(authority, ops);
208 final String authority, final ArrayList<Operation> ops, final int offset)
218 return execute(contentResolver, authority, cpos);
225 final String authority, final ArrayList<Operation> mini,
230 ContentProviderResult[] miniResult = applyBatch(contentResolver, authority, mini,
241 * the passed-in authority. If the attempt to apply the batch fails due to a too-large
252 final String authority, final ArrayList<Operation> ops) throws RemoteException {
256 return applyBatch(contentResolver, authority, ops, 0);
267 applyAndCopyResults(contentResolver, authority, min
176 execute(final ContentResolver contentResolver, final String authority, final ArrayList<ContentProviderOperation> ops) argument
207 applyBatch(final ContentResolver contentResolver, final String authority, final ArrayList<Operation> ops, final int offset) argument
224 applyAndCopyResults(final ContentResolver contentResolver, final String authority, final ArrayList<Operation> mini, final ContentProviderResult[] result, final int offset) argument
251 safeExecute(final ContentResolver contentResolver, final String authority, final ArrayList<Operation> ops) argument
[all...]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/
H A DTypedUriMatcherImpl.java32 public TypedUriMatcherImpl(String authority, T[] values) { argument
33 mAuthority = authority;
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DTurnAutoSyncOnDialog.java92 final String authority = TextUtils.isEmpty(syncAuthority) ?
94 if (!TextUtils.isEmpty(authority)) {
97 authority,
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
H A DBluetoothMapEmailSettingsItem.java40 public BluetoothMapEmailSettingsItem(String id, String name, String packageName, String authority, Drawable icon) { argument
45 this.mProviderAuthority = authority;
46 this.mBase_uri_no_account = "content://" + authority;
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
H A DContentProviderTask.java94 public void run(ContentResolver resolver, String authority, argument
97 mAuthority = authority;
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DProfileAwareUriMatcher.java65 public void addURI(String authority, String path, int code) { argument
66 super.addURI(authority, path, code);
H A DLegacyApiSupport.java289 String authority = android.provider.Contacts.AUTHORITY;
290 matcher.addURI(authority, "extensions", EXTENSIONS);
291 matcher.addURI(authority, "extensions/#", EXTENSIONS_ID);
292 matcher.addURI(authority, "groups", GROUPS);
293 matcher.addURI(authority, "groups/#", GROUPS_ID);
294 matcher.addURI(authority, "groups/name/*/members", GROUP_NAME_MEMBERS);
295 // matcher.addURI(authority, "groups/name/*/members/filter/*",
297 matcher.addURI(authority, "groups/system_id/*/members", GROUP_SYSTEM_ID_MEMBERS);
298 // matcher.addURI(authority, "groups/system_id/*/members/filter/*",
300 matcher.addURI(authority, "groupmembershi
[all...]
H A DContactDirectoryManager.java61 String authority; field in class:ContactDirectoryManager.DirectoryInfo
74 + " authority=" + authority
196 // Announce the change to listeners of the contacts authority
285 deleteWhereArgs.add(info.authority);
415 .authority(provider.authority).appendPath("directories").build();
426 info.authority = provider.authority;
495 values.put(Directory.DIRECTORY_AUTHORITY, info.authority);
[all...]
/packages/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/test/mocks/
H A DContactsMockContext.java48 providerInfo.authority = ContactsContract.AUTHORITY;
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/tests/testauth/
H A DTestSyncAdapter.java49 public void onPerformSync(Account account, Bundle extras, String authority, argument
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A DPackageIconLoader.java187 String authority = uri.getAuthority();
189 if (TextUtils.isEmpty(authority)) {
190 throw new FileNotFoundException("No authority: " + uri);
193 r = mPackageContext.getPackageManager().getResourcesForApplication(authority);
211 id = r.getIdentifier(path.get(1), path.get(0), authority);
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
H A DMockIconLoader.java55 .authority(mContext.getPackageName())
/packages/apps/Settings/src/com/android/settings/search/
H A DIndex.java311 final String authority = info.providerInfo.authority;
314 addIndexablesFromRemoteProvider(packageName, authority);
315 addNonIndexablesKeysFromRemoteProvider(packageName, authority);
321 private boolean addIndexablesFromRemoteProvider(String packageName, String authority) { argument
323 final int baseRank = Ranking.getBaseRankForAuthority(authority);
325 final Context context = mBaseAuthority.equals(authority) ?
328 final Uri uriForResources = buildUriForXmlResources(authority);
332 final Uri uriForRawData = buildUriForRawData(authority);
344 String authority) {
343 addNonIndexablesKeysFromRemoteProvider(String packageName, String authority) argument
350 getNonIndexablesKeysFromRemoteProvider(String packageName, String authority) argument
412 addNonIndexableKeys(String authority, List<String> keys) argument
457 updateFromRemoteProvider(String packageName, String authority) argument
506 buildUriForXmlResources(String authority) argument
511 buildUriForRawData(String authority) argument
516 buildUriForNonIndexableKeys(String authority) argument
[all...]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DContactsActor.java254 Class<? extends ContentProvider> providerClass, String authority) throws Exception {
308 provider = addProvider(providerClass, authority);
315 public void addAuthority(String authority) { argument
316 resolver.addProvider(authority, provider);
320 String authority) throws Exception {
321 return addProvider(providerClass, authority, mProviderContext);
325 String authority, Context providerContext) throws Exception {
329 // Here, authority can have "user-id@". We want to use it for addProvider, but provider
331 info.authority = stripOutUserIdFromAuthority(authority);
253 ContactsActor(final Context overallContext, String packageName, Class<? extends ContentProvider> providerClass, String authority) argument
319 addProvider(Class<T> providerClass, String authority) argument
324 addProvider(Class<T> providerClass, String authority, Context providerContext) argument
340 stripOutUserIdFromAuthority(String authority) argument
[all...]
H A DContactDirectoryManagerTest.java67 mAuthority = info.authority;
581 protected PackageInfo createProviderPackage(String packageName, String authority) { argument
582 return createPackage(packageName, authority, true);
585 protected PackageInfo createPackage(String packageName, String authority, argument
591 providerInfo.authority = authority;
614 protected void assertDirectoryRow(Cursor cursor, String packageName, String authority, argument
619 values.put(Directory.DIRECTORY_AUTHORITY, authority);
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
H A DEmlAttachmentProvider.java98 final String authority =
100 BASE_URI = new Uri.Builder().scheme("content").authority(authority).build();
104 sUriMatcher.addURI(authority, "attachments/*/*", ATTACHMENT_LIST);
105 sUriMatcher.addURI(authority, "attachment/*/*/#", ATTACHMENT);
106 sUriMatcher.addURI(authority, "attachmentByCid/*/*/*", ATTACHMENT_BY_CID);
H A DSuggestionsProvider.java38 * and contact email addresses on the device. The authority fro for this provider is obtained
74 final String authority = getContext().getString(R.string.suggestions_authority);
75 setupSuggestions(authority, MODE);
/packages/apps/Exchange/tests/src/com/android/exchange/provider/
H A DMockProviderTests.java89 // Uri uri = new Uri.Builder().scheme("content").authority(CANHAZ_AUTHORITY)
104 return new Uri.Builder().scheme("content").authority(CANHAZ_AUTHORITY)

Completed in 4804 milliseconds

1234