Home
last modified time | relevance | path

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

12345678910>>...50

/frameworks/base/core/java/android/content/pm/parsing/component/
DParsedProviderUtils.java60 final ParsedProvider provider = new ParsedProvider(); in parseProvider() local
66 ParsedMainComponentUtils.parseMainComponent(provider, tag, separateProcesses, in parseProvider()
88 provider.exported = sa.getBoolean(R.styleable.AndroidManifestProvider_exported, in parseProvider()
91 provider.syncable = sa.getBoolean(R.styleable.AndroidManifestProvider_syncable, false); in parseProvider()
101 provider.setReadPermission(pkg.getPermission()); in parseProvider()
103 provider.setReadPermission(readPermission); in parseProvider()
111 provider.setWritePermission(pkg.getPermission()); in parseProvider()
113 provider.setWritePermission(writePermission); in parseProvider()
116provider.grantUriPermissions = sa.getBoolean(R.styleable.AndroidManifestProvider_grantUriPermissio… in parseProvider()
117provider.forceUriPermissions = sa.getBoolean(R.styleable.AndroidManifestProvider_forceUriPermissio… in parseProvider()
[all …]
/frameworks/base/tests/testables/src/android/testing/
DTestableContentResolver.java69 public void addProvider(String name, ContentProvider provider) { in addProvider() argument
70 addProvider(name, provider, STABLE | UNSTABLE); in addProvider()
80 public void addProvider(String name, ContentProvider provider, int flags) { in addProvider() argument
82 mProviders.put(name, provider); in addProvider()
85 mUnstableProviders.put(name, provider); in addProvider()
91 final ContentProvider provider = mProviders.get(name); in acquireProvider() local
92 if (provider != null) { in acquireProvider()
93 return provider.getIContentProvider(); in acquireProvider()
101 final ContentProvider provider = mProviders.get(name); in acquireExistingProvider() local
102 if (provider != null) { in acquireExistingProvider()
[all …]
/frameworks/base/services/appwidget/java/com/android/server/appwidget/
DAppWidgetServiceImpl.java361 Provider provider = installedProviders.get(i); in onConfigurationChanged() local
363 final int userId = provider.getUserId(); in onConfigurationChanged()
370 if (!removedProviders.contains(provider.id)) { in onConfigurationChanged()
372 provider.id.componentName.getPackageName(), in onConfigurationChanged()
373 provider.getUserId(), removedProviders); in onConfigurationChanged()
380 provider.getUserId()); in onConfigurationChanged()
511 Provider provider = mProviders.get(i); in reloadWidgetsMaskedState() local
512 int providerUserId = provider.getUserId(); in reloadWidgetsMaskedState()
517 boolean changed = provider.setMaskedByLockedProfileLocked(lockedProfile); in reloadWidgetsMaskedState()
518 changed |= provider.setMaskedByQuietProfileLocked(quietProfile); in reloadWidgetsMaskedState()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DUserRestrictionsUtils.java37 import android.provider.Settings;
38 import android.provider.Settings.Global;
541 android.provider.Settings.Global.putStringForUser(cr, in applyUserRestriction()
542 android.provider.Settings.Global.DATA_ROAMING in applyUserRestriction()
548 android.provider.Settings.Global.putStringForUser(cr, in applyUserRestriction()
549 android.provider.Settings.Global.DATA_ROAMING, "0", userId); in applyUserRestriction()
554 android.provider.Settings.Secure.putIntForUser(cr, in applyUserRestriction()
555 android.provider.Settings.Secure.LOCATION_MODE, in applyUserRestriction()
556 android.provider.Settings.Secure.LOCATION_MODE_OFF, in applyUserRestriction()
565 android.provider.Settings.Global.putStringForUser(cr, in applyUserRestriction()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/
DSliceProviderPermissionsTest.java55 SliceProviderPermissions provider = new SliceProviderPermissions(pkg, tracker); in testDirty_addAuthority() local
57 provider.getOrCreateAuthority("some_auth"); in testDirty_addAuthority()
59 verify(tracker).onPersistableDirty(eq(provider)); in testDirty_addAuthority()
66 SliceProviderPermissions provider = new SliceProviderPermissions(pkg, tracker); in testDirty_addPkg() local
68 SliceAuthority auth = provider.getOrCreateAuthority("some_auth"); in testDirty_addPkg()
73 verify(tracker).onPersistableDirty(eq(provider)); in testDirty_addPkg()
78 SliceProviderPermissions provider = createProvider(); in testCreation() local
79 ArrayList<SliceAuthority> authorities = new ArrayList<>(provider.getAuthorities()); in testCreation()
92 SliceProviderPermissions provider = createProvider(); in testSerialization() local
98 provider.writeTo(serializer); in testSerialization()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DContentProviderConnection.java33 public final ContentProviderRecord provider; field in ContentProviderConnection
52 provider = _provider; in ContentProviderConnection()
62 && association == null && provider.proc != null in startAssociationIfNeeded()
63 && (provider.appInfo.uid != client.uid in startAssociationIfNeeded()
64 || !provider.info.processName.equals(client.processName))) { in startAssociationIfNeeded()
65 ProcessStats.ProcessStateHolder holder = provider.proc.pkgList.get( in startAssociationIfNeeded()
66 provider.name.getPackageName()); in startAssociationIfNeeded()
69 + provider.name.toShortString() + ": proc=" + provider.proc); in startAssociationIfNeeded()
72 + provider.name.toShortString() + ": proc=" + provider.proc); in startAssociationIfNeeded()
75 provider.name.getClassName()).startSource(client.uid, client.processName, in startAssociationIfNeeded()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointManager.java191 for (PasspointProvider provider : providers) { in setProviders()
192 provider.enableVerboseLogging(mVerboseLoggingEnabled ? 1 : 0); in setProviders()
193 mProviders.put(provider.getConfig().getUniqueId(), provider); in setProviders() local
194 if (provider.getPackageName() != null) { in setProviders()
195 startTrackingAppOpsChange(provider.getPackageName(), in setProviders()
196 provider.getCreatorUid()); in setProviders()
357 for (PasspointProvider provider : mProviders.values()) { in enableVerboseLogging()
358 provider.enableVerboseLogging(verbose); in enableVerboseLogging()
509 private boolean removeProviderInternal(PasspointProvider provider, int callingUid, in removeProviderInternal() argument
511 if (!privileged && callingUid != provider.getCreatorUid()) { in removeProviderInternal()
[all …]
DPasspointConfigUserStoreData.java178 for (PasspointProvider provider : providerList) { in serializeProviderList()
179 serializeProvider(out, provider); in serializeProviderList()
192 private void serializeProvider(XmlSerializer out, PasspointProvider provider) in serializeProvider() argument
195 XmlUtil.writeNextValue(out, XML_TAG_PROVIDER_ID, provider.getProviderId()); in serializeProvider()
196 XmlUtil.writeNextValue(out, XML_TAG_CREATOR_UID, provider.getCreatorUid()); in serializeProvider()
197 if (provider.getPackageName() != null) { in serializeProvider()
198 XmlUtil.writeNextValue(out, XML_TAG_PACKAGE_NAME, provider.getPackageName()); in serializeProvider()
201 provider.getCaCertificateAliases()); in serializeProvider()
203 provider.getClientPrivateKeyAndCertificateAlias()); in serializeProvider()
204 XmlUtil.writeNextValue(out, XML_TAG_HAS_EVER_CONNECTED, provider.getHasEverConnected()); in serializeProvider()
[all …]
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DPrinterRegistry.java77 FusedPrintersProvider provider = getPrinterProvider(); in addHistoricalPrinter() local
78 if (provider != null) { in addHistoricalPrinter()
84 FusedPrintersProvider provider = getPrinterProvider(); in forgetFavoritePrinter() local
85 if (provider != null) { in forgetFavoritePrinter()
86 provider.forgetFavoritePrinter(printerId); in forgetFavoritePrinter()
91 FusedPrintersProvider provider = getPrinterProvider(); in isFavoritePrinter() local
92 if (provider != null) { in isFavoritePrinter()
93 return provider.isFavoritePrinter(printerId); in isFavoritePrinter()
99 FusedPrintersProvider provider = getPrinterProvider(); in setTrackedPrinter() local
100 if (provider != null) { in setTrackedPrinter()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DModuleInfoProviderTest.java47 ModuleInfoProvider provider = getProvider(R.xml.well_formed_metadata); in testSuccessfulParse() local
49 List<ModuleInfo> mi = provider.getInstalledModules(PackageManager.MATCH_ALL); in testSuccessfulParse()
57 ModuleInfo mi1 = provider.getModuleInfo("com.android.module1", 0); in testSuccessfulParse()
63 ModuleInfo mi2 = provider.getModuleInfo("com.android.module2", 0); in testSuccessfulParse()
71 ModuleInfoProvider provider = getProvider(R.xml.unparseable_metadata1); in testParseFailure_incorrectTopLevelElement() local
72 assertEquals(0, provider.getInstalledModules(PackageManager.MATCH_ALL).size()); in testParseFailure_incorrectTopLevelElement()
76 ModuleInfoProvider provider = getProvider(R.xml.unparseable_metadata2); in testParseFailure_incorrectModuleElement() local
77 assertEquals(0, provider.getInstalledModules(PackageManager.MATCH_ALL).size()); in testParseFailure_incorrectModuleElement()
81 ModuleInfoProvider provider = getProvider(R.xml.well_formed_metadata); in testParse_unknownAttributesIgnored() local
83 List<ModuleInfo> mi = provider.getInstalledModules(PackageManager.MATCH_ALL); in testParse_unknownAttributesIgnored()
[all …]
/frameworks/base/tests/net/common/java/android/net/
DNetworkProviderTest.kt96 val provider = createNetworkProvider() in <lambda>() constant
97 assertEquals(provider.getProviderId(), NetworkProvider.ID_NONE) in <lambda>()
98 mCm.registerNetworkProvider(provider) in <lambda>()
99 assertNotEquals(provider.getProviderId(), NetworkProvider.ID_NONE) in <lambda>()
108 provider.expectCallback<OnNetworkRequested>() { callback -> in <lambda>()
127 initialScore, config, provider) {} in <lambda>()
129 provider.expectCallback<OnNetworkRequested>() { callback -> in <lambda>()
136 provider.expectCallback<OnNetworkRequested>() { callback -> in <lambda>()
143 provider.expectCallback<OnNetworkRequestWithdrawn>() { callback -> in <lambda>()
147 mCm.unregisterNetworkProvider(provider) in <lambda>()
[all …]
/frameworks/base/services/core/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/services/core/java/com/android/server/location/
DMockableLocationProvider.java98 public void setRealProvider(@Nullable AbstractLocationProvider provider) { in setRealProvider() argument
100 if (mRealProvider == provider) { in setRealProvider()
104 mRealProvider = provider; in setRealProvider()
117 public void setMockProvider(@Nullable MockProvider provider) { in setMockProvider() argument
119 if (mMockProvider == provider) { in setMockProvider()
123 mMockProvider = provider; in setMockProvider()
133 private void setProviderLocked(@Nullable AbstractLocationProvider provider) { in setProviderLocked() argument
134 if (mProvider == provider) { in setProviderLocked()
139 mProvider = provider; in setProviderLocked()
235 AbstractLocationProvider provider; in dump() local
[all …]
DLocationBasedCountryDetector.java90 protected boolean isAcceptableProvider(String provider) { in isAcceptableProvider() argument
92 return LocationManager.PASSIVE_PROVIDER.equals(provider); in isAcceptableProvider()
98 protected void registerListener(String provider, LocationListener listener) { in registerListener() argument
101 mLocationManager.requestLocationUpdates(provider, 0, 0, listener); in registerListener()
127 for (String provider : providers) { in getLastKnownLocation()
128 Location lastKnownLocation = mLocationManager.getLastKnownLocation(provider); in getLastKnownLocation()
174 String provider = enabledProviders.get(i); in detectCountry() local
175 if (isAcceptableProvider(provider)) { in detectCountry()
185 public void onProviderDisabled(String provider) { in detectCountry()
188 public void onProviderEnabled(String provider) { in detectCountry()
[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/base/services/core/java/com/android/server/webkit/
DWebViewUpdater.java77 for (WebViewProviderInfo provider : mSystemInterface.getWebViewPackages()) { in packageStateChanged()
78 String webviewPackage = provider.packageName; in packageStateChanged()
95 provider.packageName.equals(newPackage.packageName) in packageStateChanged()
96 || provider.packageName.equals(oldProviderName) in packageStateChanged()
101 provider.packageName.equals(oldProviderName); in packageStateChanged()
235 providers[n] = providersAndPackageInfos[n].provider; in getValidWebViewPackages()
241 public final WebViewProviderInfo provider; field in WebViewUpdater.ProviderAndPackageInfo
244 public ProviderAndPackageInfo(WebViewProviderInfo provider, PackageInfo packageInfo) { in ProviderAndPackageInfo() argument
245 this.provider = provider; in ProviderAndPackageInfo()
281 if (providerAndPackage.provider.packageName.equals(userChosenProvider)) { in findPreferredWebViewPackage()
[all …]
/frameworks/base/tests/testables/tests/src/android/testing/
DTestableContentResolverTest.java32 ContentProvider provider = Mockito.mock(ContentProvider.class); in testDefaultContentProvider() local
34 Mockito.when(provider.getIContentProvider()).thenReturn(iprovider); in testDefaultContentProvider()
35 mContentResolver.addProvider("test", provider); in testDefaultContentProvider()
43 ContentProvider provider = Mockito.mock(ContentProvider.class); in testStableContentProvider() local
45 Mockito.when(provider.getIContentProvider()).thenReturn(iprovider); in testStableContentProvider()
46 mContentResolver.addProvider("test", provider, TestableContentResolver.STABLE); in testStableContentProvider()
54 ContentProvider provider = Mockito.mock(ContentProvider.class); in testUnstableContentProvider() local
56 Mockito.when(provider.getIContentProvider()).thenReturn(iprovider); in testUnstableContentProvider()
57 mContentResolver.addProvider("test", provider, TestableContentResolver.UNSTABLE); in testUnstableContentProvider()
/frameworks/av/media/libaudioprocessing/
DAudioResamplerCubic.cpp36 AudioBufferProvider* provider) { in resample() argument
44 return resampleMono16(out, outFrameCount, provider); in resample()
46 return resampleStereo16(out, outFrameCount, provider); in resample()
54 AudioBufferProvider* provider) { in resampleStereo16() argument
69 provider->getNextBuffer(&mBuffer); in resampleStereo16()
97 provider->releaseBuffer(&mBuffer); in resampleStereo16()
99 provider->getNextBuffer(&mBuffer); in resampleStereo16()
121 AudioBufferProvider* provider) { in resampleMono16() argument
136 provider->getNextBuffer(&mBuffer); in resampleMono16()
165 provider->releaseBuffer(&mBuffer); in resampleMono16()
[all …]
/frameworks/base/core/java/android/appwidget/
DAppWidgetManager.java686 public void updateAppWidget(ComponentName provider, RemoteViews views) { in updateAppWidget() argument
691 mService.updateAppWidgetProvider(provider, views); in updateAppWidget()
716 public void updateAppWidgetProviderInfo(ComponentName provider, @Nullable String metaDataKey) { in updateAppWidgetProviderInfo() argument
721 mService.updateAppWidgetProviderInfo(provider, metaDataKey); in updateAppWidgetProviderInfo()
924 public void bindAppWidgetId(int appWidgetId, ComponentName provider) { in bindAppWidgetId() argument
928 bindAppWidgetId(appWidgetId, provider, null); in bindAppWidgetId()
947 public void bindAppWidgetId(int appWidgetId, ComponentName provider, Bundle options) { in bindAppWidgetId() argument
951 bindAppWidgetIdIfAllowed(appWidgetId, mContext.getUser(), provider, options); in bindAppWidgetId()
967 public boolean bindAppWidgetIdIfAllowed(int appWidgetId, ComponentName provider) { in bindAppWidgetIdIfAllowed() argument
971 return bindAppWidgetIdIfAllowed(appWidgetId, mContext.getUserId(), provider, null); in bindAppWidgetIdIfAllowed()
[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/telephony/java/android/telephony/data/
DQualifiedNetworksService.java179 NetworkAvailabilityProvider provider = mProviders.get(slotIndex); in handleMessage() local
189 provider = onCreateNetworkAvailabilityProvider(slotIndex); in handleMessage()
190 if (provider != null) { in handleMessage()
191 mProviders.put(slotIndex, provider); in handleMessage()
194 provider.registerForQualifiedNetworkTypesChanged(callback); in handleMessage()
202 if (provider != null) { in handleMessage()
203 provider.close(); in handleMessage()
210 provider = mProviders.get(i); in handleMessage()
211 if (provider != null) { in handleMessage()
212 provider.close(); in handleMessage()
[all …]
/frameworks/base/location/java/android/location/
DLocationManager.java58 import android.provider.Settings;
540 public boolean isProviderEnabled(@NonNull String provider) { in isProviderEnabled() argument
541 return isProviderEnabledForUser(provider, Process.myUserHandle()); in isProviderEnabled()
562 @NonNull String provider, @NonNull UserHandle userHandle) { in isProviderEnabledForUser()
563 Preconditions.checkArgument(provider != null, "invalid null provider"); in isProviderEnabledForUser()
566 return mService.isProviderEnabledForUser(provider, userHandle.getIdentifier()); in isProviderEnabledForUser()
591 @NonNull String provider, boolean enabled, @NonNull UserHandle userHandle) { in setProviderEnabledForUser()
592 Preconditions.checkArgument(provider != null, "invalid null provider"); in setProviderEnabledForUser()
597 (enabled ? "+" : "-") + provider, in setProviderEnabledForUser()
641 public Location getLastKnownLocation(@NonNull String provider) { in getLastKnownLocation() argument
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointManagerTest.java282 PasspointProvider provider = mock(PasspointProvider.class); in createMockProvider() local
283 when(provider.installCertsAndKeys()).thenReturn(true); in createMockProvider()
284 lenient().when(provider.getConfig()).thenReturn(config); in createMockProvider()
285 lenient().when(provider.getWifiConfig()).thenReturn(wifiConfig); in createMockProvider()
286 lenient().when(provider.getCreatorUid()).thenReturn(TEST_CREATOR_UID); in createMockProvider()
287 lenient().when(provider.isFromSuggestion()).thenReturn(isSuggestion); in createMockProvider()
288 lenient().when(provider.isAutojoinEnabled()).thenReturn(true); in createMockProvider()
289 return provider; in createMockProvider()
375 PasspointProvider provider = createMockProvider(config, wifiConfig, isSuggestion); in addTestProvider() local
378 eq(isSuggestion))).thenReturn(provider); in addTestProvider()
[all …]
/frameworks/base/wifi/tests/src/android/net/wifi/hotspot2/
DOsuProviderTest.java126 OsuProvider provider = new OsuProvider(TEST_SSID, TEST_FRIENDLY_NAMES, in verifyGetters() local
129 assertTrue(TEST_SSID.equals(provider.getOsuSsid())); in verifyGetters()
130 assertTrue(TEST_FRIENDLY_NAME.equals(provider.getFriendlyName())); in verifyGetters()
131 assertTrue(TEST_FRIENDLY_NAMES.equals(provider.getFriendlyNameList())); in verifyGetters()
132 assertTrue(TEST_SERVICE_DESCRIPTION.equals(provider.getServiceDescription())); in verifyGetters()
133 assertTrue(TEST_SERVER_URI.equals(provider.getServerUri())); in verifyGetters()
134 assertTrue(TEST_NAI.equals(provider.getNetworkAccessIdentifier())); in verifyGetters()
135 assertTrue(TEST_METHOD_LIST.equals(provider.getMethodList())); in verifyGetters()
/frameworks/av/services/camera/libcameraservice/tests/
DCameraProviderManagerTest.cpp36 using android::hardware::camera::provider::V2_5::DeviceState;
97 struct TestICameraProvider : virtual public provider::V2_5::ICameraProvider {
98 sp<provider::V2_4::ICameraProviderCallback> mCallbacks;
117 const sp<provider::V2_4::ICameraProviderCallback>& callbacks) override { in setCallback()
200 void setProvider(sp<TestICameraProvider> provider) { in setProvider()
201 mTestCameraProvider = provider; in setProvider()
216 virtual sp<hardware::camera::provider::V2_4::ICameraProvider> tryGetService( in tryGetService()
223 virtual sp<hardware::camera::provider::V2_4::ICameraProvider> getService( in getService()
297 sp<TestICameraProvider> provider = new TestICameraProvider(deviceNames, in TEST() local
299 serviceProxy.setProvider(provider); in TEST()
[all …]

12345678910>>...50