/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/condition/ |
D | ConditionTest.java | 58 final Condition.Callback callback = mock( in addCallback_addFirstCallback_triggerStart() 59 Condition.Callback.class); in addCallback_addFirstCallback_triggerStart() 66 final Condition.Callback callback1 = mock( in addCallback_addMultipleCallbacks_triggerStartOnlyOnce() 67 Condition.Callback.class); in addCallback_addMultipleCallbacks_triggerStartOnlyOnce() 68 final Condition.Callback callback2 = mock( in addCallback_addMultipleCallbacks_triggerStartOnlyOnce() 69 Condition.Callback.class); in addCallback_addMultipleCallbacks_triggerStartOnlyOnce() 70 final Condition.Callback callback3 = mock( in addCallback_addMultipleCallbacks_triggerStartOnlyOnce() 71 Condition.Callback.class); in addCallback_addMultipleCallbacks_triggerStartOnlyOnce() 82 final Condition.Callback callback1 = mock( in addCallback_alreadyStarted_triggerUpdate() 83 Condition.Callback.class); in addCallback_alreadyStarted_triggerUpdate() [all …]
|
D | ConditionMonitorTest.java | 82 Monitor.Callback callback) { in getDefaultBuilder() 98 final Monitor.Callback callback = Mockito.mock( in testOverridingCondition() 99 Monitor.Callback.class); in testOverridingCondition() 101 final Monitor.Callback referenceCallback = Mockito.mock( in testOverridingCondition() 102 Monitor.Callback.class); in testOverridingCondition() 122 final ArgumentCaptor<Condition.Callback> mCallbackCaptor = in testOverridingCondition() 123 ArgumentCaptor.forClass(Condition.Callback.class); in testOverridingCondition() 154 final Monitor.Callback callback = Mockito.mock( in testMultipleOverridingConditions() 155 Monitor.Callback.class); in testMultipleOverridingConditions() 173 final ArgumentCaptor<Condition.Callback> mCallbackCaptor = in testMultipleOverridingConditions() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/pipeline/domain/autoaddable/ |
D | CallbackControllerAutoAddableTest.kt | 46 val callback = object : TestableController.Callback {} in <lambda>() 49 CallbackControllerAutoAddable<TestableController.Callback, TestableController>( in <lambda>() 57 TestableController.Callback { in <lambda>() 75 CallbackControllerAutoAddable<TestableController.Callback, TestableController>( in <lambda>() 84 TestableController.Callback { in <lambda>() 85 return object : TestableController.Callback { in <lambda>() 105 CallbackControllerAutoAddable<TestableController.Callback, TestableController>( in strategyIfNotAdded() 113 TestableController.Callback { in strategyIfNotAdded() 114 return object : TestableController.Callback {} in strategyIfNotAdded() 121 private class TestableController : CallbackController<TestableController.Callback> { [all …]
|
/frameworks/base/telecomm/java/android/telecom/ |
D | RemoteConference.java | 47 public abstract static class Callback { class in RemoteConference 137 private final Set<CallbackRecord<Callback>> mCallbackRecords = new CopyOnWriteArraySet<>(); 175 for (CallbackRecord<Callback> record : mCallbackRecords) { in setDestroyed() 177 final Callback callback = record.getCallback(); in setDestroyed() 200 for (CallbackRecord<Callback> record : mCallbackRecords) { in setState() 202 final Callback callback = record.getCallback(); in setState() 218 for (CallbackRecord<Callback> record : mCallbackRecords) { in addConnection() 220 final Callback callback = record.getCallback(); in addConnection() 236 for (CallbackRecord<Callback> record : mCallbackRecords) { in removeConnection() 238 final Callback callback = record.getCallback(); in removeConnection() [all …]
|
D | RemoteConnection.java | 56 public static abstract class Callback { class in RemoteConnection 289 public abstract static class Callback { class in RemoteConnection.VideoProvider 387 for (Callback l : mCallbacks) { 395 for (Callback l : mCallbacks) { 406 for (Callback l : mCallbacks) { 413 for (Callback l : mCallbacks) { 420 for (Callback l : mCallbacks) { 428 for (Callback l : mCallbacks) { 435 for (Callback l : mCallbacks) { 460 private final Set<Callback> mCallbacks = Collections.newSetFromMap( [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | CastControllerImplTest.java | 22 import com.android.systemui.statusbar.policy.CastController.Callback; 61 Callback mockCallback = mock(Callback.class); in testAddCallback() 69 Callback mockCallback = mock(Callback.class); in testRemoveCallback() 80 Callback mockCallback = mock(Callback.class); in testRemoveCallbackFromEmptyList() 92 Callback[] callbackList = new Callback[callbackCount]; in testAddCallbackRemoveCallback_concurrently() 96 callbackList[cbIndex] = mock(Callback.class); in testAddCallbackRemoveCallback_concurrently() 99 final Callback mCallback = callbackList[i / 2]; in testAddCallbackRemoveCallback_concurrently() 134 Callback callback = new Callback() { in removeCallbackWhileIterating_doesntCrash()
|
D | ZenModeControllerImplTest.java | 40 import com.android.systemui.statusbar.policy.ZenModeController.Callback; 58 private Callback mCallback; 91 mCallback = new Callback() { in testRemoveDuringCallback() 98 Callback mockCallback = mock(Callback.class); in testRemoveDuringCallback() 156 ZenModeController.Callback callback = new Callback() { in testModeChange_callbackNotified() 185 final ZenModeController.Callback callback = new ZenModeController.Callback() { in testCallbackRemovedWhileDispatching_doesntCrash() 194 mController.addCallback(new ZenModeController.Callback() {}); in testCallbackRemovedWhileDispatching_doesntCrash()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/utils/leaks/ |
D | FakeManagedProfileController.java | 20 import com.android.systemui.statusbar.phone.ManagedProfileController.Callback; 25 public class FakeManagedProfileController extends BaseLeakChecker<Callback> implements 28 private List<Callback> mCallbackList = new ArrayList<>(); 37 public void addCallback(Callback cb) { in addCallback() 43 public void removeCallback(Callback cb) { in removeCallback() 51 for (Callback cb: mCallbackList) { in setWorkModeEnabled() 69 for (Callback cb: mCallbackList) { in setHasActiveProfile()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/ |
D | DreamOverlayStateController.java | 58 CallbackController<DreamOverlayStateController.Callback> { 79 public interface Callback { interface in DreamOverlayStateController 107 private final ArrayList<WeakReference<Callback>> mCallbacks = new ArrayList<>(); 156 notifyCallbacksLocked(Callback::onComplicationsChanged); in addComplication() 173 notifyCallbacksLocked(Callback::onComplicationsChanged); in removeComplication() 211 private void notifyCallbacks(Consumer<Callback> callbackConsumer) { in notifyCallbacks() 215 private void notifyCallbacksLocked(Consumer<Callback> callbackConsumer) { in notifyCallbacksLocked() 216 final Iterator<WeakReference<Callback>> iterator = mCallbacks.iterator(); in notifyCallbacksLocked() 218 final Callback callback = iterator.next().get(); in notifyCallbacksLocked() 229 public void addCallback(@NonNull Callback callback) { in addCallback() [all …]
|
D | DreamOverlayCallbackController.kt | 26 CallbackController<DreamOverlayCallbackController.Callback> { 28 private val callbacks = mutableSetOf<DreamOverlayCallbackController.Callback>() 33 override fun addCallback(callback: DreamOverlayCallbackController.Callback) { in addCallback() 37 override fun removeCallback(callback: DreamOverlayCallbackController.Callback) { in removeCallback() 51 interface Callback { interface
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/condition/ |
D | Condition.java | 45 private final ArrayList<WeakReference<Callback>> mCallbacks = new ArrayList<>(); 114 public void addCallback(@NonNull Callback callback) { in addCallback() 130 public void removeCallback(@NonNull Callback callback) { in removeCallback() 132 final Iterator<WeakReference<Callback>> iterator = mCallbacks.iterator(); in removeCallback() 134 final Callback cb = iterator.next().get(); in removeCallback() 152 public Callback observe(LifecycleOwner owner, Callback listener) { in observe() 160 public Callback observe(Lifecycle lifecycle, Callback listener) { in observe() 203 final Iterator<WeakReference<Callback>> iterator = mCallbacks.iterator(); in sendUpdate() 205 final Callback cb = iterator.next().get(); in sendUpdate() 298 public interface Callback { interface in Condition
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/service/ |
D | PersistentConnectionManagerTest.java | 53 private ObservableServiceConnection.Callback<Proxy> mConnectionCallback; 82 private ObservableServiceConnection.Callback<Proxy> captureCallbackAndSend( in captureCallbackAndSend() 84 ArgumentCaptor<ObservableServiceConnection.Callback<Proxy>> connectionCallbackCaptor = in captureCallbackAndSend() 85 ArgumentCaptor.forClass(ObservableServiceConnection.Callback.class); in captureCallbackAndSend() 91 final ObservableServiceConnection.Callback callback = connectionCallbackCaptor.getValue(); in captureCallbackAndSend() 116 ArgumentCaptor<ObservableServiceConnection.Callback<Proxy>> connectionCallbackCaptor = in testRetryOnBindFailure() 117 ArgumentCaptor.forClass(ObservableServiceConnection.Callback.class); in testRetryOnBindFailure() 138 ArgumentCaptor<ObservableServiceConnection.Callback<Proxy>> connectionCallbackCaptor = in testStopDoesNotReconnect() 139 ArgumentCaptor.forClass(ObservableServiceConnection.Callback.class); in testStopDoesNotReconnect() 157 ArgumentCaptor<Observer.Callback> callbackCaptor = in testAttemptOnPackageChange() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | ManagedProfileControllerImpl.java | 39 private final List<Callback> mCallbacks = new ArrayList<>(); 61 public void addCallback(@NonNull Callback callback) { in addCallback() 70 public void removeCallback(@NonNull Callback callback) { in removeCallback() 107 ArrayList<Callback> copy = new ArrayList<>(mCallbacks); in notifyManagedProfileRemoved() 108 for (Callback callback : copy) { in notifyManagedProfileRemoved() 147 private final class UserTrackerCallback implements UserTracker.Callback { 152 ArrayList<Callback> copy = new ArrayList<>(mCallbacks); in onUserChanged() 153 for (Callback callback : copy) { in onUserChanged() 161 ArrayList<Callback> copy = new ArrayList<>(mCallbacks); in onProfilesChanged() 162 for (Callback callback : copy) { in onProfilesChanged()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/settings/ |
D | FakeDisplayTracker.kt | 29 val displayCallbacks: MutableList<DisplayTracker.Callback> = ArrayList() in <lambda>() 30 private val brightnessCallbacks: MutableList<DisplayTracker.Callback> = ArrayList() in <lambda>() 31 override fun addDisplayChangeCallback(callback: DisplayTracker.Callback, executor: Executor) { in <lambda>() 35 callback: DisplayTracker.Callback, in <lambda>() 41 override fun removeCallback(callback: DisplayTracker.Callback) { in <lambda>() 71 crossinline action: DisplayTracker.Callback.() -> Unit, in <lambda>() 72 list: List<DisplayTracker.Callback> in <lambda>()
|
/frameworks/base/media/java/android/media/projection/ |
D | MediaProjection.java | 71 private final Map<Callback, CallbackRecord> mCallbacks = new ArrayMap<>(); 108 public void registerCallback(@NonNull Callback callback, @Nullable Handler handler) { in registerCallback() 110 final Callback c = Objects.requireNonNull(callback); in registerCallback() 130 public void unregisterCallback(@NonNull Callback callback) { in unregisterCallback() 132 final Callback c = Objects.requireNonNull(callback); in unregisterCallback() 145 @Nullable VirtualDisplay.Callback callback, @Nullable Handler handler) { in createVirtualDisplay() 216 @Nullable VirtualDisplay.Callback callback, @Nullable Handler handler) { in createVirtualDisplay() 251 @Nullable VirtualDisplay.Callback callback, @Nullable Handler handler) { in createVirtualDisplay() 308 public abstract static class Callback { class in MediaProjection 405 private static final class CallbackRecord extends Callback { [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/ambient/statusbar/ui/ |
D | AmbientStatusBarViewControllerTest.java | 114 private ArgumentCaptor<DreamOverlayStateController.Callback> mCallbackCaptor; 237 final ArgumentCaptor<DreamOverlayNotificationCountProvider.Callback> callbackCapture = in testOnViewAttachedShowsNotificationsIconWhenNotificationsExist() 238 ArgumentCaptor.forClass(DreamOverlayNotificationCountProvider.Callback.class); in testOnViewAttachedShowsNotificationsIconWhenNotificationsExist() 250 final ArgumentCaptor<DreamOverlayNotificationCountProvider.Callback> callbackCapture = in testOnViewAttachedHidesNotificationsIconWhenNoNotificationsExist() 251 ArgumentCaptor.forClass(DreamOverlayNotificationCountProvider.Callback.class); in testOnViewAttachedHidesNotificationsIconWhenNoNotificationsExist() 322 final ArgumentCaptor<DreamOverlayNotificationCountProvider.Callback> callbackCapture = in testNotificationsIconShownWhenNotificationAdded() 323 ArgumentCaptor.forClass(DreamOverlayNotificationCountProvider.Callback.class); in testNotificationsIconShownWhenNotificationAdded() 335 final ArgumentCaptor<DreamOverlayNotificationCountProvider.Callback> callbackCapture = in testNotificationsIconHiddenWhenLastNotificationRemoved() 336 ArgumentCaptor.forClass(DreamOverlayNotificationCountProvider.Callback.class); in testNotificationsIconHiddenWhenLastNotificationRemoved() 353 final ArgumentCaptor<IndividualSensorPrivacyController.Callback> callbackCapture = in testMicCameraIconShownWhenSensorsBlocked() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/app/ |
D | ResolverAppPredictorCallbackTest.java | 34 private class Callback implements Consumer<List<AppTarget>> { class in ResolverAppPredictorCallbackTest 46 Callback callback = new Callback(); in testAsConsumer() 66 Callback callback = new Callback(); in testAsCallback() 86 Callback callback = new Callback(); in testAsConsumer_null()
|
/frameworks/base/core/java/android/os/ |
D | RemoteCallbackList.java | 60 /*package*/ ArrayMap<IBinder, Callback> mCallbacks 61 = new ArrayMap<IBinder, Callback>(); 67 private final class Callback implements IBinder.DeathRecipient { class in RemoteCallbackList 71 Callback(E callback, Object cookie) { in Callback() method in RemoteCallbackList.Callback 127 Callback cb = new Callback(callback, cookie); in register() 157 Callback cb = mCallbacks.remove(callback.asBinder()); in unregister() 177 Callback cb = mCallbacks.valueAt(cbi); in kill() 285 return ((Callback)mActiveBroadcast[index]).mCallback; in getBroadcastItem() 295 return ((Callback)mActiveBroadcast[index]).mCookie; in getBroadcastCookie()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ambient/touch/scrim/ |
D | ScrimManager.java | 42 private final HashSet<Callback> mCallbacks; 47 public interface Callback { interface in ScrimManager 55 private final KeyguardStateController.Callback mKeyguardStateCallback = 56 new KeyguardStateController.Callback() { 94 public void addCallback(Callback callback) { in addCallback() 101 public void removeCallback(Callback callback) { in removeCallback()
|
D | BouncerlessScrimController.java | 38 CallbackController<BouncerlessScrimController.Callback> { 45 public interface Callback { interface in BouncerlessScrimController 61 public void addCallback(Callback listener) { in addCallback() 66 public void removeCallback(Callback listener) { in removeCallback() 70 private final HashSet<Callback> mCallbacks;
|
/frameworks/base/location/api/ |
D | lint-baseline.txt | 12 …easurementRequest, java.util.concurrent.Executor, android.location.GnssMeasurementsEvent.Callback): 14 …registerGnssMeasurementsCallback(android.location.GnssMeasurementsEvent.Callback, android.os.Handl… 16 …asurementsCallback(java.util.concurrent.Executor, android.location.GnssMeasurementsEvent.Callback): 18 …terGnssNavigationMessageCallback(android.location.GnssNavigationMessage.Callback, android.os.Handl… 20 …ionMessageCallback(java.util.concurrent.Executor, android.location.GnssNavigationMessage.Callback): 22 … android.location.LocationManager#registerGnssStatusCallback(android.location.GnssStatus.Callback): 24 ….LocationManager#registerGnssStatusCallback(android.location.GnssStatus.Callback, android.os.Handl… 26 …er#registerGnssStatusCallback(java.util.concurrent.Executor, android.location.GnssStatus.Callback):
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/ |
D | DisplayTracker.kt | 40 fun addDisplayChangeCallback(callback: Callback, executor: Executor) in addDisplayChangeCallback() 46 fun addBrightnessChangeCallback(callback: Callback, executor: Executor) in addDisplayChangeCallback() 49 fun removeCallback(callback: Callback) in addDisplayChangeCallback() 55 interface Callback { in addDisplayChangeCallback() interface
|
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/ |
D | VolumeDialog.java | 17 import com.android.systemui.plugins.VolumeDialog.Callback; 26 @DependsOn(target = Callback.class) 31 void init(int windowType, Callback callback); in init() 35 public interface Callback { interface
|
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/ |
D | BatteryStatsCpuTimesTest.java | 168 any(KernelCpuUidUserSysTimeReader.Callback.class)); in testUpdateCpuTimeLocked() 172 any(KernelCpuUidFreqTimeReader.Callback.class)); in testUpdateCpuTimeLocked() 174 any(KernelCpuUidActiveTimeReader.Callback.class)); in testUpdateCpuTimeLocked() 176 any(KernelCpuUidClusterTimeReader.Callback.class)); in testUpdateCpuTimeLocked() 290 final KernelCpuUidUserSysTimeReader.Callback<long[]> callback = in testReadKernelUidCpuTimesLocked() 297 any(KernelCpuUidUserSysTimeReader.Callback.class)); in testReadKernelUidCpuTimesLocked() 325 final KernelCpuUidUserSysTimeReader.Callback<long[]> callback = in testReadKernelUidCpuTimesLocked() 332 any(KernelCpuUidUserSysTimeReader.Callback.class)); in testReadKernelUidCpuTimesLocked() 365 final KernelCpuUidUserSysTimeReader.Callback<long[]> callback = in testReadKernelUidCpuTimesLocked_isolatedUid() 372 any(KernelCpuUidUserSysTimeReader.Callback.class)); in testReadKernelUidCpuTimesLocked_isolatedUid() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/privacy/ |
D | PrivacyItemController.kt | 59 private val callbacks = mutableListOf<WeakReference<Callback>>() 80 private val optionsCallback = object : PrivacyConfig.Callback { 94 private val privacyItemMonitorCallback = object : PrivacyItemMonitor.Callback { 135 private fun addCallback(callback: WeakReference<Callback>) { in addCallback() 146 private fun removeCallback(callback: WeakReference<Callback>) { in removeCallback() 154 fun addCallback(callback: Callback) { in addCallback() 158 fun removeCallback(callback: Callback) { in removeCallback() 216 interface Callback : PrivacyConfig.Callback { interface 223 private val callback: Callback?,
|