Home
last modified time | relevance | path

Searched refs:FlashlightListener (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/utils/leaks/
DFakeFlashlightController.java22 import com.android.systemui.statusbar.policy.FlashlightController.FlashlightListener;
27 public class FakeFlashlightController extends BaseLeakChecker<FlashlightListener>
30 private final List<FlashlightListener> callbacks = new ArrayList<>();
52 callbacks.forEach(FlashlightListener::onFlashlightError); in onFlashlightError()
86 public void addCallback(FlashlightListener listener) { in addCallback()
95 public void removeCallback(FlashlightListener listener) { in removeCallback()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DFlashlightController.java18 import com.android.systemui.statusbar.policy.FlashlightController.FlashlightListener;
21 public interface FlashlightController extends CallbackController<FlashlightListener>, Dumpable {
29 public interface FlashlightListener { interface
DFlashlightControllerImpl.java72 private final ArrayList<WeakReference<FlashlightListener>> mListeners = new ArrayList<>(1);
157 public void addCallback(@NonNull FlashlightListener l) { in addCallback()
170 public void removeCallback(@NonNull FlashlightListener l) { in removeCallback()
205 final ArrayList<WeakReference<FlashlightController.FlashlightListener>> copy = in dispatchListeners()
210 FlashlightListener l = copy.get(i).get(); in dispatchListeners()
229 private void cleanUpListenersLocked(FlashlightListener listener) { in cleanUpListenersLocked()
231 FlashlightListener found = mListeners.get(i).get(); in cleanUpListenersLocked()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DFlashlightControllerImplTest.kt137 val callback = object : FlashlightController.FlashlightListener { in testCallbackRemovedWhileDispatching_doesntCrash()
149 controller.addCallback(object : FlashlightController.FlashlightListener { in testCallbackRemovedWhileDispatching_doesntCrash()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/flashlight/domain/interactor/
DFlashlightTileDataInteractor.kt42 object : FlashlightController.FlashlightListener { in tileData()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/data/quickaffordance/
DFlashlightQuickAffordanceConfig.kt86 object : FlashlightController.FlashlightListener { in pickerName()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DFlashlightTile.java51 FlashlightController.FlashlightListener {