Lines Matching refs:uri
56 * with MockProvider.uri(yourUri). This guarantees that the operation is sent to MockProvider
88 * @param uri the Uri from which the MockProvider Uri will be created
91 public static Uri uri(Uri uri) {
93 .path(uri.getPath().substring(1)).build();
97 public int delete(Uri uri, String selection, String[] selectionArgs) {
101 String path = uri.getPath();
111 public String getType(Uri uri) {
116 public Uri insert(Uri uri, ContentValues values) {
118 String table = uri.getPath().substring(1);
125 int match = sURIMatcher.match(uri);
139 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs,
144 final int match = sURIMatcher.match(uri(uri));
149 String prefix = uri.getPath() + "/";
157 ContentValues values = mMockStore.get(uri.getPath());
163 throw new IllegalArgumentException("Unknown URI " + uri);
178 public int update(Uri uri, ContentValues newValues, String selection, String[] selectionArgs) {
182 final int match = sURIMatcher.match(uri(uri));
184 String path = uri.getPath();
202 throw new IllegalArgumentException("Unknown URI " + uri);