Home
last modified time | relevance | path

Searched refs:provider (Results 1 – 25 of 523) sorted by relevance

12345678910>>...21

/frameworks/base/docs/html/training/sync-adapters/
Dcreating-stub-provider.jd23 <a href="{@docRoot}guide/topics/providers/content-provider-basics.html"
39 highly secure content provider framework. For this reason, the sync adapter framework expects
40 that an app that uses the framework has already defined a content provider for its local data.
42 content provider, your sync adapter crashes.
46 strongly consider storing the local data in a content provider. Besides their importance for
49 provider, see <a href="{@docRoot}guide/topics/providers/content-provider-creating.html"
55 content provider, add a stub content provider to your app. A stub provider implements the
56 content provider class, but all of its required methods return {@code null} or {@code 0}. If you
57 add a stub provider, you can then use a sync adapter to transfer data from any storage
61 If you already have a content provider in your app, you don't need a stub content provider.
[all …]
/frameworks/support/v7/mediarouter/src/android/support/v7/media/
DRegisteredMediaRouteProviderWatcher.java102 RegisteredMediaRouteProvider provider = in scanPackages() local
105 provider.start(); in scanPackages()
106 mProviders.add(targetIndex++, provider); in scanPackages()
107 mCallback.addProvider(provider); in scanPackages()
109 RegisteredMediaRouteProvider provider = mProviders.get(sourceIndex); in scanPackages() local
110 provider.start(); // restart the provider if needed in scanPackages()
111 provider.rebindIfDisconnected(); in scanPackages()
120 RegisteredMediaRouteProvider provider = mProviders.get(i); in scanPackages() local
121 mCallback.removeProvider(provider); in scanPackages()
122 mProviders.remove(provider); in scanPackages()
[all …]
DMediaRouter.java650 RouteInfo(ProviderInfo provider, String descriptorId, String uniqueId) { in RouteInfo() argument
651 mProvider = provider; in RouteInfo()
1142 ProviderInfo(MediaRouteProvider provider) { in ProviderInfo() argument
1143 mProviderInstance = provider; in ProviderInfo()
1144 mMetadata = provider.getMetadata(); in ProviderInfo()
1305 public void onProviderAdded(MediaRouter router, ProviderInfo provider) { in onProviderAdded() argument
1314 public void onProviderRemoved(MediaRouter router, ProviderInfo provider) { in onProviderRemoved() argument
1323 public void onProviderChanged(MediaRouter router, ProviderInfo provider) { in onProviderChanged() argument
1600 ProviderInfo provider = new ProviderInfo(providerInstance); in addProvider() local
1601 mProviders.add(provider); in addProvider()
[all …]
/frameworks/base/services/java/com/android/server/
DLocationManagerService.java59 import android.provider.Settings;
438 GeofenceProxy provider = GeofenceProxy.createAndBind(mContext, in loadProvidersLocked() local
445 if (provider == null) { in loadProvidersLocked()
644 public boolean callStatusChangedLocked(String provider, int status, Bundle extras) { in callStatusChangedLocked() argument
650 mListener.onStatusChanged(provider, status, extras); in callStatusChangedLocked()
713 public boolean callProviderEnabledLocked(String provider, boolean enabled) { in callProviderEnabledLocked() argument
724 mListener.onProviderEnabled(provider); in callProviderEnabledLocked()
726 mListener.onProviderDisabled(provider); in callProviderEnabledLocked()
821 private void addProviderLocked(LocationProviderInterface provider) { in addProviderLocked() argument
822 mProviders.add(provider); in addProviderLocked()
[all …]
/frameworks/base/location/java/android/location/
DLocationManager.java246 public void onStatusChanged(String provider, int status, Bundle extras) { in onStatusChanged() argument
250 b.putString("provider", provider); in onStatusChanged()
260 public void onProviderEnabled(String provider) { in onProviderEnabled() argument
263 msg.obj = provider; in onProviderEnabled()
268 public void onProviderDisabled(String provider) { in onProviderDisabled() argument
271 msg.obj = provider; in onProviderDisabled()
283 String provider = b.getString("provider"); in _handleMessage() local
286 mListener.onStatusChanged(provider, status, extras); in _handleMessage()
447 public void requestLocationUpdates(String provider, long minTime, float minDistance, in requestLocationUpdates() argument
449 checkProvider(provider); in requestLocationUpdates()
[all …]
DILocationManager.aidl67 boolean providerMeetsCriteria(String provider, in Criteria criteria); in providerMeetsCriteria() argument
68 ProviderProperties getProviderProperties(String provider); in getProviderProperties() argument
69 boolean isProviderEnabled(String provider); in isProviderEnabled() argument
72 void removeTestProvider(String provider); in removeTestProvider() argument
73 void setTestProviderLocation(String provider, in Location loc); in setTestProviderLocation() argument
74 void clearTestProviderLocation(String provider); in clearTestProviderLocation() argument
75 void setTestProviderEnabled(String provider, boolean enabled); in setTestProviderEnabled() argument
76 void clearTestProviderEnabled(String provider); in clearTestProviderEnabled() argument
77 void setTestProviderStatus(String provider, int status, in Bundle extras, long updateTime); in setTestProviderStatus() argument
78 void clearTestProviderStatus(String provider); in clearTestProviderStatus() argument
[all …]
/frameworks/base/services/java/com/android/server/media/
DRemoteDisplayProviderWatcher.java123 RemoteDisplayProviderProxy provider = in scanPackages() local
127 provider.start(); in scanPackages()
128 mProviders.add(targetIndex++, provider); in scanPackages()
129 mCallback.addProvider(provider); in scanPackages()
131 RemoteDisplayProviderProxy provider = mProviders.get(sourceIndex); in scanPackages() local
132 provider.start(); // restart the provider if needed in scanPackages()
133 provider.rebindIfDisconnected(); in scanPackages()
142 RemoteDisplayProviderProxy provider = mProviders.get(i); in scanPackages() local
143 mCallback.removeProvider(provider); in scanPackages()
144 mProviders.remove(provider); in scanPackages()
[all …]
/frameworks/base/docs/html/guide/topics/providers/
Dcontent-providers.jd11 <a href="{@docRoot}guide/topics/providers/content-provider-basics.html">
15 <a href="{@docRoot}guide/topics/providers/content-provider-creating.html">
19 <a href="{@docRoot}guide/topics/providers/calendar-provider.html">Calendar Provider</a>
22 <a href="{@docRoot}guide/topics/providers/contacts-provider.html">Contacts Provider</a>
57 When you want to access data in a content provider, you use the
59 application's {@link android.content.Context} to communicate with the provider as a client.
60 The {@link android.content.ContentResolver} object communicates with the provider object, an
61 instance of a class that implements {@link android.content.ContentProvider}. The provider
66 You don't need to develop your own provider if you don't intend to share your data with
67 other applications. However, you do need your own provider to provide custom search
[all …]
Dcontent-provider-creating.jd56 <a href="#ProviderElement">The &lt;provider&gt; Element</a>
86 <a href="{@docRoot}guide/topics/providers/content-provider-basics.html">
90 <a href="{@docRoot}guide/topics/providers/calendar-provider.html">
99 A content provider manages access to a central repository of data. You implement a
100 provider as one or more classes in an Android application, along with elements in
102 {@link android.content.ContentProvider}, which is the interface between your provider and
105 to query and modify the data managed by your provider.
108 The rest of this topic is a basic list of steps for building a content provider and a list
116 Before you start building a provider, do the following:
120 <strong>Decide if you need a content provider</strong>. You need to build a content
[all …]
Dcalendar-provider.jd51 <li>{@link android.provider.CalendarContract.Calendars}</li>
52 <li>{@link android.provider.CalendarContract.Events}</li>
53 <li>{@link android.provider.CalendarContract.Attendees}</li>
54 <li>{@link android.provider.CalendarContract.Reminders}</li>
89 <p>Every content provider exposes a public URI (wrapped as a
91 object) that uniquely identifies its data set. A content provider that controls
94 identifies the data as being controlled by a content provider. The Calendar
97 example, {@link android.provider.CalendarContract.Events#CONTENT_URI Events.CONTENT_URI}.</p>
107 <p>The {@link android.provider.CalendarContract} defines the data model of calendar and event relat…
115 <td><p>{@link android.provider.CalendarContract.Calendars}</p></td>
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/location/
DLocationBasedCountryDetectorTest.java46 public TestCountryDetector(String country, String provider) { in TestCountryDetector() argument
47 this(country, provider, 1000 * 60 * 5); in TestCountryDetector()
50 public TestCountryDetector(String country, String provider, long queryLocationTimeout) { in TestCountryDetector() argument
53 mLocation = new Location(provider); in TestCountryDetector()
87 protected boolean isAcceptableProvider(String provider) { in isAcceptableProvider() argument
89 return mAcceptableProviders.contains(provider); in isAcceptableProvider()
96 protected void registerListener(String provider, LocationListener listener) { in registerListener() argument
97 assertNotNull(provider); in registerListener()
98 mListeners.put(provider, listener); in registerListener()
184 final String provider = "Good"; in testFindingCountryCommon() local
[all …]
/frameworks/support/v4/ics/android/support/v4/app/
DShareCompatICS.java30 ShareActionProvider provider = null; in configureMenuItem() local
32 provider = new ShareActionProvider(callingActivity); in configureMenuItem()
34 provider = (ShareActionProvider) itemProvider; in configureMenuItem()
36 provider.setShareHistoryFileName(HISTORY_FILENAME_PREFIX + in configureMenuItem()
38 provider.setShareIntent(intent); in configureMenuItem()
39 item.setActionProvider(provider); in configureMenuItem()
/frameworks/base/services/java/com/android/server/location/
DLocationBasedCountryDetector.java89 protected boolean isAcceptableProvider(String provider) { in isAcceptableProvider() argument
91 return LocationManager.PASSIVE_PROVIDER.equals(provider); in isAcceptableProvider()
97 protected void registerListener(String provider, LocationListener listener) { in registerListener() argument
98 mLocationManager.requestLocationUpdates(provider, 0, 0, listener); in registerListener()
114 for (String provider : providers) { in getLastKnownLocation()
115 Location lastKnownLocation = mLocationManager.getLastKnownLocation(provider); in getLastKnownLocation()
158 String provider = enabledProviders.get(i); in detectCountry() local
159 if (isAcceptableProvider(provider)) { in detectCountry()
169 public void onProviderDisabled(String provider) { in detectCountry()
172 public void onProviderEnabled(String provider) { in detectCountry()
[all …]
DGeocoderProxy.java77 IGeocodeProvider provider = getService(); in getFromLocation() local
78 if (provider != null) { in getFromLocation()
80 return provider.getFromLocation(latitude, longitude, maxResults, params, addrs); in getFromLocation()
92 IGeocodeProvider provider = getService(); in getFromLocationName() local
93 if (provider != null) { in getFromLocationName()
95 return provider.getFromLocationName(locationName, lowerLeftLatitude, in getFromLocationName()
/frameworks/av/services/audioflinger/
DAudioResamplerCubic.cpp36 AudioBufferProvider* provider) { in resample() argument
44 resampleMono16(out, outFrameCount, provider); in resample()
47 resampleStereo16(out, outFrameCount, provider); in resample()
53 AudioBufferProvider* provider) { in resampleStereo16() argument
68 provider->getNextBuffer(&mBuffer, mPTS); in resampleStereo16()
96 provider->releaseBuffer(&mBuffer); in resampleStereo16()
98 provider->getNextBuffer(&mBuffer, in resampleStereo16()
119 AudioBufferProvider* provider) { in resampleMono16() argument
134 provider->getNextBuffer(&mBuffer, mPTS); in resampleMono16()
162 provider->releaseBuffer(&mBuffer); in resampleMono16()
[all …]
/frameworks/base/core/java/android/provider/
DSyncStateContract.java17 package android.provider;
73 public static byte[] get(ContentProviderClient provider, Uri uri, in get() argument
75 Cursor c = provider.query(uri, DATA_PROJECTION, SELECT_BY_ACCOUNT, in get()
103 public static void set(ContentProviderClient provider, Uri uri, in set() argument
109 provider.insert(uri, values); in set()
112 public static Uri insert(ContentProviderClient provider, Uri uri, in insert() argument
118 return provider.insert(uri, values); in insert()
121 public static void update(ContentProviderClient provider, Uri uri, byte[] data) in update() argument
125 provider.update(uri, values, null, null); in update()
128 public static Pair<Uri, byte[]> getWithUri(ContentProviderClient provider, Uri uri, in getWithUri() argument
[all …]
/frameworks/base/core/java/android/content/
DContentResolver.java304 IContentProvider provider = acquireExistingProvider(url); in getType() local
305 if (provider != null) { in getType()
307 return provider.getType(url); in getType()
314 releaseProvider(provider); in getType()
354 IContentProvider provider = acquireProvider(url); in getStreamTypes() local
355 if (provider == null) { in getStreamTypes()
360 return provider.getStreamTypes(url, mimeTypeFilter); in getStreamTypes()
366 releaseProvider(provider); in getStreamTypes()
541 IContentProvider provider = acquireProvider(url); in canonicalize() local
542 if (provider == null) { in canonicalize()
[all …]
/frameworks/base/docs/html/guide/topics/manifest/
Dprovider-element.jd1 page.title=&lt;provider&gt;
10 &lt;provider android:<a href="#auth">authorities</a>="<i>list</i>"
25 &lt;/provider&gt;</pre>
40 Declares a content provider component. A content provider is a subclass of
43 {@code &lt;provider&gt;} element in the manifest file; otherwise, the system is unaware of them
51 string, part of the provider's <b>content URI</b>. For example, suppose you want to
52 access a content provider that stores information about health care professionals. To do
55 arguments takes a URI that identifies the provider:
62 an Android content provider. The authority
63 <code>com.example.project.healthcareprovider</code> identifies the provider itself; the
[all …]
Dgrant-uri-permission-element.jd13 <dd><code><a href="{@docRoot}guide/topics/manifest/provider-element.html">&lt;provider&gt;</a></cod…
16 <dd>Specifies which data subsets of the parent content provider permission
19 content provider.)
20 Granting permission is a way of enabling clients of the provider that don't
25 If a content provider's <code><a href="{@docRoot}guide/topics/manifest/provider-element.html#gprmns…
27 the provider's purview. However, if that attribute is "{@code false}", permission
29 A provider can contain any number of {@code &lt;grant-uri-permission&gt;} elements.
36 <code><a href="{@docRoot}guide/topics/manifest/provider-element.html#gprmsn">grantUriPermissions</a…
85 <code><a href="{@docRoot}guide/topics/manifest/provider-element.html#gprmns">grantUriPermissions</a…
87 <code><a href="{@docRoot}guide/topics/manifest/provider-element.html">&lt;provider&gt;</a></code>
/frameworks/base/test-runner/src/android/test/mock/
DMockContentResolver.java81 public void addProvider(String name, ContentProvider provider) { in addProvider() argument
86 mProviders.put(name, provider); in addProvider()
102 final ContentProvider provider = mProviders.get(name); in acquireExistingProvider() local
104 if (provider != null) { in acquireExistingProvider()
105 return provider.getIContentProvider(); in acquireExistingProvider()
113 public boolean releaseProvider(IContentProvider provider) { in releaseProvider() argument
/frameworks/base/cmds/settings/src/com/android/commands/settings/
DSettingsCmd.java28 import android.provider.Settings;
122 IContentProvider provider = null; in run() local
130 provider = holder.provider; in run()
134 System.out.println(getForUser(provider, mUser, mTable, mKey)); in run()
137 putForUser(provider, mUser, mTable, mKey, mValue); in run()
145 if (provider != null) { in run()
168 String getForUser(IContentProvider provider, int userHandle, in getForUser() argument
183 Bundle b = provider.call(null, callGetCommand, key, arg); in getForUser()
193 void putForUser(IContentProvider provider, int userHandle, in putForUser() argument
208 provider.call(null, callPutCommand, key, arg); in putForUser()
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/
DRecurrenceSetTest.java25 import android.provider.CalendarContract;
144 assertEquals(rrule, values.get(android.provider.CalendarContract.Events.RRULE)); in verifyPopulateContentValues()
145 assertEquals(rdate, values.get(android.provider.CalendarContract.Events.RDATE)); in verifyPopulateContentValues()
146 assertEquals(exrule, values.get(android.provider.CalendarContract.Events.EXRULE)); in verifyPopulateContentValues()
147 assertEquals(exdate, values.get(android.provider.CalendarContract.Events.EXDATE)); in verifyPopulateContentValues()
149 assertEquals(tzid, values.get(android.provider.CalendarContract.Events.EVENT_TIMEZONE)); in verifyPopulateContentValues()
150 assertEquals(duration, values.get(android.provider.CalendarContract.Events.DURATION)); in verifyPopulateContentValues()
152 (int) values.getAsInteger(android.provider.CalendarContract.Events.ALL_DAY)); in verifyPopulateContentValues()
/frameworks/base/core/java/android/appwidget/
DAppWidgetProviderInfo.java64 public ComponentName provider; field in AppWidgetProviderInfo
206 this.provider = new ComponentName(in); in AppWidgetProviderInfo()
227 if (this.provider != null) { in writeToParcel()
229 this.provider.writeToParcel(out, flags); in writeToParcel()
257 that.provider = this.provider == null ? null : this.provider.clone(); in clone()
297 return "AppWidgetProviderInfo(provider=" + this.provider + ")"; in toString()
/frameworks/support/v7/mediarouter/src/android/support/v7/app/
DMediaRouteActionProvider.java284 public MediaRouterCallback(MediaRouteActionProvider provider) { in MediaRouterCallback() argument
285 mProviderWeak = new WeakReference<MediaRouteActionProvider>(provider); in MediaRouterCallback()
304 public void onProviderAdded(MediaRouter router, MediaRouter.ProviderInfo provider) { in onProviderAdded() argument
309 public void onProviderRemoved(MediaRouter router, MediaRouter.ProviderInfo provider) { in onProviderRemoved() argument
314 public void onProviderChanged(MediaRouter router, MediaRouter.ProviderInfo provider) { in onProviderChanged() argument
319 MediaRouteActionProvider provider = mProviderWeak.get(); in refreshRoute() local
320 if (provider != null) { in refreshRoute()
321 provider.refreshRoute(); in refreshRoute()
/frameworks/opt/vcard/java/com/android/vcard/
DVCardComposer.java27 import android.provider.ContactsContract.CommonDataKinds.Email;
28 import android.provider.ContactsContract.CommonDataKinds.Event;
29 import android.provider.ContactsContract.CommonDataKinds.Im;
30 import android.provider.ContactsContract.CommonDataKinds.Nickname;
31 import android.provider.ContactsContract.CommonDataKinds.Note;
32 import android.provider.ContactsContract.CommonDataKinds.Organization;
33 import android.provider.ContactsContract.CommonDataKinds.Phone;
34 import android.provider.ContactsContract.CommonDataKinds.Photo;
35 import android.provider.ContactsContract.CommonDataKinds.Relation;
36 import android.provider.ContactsContract.CommonDataKinds.SipAddress;
[all …]

12345678910>>...21