/frameworks/base/tests/OneMedia/src/com/android/onemedia/playback/ |
D | Renderer.java | 73 protected List<Listener> mListeners = new ArrayList<Listener>(); 149 public void registerListener(Listener listener) { in registerListener() 155 public void unregisterListener(Listener listener) { in unregisterListener() 164 for (Listener listener : mListeners) { in pushOnError() 170 for (Listener listener : mListeners) { in pushOnStateChanged() 176 for (Listener listener : mListeners) { in pushOnBufferingUpdate() 182 for (Listener listener : mListeners) { in pushOnFocusLost() 188 for (Listener listener : mListeners) { in pushOnNextStarted() 193 public interface Listener { interface in Renderer
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/utils/leaks/ |
D | FakeDataSaverController.java | 20 import com.android.systemui.statusbar.policy.DataSaverController.Listener; 25 public class FakeDataSaverController extends BaseLeakChecker<Listener> implements DataSaverControll… 28 private List<Listener> mListeners = new ArrayList<>(); 42 for (Listener listener: mListeners) { in setDataSaverEnabled() 48 public void addCallback(Listener listener) { in addCallback() 53 public void removeCallback(Listener listener) { in removeCallback()
|
/frameworks/av/media/codec2/faultinjection/ |
D | C2ComponentWrapper.h | 46 class Listener : public C2Component::Listener { 48 explicit Listener(const std::shared_ptr<C2Component::Listener> &listener); 49 virtual ~Listener() = default; 58 std::shared_ptr<C2Component::Listener> mListener; 65 const std::shared_ptr<C2Component::Listener> &listener, 81 std::shared_ptr<Listener> mListener;
|
D | C2ComponentWrapper.cpp | 61 C2ComponentWrapper::Listener::Listener( in Listener() function in android::C2ComponentWrapper::Listener 62 const std::shared_ptr<C2Component::Listener> &listener) : mListener(listener) {} in Listener() 64 void C2ComponentWrapper::Listener::onWorkDone_nb(std::weak_ptr<C2Component> component, in onWorkDone_nb() 69 void C2ComponentWrapper::Listener::onTripped_nb(std::weak_ptr<C2Component> component, in onTripped_nb() 74 void C2ComponentWrapper::Listener::onError_nb( in onError_nb() 83 const std::shared_ptr<C2Component::Listener> &listener, c2_blocking_t mayBlock) { in setListener_vb() 84 mListener = std::make_shared<Listener>(listener); in setListener_vb()
|
/frameworks/base/telecomm/java/android/telecom/ |
D | Conference.java | 54 abstract static class Listener { class in Conference 80 private final Set<Listener> mListeners = new CopyOnWriteArraySet<>(); 111 private final Connection.Listener mConnectionDeathListener = new Connection.Listener() { 440 for (Listener l : mListeners) { in setDisconnected() 462 for (Listener l : mListeners) { in setConnectionCapabilities() 478 for (Listener l : mListeners) { in setConnectionProperties() 496 for (Listener l : mListeners) { in addConnection() 514 for (Listener l : mListeners) { in removeConnection() 547 for (Listener l : mListeners) { in setRingbackRequested() 565 for (Listener l : mListeners) { in setVideoState() [all …]
|
/frameworks/opt/net/ims/src/java/com/android/ims/internal/ |
D | ImsStreamMediaSession.java | 34 public static class Listener { class in ImsStreamMediaSession 37 private Listener mListener; 42 ImsStreamMediaSession(IImsStreamMediaSession mediaSession, Listener listener) { in ImsStreamMediaSession() 54 public void setListener(Listener listener) { in setListener()
|
/frameworks/base/services/core/java/com/android/server/power/stats/ |
D | PowerStatsUidResolver.java | 38 public interface Listener { interface in PowerStatsUidResolver 69 private volatile List<Listener> mListeners = Collections.emptyList(); 74 public void addListener(Listener listener) { in addListener() 76 List<Listener> newList = new ArrayList<>(mListeners); in addListener() 85 public void removeListener(Listener listener) { in removeListener() 87 List<Listener> newList = new ArrayList<>(mListeners); in removeListener() 103 List<Listener> listeners = mListeners; in noteIsolatedUidAdded() 125 List<Listener> listeners = mListeners; in noteIsolatedUidRemoved() 177 List<Listener> listeners = mListeners; in releaseIsolatedUid()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | SystemUIDialogManager.java | 44 private final Set<Listener> mListeners = new HashSet<>(); 64 public void registerListener(@NonNull Listener listener) { in registerListener() 71 public void unregisterListener(@NonNull Listener listener) { in unregisterListener() 93 for (Listener listener : mListeners) { in updateDialogListeners() 101 for (Listener listener : mListeners) { in dump() 111 public interface Listener { interface in SystemUIDialogManager
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | Connection.java | 109 public interface Listener { interface in Connection 157 public abstract static class ListenerBase implements Listener { 259 public Set<Listener> mListeners = new CopyOnWriteArraySet<>(); 1028 public void addListener(Listener listener) { in addListener() 1037 public final void removeListener(Listener listener) { in removeListener() 1153 for (Listener l : mListeners) { in setVideoState() 1168 for (Listener l : mListeners) { in setConnectionCapabilities() 1185 for (Listener l : mListeners) { in setCallRadioTech() 1206 for (Listener l : mListeners) { in setAudioQuality() 1215 for (Listener l: mListeners) { in notifyMediaAttributesChanged() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/inflation/ |
D | BindEventManager.kt | 31 protected val listeners = ListenerSet<Listener>() 34 fun addListener(listener: Listener) = in addListener() 38 fun removeListener(listener: Listener) = in addListener() 42 fun interface Listener { in addListener() interface in com.android.systemui.statusbar.notification.collection.inflation.BindEventManager
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | DataSaverControllerImpl.java | 31 private final ArrayList<Listener> mListeners = new ArrayList<>(); 39 ArrayList<DataSaverController.Listener> copy; in handleRestrictBackgroundChanged() 49 public void addCallback(@NonNull Listener listener) { in addCallback() 60 public void removeCallback(@NonNull Listener listener) { in removeCallback() 81 private final INetworkPolicyListener mPolicyListener = new NetworkPolicyManager.Listener() {
|
D | SafetyController.java | 44 CallbackController<SafetyController.Listener> { 47 private final ArrayList<Listener> mListeners = new ArrayList<>(); 77 public void addCallback(@NonNull Listener listener) { in addCallback() 93 public void removeCallback(@NonNull Listener listener) { in removeCallback() 103 final ArrayList<SafetyController.Listener> copy; in handleSafetyCenterEnableChange() 142 public interface Listener { interface in SafetyController
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/provider/ |
D | LaunchFullScreenIntentProvider.kt | 33 private val listeners = ListenerSet<Listener>() 39 fun registerListener(listener: Listener) { in registerListener() 44 fun removeListener(listener: Listener) { in removeListener() 64 fun interface Listener { in interface() interface in com.android.systemui.statusbar.notification.collection.provider.LaunchFullScreenIntentProvider
|
/frameworks/native/libs/gui/tests/ |
D | RegionSampling_test.cpp | 140 struct Listener : android::gui::BnRegionSamplingListener { struct 249 sp<Listener> listener = new Listener(); in TEST_F() 269 sp<Listener> listener = new Listener(); in TEST_F() 291 sp<Listener> listener = new Listener(); in TEST_F() 310 sp<Listener> listener = new Listener(); in TEST_F() 335 sp<Listener> greenListener = new Listener(); in TEST_F() 343 sp<Listener> grayListener = new Listener(); in TEST_F() 364 sp<Listener> listener = new Listener(); in TEST_F() 400 sp<Listener> listener = new Listener(); in TEST_F() 422 sp<Listener> listener = new Listener(); in TEST_F()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/sensors/ |
D | PostureDependentProximitySensor.java | 42 private final HashSet<Listener> mListenersRegisteredWhenProxUnavailable = new HashSet<>(); 76 public void register(ThresholdSensor.Listener listener) { in register() 86 public void unregister(ThresholdSensor.Listener listener) { in unregister() 124 final Listener[] listenersToReregister = in chooseSensors() 125 mListenersRegisteredWhenProxUnavailable.toArray(new Listener[0]); in chooseSensors() 127 for (Listener listener : listenersToReregister) { in chooseSensors()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationSettingsControllerTest.kt | 31 import com.android.systemui.statusbar.notification.row.NotificationSettingsController.Listener 124 controller.addCallback(settingUri1, Mockito.mock(Listener::class.java)) in updateContentObserverRegistration_onUserChange_withSettingsListeners() 141 controller.addCallback(settingUri1, Mockito.mock(Listener::class.java)) in addCallback_onlyFirstForUriRegistersObserver() 152 controller.addCallback(settingUri1, Mockito.mock(Listener::class.java)) in addCallback_onlyFirstForUriRegistersObserver() 159 controller.addCallback(settingUri1, Mockito.mock(Listener::class.java)) in addCallback_secondUriRegistersObserver() 171 controller.addCallback(settingUri2, Mockito.mock(Listener::class.java)) in addCallback_secondUriRegistersObserver() 185 val listenerSetting1: Listener = mock() in removeCallback_lastUnregistersObserver() 186 val listenerSetting2: Listener = mock() in removeCallback_lastUnregistersObserver() 224 val listenerSetting1a: Listener = mock() in addCallback_updatesCurrentValue() 225 val listenerSetting1b: Listener = mock() in addCallback_updatesCurrentValue() [all …]
|
/frameworks/base/services/foldables/devicestateprovider/tests/src/com/android/server/policy/ |
D | FoldableDeviceStateProviderTest.java | 64 import com.android.server.devicestate.DeviceStateProvider.Listener; 151 Listener listener = mock(Listener.class); in create_allMatchingStatesDefaultsToTheFirstIdentifier() 176 Listener listener = mock(Listener.class); in create_multipleMatchingStatesDefaultsToTheLowestIdentifier() 189 Listener listener = mock(Listener.class); in test_hingeAngleUpdatedFirstTime_switchesToMatchingState() 206 Listener listener = mock(Listener.class); in test_hallSensorUpdatedFirstTime_switchesToMatchingState() 225 Listener listener = mock(Listener.class); in test_hingeAngleUpdatedSecondTime_switchesToMatchingState() 244 Listener listener = mock(Listener.class); in test_hallSensorUpdatedSecondTime_switchesToMatchingState() 263 Listener listener = mock(Listener.class); in test_invalidSensorValues_onStateChangedIsNotTriggered() 300 Listener listener = mock(Listener.class); 355 Listener listener = mock(Listener.class); in test_flagDisableWhenPowerSaveEnabled() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/smartspace/ |
D | SmartspacePrecondition.kt | 26 interface Listener { interface 34 fun addListener(listener: Listener) 39 fun removeListener(listener: Listener)
|
D | SmartspaceTargetFilter.kt | 29 interface Listener { interface 37 fun addListener(listener: Listener) 42 fun removeListener(listener: Listener)
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/sensors/ |
D | FakeThresholdSensor.java | 25 private List<Listener> mListeners = new ArrayList<>(); 53 public void register(ThresholdSensor.Listener listener) { in register() 58 public void unregister(ThresholdSensor.Listener listener) { in unregister() 78 for (Listener listener : mListeners) { in triggerEvent()
|
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger_middleware/ |
D | ICaptureStateNotifier.java | 26 interface Listener { interface 36 boolean registerListener(@NonNull Listener listener); in registerListener() 42 void unregisterListener(@NonNull Listener listener); in unregisterListener()
|
D | ExternalCaptureStateTracker.java | 37 private final List<Listener> mListeners = new LinkedList<>(); 54 public boolean registerListener(@NonNull Listener listener) { in registerListener() 62 public void unregisterListener(Listener listener) { in unregisterListener() 92 for (Listener listener : mListeners) { in setCaptureState()
|
/frameworks/base/location/api/ |
D | system-removed.txt | 5 …eprecated public boolean addGpsMeasurementListener(android.location.GpsMeasurementsEvent.Listener); 6 …ublic boolean addGpsNavigationMessageListener(android.location.GpsNavigationMessageEvent.Listener); 8 …eprecated public void removeGpsMeasurementListener(android.location.GpsMeasurementsEvent.Listener); 9 …ublic void removeGpsNavigationMessageListener(android.location.GpsNavigationMessageEvent.Listener);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/policy/ |
D | DeviceStateProviderImplTest.java | 137 DeviceStateProvider.Listener listener = mock(DeviceStateProvider.Listener.class); in assertDefaultProviderValues() 165 DeviceStateProvider.Listener listener = mock(DeviceStateProvider.Listener.class); in create_multipleMatchingStatesDefaultsToLowestIdentifier() 198 DeviceStateProvider.Listener listener = mock(DeviceStateProvider.Listener.class); in create_stateWithCancelOverrideRequestProperty() 230 DeviceStateProvider.Listener listener = mock(DeviceStateProvider.Listener.class); in create_stateWithInvalidProperty() 266 DeviceStateProvider.Listener listener = mock(DeviceStateProvider.Listener.class); in create_lidSwitch() 360 DeviceStateProvider.Listener listener = mock(DeviceStateProvider.Listener.class); in create_sensor() 424 DeviceStateProvider.Listener listener = mock(DeviceStateProvider.Listener.class); in test_propertyDisableWhenThermalStatusCritical() 477 DeviceStateProvider.Listener listener = mock(DeviceStateProvider.Listener.class); in test_propertyDisableWhenPowerSaveEnabled() 531 DeviceStateProvider.Listener listener = mock(DeviceStateProvider.Listener.class); in test_invalidSensorValues() 596 DeviceStateProvider.Listener listener = mock(DeviceStateProvider.Listener.class); in create_invalidSensor()
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/flags/ |
D | FlagListenable.kt | 23 fun addListener(flag: Flag<*>, listener: Listener) in addListener() 26 fun removeListener(listener: Listener) in addListener() 29 fun interface Listener { in addListener() interface
|