Home
last modified time | relevance | path

Searched refs:uri (Results 1 – 25 of 596) sorted by relevance

12345678910>>...24

/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactsProvider2.java2014 private boolean mapsToProfileDb(Uri uri) { in mapsToProfileDb() argument
2015 return sUriMatcher.mapsToProfile(uri); in mapsToProfileDb()
2029 private boolean mapsToProfileDbWithInsertedValues(Uri uri, ContentValues values) { in mapsToProfileDbWithInsertedValues() argument
2030 if (mapsToProfileDb(uri)) { in mapsToProfileDbWithInsertedValues()
2033 int match = sUriMatcher.match(uri); in mapsToProfileDbWithInsertedValues()
2075 public Uri insert(Uri uri, ContentValues values) { in insert() argument
2079 enforceSocialStreamWritePermission(uri); in insert()
2081 if (mapsToProfileDbWithInsertedValues(uri, values)) { in insert()
2083 return mProfileProvider.insert(uri, values); in insert()
2086 return super.insert(uri, values); in insert()
[all …]
DCallLogProvider.java129 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
137 checkVoicemailPermissionAndAddRestriction(uri, selectionBuilder); in query()
139 final int match = sURIMatcher.match(uri); in query()
146 parseCallIdFromUri(uri))); in query()
151 List<String> pathSegments = uri.getPathSegments(); in query()
165 throw new IllegalArgumentException("Unknown URL " + uri); in query()
168 final int limit = getIntParam(uri, Calls.LIMIT_PARAM_KEY, 0); in query()
169 final int offset = getIntParam(uri, Calls.OFFSET_PARAM_KEY, 0); in query()
194 private int getIntParam(Uri uri, String key, int defaultValue) { in getIntParam() argument
195 String valueString = uri.getQueryParameter(key); in getIntParam()
[all …]
DVoicemailContentProvider.java89 public String getType(Uri uri) { in getType() argument
92 uriData = UriData.createUriData(uri); in getType()
101 public Uri insert(Uri uri, ContentValues values) { in insert() argument
102 UriData uriData = checkPermissionsAndCreateUriData(uri, values); in insert()
107 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
109 UriData uriData = checkPermissionsAndCreateUriDataForReadOperation(uri); in query()
117 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument
118 UriData uriData = checkPermissionsAndCreateUriData(uri, values); in update()
126 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
127 UriData uriData = checkPermissionsAndCreateUriData(uri); in delete()
[all …]
DLegacyApiSupport.java779 public Uri insert(Uri uri, ContentValues values) { in insert() argument
781 final int match = sUriMatcher.match(uri); in insert()
793 long rawContactId = Long.parseLong(uri.getPathSegments().get(1)); in insert()
812 long rawContactId = Long.parseLong(uri.getPathSegments().get(1)); in insert()
838 throw new UnsupportedOperationException(mDbHelper.exceptionMessage(uri)); in insert()
845 final Uri result = ContentUris.withAppendedId(uri, id); in insert()
882 Uri uri = mContactsProvider.insertInTransaction(Data.CONTENT_URI, mValues); in insertOrganization() local
884 return ContentUris.parseId(uri); in insertOrganization()
891 Uri uri = mContactsProvider.insertInTransaction(Data.CONTENT_URI, mValues); in insertPhone() local
893 return ContentUris.parseId(uri); in insertPhone()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaProvider.java256 Uri uri = Uri.parse("file://" + storage.getPath());
262 new Intent(Intent.ACTION_MEDIA_SCANNER_STARTED, uri));
295 new Intent(Intent.ACTION_MEDIA_SCANNER_FINISHED, uri));
2072 private boolean queryThumbnail(SQLiteQueryBuilder qb, Uri uri, String table, in queryThumbnail() argument
2078 qb.appendWhere("_id = " + uri.getPathSegments().get(3)); in queryThumbnail()
2082 String origId = uri.getQueryParameter("orig_id"); in queryThumbnail()
2089 boolean needBlocking = "1".equals(uri.getQueryParameter("blocking")); in queryThumbnail()
2090 boolean cancelRequest = "1".equals(uri.getQueryParameter("cancel")); in queryThumbnail()
2091 Uri origUri = uri.buildUpon().encodedPath( in queryThumbnail()
2092 uri.getPath().replaceFirst("thumbnails", "media")) in queryThumbnail()
[all …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DVoicemailProviderTest.java82 Uri uri = mResolver.insert(voicemailUri(), getTestVoicemailValues()); in testInsert() local
85 assertStoredValues(uri, getTestVoicemailValues()); in testInsert()
86 assertSelection(uri, getTestVoicemailValues(), Voicemails._ID, ContentUris.parseId(uri)); in testInsert()
92 Uri uri = insertVoicemail(); in testFileContent() local
93 OutputStream out = mResolver.openOutputStream(uri); in testFileContent()
98 InputStream in = mResolver.openInputStream(uri); in testFileContent()
109 Uri uri = insertVoicemail(); in testUpdate() local
117 int count = mResolver.update(uri, values, null, null); in testUpdate()
119 assertStoredValues(uri, values); in testUpdate()
123 Uri uri = insertVoicemail(); in testDelete() local
[all …]
DGroupsTest.java149 Uri uri = ContentUris.withAppendedId(Groups.CONTENT_URI, in testGroupDirtySetOnChange() local
151 assertDirty(uri, true); in testGroupDirtySetOnChange()
152 clearDirty(uri); in testGroupDirtySetOnChange()
153 assertDirty(uri, false); in testGroupDirtySetOnChange()
157 Uri uri = ContentUris.withAppendedId(Groups.CONTENT_URI, in testMarkAsDirtyParameter() local
159 clearDirty(uri); in testMarkAsDirtyParameter()
160 Uri updateUri = setCallerIsSyncAdapter(uri, mAccount); in testMarkAsDirtyParameter()
165 assertDirty(uri, false); in testMarkAsDirtyParameter()
169 Uri uri = ContentUris.withAppendedId(Groups.CONTENT_URI, in testGroupDirtyClearedWhenSetExplicitly() local
171 assertDirty(uri, true); in testGroupDirtyClearedWhenSetExplicitly()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
DEmlAttachmentProvider.java114 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
116 final int match = sUriMatcher.match(uri); in query()
123 uri.getQueryParameters(PhotoContract.ContentTypeParameters.CONTENT_TYPE); in query()
124 uri = uri.buildUpon().clearQuery().build(); in query()
125 final List<Uri> attachmentUris = mUriListMap.get(uri); in query()
129 cursor.setNotificationUri(getContext().getContentResolver(), uri); in query() local
132 addRow(cursor, mUriAttachmentMap.get(uri)); in query()
134 getContext().getContentResolver(), getListUriFromAttachmentUri(uri)); in query()
144 public String getType(Uri uri) { in getType() argument
145 final int match = sUriMatcher.match(uri); in getType()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapContentObserver.java138 public void onChange(boolean selfChange, Uri uri) {
140 + " Uri: " + uri.toString() + " selfchange: " + selfChange);
440 Uri uri = ContentUris.withAppendedId(Mms.CONTENT_URI, handle); in deleteMessageMms() local
441 Cursor c = mResolver.query(uri, null, null, null, null); in deleteMessageMms()
449 mResolver.update(uri, contentValues, null, null); in deleteMessageMms()
454 mResolver.delete(uri, null, null); in deleteMessageMms()
464 private void updateThreadIdMms(Uri uri, long threadId) { in updateThreadIdMms() argument
467 mResolver.update(uri, contentValues, null, null); in updateThreadIdMms()
472 Uri uri = ContentUris.withAppendedId(Mms.CONTENT_URI, handle); in unDeleteMessageMms() local
473 Cursor c = mResolver.query(uri, null, null, null, null); in unDeleteMessageMms()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DDictionaryProvider.java160 private static int matchUri(final Uri uri) { in matchUri() argument
162 final String protocolVersionArg = uri.getQueryParameter(QUERY_PARAMETER_PROTOCOL_VERSION); in matchUri()
165 case 1: return sUriMatcherV1.match(uri); in matchUri()
166 case 2: return sUriMatcherV2.match(uri); in matchUri()
171 private static String getClientId(final Uri uri) { in getClientId() argument
173 final String protocolVersionArg = uri.getQueryParameter(QUERY_PARAMETER_PROTOCOL_VERSION); in getClientId()
177 case 2: return uri.getPathSegments().get(0); in getClientId()
191 public String getType(final Uri uri) { in getType() argument
192 PrivateLog.log("Asked for type of : " + uri); in getType()
193 final int match = matchUri(uri); in getType()
[all …]
/packages/apps/Gallery2/src/com/android/photos/data/
DPhotoProvider.java63 void notifyChange(Uri uri, boolean syncToNetwork); in notifyChange() argument
272 public int deleteInTransaction(Uri uri, String selection, String[] selectionArgs, in deleteInTransaction() argument
274 int match = matchUri(uri); in deleteInTransaction()
276 selectionArgs = addIdToSelectionArgs(match, uri, selectionArgs); in deleteInTransaction()
277 return deleteCascade(uri, match, selection, selectionArgs); in deleteInTransaction()
281 public String getType(Uri uri) { in getType() argument
282 Cursor cursor = query(uri, PROJECTION_MIME_TYPE, null, null, null); in getType()
292 public Uri insertInTransaction(Uri uri, ContentValues values, boolean callerIsSyncAdapter) { in insertInTransaction() argument
293 int match = matchUri(uri); in insertInTransaction()
295 String table = getTableFromMatch(match, uri); in insertInTransaction()
[all …]
DSQLiteContentProvider.java76 public abstract Uri insertInTransaction(Uri uri, ContentValues values, in insertInTransaction() argument
83 public abstract int updateInTransaction(Uri uri, ContentValues values, String selection, in updateInTransaction() argument
90 public abstract int deleteInTransaction(Uri uri, String selection, String[] selectionArgs, in deleteInTransaction() argument
97 protected void postNotifyUri(Uri uri) { in postNotifyUri() argument
99 mChangedUris.add(uri); in postNotifyUri()
103 public boolean isCallerSyncAdapter(Uri uri) { in isCallerSyncAdapter() argument
116 public Uri insert(Uri uri, ContentValues values) { in insert() argument
118 boolean callerIsSyncAdapter = isCallerSyncAdapter(uri); in insert()
124 result = insertInTransaction(uri, values, callerIsSyncAdapter); in insert()
132 result = insertInTransaction(uri, values, callerIsSyncAdapter); in insert()
[all …]
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DMmsProvider.java74 public Cursor query(Uri uri, String[] projection, in query() argument
79 int match = sURLMatcher.match(uri); in query()
81 Log.v(TAG, "Query uri=" + uri + ", match=" + match); in query()
102 qb.appendWhere(Mms._ID + "=" + uri.getPathSegments().get(0)); in query()
109 qb.appendWhere(Mms._ID + "=" + uri.getPathSegments().get(1)); in query()
118 qb.appendWhere(Part.MSG_ID + "=" + uri.getPathSegments().get(0)); in query()
122 qb.appendWhere(Part._ID + "=" + uri.getPathSegments().get(1)); in query()
126 qb.appendWhere(Addr.MSG_ID + "=" + uri.getPathSegments().get(0)); in query()
168 qb.appendWhere("T.id1 = " + uri.getLastPathSegment()); in query()
179 qb.appendWhere("pdu._id = " + uri.getLastPathSegment()); in query()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DConversationCursor.java188 public ConversationCursor(Activity activity, Uri uri, boolean initialConversationLimit, in ConversationCursor() argument
192 qUri = uri; in ConversationCursor()
492 public boolean contains(String uri) { in contains() argument
493 return mConversationUriPositionMap.containsKey(uri); in contains()
624 Uri uri = qUri; in doQuery() local
626 uri = uri.buildUpon().appendQueryParameter(ConversationListQueryParameters.LIMIT, in doQuery()
632 final Cursor result = mResolver.query(uri, qProjection, null, null, null); in doQuery()
635 LogUtils.w(LOG_TAG, "doQuery returning null cursor, uri: " + uri); in doQuery()
639 uri, time, result.getCount()); in doQuery()
868 private static Uri uriFromCachingUri(Uri uri) { in uriFromCachingUri() argument
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/provider/
DClockProvider.java61 public Cursor query(Uri uri, String[] projectionIn, String selection, String[] selectionArgs, in query() argument
66 int match = sURLMatcher.match(uri); in query()
74 qb.appendWhere(uri.getLastPathSegment()); in query()
82 qb.appendWhere(uri.getLastPathSegment()); in query()
90 qb.appendWhere(uri.getLastPathSegment()); in query()
93 throw new IllegalArgumentException("Unknown URL " + uri); in query()
103 ret.setNotificationUri(getContext().getContentResolver(), uri); in query() local
110 public String getType(Uri uri) { in getType() argument
111 int match = sURLMatcher.match(uri); in getType()
131 public int update(Uri uri, ContentValues values, String where, String[] whereArgs) { in update() argument
[all …]
/packages/apps/Browser/src/com/android/browser/provider/
DSQLiteContentProvider.java69 public abstract Uri insertInTransaction(Uri uri, ContentValues values, in insertInTransaction() argument
75 public abstract int updateInTransaction(Uri uri, ContentValues values, String selection, in updateInTransaction() argument
81 public abstract int deleteInTransaction(Uri uri, String selection, String[] selectionArgs, in deleteInTransaction() argument
88 protected void postNotifyUri(Uri uri) { in postNotifyUri() argument
90 mChangedUris.add(uri); in postNotifyUri()
94 public boolean isCallerSyncAdapter(Uri uri) { in isCallerSyncAdapter() argument
107 public Uri insert(Uri uri, ContentValues values) { in insert() argument
109 boolean callerIsSyncAdapter = isCallerSyncAdapter(uri); in insert()
115 result = insertInTransaction(uri, values, callerIsSyncAdapter); in insert()
123 result = insertInTransaction(uri, values, callerIsSyncAdapter); in insert()
[all …]
DBrowserProvider2.java802 public boolean isCallerSyncAdapter(Uri uri) { in isCallerSyncAdapter() argument
803 return uri.getBooleanQueryParameter(BrowserContract.CALLER_IS_SYNCADAPTER, false); in isCallerSyncAdapter()
830 public String getType(Uri uri) { in getType() argument
831 final int match = URI_MATCHER.match(uri); in getType()
857 Object[] getSelectionWithAccounts(Uri uri, String selection, String[] selectionArgs) { in getSelectionWithAccounts() argument
859 String accountType = uri.getQueryParameter(Bookmarks.PARAM_ACCOUNT_TYPE); in getSelectionWithAccounts()
860 String accountName = uri.getQueryParameter(Bookmarks.PARAM_ACCOUNT_NAME); in getSelectionWithAccounts()
879 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
882 final int match = URI_MATCHER.match(uri); in query()
884 String limit = uri.getQueryParameter(BrowserContract.PARAM_LIMIT); in query()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/
DImageLoader.java84 public static String getLocalPathFromUri(Context context, Uri uri) { in getLocalPathFromUri() argument
85 Cursor cursor = context.getContentResolver().query(uri, in getLocalPathFromUri()
99 public static int getMetadataOrientation(Context context, Uri uri) { in getMetadataOrientation() argument
100 if (uri == null || context == null) { in getMetadataOrientation()
107 cursor = context.getContentResolver().query(uri, in getMetadataOrientation()
136 if (ContentResolver.SCHEME_FILE.equals(uri.getScheme())) { in getMetadataOrientation()
137 String mimeType = getMimeType(uri); in getMetadataOrientation()
141 String path = uri.getPath(); in getMetadataOrientation()
144 is = context.getContentResolver().openInputStream(uri); in getMetadataOrientation()
187 public static int getMetadataRotation(Context context, Uri uri) { in getMetadataRotation() argument
[all …]
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadProvider.java481 public String getType(final Uri uri) { in getType() argument
482 int match = sURIMatcher.match(uri); in getType()
492 final String id = getDownloadIdFromUri(uri); in getType()
506 Log.v(Constants.TAG, "calling getType on an unknown URI: " + uri); in getType()
508 throw new IllegalArgumentException("Unknown URI: " + uri); in getType()
517 public Uri insert(final Uri uri, final ContentValues values) { in insert() argument
522 int match = sURIMatcher.match(uri); in insert()
524 Log.d(Constants.TAG, "calling insert on an unknown/invalid URI: " + uri); in insert()
525 throw new IllegalArgumentException("Unknown/Invalid URI " + uri); in insert()
686 notifyContentChanged(uri, match); in insert()
[all …]
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DSQLiteContentProvider.java63 protected abstract Uri insertInTransaction(Uri uri, ContentValues values, in insertInTransaction() argument
69 protected abstract int updateInTransaction(Uri uri, ContentValues values, String selection, in updateInTransaction() argument
75 protected abstract int deleteInTransaction(Uri uri, String selection, String[] selectionArgs, in deleteInTransaction() argument
89 public Uri insert(Uri uri, ContentValues values) { in insert() argument
92 boolean isCallerSyncAdapter = getIsCallerSyncAdapter(uri); in insert()
98 result = insertInTransaction(uri, values, isCallerSyncAdapter); in insert()
108 onEndTransaction(!isCallerSyncAdapter && shouldSyncFor(uri)); in insert()
110 result = insertInTransaction(uri, values, isCallerSyncAdapter); in insert()
119 public int bulkInsert(Uri uri, ContentValues[] values) { in bulkInsert() argument
121 boolean isCallerSyncAdapter = getIsCallerSyncAdapter(uri); in bulkInsert()
[all …]
/packages/apps/Mms/src/com/android/mms/util/
DThumbnailManager.java106 public ItemLoadedFuture getThumbnail(Uri uri, in getThumbnail() argument
108 return getThumbnail(uri, false, callback); in getThumbnail()
118 public ItemLoadedFuture getVideoThumbnail(Uri uri, in getVideoThumbnail() argument
120 return getThumbnail(uri, true, callback); in getVideoThumbnail()
123 private ItemLoadedFuture getThumbnail(Uri uri, boolean isVideo, in getThumbnail() argument
125 if (uri == null) { in getThumbnail()
129 final Bitmap thumbnail = DEBUG_DISABLE_CACHE ? null : mThumbnailCache.get(uri); in getThumbnail()
132 final boolean taskExists = mPendingTaskUris.contains(uri); in getThumbnail()
137 Log.v(TAG, "getThumbnail mThumbnailCache.get for uri: " + uri + " thumbnail: " + in getThumbnail()
153 addCallback(uri, callback); in getThumbnail()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppProvider.java201 public String getType(Uri uri) { in getType() argument
202 int match = sURIMatcher.match(uri); in getType()
211 if (D) Log.d(TAG, "calling getType on an unknown URI: " + uri); in getType()
212 throw new IllegalArgumentException("Unknown URI: " + uri); in getType()
232 public Uri insert(Uri uri, ContentValues values) { in insert() argument
235 if (sURIMatcher.match(uri) != SHARES) { in insert()
236 if (D) Log.d(TAG, "calling insert on an unknown/invalid URI: " + uri); in insert()
237 throw new IllegalArgumentException("Unknown/Invalid URI " + uri); in insert()
288 context.getContentResolver().notifyChange(uri, null); in insert()
303 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
[all …]
/packages/apps/Camera2/src/com/android/camera/crop/
DImageLoader.java74 public static String getLocalPathFromUri(Context context, Uri uri) { in getLocalPathFromUri() argument
75 Cursor cursor = context.getContentResolver().query(uri, in getLocalPathFromUri()
89 public static int getMetadataOrientation(Context context, Uri uri) { in getMetadataOrientation() argument
90 if (uri == null || context == null) { in getMetadataOrientation()
97 cursor = context.getContentResolver().query(uri, in getMetadataOrientation()
124 if (ContentResolver.SCHEME_FILE.equals(uri.getScheme())) { in getMetadataOrientation()
125 String mimeType = getMimeType(uri); in getMetadataOrientation()
129 String path = uri.getPath(); in getMetadataOrientation()
161 public static int getMetadataRotation(Context context, Uri uri) { in getMetadataRotation() argument
162 int orientation = getMetadataOrientation(context, uri); in getMetadataRotation()
[all …]
/packages/apps/Mms/src/com/android/mms/ui/
DUriImage.java67 public UriImage(Context context, Uri uri) { in UriImage() argument
68 if ((null == context) || (null == uri)) { in UriImage()
72 String scheme = uri.getScheme(); in UriImage()
74 initFromContentUri(context, uri); in UriImage()
75 } else if (uri.getScheme().equals("file")) { in UriImage()
76 initFromFile(context, uri); in UriImage()
80 mUri = uri; in UriImage()
85 Log.v(TAG, "UriImage uri: " + uri + " mPath: " + mPath + " mWidth: " + mWidth + in UriImage()
90 private void initFromFile(Context context, Uri uri) { in initFromFile() argument
91 mPath = uri.getPath(); in initFromFile()
[all …]
/packages/apps/Email/src/com/android/email/provider/
DEmailProvider.java336 private static int findMatch(Uri uri, String methodName) { in findMatch() argument
337 int match = sURIMatcher.match(uri); in findMatch()
339 throw new IllegalArgumentException("Unknown uri: " + uri); in findMatch()
341 LogUtils.v(TAG, methodName + ": uri=" + uri + ", match is " + match); in findMatch()
576 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
577 Log.d(TAG, "Delete: " + uri); in delete()
578 final int match = findMatch(uri, "delete"); in delete()
595 if (!uri.getBooleanQueryParameter(IS_UIPROVIDER, false)) { in delete()
596 notifyUIConversation(uri); in delete()
601 return uiDeleteMessage(uri); in delete()
[all …]

12345678910>>...24