| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package org.chromium.chrome.test.partnercustomizations; | 5 package org.chromium.chrome.test.partnercustomizations; |
| 6 | 6 |
| 7 import android.content.ContentProvider; | 7 import android.content.ContentProvider; |
| 8 import android.content.ContentValues; | 8 import android.content.ContentValues; |
| 9 import android.content.Context; | 9 import android.content.Context; |
| 10 import android.content.UriMatcher; | 10 import android.content.UriMatcher; |
| 11 import android.content.pm.ProviderInfo; | 11 import android.content.pm.ProviderInfo; |
| 12 import android.database.Cursor; | 12 import android.database.Cursor; |
| 13 import android.database.MatrixCursor; | 13 import android.database.MatrixCursor; |
| 14 import android.net.Uri; | 14 import android.net.Uri; |
| 15 import android.os.Bundle; | 15 import android.os.Bundle; |
| 16 import android.text.TextUtils; | 16 import android.text.TextUtils; |
| 17 import android.util.Log; | 17 import android.util.Log; |
| 18 | 18 |
| 19 import org.chromium.base.annotations.MainDex; |
| 20 |
| 19 /** | 21 /** |
| 20 * PartnerBrowserCustomizationsProvider example for testing. | 22 * PartnerBrowserCustomizationsProvider example for testing. |
| 21 * Note: if you move or rename this class, make sure you have also updated Andro
idManifest.xml. | 23 * Note: if you move or rename this class, make sure you have also updated Andro
idManifest.xml. |
| 22 */ | 24 */ |
| 25 @MainDex |
| 23 public class TestPartnerBrowserCustomizationsProvider extends ContentProvider { | 26 public class TestPartnerBrowserCustomizationsProvider extends ContentProvider { |
| 24 protected String mTag = TestPartnerBrowserCustomizationsProvider.class.getSi
mpleName(); | 27 protected String mTag = TestPartnerBrowserCustomizationsProvider.class.getSi
mpleName(); |
| 25 | 28 |
| 26 public static final String HOMEPAGE_URI = "http://127.0.0.1:8000/foo.html"; | 29 public static final String HOMEPAGE_URI = "http://127.0.0.1:8000/foo.html"; |
| 27 public static final String INCOGNITO_MODE_DISABLED_KEY = "disableincognitomo
de"; | 30 public static final String INCOGNITO_MODE_DISABLED_KEY = "disableincognitomo
de"; |
| 28 public static final String BOOKMARKS_EDITING_DISABLED_KEY = "disablebookmark
sediting"; | 31 public static final String BOOKMARKS_EDITING_DISABLED_KEY = "disablebookmark
sediting"; |
| 29 | 32 |
| 30 protected static final int URI_MATCH_HOMEPAGE = 1001; | 33 protected static final int URI_MATCH_HOMEPAGE = 1001; |
| 31 protected static final int URI_MATCH_DISABLE_INCOGNITO_MODE = 1002; | 34 protected static final int URI_MATCH_DISABLE_INCOGNITO_MODE = 1002; |
| 32 protected static final int URI_MATCH_DISABLE_BOOKMARKS_EDITING = 1003; | 35 protected static final int URI_MATCH_DISABLE_BOOKMARKS_EDITING = 1003; |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 public int delete(Uri uri, String selection, String[] selectionArgs) { | 133 public int delete(Uri uri, String selection, String[] selectionArgs) { |
| 131 throw new UnsupportedOperationException(); | 134 throw new UnsupportedOperationException(); |
| 132 } | 135 } |
| 133 | 136 |
| 134 @Override | 137 @Override |
| 135 public int update(Uri uri, ContentValues values, String selection, String[]
selectionArgs) { | 138 public int update(Uri uri, ContentValues values, String selection, String[]
selectionArgs) { |
| 136 throw new UnsupportedOperationException(); | 139 throw new UnsupportedOperationException(); |
| 137 } | 140 } |
| 138 | 141 |
| 139 } | 142 } |
| OLD | NEW |