/frameworks/base/test-runner/src/android/test/ |
D | SyncBaseInstrumentation.java | 19 import android.content.ContentResolver; 33 ContentResolver mContentResolver; 49 extras.putBoolean(ContentResolver.SYNC_EXTRAS_IGNORE_SETTINGS, true); in syncProvider() 52 ContentResolver.requestSync(account, authority, extras); in syncProvider() 67 if (ContentResolver.isSyncActive(account, authority)) { in syncProvider() 76 ContentResolver.setMasterSyncAutomatically(false); in cancelSyncsandDisableAutoSync() 77 ContentResolver.cancelSync(null /* all accounts */, null /* all authorities */); in cancelSyncsandDisableAutoSync()
|
D | IsolatedContext.java | 29 import android.content.ContentResolver; 51 private ContentResolver mResolver; 57 ContentResolver resolver, Context targetContext) { in IsolatedContext() 71 public ContentResolver getContentResolver() { in getContentResolver()
|
/frameworks/base/core/java/android/content/ |
D | SyncActivityTooManyDeletes.java | 118 extras.putBoolean(ContentResolver.SYNC_EXTRAS_OVERRIDE_TOO_MANY_DELETIONS, true); in startSyncReallyDelete() 119 extras.putBoolean(ContentResolver.SYNC_EXTRAS_MANUAL, true); in startSyncReallyDelete() 120 extras.putBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, true); in startSyncReallyDelete() 121 extras.putBoolean(ContentResolver.SYNC_EXTRAS_UPLOAD, true); in startSyncReallyDelete() 122 ContentResolver.requestSync(mAccount, mAuthority, extras); in startSyncReallyDelete() 127 extras.putBoolean(ContentResolver.SYNC_EXTRAS_DISCARD_LOCAL_DELETIONS, true); in startSyncUndoDeletes() 128 extras.putBoolean(ContentResolver.SYNC_EXTRAS_MANUAL, true); in startSyncUndoDeletes() 129 extras.putBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, true); in startSyncUndoDeletes() 130 extras.putBoolean(ContentResolver.SYNC_EXTRAS_UPLOAD, true); in startSyncUndoDeletes() 131 ContentResolver.requestSync(mAccount, mAuthority, extras); in startSyncUndoDeletes()
|
D | SyncRequest.java | 490 ContentResolver.validateSyncExtrasBundle(mCustomExtras); in build() 497 mSyncConfigExtras.putBoolean(ContentResolver.SYNC_EXTRAS_IGNORE_BACKOFF, true); in build() 500 mSyncConfigExtras.putBoolean(ContentResolver.SYNC_EXTRAS_DISALLOW_METERED, true); in build() 503 mSyncConfigExtras.putBoolean(ContentResolver.SYNC_EXTRAS_IGNORE_SETTINGS, true); in build() 506 mSyncConfigExtras.putBoolean(ContentResolver.SYNC_EXTRAS_DO_NOT_RETRY, true); in build() 509 mSyncConfigExtras.putBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, true); in build() 512 mSyncConfigExtras.putBoolean(ContentResolver.SYNC_EXTRAS_IGNORE_BACKOFF, true); in build() 513 mSyncConfigExtras.putBoolean(ContentResolver.SYNC_EXTRAS_IGNORE_SETTINGS, true); in build() 517 if (ContentResolver.invalidPeriodicExtras(mCustomExtras) || in build() 518 ContentResolver.invalidPeriodicExtras(mSyncConfigExtras)) { in build()
|
D | ContentInsertHandler.java | 38 public void insert(ContentResolver contentResolver, InputStream in) in insert() 47 public void insert(ContentResolver contentResolver, String in) in insert()
|
/frameworks/base/services/core/java/com/android/server/content/ |
D | SyncOperation.java | 22 import android.content.ContentResolver; 125 if (!this.extras.getBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, false)) { in SyncOperation() 126 this.extras.putBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, true); in SyncOperation() 132 this.extras.remove(ContentResolver.SYNC_EXTRAS_EXPEDITED); in SyncOperation() 160 removeFalseExtra(bundle, ContentResolver.SYNC_EXTRAS_UPLOAD); in cleanBundle() 161 removeFalseExtra(bundle, ContentResolver.SYNC_EXTRAS_MANUAL); in cleanBundle() 162 removeFalseExtra(bundle, ContentResolver.SYNC_EXTRAS_IGNORE_SETTINGS); in cleanBundle() 163 removeFalseExtra(bundle, ContentResolver.SYNC_EXTRAS_IGNORE_BACKOFF); in cleanBundle() 164 removeFalseExtra(bundle, ContentResolver.SYNC_EXTRAS_DO_NOT_RETRY); in cleanBundle() 165 removeFalseExtra(bundle, ContentResolver.SYNC_EXTRAS_DISCARD_LOCAL_DELETIONS); in cleanBundle() [all …]
|
/frameworks/base/cmds/requestsync/src/com/android/commands/requestsync/ |
D | RequestSync.java | 21 import android.content.ContentResolver; 83 ContentResolver.requestSync(account, mAuthority, mExtras); in run() 100 mExtras.putBoolean(ContentResolver.SYNC_EXTRAS_IGNORE_SETTINGS, true); in parseArgs() 102 mExtras.putBoolean(ContentResolver.SYNC_EXTRAS_IGNORE_BACKOFF, true); in parseArgs() 104 mExtras.putBoolean(ContentResolver.SYNC_EXTRAS_DISCARD_LOCAL_DELETIONS, true); in parseArgs() 106 mExtras.putBoolean(ContentResolver.SYNC_EXTRAS_DO_NOT_RETRY, true); in parseArgs() 108 mExtras.putBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, true); in parseArgs() 110 mExtras.putBoolean(ContentResolver.SYNC_EXTRAS_INITIALIZE, true); in parseArgs() 112 mExtras.putBoolean(ContentResolver.SYNC_EXTRAS_MANUAL, true); in parseArgs() 114 mExtras.putBoolean(ContentResolver.SYNC_EXTRAS_OVERRIDE_TOO_MANY_DELETIONS, true); in parseArgs() [all …]
|
/frameworks/base/core/java/android/provider/ |
D | Browser.java | 19 import android.content.ContentResolver; 237 public static final Cursor getAllBookmarks(ContentResolver cr) throws in getAllBookmarks() 252 public static final Cursor getAllVisitedUrls(ContentResolver cr) throws in getAllVisitedUrls() 263 private static final Cursor getVisitedLike(ContentResolver cr, String url) { in getVisitedLike() 312 public static final void updateVisitedHistory(ContentResolver cr, in updateVisitedHistory() 362 public static final String[] getVisitedHistory(ContentResolver cr) { in getVisitedHistory() 397 public static final void truncateHistory(ContentResolver cr) { in truncateHistory() 428 public static final boolean canClearHistory(ContentResolver cr) { in canClearHistory() 450 public static final void clearHistory(ContentResolver cr) { in clearHistory() 465 private static final void deleteHistoryWhere(ContentResolver cr, String whereClause) { in deleteHistoryWhere() [all …]
|
D | Settings.java | 25 import android.content.ContentResolver; 1027 protected static boolean putString(ContentResolver resolver, Uri uri, in putString() 1076 private IContentProvider lazyGetProvider(ContentResolver cr) { in lazyGetProvider() 1087 public boolean putStringForUser(ContentResolver cr, String name, String value, in putStringForUser() 1102 public String getStringForUser(ContentResolver cr, String name, final int userHandle) { in getStringForUser() 1318 public static String getString(ContentResolver resolver, String name) { in getString() 1323 public static String getStringForUser(ContentResolver resolver, String name, in getStringForUser() 1345 public static boolean putString(ContentResolver resolver, String name, String value) { in putString() 1350 public static boolean putStringForUser(ContentResolver resolver, String name, String value, in putStringForUser() 1399 public static int getInt(ContentResolver cr, String name, int def) { in getInt() [all …]
|
D | DocumentsContract.java | 23 import android.content.ContentResolver; 534 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT) in buildRootsUri() 545 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT) in buildRootUri() 558 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT) in buildRecentDocumentsUri() 570 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT).authority(authority) in buildTreeDocumentUri() 583 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT) in buildDocumentUri() 611 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT) in buildDocumentUriUsingTree() 638 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT).authority(authority) in buildChildDocumentsUri() 668 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT) in buildChildDocumentsUriUsingTree() 685 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT).authority(authority) in buildSearchDocumentsUri() [all …]
|
D | MediaStore.java | 21 import android.content.ContentResolver; 577 Cursor c, Uri baseUri, ContentResolver cr, BitmapFactory.Options options) { in getMiniThumbFromFile() 609 static void cancelThumbnailRequest(ContentResolver cr, long origId, Uri baseUri, in cancelThumbnailRequest() 638 static Bitmap getThumbnail(ContentResolver cr, long origId, long groupId, int kind, in getThumbnail() 809 public static final Cursor query(ContentResolver cr, Uri uri, String[] projection) { in query() 813 public static final Cursor query(ContentResolver cr, Uri uri, String[] projection, in query() 819 public static final Cursor query(ContentResolver cr, Uri uri, String[] projection, in query() 833 public static final Bitmap getBitmap(ContentResolver cr, Uri url) in getBitmap() 851 public static final String insertImage(ContentResolver cr, String imagePath, in insertImage() 869 ContentResolver cr, in StoreThumbnail() [all …]
|
D | SearchIndexablesContract.java | 19 import android.content.ContentResolver; 150 public static final String MIME_TYPE = ContentResolver.CURSOR_DIR_BASE_TYPE + 172 public static final String MIME_TYPE = ContentResolver.CURSOR_DIR_BASE_TYPE + 225 public static final String MIME_TYPE = ContentResolver.CURSOR_DIR_BASE_TYPE +
|
D | SearchRecentSuggestions.java | 19 import android.content.ContentResolver; 189 ContentResolver cr = mContext.getContentResolver(); in saveRecentQueryBlocking() 219 ContentResolver cr = mContext.getContentResolver(); in clearHistory() 229 protected void truncateHistory(ContentResolver cr, int maxEntries) { in truncateHistory()
|
/frameworks/base/services/core/java/com/android/server/ |
D | CertBlacklister.java | 20 import android.content.ContentResolver; 55 private final ContentResolver mContentResolver; 57 public BlacklistObserver(String key, String name, String path, ContentResolver cr) { in BlacklistObserver() 113 private BlacklistObserver buildPubkeyObserver(ContentResolver cr) { in buildPubkeyObserver() 120 private BlacklistObserver buildSerialObserver(ContentResolver cr) { in buildSerialObserver() 127 private void registerObservers(ContentResolver cr) { in registerObservers()
|
D | SamplingProfilerService.java | 19 import android.content.ContentResolver; 91 ContentResolver contentResolver = context.getContentResolver(); in registerSettingObserver() 106 private ContentResolver mContentResolver; 107 public SamplingProfilerSettingsObserver(ContentResolver contentResolver) { in SamplingProfilerSettingsObserver()
|
/frameworks/base/core/java/android/database/sqlite/ |
D | SqliteWrapper.java | 20 import android.content.ContentResolver; 56 public static Cursor query(Context context, ContentResolver resolver, Uri uri, in query() 76 public static int update(Context context, ContentResolver resolver, Uri uri, in update() 87 public static int delete(Context context, ContentResolver resolver, Uri uri, in delete() 98 public static Uri insert(Context context, ContentResolver resolver, in insert()
|
/frameworks/opt/telephony/src/java/com/google/android/mms/util/ |
D | SqliteWrapper.java | 21 import android.content.ContentResolver; 68 public static Cursor query(Context context, ContentResolver resolver, Uri uri, in query() 88 public static int update(Context context, ContentResolver resolver, Uri uri, in update() 99 public static int delete(Context context, ContentResolver resolver, Uri uri, in delete() 110 public static Uri insert(Context context, ContentResolver resolver, in insert()
|
/frameworks/base/docs/html/training/sync-adapters/ |
D | running-sync-adapter.jd | 102 In response to this message, call {@link android.content.ContentResolver#requestSync 103 ContentResolver.requestSync()} to signal the sync adapter framework to run your 124 {@link android.content.ContentResolver#requestSync requestSync()} in response to an 163 ContentResolver.requestSync(ACCOUNT, AUTHORITY, null); 177 {@link android.content.ContentResolver#requestSync requestSync()} to tell the framework to run 185 {@link android.content.ContentResolver#requestSync requestSync()} when the data changes. 192 {@link android.content.ContentResolver#requestSync requestSync()} to start the sync adapter. 196 {@link android.content.ContentResolver#registerContentObserver registerContentObserver()}. In 199 {@link android.content.ContentResolver} methods that modify your provider, such as 200 {@link android.content.ContentResolver#insert ContentResolver.insert()}. If there's a match, your [all …]
|
/frameworks/base/core/java/android/service/fingerprint/ |
D | FingerprintUtils.java | 19 import android.content.ContentResolver; 35 public static int[] getFingerprintIdsForUser(ContentResolver res, int userId) { in getFingerprintIdsForUser() 54 public static void addFingerprintIdForUser(int fingerId, ContentResolver res, int userId) { in addFingerprintIdForUser() 70 public static boolean removeFingerprintIdForUser(int fingerId, ContentResolver res, int userId) in removeFingerprintIdForUser()
|
/frameworks/base/core/java/android/text/method/ |
D | TextKeyListener.java | 19 import android.content.ContentResolver; 60 private WeakReference<ContentResolver> mResolver; 247 final ContentResolver contentResolver = mResolver.get(); in release() 259 final ContentResolver contentResolver = context.getContentResolver(); in initPrefs() 260 mResolver = new WeakReference<ContentResolver>(contentResolver); in initPrefs() 278 final ContentResolver contentResolver = mResolver.get(); in onChange() 290 private void updatePrefs(ContentResolver resolver) { in updatePrefs()
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/ |
D | ImageUtils.java | 20 import android.content.ContentResolver; 96 public static BitmapResult createLocalBitmap(final ContentResolver resolver, final Uri uri, in createLocalBitmap() 205 private static InputStreamFactory createInputStreamFactory(final ContentResolver resolver, in createInputStreamFactory() 229 protected final ContentResolver mResolver; 232 public BaseInputStreamFactory(final ContentResolver resolver, final Uri uri) { in BaseInputStreamFactory() 246 public DataInputStreamFactory(final ContentResolver resolver, final Uri uri) { in DataInputStreamFactory()
|
/frameworks/opt/telephony/src/java/android/provider/ |
D | Telephony.java | 22 import android.content.ContentResolver; 300 public static Cursor query(ContentResolver cr, String[] projection) { in query() 308 public static Cursor query(ContentResolver cr, String[] projection, in query() 338 public static Uri addMessageToUri(ContentResolver resolver, in addMessageToUri() 360 public static Uri addMessageToUri(int subId, ContentResolver resolver, in addMessageToUri() 382 public static Uri addMessageToUri(ContentResolver resolver, in addMessageToUri() 406 public static Uri addMessageToUri(int subId, ContentResolver resolver, in addMessageToUri() 522 public static Uri addMessage(ContentResolver resolver, in addMessage() 542 public static Uri addMessage(int subId, ContentResolver resolver, in addMessage() 582 public static Uri addMessage(ContentResolver resolver, in addMessage() [all …]
|
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/ |
D | VCardVerifier.java | 18 import android.content.ContentResolver; 66 final ContentResolver mResolver; 67 public CustomMockContext(ContentResolver resolver) { in CustomMockContext() 72 public ContentResolver getContentResolver() { in getContentResolver() 327 final ContentResolver resolver, in mockGetEntityIteratorMethod() 342 ContentResolver.class, Uri.class, String.class, String[].class, String.class); in getMockGetEntityIteratorMethod() 347 final ContentResolver resolver = context.getContentResolver(); in verifyForExportTest()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiSettingsStore.java | 19 import android.content.ContentResolver; 136 final ContentResolver cr = mContext.getContentResolver(); in persistWifiState() 165 final ContentResolver cr = mContext.getContentResolver(); in testAndClearWifiSavedState() 178 final ContentResolver cr = mContext.getContentResolver(); in getPersistedWifiState()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/content/ |
D | SyncOperationTest.java | 20 import android.content.ContentResolver; 143 b2.putBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, true); in testCompareTo() 167 withExpedited.putBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, true); in testCopyConstructor() 179 copy.extras.getBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, false)); in testCopyConstructor()
|