/frameworks/base/docs/html/training/sync-adapters/ |
D | creating-stub-provider.jd | 23 <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/ |
D | RegisteredMediaRouteProviderWatcher.java | 102 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 …]
|
/frameworks/base/services/appwidget/java/com/android/server/appwidget/ |
D | AppWidgetServiceImpl.java | 285 Provider provider = installedProviders.get(i); in onConfigurationChanged() local 287 ensureGroupStateLoadedLocked(provider.getUserId()); in onConfigurationChanged() 289 if (!removedProviders.contains(provider.id)) { in onConfigurationChanged() 291 provider.id.componentName.getPackageName(), in onConfigurationChanged() 292 provider.getUserId(), removedProviders); in onConfigurationChanged() 299 provider.getUserId()); in onConfigurationChanged() 699 Provider provider = widget.provider; in createAppWidgetConfigIntentSender() local 700 if (provider == null) { in createAppWidgetConfigIntentSender() 706 intent.setComponent(provider.info.configure); in createAppWidgetConfigIntentSender() 715 new UserHandle(provider.getUserId())) in createAppWidgetConfigIntentSender() [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | LocationManagerService.java | 87 import android.provider.Settings; 506 GeofenceProxy provider = GeofenceProxy.createAndBind( in loadProvidersLocked() local 513 if (provider == null) { in loadProvidersLocked() 754 public boolean callStatusChangedLocked(String provider, int status, Bundle extras) { in callStatusChangedLocked() argument 760 mListener.onStatusChanged(provider, status, extras); in callStatusChangedLocked() 823 public boolean callProviderEnabledLocked(String provider, boolean enabled) { in callProviderEnabledLocked() argument 834 mListener.onProviderEnabled(provider); in callProviderEnabledLocked() 836 mListener.onProviderDisabled(provider); in callProviderEnabledLocked() 931 private void addProviderLocked(LocationProviderInterface provider) { in addProviderLocked() argument 932 mProviders.add(provider); in addProviderLocked() [all …]
|
/frameworks/base/location/java/android/location/ |
D | LocationManager.java | 248 public void onStatusChanged(String provider, int status, Bundle extras) { in onStatusChanged() argument 252 b.putString("provider", provider); in onStatusChanged() 262 public void onProviderEnabled(String provider) { in onProviderEnabled() argument 265 msg.obj = provider; in onProviderEnabled() 270 public void onProviderDisabled(String provider) { in onProviderDisabled() argument 273 msg.obj = provider; in onProviderDisabled() 285 String provider = b.getString("provider"); in _handleMessage() local 288 mListener.onStatusChanged(provider, status, extras); in _handleMessage() 452 public void requestLocationUpdates(String provider, long minTime, float minDistance, in requestLocationUpdates() argument 454 checkProvider(provider); in requestLocationUpdates() [all …]
|
D | ILocationManager.aidl | 76 boolean providerMeetsCriteria(String provider, in Criteria criteria); in providerMeetsCriteria() argument 77 ProviderProperties getProviderProperties(String provider); in getProviderProperties() argument 78 boolean isProviderEnabled(String provider); in isProviderEnabled() argument 81 void removeTestProvider(String provider); in removeTestProvider() argument 82 void setTestProviderLocation(String provider, in Location loc); in setTestProviderLocation() argument 83 void clearTestProviderLocation(String provider); in clearTestProviderLocation() argument 84 void setTestProviderEnabled(String provider, boolean enabled); in setTestProviderEnabled() argument 85 void clearTestProviderEnabled(String provider); in clearTestProviderEnabled() argument 86 void setTestProviderStatus(String provider, int status, in Bundle extras, long updateTime); in setTestProviderStatus() argument 87 void clearTestProviderStatus(String provider); in clearTestProviderStatus() argument [all …]
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | RemoteDisplayProviderWatcher.java | 123 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/packages/PrintSpooler/src/com/android/printspooler/ui/ |
D | PrinterRegistry.java | 71 FusedPrintersProvider provider = getPrinterProvider(); in addHistoricalPrinter() local 72 if (provider != null) { in addHistoricalPrinter() 78 FusedPrintersProvider provider = getPrinterProvider(); in forgetFavoritePrinter() local 79 if (provider != null) { in forgetFavoritePrinter() 80 provider.forgetFavoritePrinter(printerId); in forgetFavoritePrinter() 85 FusedPrintersProvider provider = getPrinterProvider(); in isFavoritePrinter() local 86 if (provider != null) { in isFavoritePrinter() 87 return provider.isFavoritePrinter(printerId); in isFavoritePrinter() 93 FusedPrintersProvider provider = getPrinterProvider(); in setTrackedPrinter() local 94 if (provider != null) { in setTrackedPrinter() [all …]
|
/frameworks/base/docs/html/guide/topics/providers/ |
D | content-providers.jd | 11 <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 …]
|
D | content-provider-creating.jd | 56 <a href="#ProviderElement">The <provider> 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 …]
|
D | calendar-provider.jd | 51 <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/ |
D | LocationBasedCountryDetectorTest.java | 46 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/ |
D | ShareCompatICS.java | 30 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/core/java/com/android/server/location/ |
D | LocationBasedCountryDetector.java | 89 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 …]
|
D | GeocoderProxy.java | 76 IGeocodeProvider provider = getService(); in getFromLocation() local 77 if (provider != null) { in getFromLocation() 79 return provider.getFromLocation(latitude, longitude, maxResults, params, addrs); in getFromLocation() 91 IGeocodeProvider provider = getService(); in getFromLocationName() local 92 if (provider != null) { in getFromLocationName() 94 return provider.getFromLocationName(locationName, lowerLeftLatitude, in getFromLocationName()
|
/frameworks/av/services/audioflinger/ |
D | AudioResamplerCubic.cpp | 36 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() 97 provider->releaseBuffer(&mBuffer); in resampleStereo16() 99 provider->getNextBuffer(&mBuffer, in resampleStereo16() 121 AudioBufferProvider* provider) { in resampleMono16() argument 136 provider->getNextBuffer(&mBuffer, mPTS); in resampleMono16() 165 provider->releaseBuffer(&mBuffer); in resampleMono16() [all …]
|
/frameworks/base/core/java/android/provider/ |
D | SyncStateContract.java | 17 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/cmds/settings/src/com/android/commands/settings/ |
D | SettingsCmd.java | 29 import android.provider.Settings; 126 IContentProvider provider = null; in run() local 134 provider = holder.provider; in run() 138 System.out.println(getForUser(provider, mUser, mTable, mKey)); in run() 141 putForUser(provider, mUser, mTable, mKey, mValue); in run() 145 + deleteForUser(provider, mUser, mTable, mKey) + " rows"); in run() 153 if (provider != null) { in run() 176 String getForUser(IContentProvider provider, int userHandle, in getForUser() argument 191 Bundle b = provider.call(null, callGetCommand, key, arg); in getForUser() 201 void putForUser(IContentProvider provider, int userHandle, in putForUser() argument [all …]
|
/frameworks/base/core/java/android/content/ |
D | ContentResolver.java | 324 IContentProvider provider = acquireExistingProvider(url); in getType() local 325 if (provider != null) { in getType() 327 return provider.getType(url); in getType() 334 releaseProvider(provider); in getType() 374 IContentProvider provider = acquireProvider(url); in getStreamTypes() local 375 if (provider == null) { in getStreamTypes() 380 return provider.getStreamTypes(url, mimeTypeFilter); in getStreamTypes() 386 releaseProvider(provider); in getStreamTypes() 558 IContentProvider provider = acquireProvider(url); in canonicalize() local 559 if (provider == null) { in canonicalize() [all …]
|
/frameworks/base/docs/html/guide/topics/manifest/ |
D | provider-element.jd | 1 page.title=<provider> 10 <provider android:<a href="#auth">authorities</a>="<i>list</i>" 25 </provider></pre> 40 Declares a content provider component. A content provider is a subclass of 43 {@code <provider>} 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 …]
|
/frameworks/base/core/java/android/appwidget/ |
D | AppWidgetManager.java | 631 public void updateAppWidget(ComponentName provider, RemoteViews views) { in updateAppWidget() argument 636 mService.updateAppWidgetProvider(provider, views); in updateAppWidget() 807 public void bindAppWidgetId(int appWidgetId, ComponentName provider) { in bindAppWidgetId() argument 811 bindAppWidgetId(appWidgetId, provider, null); in bindAppWidgetId() 829 public void bindAppWidgetId(int appWidgetId, ComponentName provider, Bundle options) { in bindAppWidgetId() argument 833 bindAppWidgetIdIfAllowed(appWidgetId, Process.myUserHandle(), provider, options); in bindAppWidgetId() 849 public boolean bindAppWidgetIdIfAllowed(int appWidgetId, ComponentName provider) { in bindAppWidgetIdIfAllowed() argument 853 return bindAppWidgetIdIfAllowed(appWidgetId, UserHandle.myUserId(), provider, null); in bindAppWidgetIdIfAllowed() 872 public boolean bindAppWidgetIdIfAllowed(int appWidgetId, ComponentName provider, in bindAppWidgetIdIfAllowed() argument 877 return bindAppWidgetIdIfAllowed(appWidgetId, UserHandle.myUserId(), provider, options); in bindAppWidgetIdIfAllowed() [all …]
|
/frameworks/base/test-runner/src/android/test/mock/ |
D | MockContentResolver.java | 81 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/opt/calendar/tests/src/com/android/calendarcommon2/ |
D | RecurrenceSetTest.java | 25 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/av/services/audioflinger/tests/ |
D | resampler_tests.cpp | 41 android::AudioBufferProvider *provider, android::AudioResampler *resampler) in resample() argument 51 resampler->resample((int32_t*) output + channels*i, thisFrames, provider); in resample() 76 SignalProvider provider; in testBufferIncrement() local 78 provider.setChirp<float>(channels, in testBufferIncrement() 81 provider.setChirp<int16_t>(channels, in testBufferIncrement() 84 provider.setIncr(inputIncr); in testBufferIncrement() 87 size_t outputFrames = ((int64_t) provider.getNumFrames() * outputFreq) / inputFreq; in testBufferIncrement() 104 resample(channels, reference, outputFrames, refIncr, &provider, resampler); in testBufferIncrement() 106 provider.reset(); in testBufferIncrement() 127 provider.setIncr(inputIncr); in testBufferIncrement() [all …]
|
/frameworks/support/v7/mediarouter/src/android/support/v7/app/ |
D | MediaRouteActionProvider.java | 289 public MediaRouterCallback(MediaRouteActionProvider provider) { in MediaRouterCallback() argument 290 mProviderWeak = new WeakReference<MediaRouteActionProvider>(provider); in MediaRouterCallback() 309 public void onProviderAdded(MediaRouter router, MediaRouter.ProviderInfo provider) { in onProviderAdded() argument 314 public void onProviderRemoved(MediaRouter router, MediaRouter.ProviderInfo provider) { in onProviderRemoved() argument 319 public void onProviderChanged(MediaRouter router, MediaRouter.ProviderInfo provider) { in onProviderChanged() argument 324 MediaRouteActionProvider provider = mProviderWeak.get(); in refreshRoute() local 325 if (provider != null) { in refreshRoute() 326 provider.refreshRoute(); in refreshRoute()
|