Home
last modified time | relevance | path

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

12345678910>>...55

/frameworks/base/services/core/java/com/android/server/biometrics/sensors/face/
DFaceService.java90 for (ServiceProvider provider : mServiceProviders) { in getProviderForSensor()
91 if (provider.containsSensor(sensorId)) { in getProviderForSensor()
92 return provider; in getProviderForSensor()
113 for (ServiceProvider provider : mServiceProviders) { in getSingleProvider()
114 if (provider.containsSensor(sensorId)) { in getSingleProvider()
115 return new Pair<>(sensorId, provider); in getSingleProvider()
126 for (ServiceProvider provider : mServiceProviders) { in getSensorProperties()
127 properties.addAll(provider.getSensorProperties()); in getSensorProperties()
141 final ServiceProvider provider = getProviderForSensor(sensorId); in createTestSession() local
143 if (provider == null) { in createTestSession()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/timezonedetector/location/
DLocationTimeZoneProviderTest.java82 TestLocationTimeZoneProvider provider = new TestLocationTimeZoneProvider( in lifecycle() local
89 provider.initialize(mProviderListener); in lifecycle()
90 provider.assertOnInitializeCalled(); in lifecycle()
93 provider, providerMetricsLogger, PROVIDER_STATE_STOPPED); in lifecycle()
95 assertSame(provider, currentState.provider); in lifecycle()
102 provider.startUpdates(config, arbitraryInitializationTimeout, in lifecycle()
105 provider.assertOnStartCalled(arbitraryInitializationTimeout); in lifecycle()
108 provider, providerMetricsLogger, PROVIDER_STATE_STARTED_INITIALIZING); in lifecycle()
109 assertSame(provider, currentState.provider); in lifecycle()
129 provider.simulateProviderEventReceived(event); in lifecycle()
[all …]
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/fingerprint/
DFingerprintService.java70 import android.provider.Settings;
139 final ServiceProvider provider = getProviderForSensor(sensorId); in createTestSession() local
141 if (provider == null) { in createTestSession()
146 return provider.createTestSession(sensorId, callback, mFingerprintStateCallback, in createTestSession()
155 final ServiceProvider provider = getProviderForSensor(sensorId); in dumpSensorServiceStateProto() local
156 if (provider != null) { in dumpSensorServiceStateProto()
157 provider.dumpProtoState(sensorId, proto, clearSchedulerBuffer); in dumpSensorServiceStateProto()
179 final ServiceProvider provider = getProviderForSensor(sensorId); in getSensorProperties() local
180 if (provider == null) { in getSensorProperties()
185 return provider.getSensorProperties(sensorId); in getSensorProperties()
[all …]
/frameworks/base/services/core/java/com/android/server/location/eventlog/
DLocationEventLog.java34 import android.location.provider.ProviderRequest;
93 private AggregateStats getAggregateStats(String provider, CallerIdentity identity) { in getAggregateStats() argument
95 ArrayMap<CallerIdentity, AggregateStats> packageMap = mAggregateStats.get(provider); in getAggregateStats()
98 mAggregateStats.put(provider, packageMap); in getAggregateStats()
126 public void logProviderEnabled(String provider, int userId, boolean enabled) { in logProviderEnabled() argument
127 addLogEvent(EVENT_PROVIDER_ENABLED, provider, userId, enabled); in logProviderEnabled()
131 public void logProviderMocked(String provider, boolean mocked) { in logProviderMocked() argument
132 addLogEvent(EVENT_PROVIDER_MOCKED, provider, mocked); in logProviderMocked()
136 public void logProviderClientRegistered(String provider, CallerIdentity identity, in logProviderClientRegistered() argument
138 addLogEvent(EVENT_PROVIDER_CLIENT_REGISTER, provider, identity, request); in logProviderClientRegistered()
[all …]
/frameworks/native/libs/binder/tests/parcel_fuzzer/
Dmain.cpp39 void fillRandomParcel(::android::hardware::Parcel* p, FuzzedDataProvider&& provider) { in fillRandomParcel() argument
41 std::vector<uint8_t> input = provider.ConsumeRemainingBytes<uint8_t>(); in fillRandomParcel()
44 static void fillRandomParcel(NdkParcelAdapter* p, FuzzedDataProvider&& provider) { in fillRandomParcel() argument
46 fillRandomParcel(p->parcel(), std::move(provider)); in fillRandomParcel()
51 FuzzedDataProvider&& provider) { in doFuzz() argument
55 size_t maxInstructions = 20 + (provider.remaining_bytes() * 2 / 3); in doFuzz()
58 std::vector<uint8_t> instructions = provider.ConsumeBytes<uint8_t>( in doFuzz()
59 provider.ConsumeIntegralInRange<size_t>(0, maxInstructions)); in doFuzz()
63 if (provider.ConsumeBool()) { in doFuzz()
67 fillRandomParcelData(&p, std::move(provider)); in doFuzz()
[all …]
Drandom_parcel.cpp35 void fillRandomParcel(Parcel* p, FuzzedDataProvider&& provider) { in fillRandomParcel() argument
36 while (provider.remaining_bytes() > 0) { in fillRandomParcel()
37 auto fillFunc = provider.PickValueInArray<const std::function<void()>>({ in fillRandomParcel()
41 provider.ConsumeIntegralInRange<size_t>(0, provider.remaining_bytes()); in fillRandomParcel()
42 std::vector<uint8_t> data = provider.ConsumeBytes<uint8_t>(toWrite); in fillRandomParcel()
47 int fd = getRandomFd(&provider); in fillRandomParcel()
52 auto makeFunc = provider.PickValueInArray<const std::function<sp<IBinder>()>>({ in fillRandomParcel()
57 provider.ConsumeRandomLengthString(100 /*max length*/); in fillRandomParcel()
78 void fillRandomParcelData(Parcel* p, FuzzedDataProvider&& provider) { in fillRandomParcelData() argument
79 std::vector<uint8_t> data = provider.ConsumeBytes<uint8_t>(provider.remaining_bytes()); in fillRandomParcelData()
/frameworks/base/services/core/java/com/android/server/timezonedetector/location/
DControllerImpl.java188 private void stopProviderIfStarted(@NonNull LocationTimeZoneProvider provider) { in stopProviderIfStarted() argument
189 if (provider.getCurrentState().isStarted()) { in stopProviderIfStarted()
190 stopProvider(provider); in stopProviderIfStarted()
195 private void stopProvider(@NonNull LocationTimeZoneProvider provider) { in stopProvider() argument
196 ProviderState providerState = provider.getCurrentState(); in stopProvider()
199 debugLog("No need to stop " + provider + ": already stopped"); in stopProvider()
205 debugLog("Stopping " + provider); in stopProvider()
206 provider.stopUpdates(); in stopProvider()
211 debugLog("Unable to stop " + provider + ": it is terminated."); in stopProvider()
215 warnLog("Unknown provider state: " + provider); in stopProvider()
[all …]
/frameworks/base/core/java/android/content/pm/parsing/component/
DParsedProviderUtils.java59 final ParsedProvider provider = new ParsedProvider(); in parseProvider() local
65 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/core/tests/coretests/src/android/widget/
DNumberPickerTest.java45 final AccessibilityNodeProvider provider = np.getAccessibilityNodeProvider(); in testAccessibilityFocusedProperty() local
47 AccessibilityNodeInfo info = provider.createAccessibilityNodeInfo(View.NO_ID); in testAccessibilityFocusedProperty()
50 provider.performAction(View.NO_ID, AccessibilityNodeInfo.ACTION_ACCESSIBILITY_FOCUS, null); in testAccessibilityFocusedProperty()
51 info = provider.createAccessibilityNodeInfo(View.NO_ID); in testAccessibilityFocusedProperty()
55 info = provider.createAccessibilityNodeInfo(virtualViewIdIncrement); in testAccessibilityFocusedProperty()
58 provider.performAction( in testAccessibilityFocusedProperty()
63 info = provider.createAccessibilityNodeInfo(virtualViewIdIncrement); in testAccessibilityFocusedProperty()
67 info = provider.createAccessibilityNodeInfo(VirtualViewIdInput); in testAccessibilityFocusedProperty()
70 provider.performAction( in testAccessibilityFocusedProperty()
75 info = provider.createAccessibilityNodeInfo(VirtualViewIdInput); in testAccessibilityFocusedProperty()
[all …]
/frameworks/base/services/appwidget/java/com/android/server/appwidget/
DAppWidgetServiceImpl.java445 Provider provider = mProviders.get(i); in reloadWidgetsMaskedState() local
446 int providerUserId = provider.getUserId(); in reloadWidgetsMaskedState()
451 boolean changed = provider.setMaskedByLockedProfileLocked(lockedProfile); in reloadWidgetsMaskedState()
452 changed |= provider.setMaskedByQuietProfileLocked(quietProfile); in reloadWidgetsMaskedState()
457 provider.id.componentName.getPackageName(), provider.getUserId()); in reloadWidgetsMaskedState()
462 changed |= provider.setMaskedBySuspendedPackageLocked(suspended); in reloadWidgetsMaskedState()
467 if (provider.isMaskedLocked()) { in reloadWidgetsMaskedState()
468 maskWidgetsViewsLocked(provider, null); in reloadWidgetsMaskedState()
470 unmaskWidgetsViewsLocked(provider); in reloadWidgetsMaskedState()
492 Provider provider = mProviders.get(i); in updateWidgetPackageSuspensionMaskedState() local
[all …]
/frameworks/base/services/core/java/com/android/server/pm/permission/
DLegacyPermissionManagerInternal.java35 void setDialerAppPackagesProvider(PackagesProvider provider); in setDialerAppPackagesProvider() argument
41 void setLocationExtraPackagesProvider(PackagesProvider provider); in setLocationExtraPackagesProvider() argument
47 void setLocationPackagesProvider(PackagesProvider provider); in setLocationPackagesProvider() argument
53 void setSimCallManagerPackagesProvider(PackagesProvider provider); in setSimCallManagerPackagesProvider() argument
59 void setSmsAppPackagesProvider(PackagesProvider provider); in setSmsAppPackagesProvider() argument
65 void setSyncAdapterPackagesProvider(SyncAdapterPackagesProvider provider); in setSyncAdapterPackagesProvider() argument
71 void setUseOpenWifiAppPackagesProvider(PackagesProvider provider); in setUseOpenWifiAppPackagesProvider() argument
77 void setVoiceInteractionPackagesProvider(PackagesProvider provider); in setVoiceInteractionPackagesProvider() argument
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/
DLocationUtils.java36 public static Location createLocation(String provider, Random random) { in createLocation() argument
37 return createLocation(provider, in createLocation()
43 public static LocationResult createLocationResult(String provider, Random random) { in createLocationResult() argument
44 return LocationResult.wrap(createLocation(provider, random)); in createLocationResult()
47 public static LocationResult createLocationResult(String provider, Random random, in createLocationResult() argument
51 locations[i] = createLocation(provider, random); in createLocationResult()
56 public static Location createLocation(String provider, double latitude, double longitude, in createLocation() argument
58 Location location = new Location(provider); in createLocation()
67 public static LocationResult createLocationResult(String provider, double latitude, in createLocationResult() argument
69 return LocationResult.wrap(createLocation(provider, latitude, longitude, accuracy)); in createLocationResult()
/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/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/services/core/java/com/android/server/pm/
DUserRestrictionsUtils.java36 import android.provider.Settings;
550 android.provider.Settings.Global.putStringForUser(cr, in applyUserRestriction()
551 android.provider.Settings.Global.DATA_ROAMING in applyUserRestriction()
557 android.provider.Settings.Global.putStringForUser(cr, in applyUserRestriction()
558 android.provider.Settings.Global.DATA_ROAMING, "0", userId); in applyUserRestriction()
563 android.provider.Settings.Secure.putIntForUser(cr, in applyUserRestriction()
564 android.provider.Settings.Secure.LOCATION_MODE, in applyUserRestriction()
565 android.provider.Settings.Secure.LOCATION_MODE_OFF, in applyUserRestriction()
574 android.provider.Settings.Global.putStringForUser(cr, in applyUserRestriction()
575 android.provider.Settings.Global.ADB_ENABLED, "0", in applyUserRestriction()
[all …]
/frameworks/base/services/core/java/com/android/server/location/provider/proxy/
DProxyLocationProvider.java17 package com.android.server.location.provider.proxy;
26 import android.location.provider.ILocationProvider;
27 import android.location.provider.ILocationProviderManager;
28 import android.location.provider.ProviderProperties;
29 import android.location.provider.ProviderRequest;
40 import com.android.server.location.provider.AbstractLocationProvider;
69 public static ProxyLocationProvider create(Context context, String provider, String action, in create() argument
71 ProxyLocationProvider proxy = new ProxyLocationProvider(context, provider, action, in create()
98 private ProxyLocationProvider(Context context, String provider, String action, in ProxyLocationProvider() argument
105 mServiceWatcher = ServiceWatcher.create(context, provider, in ProxyLocationProvider()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DContentProviderConnection.java36 public final ContentProviderRecord provider; field in ContentProviderConnection
68 provider = _provider; in ContentProviderConnection()
79 && association == null && provider.proc != null in startAssociationIfNeeded()
80 && (provider.appInfo.uid != client.uid in startAssociationIfNeeded()
81 || !provider.info.processName.equals(client.processName))) { in startAssociationIfNeeded()
82 ProcessStats.ProcessStateHolder holder = provider.proc.getPkgList().get( in startAssociationIfNeeded()
83 provider.name.getPackageName()); in startAssociationIfNeeded()
86 + provider.name.toShortString() + ": proc=" + provider.proc); in startAssociationIfNeeded()
89 + provider.name.toShortString() + ": proc=" + provider.proc); in startAssociationIfNeeded()
91 mProcStatsLock = provider.proc.mService.mProcessStats.mLock; in startAssociationIfNeeded()
[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/webkit/
DWebViewUpdateServiceImpl.java118 for (WebViewProviderInfo provider : mSystemInterface.getWebViewPackages()) { in packageStateChanged()
119 String webviewPackage = provider.packageName; in packageStateChanged()
136 provider.packageName.equals(newPackage.packageName) in packageStateChanged()
137 || provider.packageName.equals(oldProviderName) in packageStateChanged()
142 provider.packageName.equals(oldProviderName); in packageStateChanged()
372 providers[n] = providersAndPackageInfos[n].provider; in getValidWebViewPackages()
378 public final WebViewProviderInfo provider; field in WebViewUpdateServiceImpl.ProviderAndPackageInfo
381 ProviderAndPackageInfo(WebViewProviderInfo provider, PackageInfo packageInfo) { in ProviderAndPackageInfo() argument
382 this.provider = provider; in ProviderAndPackageInfo()
418 if (providerAndPackage.provider.packageName.equals(userChosenProvider)) { in findPreferredWebViewPackage()
[all …]
/frameworks/base/location/java/android/location/
DLocationManager.java49 import android.location.provider.IProviderRequestListener;
50 import android.location.provider.ProviderProperties;
51 import android.location.provider.ProviderRequest;
52 import android.location.provider.ProviderRequest.ChangedListener;
699 public boolean isProviderEnabled(@NonNull String provider) { in isProviderEnabled() argument
700 return isProviderEnabledForUser(provider, Process.myUserHandle()); in isProviderEnabled()
721 @NonNull String provider, @NonNull UserHandle userHandle) { in isProviderEnabledForUser()
722 Preconditions.checkArgument(provider != null, "invalid null provider"); in isProviderEnabledForUser()
725 return mService.isProviderEnabledForUser(provider, userHandle.getIdentifier()); in isProviderEnabledForUser()
750 @NonNull String provider, boolean enabled, @NonNull UserHandle userHandle) { in setProviderEnabledForUser()
[all …]
DILocationManager.aidl40 import android.location.provider.IProviderRequestListener;
41 import android.location.provider.ProviderProperties;
53 …@nullable Location getLastLocation(String provider, in LastLocationRequest request, String package… in getLastLocation() argument
54 …@nullable ICancellationSignal getCurrentLocation(String provider, in LocationRequest request, in I… in getCurrentLocation() argument
56 …void registerLocationListener(String provider, in LocationRequest request, in ILocationListener li… in registerLocationListener() argument
59 …void registerLocationPendingIntent(String provider, in LocationRequest request, in PendingIntent p… in registerLocationPendingIntent() argument
64 void requestListenerFlush(String provider, in ILocationListener listener, int requestCode); in requestListenerFlush() argument
65 … void requestPendingIntentFlush(String provider, in PendingIntent pendingIntent, int requestCode); in requestPendingIntentFlush() argument
108 boolean hasProvider(String provider); in hasProvider() argument
112 ProviderProperties getProviderProperties(String provider); in getProviderProperties() argument
[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/base/services/core/java/com/android/server/location/provider/
DMockableLocationProvider.java17 package com.android.server.location.provider;
24 import android.location.provider.ProviderRequest;
98 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 MockLocationProvider 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()
[all …]

12345678910>>...55