/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/provider/ |
D | Browser.java | 19 import android.content.ContentResolver; 245 public static final Cursor getAllBookmarks(ContentResolver cr) throws in getAllBookmarks() 257 public static final Cursor getAllVisitedUrls(ContentResolver cr) throws in getAllVisitedUrls() 266 private static final Cursor getVisitedLike(ContentResolver cr, String url) { in getVisitedLike() 315 public static final void updateVisitedHistory(ContentResolver cr, in updateVisitedHistory() 326 public static final String[] getVisitedHistory(ContentResolver cr) { in getVisitedHistory() 340 public static final void truncateHistory(ContentResolver cr) { in truncateHistory() 350 public static final boolean canClearHistory(ContentResolver cr) { in canClearHistory() 361 public static final void clearHistory(ContentResolver cr) { in clearHistory() 375 public static final void deleteHistoryTimeFrame(ContentResolver cr, in deleteHistoryTimeFrame() [all …]
|
D | MediaStore.java | 21 import android.content.ContentResolver; 608 Cursor c, Uri baseUri, ContentResolver cr, BitmapFactory.Options options) { in getMiniThumbFromFile() 640 static void cancelThumbnailRequest(ContentResolver cr, long origId, Uri baseUri, in cancelThumbnailRequest() 669 static Bitmap getThumbnail(ContentResolver cr, long origId, long groupId, int kind, in getThumbnail() 840 public static final Cursor query(ContentResolver cr, Uri uri, String[] projection) { in query() 844 public static final Cursor query(ContentResolver cr, Uri uri, String[] projection, in query() 850 public static final Cursor query(ContentResolver cr, Uri uri, String[] projection, in query() 864 public static final Bitmap getBitmap(ContentResolver cr, Uri url) in getBitmap() 882 public static final String insertImage(ContentResolver cr, String imagePath, in insertImage() 900 ContentResolver cr, in StoreThumbnail() [all …]
|
D | DocumentsContract.java | 23 import android.content.ContentResolver; 562 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT) in buildRootsUri() 573 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT) in buildRootUri() 586 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT) in buildRecentDocumentsUri() 598 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT).authority(authority) in buildTreeDocumentUri() 611 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT) in buildDocumentUri() 639 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT) in buildDocumentUriUsingTree() 666 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT).authority(authority) in buildChildDocumentsUri() 696 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT) in buildChildDocumentsUriUsingTree() 713 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT).authority(authority) in buildSearchDocumentsUri() [all …]
|
D | Settings.java | 28 import android.content.ContentResolver; 1255 protected static boolean putString(ContentResolver resolver, Uri uri, in putString() 1304 private IContentProvider lazyGetProvider(ContentResolver cr) { in lazyGetProvider() 1315 public boolean putStringForUser(ContentResolver cr, String name, String value, in putStringForUser() 1330 public String getStringForUser(ContentResolver cr, String name, final int userHandle) { in getStringForUser() 1627 public static String getString(ContentResolver resolver, String name) { in getString() 1632 public static String getStringForUser(ContentResolver resolver, String name, in getStringForUser() 1654 public static boolean putString(ContentResolver resolver, String name, String value) { in putString() 1659 public static boolean putStringForUser(ContentResolver resolver, String name, String value, in putStringForUser() 1708 public static int getInt(ContentResolver cr, String name, int def) { in getInt() [all …]
|
D | SearchIndexablesContract.java | 20 import android.content.ContentResolver; 152 public static final String MIME_TYPE = ContentResolver.CURSOR_DIR_BASE_TYPE + 174 public static final String MIME_TYPE = ContentResolver.CURSOR_DIR_BASE_TYPE + 227 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/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()
|
/frameworks/base/services/core/java/com/android/server/content/ |
D | SyncOperation.java | 22 import android.content.ContentResolver; 128 if (!this.extras.getBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, false)) { in SyncOperation() 129 this.extras.putBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, true); in SyncOperation() 135 this.extras.remove(ContentResolver.SYNC_EXTRAS_EXPEDITED); in SyncOperation() 163 removeFalseExtra(bundle, ContentResolver.SYNC_EXTRAS_UPLOAD); in cleanBundle() 164 removeFalseExtra(bundle, ContentResolver.SYNC_EXTRAS_MANUAL); in cleanBundle() 165 removeFalseExtra(bundle, ContentResolver.SYNC_EXTRAS_IGNORE_SETTINGS); in cleanBundle() 166 removeFalseExtra(bundle, ContentResolver.SYNC_EXTRAS_IGNORE_BACKOFF); in cleanBundle() 167 removeFalseExtra(bundle, ContentResolver.SYNC_EXTRAS_DO_NOT_RETRY); in cleanBundle() 168 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/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/support/v4/java/android/support/v4/content/ |
D | ContentResolverCompat.java | 19 import android.content.ContentResolver; 32 Cursor query(ContentResolver resolver, in query() 39 public Cursor query(ContentResolver resolver, Uri uri, String[] projection, in query() 53 public Cursor query(ContentResolver resolver, Uri uri, String[] projection, in query() 122 public static Cursor query(ContentResolver resolver, in query()
|
/frameworks/base/core/java/com/android/server/backup/ |
D | AccountSyncSettingsBackupHelper.java | 28 import android.content.ContentResolver; 123 SyncAdapterType[] syncAdapters = ContentResolver.getSyncAdapterTypesAsUser( in serializeAccountSyncSettingsToJSON() 144 backupJSON.put(KEY_MASTER_SYNC_ENABLED, ContentResolver.getMasterSyncAutomatically()); in serializeAccountSyncSettingsToJSON() 163 int syncState = ContentResolver.getIsSyncable(account, authority); in serializeAccountSyncSettingsToJSON() 164 boolean syncEnabled = ContentResolver.getSyncAutomatically(account, authority); in serializeAccountSyncSettingsToJSON() 250 boolean currentMasterSyncEnabled = ContentResolver.getMasterSyncAutomatically(); in restoreEntity() 253 ContentResolver.setMasterSyncAutomatically(false); in restoreEntity() 277 ContentResolver.setMasterSyncAutomatically(masterSyncEnabled); in restoreEntity() 343 ContentResolver.setSyncAutomaticallyAsUser( in restoreExistingAccountSyncSettingsFromJSON() 347 ContentResolver.setIsSyncable( in restoreExistingAccountSyncSettingsFromJSON()
|
/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/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/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/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()
|