Home
last modified time | relevance | path

Searched refs:registration (Results 1 – 25 of 46) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/location/listeners/
DListenerMultiplexer.java162 protected abstract boolean isActive(@NonNull TRegistration registration); in isActive() argument
198 protected void onRegistrationAdded(@NonNull TKey key, @NonNull TRegistration registration) {} in onRegistrationAdded() argument
223 protected void onRegistrationRemoved(@NonNull TKey key, @NonNull TRegistration registration) {} in onRegistrationRemoved() argument
247 protected final void putRegistration(@NonNull TKey key, @NonNull TRegistration registration) { in putRegistration() argument
248 replaceRegistration(key, key, registration); in putRegistration()
261 @NonNull TRegistration registration) { in replaceRegistration() argument
264 Objects.requireNonNull(registration); in replaceRegistration()
296 mRegistrations.setValueAt(oldIndex, registration); in replaceRegistration()
298 mRegistrations.put(key, registration); in replaceRegistration()
304 registration.onRegister(key); in replaceRegistration()
[all …]
/frameworks/native/services/surfaceflinger/tests/unittests/
DVSyncCallbackRegistrationTest.cpp42 void assertDispatch(const VSyncCallbackRegistration& registration, in assertDispatch() argument
44 ASSERT_EQ(registration.mDispatch, dispatch); in assertDispatch()
47 void assertToken(const VSyncCallbackRegistration& registration, in assertToken() argument
49 ASSERT_EQ(registration.mToken, token); in assertToken()
61 VSyncCallbackRegistration registration(mVsyncDispatch, mCallback, mCallbackName); in TEST_F() local
62 ASSERT_NO_FATAL_FAILURE(assertDispatch(registration, mVsyncDispatch)); in TEST_F()
63 ASSERT_NO_FATAL_FAILURE(assertToken(registration, mCallbackToken)); in TEST_F()
77 auto registration = in TEST_F() local
83 registration2 = std::move(registration); in TEST_F()
100 VSyncCallbackRegistration registration(mVsyncDispatch, mCallback, mCallbackName); in TEST_F() local
[all …]
/frameworks/base/services/core/java/com/android/server/location/gnss/
DGnssListenerMultiplexer.java298 protected boolean isActive(GnssListenerRegistration registration) { in isActive() argument
303 CallerIdentity identity = registration.getIdentity(); in isActive()
304 return registration.isPermitted() in isActive()
305 && (registration.isForeground() || isBackgroundRestrictionExempt(identity)) in isActive()
352 for (GnssListenerRegistration registration : gnssListenerRegistrations) { in mergeRegistrations()
353 Preconditions.checkState(registration.getRequest() == null); in mergeRegistrations()
401 updateRegistrations(registration -> registration.getIdentity().getUserId() == userId); in onUserChanged()
407 updateRegistrations(registration -> registration.getIdentity().getUserId() == userId); in onProviderEnabledChanged()
411 updateRegistrations(registration -> true); in onBackgroundThrottlePackageAllowlistChanged()
415 updateRegistrations(registration -> registration.getIdentity().getUserId() == userId); in onLocationPackageDenylistChanged()
[all …]
DGnssStatusProvider.java92 protected void onRegistrationAdded(IBinder key, GnssListenerRegistration registration) { in onRegistrationAdded() argument
96 registration.getIdentity().getPackageName(), in onRegistrationAdded()
97 registration.getIdentity().getAttributionTag(), in onRegistrationAdded()
102 null, registration.isForeground()); in onRegistrationAdded()
106 protected void onRegistrationRemoved(IBinder key, GnssListenerRegistration registration) { in onRegistrationRemoved() argument
110 registration.getIdentity().getPackageName(), in onRegistrationRemoved()
111 registration.getIdentity().getAttributionTag(), in onRegistrationRemoved()
117 registration.isForeground()); in onRegistrationRemoved()
160 deliverToListeners(registration -> { in onReportSvStatus()
162 registration.getIdentity())) { in onReportSvStatus()
DGnssMeasurementsProvider.java207 for (GnssListenerRegistration registration : registrations) { in mergeRegistrations()
208 GnssMeasurementRequest request = registration.getRequest(); in mergeRegistrations()
230 protected void onRegistrationAdded(IBinder key, GnssListenerRegistration registration) { in onRegistrationAdded() argument
234 registration.getIdentity().getPackageName(), in onRegistrationAdded()
235 registration.getIdentity().getAttributionTag(), in onRegistrationAdded()
240 null, registration.isForeground()); in onRegistrationAdded()
244 protected void onRegistrationRemoved(IBinder key, GnssListenerRegistration registration) { in onRegistrationRemoved() argument
248 registration.getIdentity().getPackageName(), in onRegistrationRemoved()
249 registration.getIdentity().getAttributionTag(), in onRegistrationRemoved()
254 null, registration.isForeground()); in onRegistrationRemoved()
[all …]
DGnssNmeaProvider.java104 GnssListenerRegistration registration) { in onReportNmea()
106 registration.getIdentity())) { in onReportNmea()
DGnssNavigationMessageProvider.java118 deliverToListeners(registration -> { in onReportNavigationMessage()
120 registration.getIdentity())) { in onReportNavigationMessage()
/frameworks/base/services/core/java/com/android/server/location/geofence/
DGeofenceManager.java377 protected boolean isActive(GeofenceRegistration registration) { in isActive() argument
378 return registration.isPermitted() && isActive(registration.getIdentity()); in isActive()
421 protected void onRegistrationAdded(GeofenceKey key, GeofenceRegistration registration) { in onRegistrationAdded() argument
425 registration.getIdentity().getPackageName(), in onRegistrationAdded()
426 registration.getIdentity().getAttributionTag(), in onRegistrationAdded()
431 registration.getGeofence(), true); in onRegistrationAdded()
435 protected void onRegistrationRemoved(GeofenceKey key, GeofenceRegistration registration) { in onRegistrationRemoved() argument
439 registration.getIdentity().getPackageName(), in onRegistrationRemoved()
440 registration.getIdentity().getAttributionTag(), in onRegistrationRemoved()
445 registration.getGeofence(), true); in onRegistrationRemoved()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/listeners/
DListenerMultiplexerTest.java59 TestListenerRegistration registration); in onRegistrationAdded() argument
67 TestListenerRegistration registration); in onRegistrationRemoved() argument
326 public void accept(TestListenerRegistration registration) { in testRemoveLater()
327 mMultiplexer.removeListener(this, registration); in testRemoveLater()
332 public void accept(TestListenerRegistration registration) { in testRemoveLater()
333 mMultiplexer.removeListener(this, registration); in testRemoveLater()
401 TestListenerRegistration registration) { in removeListener() argument
402 removeRegistration(consumer, registration); in removeListener()
416 deliverToListeners(registration -> consumer -> consumer.accept(registration)); in notifyListeners()
433 protected boolean isActive(TestListenerRegistration registration) { in isActive() argument
[all …]
/frameworks/base/core/java/android/app/
DScreenCaptureCallbackHandler.java63 for (ScreenCaptureRegistration registration : mRegistrations.values()) { in onScreenCaptured()
64 registration.mExecutor.execute( in onScreenCaptured()
66 registration.mCallback.onScreenCaptured(); in onScreenCaptured()
80 ScreenCaptureRegistration registration = in registerScreenCaptureCallback() local
87 mScreenCaptureRegistrations.put(callback, registration); in registerScreenCaptureCallback()
/frameworks/base/services/core/java/com/android/server/location/provider/
DLocationProviderManager.java1972 GetCurrentLocationListenerRegistration registration =
1983 putRegistration(callback.asBinder(), registration);
1984 if (!registration.isActive()) {
1986 registration.deliverNull();
1999 removeRegistration(callback.asBinder(), registration);
2027 LocationListenerRegistration registration = new LocationListenerRegistration(
2037 putRegistration(listener.asBinder(), registration);
2046 LocationPendingIntentRegistration registration = new LocationPendingIntentRegistration(
2056 putRegistration(pendingIntent, registration);
2066 boolean flushed = updateRegistration(listener.asBinder(), registration -> {
[all …]
/frameworks/native/services/surfaceflinger/Scheduler/
DMessageQueue.cpp113 const bool reschedule = mVsync.registration && in onNewVsyncScheduleLocked()
114 mVsync.registration->cancel() == scheduler::CancelResult::Cancelled; in onNewVsyncScheduleLocked()
115 auto oldRegistration = std::move(mVsync.registration); in onNewVsyncScheduleLocked()
116 mVsync.registration = std::make_unique< in onNewVsyncScheduleLocked()
125 mVsync.registration->schedule({.workDuration = mVsync.workDuration.get().count(), in onNewVsyncScheduleLocked()
135 mVsync.registration.reset(); in destroyVsync()
143 mVsync.registration->update({.workDuration = mVsync.workDuration.get().count(), in setDuration()
196 mVsync.registration->schedule({.workDuration = mVsync.workDuration.get().count(), in scheduleFrame()
/frameworks/opt/net/ims/src/java/com/android/ims/
DFeatureConnection.java124 IImsRegistration registration = getRegistration(); in getRegistrationTech() local
125 if (registration != null) { in getRegistrationTech()
126 return registration.getRegistrationTechnology(); in getRegistrationTech()
/frameworks/opt/telephony/flags/
Dims.aconfig24 description: "This flag clears cached IMS phone number when device lost IMS registration"
41 description: "This flag is for adding suggested actions related to RAT to ims registration"
58 description: "This flag is created to notify emergency registration state changed."
/frameworks/base/core/java/android/security/rkp/
DIGetRegistrationCallback.aidl34 void onSuccess(in IRegistration registration); in onSuccess() argument
/frameworks/base/services/core/java/com/android/server/security/rkp/
DRemoteProvisioningService.java60 public void onResult(RegistrationProxy registration) { in onResult() argument
62 mCallback.onSuccess(new RemoteProvisioningRegistration(registration, mExecutor)); in onResult()
DRemoteProvisioningShellCommand.java310 OutcomeFuture<RegistrationProxy> registration = new OutcomeFuture<>(); in getRegistrationProxy() local
312 context, callerUid, irpc, BIND_TIMEOUT, executor, registration); in getRegistrationProxy()
313 return registration.join(); in getRegistrationProxy()
DRemoteProvisioningRegistration.java106 RemoteProvisioningRegistration(RegistrationProxy registration, Executor executor) { in RemoteProvisioningRegistration() argument
107 mRegistration = registration; in RemoteProvisioningRegistration()
/frameworks/base/core/java/android/ddm/
DREADME.txt5 registration call in DdmRegister.java.
/frameworks/native/libs/tracing_perfetto/
Dtracing_perfetto_internal.cpp160 static std::once_flag registration; in registerWithPerfetto() local
161 std::call_once(registration, [test]() { in registerWithPerfetto()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DEventLogTags.logtags27 # Data network registration failed after successful voice registration
/frameworks/base/services/core/java/com/android/server/am/
Dflags.aconfig102 description: "Add tracing for broadcast receiver registration and un-registration"
/frameworks/proto_logging/stats/enums/adservices/common/
Dadservices_api_metrics_enums.proto41 // * registerSource() : accepts a list of source registration URIs
/frameworks/base/core/tests/utiltests/jni/
DAndroid.bp32 "registration.cpp",
/frameworks/base/packages/SystemUI/docs/
Dbroadcasts.md31 …ags`](/core/java/android/content/Context.java)) can be passed for the registration. By default, th…
48 * Do not expect cached sticky broadcasts to be delivered on registration. This may happen but it's …
95 * This will remove every registration of [receiver], not those done just with [UserHandle.ALL].

12