/frameworks/base/services/java/com/android/server/location/ |
D | LocationProviderProxy.java | 123 ILocationProvider provider = getProvider(); in run() local 124 if (provider == null) { in run() 131 provider.enable(); in run() 134 provider.enableLocationTracking(true); in run() 137 provider.setMinTime(mMinTime, mMinTimeSource); in run() 140 provider.updateNetworkState(mNetworkState, mNetworkInfo); in run() 149 mCachedAttributes.setRequiresNetwork(provider.requiresNetwork()); in run() 150 mCachedAttributes.setRequiresSatellite(provider.requiresSatellite()); in run() 151 mCachedAttributes.setRequiresCell(provider.requiresCell()); in run() 152 mCachedAttributes.setHasMonetaryCost(provider.hasMonetaryCost()); in run() [all …]
|
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() 156 String provider = enabledProviders.get(i); in detectCountry() local 157 if (isAcceptableProvider(provider)) { in detectCountry() 167 public void onProviderDisabled(String provider) { in detectCountry() 170 public void onProviderEnabled(String provider) { in detectCountry() [all …]
|
D | GeocoderProxy.java | 95 IGeocodeProvider provider; in getFromLocation() local 97 provider = mServiceConnection.getProvider(); in getFromLocation() 99 if (provider != null) { in getFromLocation() 101 return provider.getFromLocation(latitude, longitude, maxResults, in getFromLocation() 114 IGeocodeProvider provider; in getFromLocationName() local 116 provider = mServiceConnection.getProvider(); in getFromLocationName() 118 if (provider != null) { in getFromLocationName() 120 return provider.getFromLocationName(locationName, lowerLeftLatitude, in getFromLocationName()
|
/frameworks/base/location/java/android/location/ |
D | LocationManager.java | 203 public void onStatusChanged(String provider, int status, Bundle extras) { in onStatusChanged() argument 207 b.putString("provider", provider); in onStatusChanged() 216 public void onProviderEnabled(String provider) { in onProviderEnabled() argument 219 msg.obj = provider; in onProviderEnabled() 223 public void onProviderDisabled(String provider) { in onProviderDisabled() argument 226 msg.obj = provider; in onProviderDisabled() 238 String provider = b.getString("provider"); in _handleMessage() local 241 mListener.onStatusChanged(provider, status, extras); in _handleMessage() 268 DummyLocationProvider provider = in createProvider() local 270 provider.setRequiresNetwork(info.getBoolean("network")); in createProvider() [all …]
|
D | ILocationManager.aidl | 39 boolean providerMeetsCriteria(String provider, in Criteria criteria); in providerMeetsCriteria() argument 41 …void requestLocationUpdates(String provider, in Criteria criteria, long minTime, float minDistance, in requestLocationUpdates() argument 43 …void requestLocationUpdatesPI(String provider, in Criteria criteria, long minTime, float minDistan… in requestLocationUpdatesPI() argument 54 boolean sendExtraCommand(String provider, String command, inout Bundle extras); in sendExtraCommand() argument 60 Bundle getProviderInfo(String provider); in getProviderInfo() argument 61 boolean isProviderEnabled(String provider); in isProviderEnabled() argument 63 Location getLastKnownLocation(String provider); in getLastKnownLocation() 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 [all …]
|
/frameworks/base/services/java/com/android/server/ |
D | LocationManagerService.java | 60 import android.provider.Settings; 276 public boolean callStatusChangedLocked(String provider, int status, Bundle extras) { in callStatusChangedLocked() argument 282 mListener.onStatusChanged(provider, status, extras); in callStatusChangedLocked() 349 public boolean callProviderEnabledLocked(String provider, boolean enabled) { in callProviderEnabledLocked() argument 356 mListener.onProviderEnabled(provider); in callProviderEnabledLocked() 358 mListener.onProviderDisabled(provider); in callProviderEnabledLocked() 452 private void addProvider(LocationProviderInterface provider) { in addProvider() argument 453 mProviders.add(provider); in addProvider() 454 mProvidersByName.put(provider.getName(), provider); in addProvider() local 457 private void removeProvider(LocationProviderInterface provider) { in removeProvider() argument [all …]
|
D | AppWidgetServiceImpl.java | 114 Provider provider; field in AppWidgetServiceImpl.AppWidgetId 216 String pkgName = p.info.provider.getPackageName(); in onConfigurationChanged() 288 pw.print(info.provider.flattenToShortString()); in dumpProvider() 322 if (id.provider != null) { in dumpAppWidgetId() 324 pw.println(id.provider.info.provider.flattenToShortString()); in dumpAppWidgetId() 474 Provider p = id.provider; in deleteAppWidgetLocked() 480 intent.setComponent(p.info.provider); in deleteAppWidgetLocked() 489 intent.setComponent(p.info.provider); in deleteAppWidgetLocked() 509 private void bindAppWidgetIdImpl(int appWidgetId, ComponentName provider) { in bindAppWidgetIdImpl() argument 518 if (id.provider != null) { in bindAppWidgetIdImpl() [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 …]
|
D | content-provider-basics.jd | 14 <a href="#ClientProvider">Accessing a provider</a> 113 <a href="{@docRoot}guide/topics/providers/content-provider-creating.html"> 117 <a href="{@docRoot}guide/topics/providers/calendar-provider.html"> 126 A content provider manages access to a central repository of data. A provider 129 applications, which access the provider using a provider client object. Together, providers 130 and provider clients offer a consistent, standard interface to data that also handles 138 <li>The API you use retrieve data from a content provider.</li> 139 <li>The API you use to insert, update, or delete data in a content provider.</li> 146 A content provider presents data to external applications as one or more tables that are 148 of data the provider collects, and each row in the column represents an individual piece of [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/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() 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 …]
|
D | AudioResampler.cpp | 48 AudioBufferProvider* provider); 58 AudioBufferProvider* provider); 60 AudioBufferProvider* provider); 180 AudioBufferProvider* provider) { in resample() argument 188 resampleMono16(out, outFrameCount, provider); in resample() 191 resampleStereo16(out, outFrameCount, provider); in resample() 197 AudioBufferProvider* provider) { in resampleStereo16() argument 217 provider->getNextBuffer(&mBuffer, in resampleStereo16() 229 provider->releaseBuffer(&mBuffer); in resampleStereo16() 278 provider->releaseBuffer(&mBuffer); in resampleStereo16() [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/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/core/java/android/content/ |
D | ContentResolver.java | 214 IContentProvider provider = acquireExistingProvider(url); in getType() local 215 if (provider != null) { in getType() 217 return provider.getType(url); in getType() 224 releaseProvider(provider); in getType() 263 IContentProvider provider = acquireProvider(url); in getStreamTypes() local 264 if (provider == null) { in getStreamTypes() 269 return provider.getStreamTypes(url, mimeTypeFilter); in getStreamTypes() 275 releaseProvider(provider); in getStreamTypes() 858 IContentProvider provider = acquireProvider(url); in insert() local 859 if (provider == null) { in insert() [all …]
|
/frameworks/base/test-runner/src/android/test/mock/ |
D | MockContentResolver.java | 73 public void addProvider(String name, ContentProvider provider) { in addProvider() argument 78 mProviders.put(name, provider); in addProvider() 94 final ContentProvider provider = mProviders.get(name); in acquireExistingProvider() local 96 if (provider != null) { in acquireExistingProvider() 97 return provider.getIContentProvider(); in acquireExistingProvider() 105 public boolean releaseProvider(IContentProvider provider) { in releaseProvider() argument
|
/frameworks/opt/calendar/tests/src/com/android/calendarcommon/ |
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/base/core/java/android/view/ |
D | AccessibilityInteractionController.java | 363 AccessibilityNodeProvider provider = root.getAccessibilityNodeProvider(); in findAccessibilityNodeInfosByTextUiThread() local 364 if (provider != null) { in findAccessibilityNodeInfosByTextUiThread() 365 infos = provider.findAccessibilityNodeInfosByText(text, in findAccessibilityNodeInfosByTextUiThread() 380 provider = foundView.getAccessibilityNodeProvider(); in findAccessibilityNodeInfosByTextUiThread() 381 if (provider != null) { in findAccessibilityNodeInfosByTextUiThread() 383 provider.findAccessibilityNodeInfosByText(text, in findAccessibilityNodeInfosByTextUiThread() 481 AccessibilityNodeProvider provider = host.getAccessibilityNodeProvider(); in findFocusUiThread() local 482 if (provider != null) { in findFocusUiThread() 578 AccessibilityNodeProvider provider = root.getAccessibilityNodeProvider(); in focusSearchUiThread() local 579 if (provider != null) { in focusSearchUiThread() [all …]
|
/frameworks/opt/vcard/java/com/android/vcard/ |
D | VCardComposer.java | 27 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 …]
|
/frameworks/base/docs/html/guide/topics/manifest/ |
D | grant-uri-permission-element.jd | 13 <dd><code><a href="{@docRoot}guide/topics/manifest/provider-element.html"><provider></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 <grant-uri-permission>} 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"><provider></a></code>
|
D | provider-element.jd | 1 page.title=<provider> 8 <dd><pre class="stx"><provider android:<a href="#auth">authorities</a>="<i>list</i>" 23 </provider></pre></dd> 34 <dd>Declares a content provider — a subclass of 37 are part of the application must be represented by {@code <provider>} 53 provider and the authority ({@code com.example.project.healthcareprovider}) 54 identifies the particular provider. The authority therefore must be unique. 57 provider to identify particular data subsets, but those paths are not 70 of the content provider. 73 (such as {@code com.example.provider.cartoonprovider}). Typically, it's the name [all …]
|
/frameworks/base/docs/html/tools/testing/ |
D | contentprovider_testing.jd | 80 tables of data, with their internals hidden from view. A content provider may have many 82 This suggests that you should write your tests based only on the provider's public members. 83 A content provider that is designed like this is offering a contract between itself and its 88 {@link android.test.ProviderTestCase2}, allows you to test your content provider in an 93 As with other Android tests, provider test packages are run under the control of the test 105 The main focus of the provider testing API is to provide an isolated testing environment. This 109 avoid adding or deleting contact information in a actual provider. 112 The test case class and mock object classes for provider testing set up this isolated testing 117 You test a provider with a subclass of {@link android.test.ProviderTestCase2}. This base class 138 Lastly, the constructor creates an instance of the provider under test. This is a normal [all …]
|
/frameworks/base/cmds/content/src/com/android/commands/content/ |
D | Content.java | 310 IContentProvider provider = null; in execute() local 318 provider = holder.provider; in execute() 319 onExecute(provider); in execute() 321 if (provider != null) { in execute() 331 protected abstract void onExecute(IContentProvider provider) throws Exception; in onExecute() argument 343 public void onExecute(IContentProvider provider) throws Exception { in onExecute() argument 344 provider.insert(mUri, mContentValues); in onExecute() 357 public void onExecute(IContentProvider provider) throws Exception { in onExecute() argument 358 provider.delete(mUri, mWhere, null); in onExecute() 373 public void onExecute(IContentProvider provider) throws Exception { in onExecute() argument [all …]
|