Home
last modified time | relevance | path

Searched refs:contentResolver (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/core/java/android/net/
DProxy.java47 ContentResolver contentResolver = ctx.getContentResolver(); in getHost() local
48 Assert.assertNotNull(contentResolver); in getHost()
50 contentResolver, in getHost()
71 ContentResolver contentResolver = ctx.getContentResolver(); in getPort() local
72 Assert.assertNotNull(contentResolver); in getPort()
74 contentResolver, in getPort()
/frameworks/base/core/java/android/text/method/
DTextKeyListener.java235 final ContentResolver contentResolver = mResolver.get(); in release() local
236 if (contentResolver != null) { in release()
237 contentResolver.unregisterContentObserver(mObserver); in release()
247 final ContentResolver contentResolver = context.getContentResolver(); in initPrefs() local
248 mResolver = new WeakReference<ContentResolver>(contentResolver); in initPrefs()
250 contentResolver.registerContentObserver(Settings.System.CONTENT_URI, true, mObserver); in initPrefs()
252 updatePrefs(contentResolver); in initPrefs()
264 final ContentResolver contentResolver = mResolver.get(); in onChange() local
265 if (contentResolver == null) { in onChange()
268 updatePrefs(contentResolver); in onChange()
/frameworks/base/tests/AndroidTests/src/com/android/unit_tests/
DSmsProviderTest.java58 ContentResolver contentResolver = mContext.getContentResolver(); in testProvider() local
63 urls[i] = contentResolver.insert(Sms.Inbox.CONTENT_URI, map); in testProvider()
67 Cursor c = contentResolver.query(Sms.Inbox.CONTENT_URI, null, null, null, "date"); in testProvider()
72 int count = contentResolver.delete(url, null, null); in testProvider()
/frameworks/base/core/java/android/provider/
DIm.java1793 public static void setAutomaticallyConnectGTalk(ContentResolver contentResolver, in setAutomaticallyConnectGTalk() argument
1795 putBooleanValue(contentResolver, providerId, SETTING_AUTOMATICALLY_CONNECT_GTALK, in setAutomaticallyConnectGTalk()
1805 public static void setHideOfflineContacts(ContentResolver contentResolver, in setHideOfflineContacts() argument
1807 putBooleanValue(contentResolver, providerId, SETTING_HIDE_OFFLINE_CONTACTS, in setHideOfflineContacts()
1817 public static void setEnableNotification(ContentResolver contentResolver, long providerId, in setEnableNotification() argument
1819 putBooleanValue(contentResolver, providerId, SETTING_ENABLE_NOTIFICATION, enable); in setEnableNotification()
1828 public static void setVibrate(ContentResolver contentResolver, long providerId, in setVibrate() argument
1830 putBooleanValue(contentResolver, providerId, SETTING_VIBRATE, vibrate); in setVibrate()
1839 public static void setRingtoneURI(ContentResolver contentResolver, long providerId, in setRingtoneURI() argument
1841 putStringValue(contentResolver, providerId, SETTING_RINGTONE, ringtoneUri); in setRingtoneURI()
[all …]
DGmail.java444 public Gmail(ContentResolver contentResolver) { in Gmail() argument
445 mContentResolver = contentResolver; in Gmail()
665 public static void addOrRemoveLabelOnMessage(ContentResolver contentResolver, String account, in addOrRemoveLabelOnMessage() argument
674 contentResolver.insert(uri, values); in addOrRemoveLabelOnMessage()
685 contentResolver.delete(uri, null, null); in addOrRemoveLabelOnMessage()
1311 public LabelMap(ContentResolver contentResolver, String account, boolean keepUpdated) { in LabelMap() argument
1315 Cursor cursor = contentResolver.query( in LabelMap()
2205 ContentResolver contentResolver, String account,
2210 Uri result = contentResolver.insert(uri, values);
2224 ContentResolver contentResolver, String account, long messageId,
[all …]
DSettings.java3660 public QueryMap(ContentResolver contentResolver, Cursor cursor, boolean keepUpdated, in QueryMap() argument
3665 public QueryMap(ContentResolver contentResolver, boolean keepUpdated, in QueryMap() argument
3667 this(contentResolver, in QueryMap()
3668 contentResolver.query(CONTENT_URI, null, null, null, null), in QueryMap()
/frameworks/base/core/java/android/content/
DContentInsertHandler.java38 public void insert(ContentResolver contentResolver, InputStream in) in insert() argument
47 public void insert(ContentResolver contentResolver, String in) in insert() argument
DDefaultDataHandler.java87 public void insert(ContentResolver contentResolver, InputStream in) in insert() argument
89 mContentResolver = contentResolver; in insert()
93 public void insert(ContentResolver contentResolver, String in) in insert() argument
95 mContentResolver = contentResolver; in insert()
DContentProviderClient.java41 ContentProviderClient(ContentResolver contentResolver, IContentProvider contentProvider) { in ContentProviderClient() argument
43 mContentResolver = contentResolver; in ContentProviderClient()
/frameworks/base/core/java/com/google/android/util/
DGoogleWebContentHelper.java84 ContentResolver contentResolver = mContext.getContentResolver(); in setUrlsFromGservices() local
85 mSecureUrl = fillUrl(Settings.Gservices.getString(contentResolver, secureSetting), in setUrlsFromGservices()
87 mPrettyUrl = fillUrl(Settings.Gservices.getString(contentResolver, prettySetting), in setUrlsFromGservices()
/frameworks/base/core/java/com/android/internal/widget/
DLockPatternUtils.java90 public LockPatternUtils(ContentResolver contentResolver) { in LockPatternUtils() argument
91 mContentResolver = contentResolver; in LockPatternUtils()
/frameworks/base/services/java/com/android/server/
DAccessibilityManagerService.java188 ContentResolver contentResolver = mContext.getContentResolver(); in registerSettingsContentObservers() local
191 contentResolver.registerContentObserver(enabledUri, false, in registerSettingsContentObservers()
213 contentResolver.registerContentObserver(providersUri, false, in registerSettingsContentObservers()
DWifiWatchdogService.java132 ContentResolver contentResolver = mContext.getContentResolver(); in registerForSettingsChanges() local
133 contentResolver.registerContentObserver( in registerForSettingsChanges()
/frameworks/base/docs/html/guide/topics/media/
Dindex.jd190 ContentResolver contentResolver = new ContentResolver();
193 Uri newUri = contentResolver.insert(base, values);
200 String path = contentResolver.getDataFilePath(newUri);