Home
last modified time | relevance | path

Searched refs:mContentResolver (Results 1 – 25 of 30) sorted by relevance

12

/frameworks/base/core/java/android/content/
DContentProviderClient.java58 private final ContentResolver mContentResolver; field in ContentProviderClient
73 mContentResolver = contentResolver; in ContentProviderClient()
132 mContentResolver.unstableProviderDied(mContentProvider); in query()
147 mContentResolver.unstableProviderDied(mContentProvider); in getType()
162 mContentResolver.unstableProviderDied(mContentProvider); in getStreamTypes()
177 mContentResolver.unstableProviderDied(mContentProvider); in canonicalize()
192 mContentResolver.unstableProviderDied(mContentProvider); in uncanonicalize()
207 mContentResolver.unstableProviderDied(mContentProvider); in insert()
222 mContentResolver.unstableProviderDied(mContentProvider); in bulkInsert()
238 mContentResolver.unstableProviderDied(mContentProvider); in delete()
[all …]
DDefaultDataHandler.java85 private ContentResolver mContentResolver; field in DefaultDataHandler
89 mContentResolver = contentResolver; in insert()
95 mContentResolver = contentResolver; in insert()
128 Uri u = mContentResolver.insert(mUris.lastElement(), mValues); in insertRow()
187 mContentResolver.delete(u, atts.getValue(1), selectionArgs); in startElement()
189 mContentResolver.delete(u, atts.getValue(1), null); in startElement()
191 mContentResolver.delete(u, null, null); in startElement()
/frameworks/base/core/tests/coretests/src/android/content/
DContentResolverTest.java24 private ContentResolver mContentResolver; field in ContentResolverTest
29 mContentResolver = mContext.getContentResolver(); in setUp()
38 mContentResolver.query(ContactsContract.Contacts.CONTENT_URI, null, null, null, null); in testCursorFinalizer()
/frameworks/base/core/java/android/database/
DAbstractCursor.java65 protected ContentResolver mContentResolver; field in AbstractCursor
126 mContentResolver.unregisterContentObserver(mSelfObserver); in onDeactivateOrClose()
134 mContentResolver.registerContentObserver(mNotifyUri, true, mSelfObserver); in requery()
341 mContentResolver.notifyChange(mNotifyUri, mSelfObserver); in onChange()
361 mContentResolver = cr; in setNotificationUri()
363 mContentResolver.unregisterContentObserver(mSelfObserver); in setNotificationUri()
366 mContentResolver.registerContentObserver(mNotifyUri, true, mSelfObserver, userHandle); in setNotificationUri()
433 mContentResolver.unregisterContentObserver(mSelfObserver); in finalize()
/frameworks/opt/vcard/java/com/android/vcard/
DVCardEntryCommitter.java43 private final ContentResolver mContentResolver; field in VCardEntryCommitter
50 mContentResolver = resolver; in VCardEntryCommitter()
71 mOperationList = vcardEntry.constructInsertOperations(mContentResolver, mOperationList); in onEntryCreated()
83 final ContentProviderResult[] results = mContentResolver.applyBatch( in pushIntoContentResolver()
DVCardComposer.java132 private final ContentResolver mContentResolver; field in VCardComposer
207 mContentResolver = resolver; in VCardComposer()
401 mCursor = mContentResolver.query( in initInterCursorCreationPart()
474 mContentResolver, uri, selection, selectionArgs, null); in createOneEntryInternal()
486 entityIterator = RawContacts.newEntityIterator(mContentResolver.query( in createOneEntryInternal()
/frameworks/base/core/java/android/view/accessibility/
DCaptioningManager.java59 private final ContentResolver mContentResolver; field in CaptioningManager
67 mContentResolver = context.getContentResolver(); in CaptioningManager()
75 mContentResolver, Secure.ACCESSIBILITY_CAPTIONING_ENABLED, DEFAULT_ENABLED) == 1; in isEnabled()
85 return Secure.getString(mContentResolver, Secure.ACCESSIBILITY_CAPTIONING_LOCALE); in getRawLocale()
116 mContentResolver, Secure.ACCESSIBILITY_CAPTIONING_FONT_SCALE, DEFAULT_FONT_SCALE); in getFontScale()
125 mContentResolver, Secure.ACCESSIBILITY_CAPTIONING_PRESET, DEFAULT_PRESET); in getRawUserStyle()
136 return CaptionStyle.getCustomStyle(mContentResolver); in getUserStyle()
168 mContentResolver.registerContentObserver(Secure.getUriFor(key), false, mContentObserver); in registerObserver()
182 mContentResolver.unregisterContentObserver(mContentObserver); in removeCaptioningChangeListener()
/frameworks/opt/chips/src/com/android/ex/chips/
DDefaultPhotoManager.java55 private final ContentResolver mContentResolver; field in DefaultPhotoManager
59 mContentResolver = contentResolver; in DefaultPhotoManager()
92 final Cursor photoCursor = mContentResolver.query( in fetchPhotoAsync()
108 InputStream is = mContentResolver.openInputStream( in fetchPhotoAsync()
DBaseRecipientAdapter.java327 final Cursor directoryCursor = mContentResolver.query( in searchOtherDirectories()
446 private final ContentResolver mContentResolver; field in BaseRecipientAdapter
539 mContentResolver = context.getContentResolver(); in BaseRecipientAdapter()
541 mPhotoManager = new DefaultPhotoManager(mContentResolver); in BaseRecipientAdapter()
851 final Cursor cursor = mContentResolver.query( in doQuery()
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
DObscureSpeechDelegate.java39 private final ContentResolver mContentResolver; field in ObscureSpeechDelegate
43 mContentResolver = context.getContentResolver(); in ObscureSpeechDelegate()
88 if (Settings.Secure.getInt(mContentResolver, in shouldObscureSpeech()
/frameworks/base/services/core/java/com/android/server/
DCertBlacklister.java55 private final ContentResolver mContentResolver; field in CertBlacklister.BlacklistObserver
63 mContentResolver = cr; in BlacklistObserver()
73 return Settings.Secure.getString(mContentResolver, mKey); in getValue()
DSamplingProfilerService.java106 private ContentResolver mContentResolver; field in SamplingProfilerService.SamplingProfilerSettingsObserver
109 mContentResolver = contentResolver; in SamplingProfilerSettingsObserver()
115 mContentResolver, Settings.Global.SAMPLING_PROFILER_MS, 0); in onChange()
DBluetoothManagerService.java104 private final ContentResolver mContentResolver; field in BluetoothManagerService
209 mContentResolver = context.getContentResolver(); in BluetoothManagerService()
245 return Settings.Global.getInt(mContentResolver, in isBluetoothPersistedStateOn()
253 return Settings.Global.getInt(mContentResolver, in isBluetoothPersistedStateOnBluetooth()
284 … Settings.Secure.getInt(mContentResolver, SECURE_SETTINGS_BLUETOOTH_ADDR_VALID, 0) == 0) { in loadStoredNameAndAddress()
289 mName = Settings.Secure.getString(mContentResolver, SECURE_SETTINGS_BLUETOOTH_NAME); in loadStoredNameAndAddress()
290 mAddress = Settings.Secure.getString(mContentResolver, SECURE_SETTINGS_BLUETOOTH_ADDRESS); in loadStoredNameAndAddress()
302 Settings.Secure.putString(mContentResolver, SECURE_SETTINGS_BLUETOOTH_NAME, name); in storeNameAndAddress()
305 Settings.Secure.getString(mContentResolver,SECURE_SETTINGS_BLUETOOTH_NAME)); in storeNameAndAddress()
309 Settings.Secure.putString(mContentResolver, SECURE_SETTINGS_BLUETOOTH_ADDRESS, address); in storeNameAndAddress()
[all …]
DDropBoxManagerService.java82 private final ContentResolver mContentResolver; field in DropBoxManagerService
142 mContentResolver = context.getContentResolver(); in DropBoxManagerService()
149 mContentResolver.registerContentObserver( in DropBoxManagerService()
272 mContentResolver, Settings.Global.DROPBOX_TAG_PREFIX + tag)); in isTagEnabled()
697 int ageSeconds = Settings.Global.getInt(mContentResolver, in trimToFit()
699 int maxFiles = Settings.Global.getInt(mContentResolver, in trimToFit()
719 int quotaPercent = Settings.Global.getInt(mContentResolver, in trimToFit()
721 int reservePercent = Settings.Global.getInt(mContentResolver, in trimToFit()
723 int quotaKb = Settings.Global.getInt(mContentResolver, in trimToFit()
DNsdService.java65 private ContentResolver mContentResolver; field in NsdService
580 mContentResolver = context.getContentResolver(); in NsdService()
607 Settings.Global.putInt(mContentResolver, Settings.Global.NSD_ON, enable ? 1 : 0); in setEnabled()
627 boolean ret = Settings.Global.getInt(mContentResolver, Settings.Global.NSD_ON, 1) == 1; in isNsdEnabled()
/frameworks/base/test-runner/src/android/test/
DSyncBaseInstrumentation.java33 ContentResolver mContentResolver; field in SyncBaseInstrumentation
40 mContentResolver = mTargetContext.getContentResolver(); in setUp()
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/
DPduPersister.java281 private final ContentResolver mContentResolver; field in PduPersister
287 mContentResolver = context.getContentResolver(); in PduPersister()
360 Cursor c = SqliteWrapper.query(mContext, mContentResolver, in loadParts()
449 is = mContentResolver.openInputStream(partURI); in loadParts()
485 Cursor c = SqliteWrapper.query(mContext, mContentResolver, in loadAddress()
554 Cursor c = SqliteWrapper.query(mContext, mContentResolver, uri, in load()
695 SqliteWrapper.insert(mContext, mContentResolver, uri, values); in persistAddress()
756 Uri res = SqliteWrapper.insert(mContext, mContentResolver, uri, values); in persistPart()
802 if (mContentResolver.update(uri, cv, null, null) != 1) { in persistData()
837 os = mContentResolver.openOutputStream(uri); in persistData()
[all …]
/frameworks/ex/common/java/com/android/common/contacts/
DBaseEmailAddressAdapter.java168 directoryCursor = mContentResolver.query( in performFiltering()
185 cursor = mContentResolver.query(uri, EmailQuery.PROJECTION, null, null, null); in performFiltering()
238 Cursor cursor = mContentResolver.query( in performFiltering()
253 protected final ContentResolver mContentResolver; field in BaseEmailAddressAdapter
265 mContentResolver = context.getContentResolver(); in BaseEmailAddressAdapter()
/frameworks/base/core/java/com/android/internal/widget/
DLockPatternUtils.java164 private final ContentResolver mContentResolver; field in LockPatternUtils
199 mContentResolver = context.getContentResolver(); in LockPatternUtils()
1202 return Settings.System.getIntForUser(mContentResolver, in isTactileFeedbackEnabled()
1307 mContentResolver, Settings.Secure.LOCK_SCREEN_APPWIDGET_IDS, userId); in getAppWidgets()
1365 Settings.Secure.putIntForUser(mContentResolver, in writeFallbackAppWidgetId()
1375 mContentResolver, in getFallbackAppWidgetId()
1382 Settings.Secure.putStringForUser(mContentResolver, in writeAppWidgets()
1658 final int value = Settings.Global.getInt(mContentResolver, in isCredentialRequiredToDecrypt()
/frameworks/base/media/java/android/media/
DAudioService.java150 private final ContentResolver mContentResolver; field in AudioService
524 mContentResolver = context.getContentResolver(); in AudioService()
575 mSafeMediaVolumeState = new Integer(Settings.Global.getInt(mContentResolver, in AudioService()
838 final ContentResolver cr = mContentResolver; in readPersistedSettings()
1762 final int zen = Global.getInt(mContentResolver, Global.ZEN_MODE, Global.ZEN_MODE_OFF); in checkZen()
1766 Global.putInt(mContentResolver, Global.ZEN_MODE, Global.ZEN_MODE_OFF); in checkZen()
1827 float volume = Settings.System.getFloatForUser(mContentResolver, in restoreMasterVolume()
2313 mMusicActiveMs = MathUtils.constrain(Settings.Secure.getIntForUser(mContentResolver, in readAudioSettings()
2549 mContentResolver, in requestScoState()
3033 ringerModeAffectedStreams = Settings.System.getIntForUser(mContentResolver, in updateRingerModeAffectedStreams()
[all …]
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbDeviceManager.java119 private final ContentResolver mContentResolver; field in UsbDeviceManager
137 boolean enable = (Settings.Global.getInt(mContentResolver, in onChange()
164 mContentResolver = context.getContentResolver(); in UsbDeviceManager()
213 Settings.Global.putInt(mContentResolver, in systemReady()
375 mContentResolver.registerContentObserver( in UsbHandler()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiWatchdogStateMachine.java262 private ContentResolver mContentResolver; field in WifiWatchdogStateMachine
308 mContentResolver = context.getContentResolver(); in WifiWatchdogStateMachine()
430 mContentResolver, Settings.Global.WIFI_WATCHDOG_ON, true); in isWatchdogEnabled()
443 mPoorNetworkDetectionEnabled = getSettingsGlobalBoolean(mContentResolver, in updateSettings()
/frameworks/base/services/core/java/com/android/server/media/
DMediaSessionService.java92 private ContentResolver mContentResolver; field in MediaSessionService
117 mContentResolver = getContext().getContentResolver(); in onStart()
350 final String enabledNotifListeners = Settings.Secure.getStringForUser(mContentResolver, in isEnabledNotificationListener()
573 mContentResolver.registerContentObserver(mSecureSettingsUri, in observe()
/frameworks/base/services/core/java/com/android/server/tv/
DTvInputManagerService.java104 private final ContentResolver mContentResolver; field in TvInputManagerService
121 mContentResolver = context.getContentResolver(); in TvInputManagerService()
122 mWatchLogHandler = new WatchLogHandler(mContentResolver, IoThread.get().getLooper()); in TvInputManagerService()
231 results = mContentResolver.applyBatch(TvContract.AUTHORITY, operations); in registerBroadcastReceivers()
2144 private final ContentResolver mContentResolver; field in TvInputManagerService.WatchLogHandler
2148 mContentResolver = contentResolver; in WatchLogHandler()
2174 mContentResolver.insert(TvContract.WatchedPrograms.CONTENT_URI, values); in handleMessage()
2189 mContentResolver.insert(TvContract.WatchedPrograms.CONTENT_URI, values); in handleMessage()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeContext.java121 private BridgeContentResolver mContentResolver; field in BridgeContext
1064 if (mContentResolver == null) { in getContentResolver()
1065 mContentResolver = new BridgeContentResolver(this); in getContentResolver()
1067 return mContentResolver; in getContentResolver()

12