/frameworks/base/cmds/requestsync/src/com/android/commands/requestsync/ |
D | RequestSync.java | 21 import android.content.ContentResolver; 33 private int mExemptionFlag = ContentResolver.SYNC_EXEMPTION_NONE; 40 caller.mExtras.putInt(ContentResolver.SYNC_VIRTUAL_EXTRAS_EXEMPTION_FLAG, flag); in invoke() 41 if (flag == ContentResolver.SYNC_EXEMPTION_NONE) { in invoke() 54 ContentResolver.requestSync(request); in invoke() 60 ContentResolver.addPeriodicSync(caller.mAccount, caller.mAuthority, caller.mExtras, in invoke() 67 ContentResolver.removePeriodicSync( in invoke() 166 mExtras.putBoolean(ContentResolver.SYNC_EXTRAS_IGNORE_SETTINGS, true); in parseArgs() 168 mExtras.putBoolean(ContentResolver.SYNC_EXTRAS_IGNORE_BACKOFF, true); in parseArgs() 170 mExtras.putBoolean(ContentResolver.SYNC_EXTRAS_DISCARD_LOCAL_DELETIONS, true); in parseArgs() [all …]
|
/frameworks/base/test-runner/src/android/test/ |
D | SyncBaseInstrumentation.java | 19 import android.content.ContentResolver; 39 ContentResolver mContentResolver; 55 extras.putBoolean(ContentResolver.SYNC_EXTRAS_IGNORE_SETTINGS, true); in syncProvider() 58 ContentResolver.requestSync(account, authority, extras); in syncProvider() 73 if (ContentResolver.isSyncActive(account, authority)) { in syncProvider() 82 ContentResolver.setMasterSyncAutomatically(false); in cancelSyncsandDisableAutoSync() 83 ContentResolver.cancelSync(null /* all accounts */, null /* all authorities */); in cancelSyncsandDisableAutoSync()
|
D | IsolatedContext.java | 21 import android.content.ContentResolver; 46 private ContentResolver mResolver; 52 ContentResolver resolver, Context targetContext) { in IsolatedContext() 66 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 | 22 import android.content.ContentResolver; 628 Cursor c, Uri baseUri, ContentResolver cr, BitmapFactory.Options options) { in getMiniThumbFromFile() 660 static void cancelThumbnailRequest(ContentResolver cr, long origId, Uri baseUri, in cancelThumbnailRequest() 689 static Bitmap getThumbnail(ContentResolver cr, long origId, long groupId, int kind, in getThumbnail() 860 public static final Cursor query(ContentResolver cr, Uri uri, String[] projection) { in query() 864 public static final Cursor query(ContentResolver cr, Uri uri, String[] projection, in query() 870 public static final Cursor query(ContentResolver cr, Uri uri, String[] projection, in query() 884 public static final Bitmap getBitmap(ContentResolver cr, Uri url) in getBitmap() 902 public static final String insertImage(ContentResolver cr, String imagePath, in insertImage() 920 ContentResolver cr, in StoreThumbnail() [all …]
|
D | DocumentsContract.java | 27 import android.content.ContentResolver; 756 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT) in buildRootsUri() 767 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT) in buildRootUri() 790 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT) in buildRecentDocumentsUri() 802 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT).authority(authority) in buildTreeDocumentUri() 815 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT) in buildDocumentUri() 843 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT) in buildDocumentUriUsingTree() 870 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT).authority(authority) in buildChildDocumentsUri() 900 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT) in buildChildDocumentsUriUsingTree() 917 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT).authority(authority) in buildSearchDocumentsUri() [all …]
|
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()
|
D | SearchIndexablesContract.java | 20 import android.content.ContentResolver; 188 public static final String MIME_TYPE = ContentResolver.CURSOR_DIR_BASE_TYPE + 220 public static final String MIME_TYPE = ContentResolver.CURSOR_DIR_BASE_TYPE + 285 public static final String MIME_TYPE = ContentResolver.CURSOR_DIR_BASE_TYPE +
|
/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 | 504 ContentResolver.validateSyncExtrasBundle(mCustomExtras); in build() 511 mSyncConfigExtras.putBoolean(ContentResolver.SYNC_EXTRAS_IGNORE_BACKOFF, true); in build() 514 mSyncConfigExtras.putBoolean(ContentResolver.SYNC_EXTRAS_DISALLOW_METERED, true); in build() 517 mSyncConfigExtras.putBoolean(ContentResolver.SYNC_EXTRAS_REQUIRE_CHARGING, true); in build() 520 mSyncConfigExtras.putBoolean(ContentResolver.SYNC_EXTRAS_IGNORE_SETTINGS, true); in build() 523 mSyncConfigExtras.putBoolean(ContentResolver.SYNC_EXTRAS_DO_NOT_RETRY, true); in build() 526 mSyncConfigExtras.putBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, true); in build() 529 mSyncConfigExtras.putBoolean(ContentResolver.SYNC_EXTRAS_IGNORE_BACKOFF, true); in build() 530 mSyncConfigExtras.putBoolean(ContentResolver.SYNC_EXTRAS_IGNORE_SETTINGS, true); in build() 534 if (ContentResolver.invalidPeriodicExtras(mCustomExtras) || in build() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/content/ |
D | SyncOperationTest.java | 20 import android.content.ContentResolver; 64 ContentResolver.SYNC_EXEMPTION_NONE); in testToKey() 73 ContentResolver.SYNC_EXEMPTION_NONE); in testToKey() 82 ContentResolver.SYNC_EXEMPTION_NONE); in testToKey() 91 ContentResolver.SYNC_EXEMPTION_NONE); in testToKey() 100 ContentResolver.SYNC_EXEMPTION_NONE); in testToKey() 121 ContentResolver.SYNC_EXEMPTION_NONE); in testConversionToExtras() 149 ContentResolver.SYNC_EXEMPTION_NONE); in testFailedPeriodicConversion()
|
/frameworks/support/content/src/androidTest/java/androidx/contentpager/content/ |
D | TestContentProvider.java | 22 import android.content.ContentResolver; 149 int offset = getIntValue(ContentResolver.QUERY_ARG_OFFSET, queryArgs, uri, 0); in buildPagedResults() 150 int limit = getIntValue(ContentResolver.QUERY_ARG_LIMIT, queryArgs, uri, recordsetSize); in buildPagedResults() 163 extras.putStringArray(ContentResolver.EXTRA_HONORED_ARGS, new String[] { in buildPagedResults() 164 ContentResolver.QUERY_ARG_OFFSET, in buildPagedResults() 165 ContentResolver.QUERY_ARG_LIMIT in buildPagedResults() 167 extras.putInt(ContentResolver.EXTRA_TOTAL_COUNT, recordsetSize); in buildPagedResults() 173 int offset = getIntValue(ContentResolver.QUERY_ARG_OFFSET, queryArgs, uri, 0); in buildPagedWindowedResults() 174 int limit = getIntValue(ContentResolver.QUERY_ARG_LIMIT, queryArgs, uri, recordsetSize); in buildPagedWindowedResults() 195 extras.putStringArray(ContentResolver.EXTRA_HONORED_ARGS, new String[] { in buildPagedWindowedResults() [all …]
|
D | ContentPagerTest.java | 30 import android.content.ContentResolver; 58 private ContentResolver mResolver; 105 extras.getInt(ContentResolver.EXTRA_TOTAL_COUNT)); in testRelaysProviderPagedResults() 109 ContentResolver.QUERY_ARG_LIMIT, in testRelaysProviderPagedResults() 110 ContentResolver.QUERY_ARG_OFFSET); in testRelaysProviderPagedResults() 155 extras.getInt(ContentResolver.EXTRA_TOTAL_COUNT)); in testLimitsPagedResultsToWindowSize() 164 ContentResolver.QUERY_ARG_LIMIT, in testLimitsPagedResultsToWindowSize() 165 ContentResolver.QUERY_ARG_OFFSET); in testLimitsPagedResultsToWindowSize() 200 extras.getInt(ContentResolver.EXTRA_TOTAL_COUNT)); in testAdaptsUnpagedToPaged() 204 ContentResolver.QUERY_ARG_LIMIT, in testAdaptsUnpagedToPaged() [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()
|
/frameworks/base/core/java/android/util/ |
D | KeyValueSettingObserver.java | 19 import android.content.ContentResolver; 45 private final ContentResolver mResolver; 48 public KeyValueSettingObserver(Handler handler, ContentResolver resolver, in KeyValueSettingObserver() 71 public abstract String getSettingValue(ContentResolver resolver); in getSettingValue()
|
/frameworks/base/services/core/java/com/android/server/content/ |
D | SyncOperation.java | 21 import android.content.ContentResolver; 22 import android.content.ContentResolver.SyncExemption; 122 periodMillis, flexMillis, ContentResolver.SYNC_EXEMPTION_NONE); in SyncOperation() 152 periodMillis, flexMillis, ContentResolver.SYNC_EXEMPTION_NONE); in createOneTimeSyncOperation() 280 ContentResolver.SYNC_EXEMPTION_NONE); in maybeCreateFromJobExtras() 387 if (extras.getBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, false)) { in dump() 391 case ContentResolver.SYNC_EXEMPTION_NONE: in dump() 393 case ContentResolver.SYNC_EXEMPTION_PROMOTE_BUCKET: in dump() 396 case ContentResolver.SYNC_EXEMPTION_PROMOTE_BUCKET_WITH_TEMP: in dump() 466 return extras.getBoolean(ContentResolver.SYNC_EXTRAS_INITIALIZE, false); in isInitialization() [all …]
|
/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/core/java/com/android/internal/backup/ |
D | LocalTransportParameters.java | 20 import android.content.ContentResolver; 34 LocalTransportParameters(Handler handler, ContentResolver resolver) { in LocalTransportParameters() 46 public String getSettingValue(ContentResolver resolver) { in getSettingValue()
|
/frameworks/base/core/java/com/android/server/backup/ |
D | AccountSyncSettingsBackupHelper.java | 24 import android.content.ContentResolver; 128 SyncAdapterType[] syncAdapters = ContentResolver.getSyncAdapterTypesAsUser( in serializeAccountSyncSettingsToJSON() 149 backupJSON.put(KEY_MASTER_SYNC_ENABLED, ContentResolver.getMasterSyncAutomatically()); in serializeAccountSyncSettingsToJSON() 168 int syncState = ContentResolver.getIsSyncable(account, authority); in serializeAccountSyncSettingsToJSON() 169 boolean syncEnabled = ContentResolver.getSyncAutomatically(account, authority); in serializeAccountSyncSettingsToJSON() 257 boolean currentMasterSyncEnabled = ContentResolver.getMasterSyncAutomatically(); in restoreEntity() 260 ContentResolver.setMasterSyncAutomatically(false); in restoreEntity() 267 ContentResolver.setMasterSyncAutomatically(masterSyncEnabled); in restoreEntity() 408 ContentResolver.setSyncAutomaticallyAsUser( in restoreExistingAccountSyncSettingsFromJSON() 412 ContentResolver.setIsSyncable( in restoreExistingAccountSyncSettingsFromJSON()
|
/frameworks/base/core/java/android/text/method/ |
D | TextKeyListener.java | 19 import android.content.ContentResolver; 65 private WeakReference<ContentResolver> mResolver; 252 final ContentResolver contentResolver = mResolver.get(); in release() 264 final ContentResolver contentResolver = context.getContentResolver(); in initPrefs() 265 mResolver = new WeakReference<ContentResolver>(contentResolver); in initPrefs() 283 final ContentResolver contentResolver = mResolver.get(); in onChange() 295 private void updatePrefs(ContentResolver resolver) { in updatePrefs()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | GlobalSettingsToPropertiesMapper.java | 19 import android.content.ContentResolver; 53 private final ContentResolver mContentResolver; 57 GlobalSettingsToPropertiesMapper(ContentResolver contentResolver, in GlobalSettingsToPropertiesMapper() 80 public static void start(ContentResolver contentResolver) { in start()
|
/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/support/slices/view/src/androidTest/java/androidx/slice/ |
D | SliceManagerTest.java | 32 import android.content.ContentResolver; 71 .scheme(ContentResolver.SCHEME_CONTENT) in testPin() 85 .scheme(ContentResolver.SCHEME_CONTENT) in testUnpin() 98 .scheme(ContentResolver.SCHEME_CONTENT) in testPinList() 123 .scheme(ContentResolver.SCHEME_CONTENT) in testCallback() 147 .scheme(ContentResolver.SCHEME_CONTENT) in testPinnedSpecs() 182 .scheme(ContentResolver.SCHEME_CONTENT) in testGetDescendants()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | SettingsObserver.java | 19 import android.content.ContentResolver; 52 final ContentResolver resolver = mContext.getContentResolver(); in observe() 60 final ContentResolver resolver = mContext.getContentResolver(); in unobserve()
|