Searched refs:FlashlightListener (Results 1 – 7 of 7) sorted by relevance
22 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()
18 import com.android.systemui.statusbar.policy.FlashlightController.FlashlightListener;21 public interface FlashlightController extends CallbackController<FlashlightListener>, Dumpable {29 public interface FlashlightListener { interface
72 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()
137 val callback = object : FlashlightController.FlashlightListener { in testCallbackRemovedWhileDispatching_doesntCrash()149 controller.addCallback(object : FlashlightController.FlashlightListener { in testCallbackRemovedWhileDispatching_doesntCrash()
42 object : FlashlightController.FlashlightListener { in tileData()
86 object : FlashlightController.FlashlightListener { in pickerName()
51 FlashlightController.FlashlightListener {