/packages/modules/Bluetooth/system/gd/os/ |
D | handler.cc | 30 Handler::Handler(Thread* thread) : tasks_(new std::queue<OnceClosure>()), thread_(thread) { in Handler() function in bluetooth::os::Handler 33 …event_->Id(), common::Bind(&Handler::handle_next_event, common::Unretained(this)), common::Closure… in Handler() 36 Handler::~Handler() { in ~Handler() 44 void Handler::Post(OnceClosure closure) { in Post() 56 void Handler::Clear() { in Clear() 71 void Handler::WaitUntilStopped(std::chrono::milliseconds timeout) { in WaitUntilStopped() 78 void Handler::handle_next_event() { in handle_next_event()
|
D | handler.h | 34 class Handler : public common::PostableContext { 37 explicit Handler(Thread* thread); 39 Handler(const Handler&) = delete; 40 Handler& operator=(const Handler&) = delete; 43 virtual ~Handler();
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/ |
D | MockWifiP2pMonitor.java | 21 import android.os.Handler; 34 private final Map<String, SparseArray<Handler>> mHandlerMap = new HashMap<>(); 37 public void registerHandler(String iface, int what, Handler handler) { in registerHandler() 38 SparseArray<Handler> ifaceHandlers = mHandlerMap.get(iface); in registerHandler() 59 SparseArray<Handler> ifaceHandlers = mHandlerMap.get(iface); in sendMessage() 65 for (Map.Entry<String, SparseArray<Handler>> entry : mHandlerMap.entrySet()) { in sendMessage() 75 private boolean sendMessage(SparseArray<Handler> ifaceHandlers, Message message) { in sendMessage() 76 Handler handler = ifaceHandlers.get(message.what); in sendMessage()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/ |
D | ProcessingTaskController.java | 20 import android.os.Handler; 27 public class ProcessingTaskController implements Handler.Callback { 32 private Handler mProcessingHandler = null; 39 private final Handler mResultHandler = new Handler() { 70 mProcessingHandler = new Handler(mHandlerThread.getLooper(), this); in ProcessingTaskController() 73 public Handler getProcessingHandler() { in getProcessingHandler() 77 public Handler getResultHandler() { in getResultHandler()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | MockWifiMonitor.java | 21 import android.os.Handler; 34 private final Map<String, SparseArray<Handler>> mHandlerMap = new HashMap<>(); 37 public void registerHandler(String iface, int what, Handler handler) { in registerHandler() 38 SparseArray<Handler> ifaceHandlers = mHandlerMap.get(iface); in registerHandler() 66 SparseArray<Handler> ifaceHandlers = mHandlerMap.get(iface); in sendMessage() 72 for (Map.Entry<String, SparseArray<Handler>> entry : mHandlerMap.entrySet()) { in sendMessage() 82 private boolean sendMessage(SparseArray<Handler> ifaceHandlers, Message message) { in sendMessage() 83 Handler handler = ifaceHandlers.get(message.what); in sendMessage()
|
/packages/modules/Bluetooth/system/test/headless/ |
D | handler.h | 26 class Handler { 28 Handler(); 29 ~Handler(); 30 Handler(const Handler& handler) = default; 36 os::Handler* handler_{nullptr};
|
D | handler.cc | 30 headless::Handler::Handler() { in Handler() function in bluetooth::test::headless::Handler 32 handler_ = new os::Handler(thread_); in Handler() 35 headless::Handler::~Handler() { in ~Handler() 42 void headless::Handler::Post(common::OnceClosure closure) { in Post()
|
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/util/ |
D | ForegroundThread.java | 20 import android.os.Handler; 38 private static Handler sHandler; 51 sHandler = new Handler(sInstance.getLooper()); in ensureInstanceLocked() 75 public static Handler getHandler() { in getHandler() 100 private final Handler mHandler; 102 HandlerExecutor(@NonNull Handler handler) { in HandlerExecutor()
|
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/ |
D | SystemDeviceLockManagerImpl.java | 26 import android.os.Handler; 83 }), new Handler(Looper.getMainLooper()))); in addFinancedDeviceKioskRole() 101 }), new Handler(Looper.getMainLooper()))); in removeFinancedDeviceKioskRole() 120 }), new Handler(Looper.getMainLooper()))); in setDlcExemptFromActivityBgStartRestrictionState() 139 }), new Handler(Looper.getMainLooper()))); in setDlcAllowedToSendUndismissibleNotifications() 157 }), new Handler(Looper.getMainLooper()))); in setKioskAppExemptFromRestrictionsState() 176 }), new Handler(Looper.getMainLooper()))); in enableKioskKeepalive() 192 }), new Handler(Looper.getMainLooper()))); in disableKioskKeepalive() 208 }), new Handler(Looper.getMainLooper()))); in enableControllerKeepalive() 224 }), new Handler(Looper.getMainLooper()))); in disableControllerKeepalive() [all …]
|
/packages/services/Car/tests/GarageModeTestApp/src/com/google/android/car/garagemode/testapp/ |
D | DishService.java | 21 import android.os.Handler; 37 private final Handler mHandler = new Handler() { 84 private final WeakReference<Handler> mHandler; 89 DishWasherTask(Handler handler, JobParameters jobParameters, int dishNum) { in DishWasherTask() 90 mHandler = new WeakReference<Handler>(handler); in DishWasherTask() 111 final Handler handler = mHandler.get(); in onPostExecute()
|
/packages/modules/DnsResolver/ |
D | DnsProxyListener.h | 41 class Handler { 43 Handler(SocketClient* c) : mClient(c) { mClient->incRef(); } in Handler() function 44 virtual ~Handler() { mClient->decRef(); } in ~Handler() 45 void operator=(const Handler&) = delete; 65 class GetAddrInfoHandler : public Handler { 92 class GetHostByNameHandler : public Handler { 118 class GetHostByAddrHandler : public Handler { 145 class ResNSendHandler : public Handler {
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | WifiTrackerLibProvider.java | 20 import android.os.Handler; 37 Handler mainHandler, Handler workerHandler, Clock clock, in createWifiPickerTracker() 44 Handler mainHandler, Handler workerHandler, Clock clock, in createNetworkDetailsTracker()
|
D | WifiTrackerLibProviderImpl.java | 22 import android.os.Handler; 42 Handler mainHandler, Handler workerHandler, Clock clock, in createWifiPickerTracker() 60 Handler mainHandler, Handler workerHandler, Clock clock, in createNetworkDetailsTracker()
|
/packages/apps/Camera2/src/com/android/camera/async/ |
D | HandlerFactory.java | 19 import android.os.Handler; 31 public Handler create(Lifetime lifetime, String threadName) { in create() 42 return new Handler(thread.getLooper()); in create() 51 public Handler create(Lifetime lifetime, String threadName, int javaThreadPriority) { in create() 63 return new Handler(thread.getLooper()); in create()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/ |
D | WifiP2pMonitor.java | 26 import android.os.Handler; 109 private final Map<String, SparseArray<Set<Handler>>> mHandlerMap = new HashMap<>(); 114 public synchronized void registerHandler(String iface, int what, Handler handler) { in registerHandler() 115 SparseArray<Set<Handler>> ifaceHandlers = mHandlerMap.get(iface); in registerHandler() 120 Set<Handler> ifaceWhatHandlers = ifaceHandlers.get(what); in registerHandler() 199 SparseArray<Set<Handler>> ifaceHandlers = mHandlerMap.get(iface); in sendMessage() 202 Set<Handler> ifaceWhatHandlers = ifaceHandlers.get(message.what); in sendMessage() 204 for (Handler handler : ifaceWhatHandlers) { in sendMessage() 219 for (Map.Entry<String, SparseArray<Set<Handler>>> entry : mHandlerMap.entrySet()) { in sendMessage() 221 Set<Handler> ifaceWhatHandlers = entry.getValue().get(message.what); in sendMessage() [all …]
|
/packages/services/Iwlan/src/com/google/android/iwlan/ |
D | IwlanEventListener.java | 26 import android.os.Handler; 139 SparseArray<Set<Handler>> eventHandlers = new SparseArray<>(); 142 UserSettingContentObserver(Handler h) { in UserSettingContentObserver() 220 public synchronized void addEventListener(List<Integer> events, Handler handler) { in addEventListener() 225 Set<Handler> handlers = new HashSet<>(); in addEventListener() 238 public synchronized void removeEventListener(List<Integer> events, Handler handler) { in removeEventListener() 241 Set<Handler> handlers = eventHandlers.get(event); in removeEventListener() 258 public synchronized void removeEventListener(Handler handler) { in removeEventListener() 260 Set<Handler> handlers = eventHandlers.valueAt(i); in removeEventListener() 445 Handler handler = new Handler(looper); in registerContentObserver() [all …]
|
/packages/modules/Bluetooth/system/gd/common/ |
D | bidi_queue_unittest.cc | 26 using ::bluetooth::os::Handler; 37 up_handler_ = new Handler(up_thread_); in SetUp() 39 down_handler_ = new Handler(down_thread_); in SetUp() 50 Handler* up_handler_; 52 Handler* down_handler_; 62 …explicit TestBidiQueueEnd(BidiQueueEnd<TA, TB>* end, Handler* handler) : handler_(handler), end_(e… in TestBidiQueueEnd() 115 Handler* handler_;
|
/packages/services/Car/car-lib/src/com/android/car/internal/ |
D | SingleMessageHandler.java | 19 import android.os.Handler; 20 import android.os.Handler.Callback; 35 private final Handler mHandler; 39 mHandler = new Handler(looper, this); in SingleMessageHandler() 42 public SingleMessageHandler(Handler handler, int handledMessage) { in SingleMessageHandler()
|
/packages/modules/Telephony/services/QualifiedNetworksService/src/com/android/telephony/qns/ |
D | QnsRegistrant.java | 19 import android.os.Handler; 26 protected WeakReference<Handler> mRefH; 30 QnsRegistrant(Handler h, int what, Object obj) { in QnsRegistrant() 61 Handler h = getHandler(); in internalNotifyRegistrant() 79 Handler getHandler() { in getHandler()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiMonitor.java | 25 import android.os.Handler; 180 private final Map<String, SparseArray<Set<Handler>>> mHandlerMap = new HashMap<>(); 181 public synchronized void registerHandler(String iface, int what, Handler handler) { in registerHandler() 182 SparseArray<Set<Handler>> ifaceHandlers = mHandlerMap.get(iface); in registerHandler() 187 Set<Handler> ifaceWhatHandlers = ifaceHandlers.get(what); in registerHandler() 201 public synchronized void deregisterHandler(String iface, int what, Handler handler) { in deregisterHandler() 202 SparseArray<Set<Handler>> ifaceHandlers = mHandlerMap.get(iface); in deregisterHandler() 206 Set<Handler> ifaceWhatHandlers = ifaceHandlers.get(what); in deregisterHandler() 294 SparseArray<Set<Handler>> ifaceHandlers = mHandlerMap.get(iface); in sendMessage() 297 Set<Handler> ifaceWhatHandlers = ifaceHandlers.get(message.what); in sendMessage() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | ThreadUtil.java | 19 import android.os.Handler; 23 private static final Handler sHandler = new Handler(Looper.getMainLooper()); 25 public static Handler getMainThreadHandler() { in getMainThreadHandler()
|
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/ |
D | PacketReaderTest.java | 33 import android.os.Handler; 80 UdpLoopbackReader(Handler h) { in UdpLoopbackReader() 164 final Handler h = mHandlerThread.getThreadHandler(); in testBasicWorking() 198 NullPacketReader(Handler h, int recvbufsize) { in NullPacketReader() 210 final Handler h = mHandlerThread.getThreadHandler(); in testMinimalRecvBufSize() 220 final Handler h = mHandlerThread.getThreadHandler(); in testStartingFromWrongThread() 227 final Handler h = mHandlerThread.getThreadHandler(); in testStoppingFromWrongThread() 234 final Handler h = mHandlerThread.getThreadHandler(); in testSuccessToCreateSocket() 241 final Handler h = mHandlerThread.getThreadHandler(); in testFailToCreateSocket()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/ |
D | Consumers.kt | 19 import android.os.Handler 34 fun <A> consumeAsync(handler: Handler?, consumer: Consumer<A?>?, value: A?) { in consumeAsync() 50 handler: Handler?, in consumeCloseableAsync() 67 fun <A> createAsyncConsumer(handler: Handler?, consumer: Consumer<A?>?): Consumer<A?> { in createAsyncConsumer() 77 handler: Handler?, in createAsyncCloseableConsumer()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pbap/ |
D | BluetoothPbapUtilsTest.java | 34 import android.os.Handler; 178 Handler handler = new Handler(handlerThread.getLooper()); in fetchAndSetContacts_whenCursorIsNull_returnsMinusOne() 204 Handler handler = new Handler(handlerThread.getLooper()); in fetchAndSetContacts_whenIsLoadTrue_returnsContactsSetSize() 231 Handler handler = new Handler(handlerThread.getLooper()); in fetchAndSetContacts_whenIsLoadFalse_returnsContactsSetSize() 251 Handler handler = new Handler(handlerThread.getLooper()); in updateSecondaryVersionCounter_whenCursorIsNull_shouldNotCrash() 286 Handler handler = new Handler(handlerThread.getLooper()); in updateSecondaryVersionCounter_whenContactsAreAdded() 313 Handler handler = new Handler(handlerThread.getLooper()); in updateSecondaryVersionCounter_whenContactsAreDeleted()
|
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/ |
D | AutoReleaseNetworkCallbackRule.kt | 24 import android.os.Handler 123 handler: Handler? = null in requestNetwork() 163 handler: Handler? = null in registerDefaultNetworkCallback() 178 handler: Handler in registerSystemDefaultNetworkCallback() 188 handler: Handler in registerDefaultNetworkCallbackForUid() 198 handler: Handler in registerBestMatchingNetworkCallback() 208 handler: Handler in requestBackgroundNetwork()
|