1 /*
2  * Copyright (C) 2017 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
5  * except in compliance with the License. You may obtain a copy of the License at
6  *
7  *      http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software distributed under the
10  * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
11  * KIND, either express or implied. See the License for the specific language governing
12  * permissions and limitations under the License.
13  */
14 
15 package com.android.frameworks.tests.uiservices;
16 
17 import android.content.ContentProvider;
18 import android.content.ContentValues;
19 import android.database.Cursor;
20 import android.net.Uri;
21 
22 public class DummyProvider extends ContentProvider {
23     @Override
onCreate()24     public boolean onCreate() {
25         return true;
26     }
27 
28     @Override
query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder)29     public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs,
30             String sortOrder) {
31         return null;
32     }
33 
34     @Override
getType(Uri uri)35     public String getType(Uri uri) {
36         return null;
37     }
38 
39     @Override
insert(Uri uri, ContentValues values)40     public Uri insert(Uri uri, ContentValues values) {
41         return null;
42     }
43 
44     @Override
delete(Uri uri, String selection, String[] selectionArgs)45     public int delete(Uri uri, String selection, String[] selectionArgs) {
46         return 0;
47     }
48 
49     @Override
update(Uri uri, ContentValues values, String selection, String[] selectionArgs)50     public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) {
51         return 0;
52     }
53 }
54