/frameworks/base/native/android/ |
H A D | looper.cpp | 20 #include <android/looper.h> 32 static inline ALooper* Looper_to_ALooper(Looper* looper) { argument 33 return reinterpret_cast<ALooper*>(looper); 44 void ALooper_acquire(ALooper* looper) { argument 45 ALooper_to_Looper(looper)->incStrong((void*)ALooper_acquire); 48 void ALooper_release(ALooper* looper) { argument 49 ALooper_to_Looper(looper)->decStrong((void*)ALooper_acquire); 53 sp<Looper> looper = Looper::getForThread(); local 54 if (looper == NULL) { 55 ALOGE("ALooper_pollOnce: No looper fo 64 sp<Looper> looper = Looper::getForThread(); local 74 ALooper_wake(ALooper* looper) argument 78 ALooper_addFd(ALooper* looper, int fd, int ident, int events, ALooper_callbackFunc callback, void* data) argument 83 ALooper_removeFd(ALooper* looper, int fd) argument [all...] |
H A D | choreographer.cpp | 67 Choreographer(const sp<Looper>& looper); 88 sp<Looper> looper = Looper::getForThread(); local 89 if (!looper.get()) { 90 ALOGW("No looper prepared for thread"); 93 gChoreographer = new Choreographer(looper); 103 Choreographer::Choreographer(const sp<Looper>& looper) : argument 104 DisplayEventDispatcher(looper), mLooper(looper), mThreadId(std::this_thread::get_id()) {
|
H A D | sensor.cpp | 20 #include <android/looper.h> 85 ALooper* looper, int ident, ALooper_callbackFunc callback, void* data) 90 ALooper_addFd(looper, queue->getFd(), ident, ALOOPER_EVENT_INPUT, callback, data); 91 queue->looper = looper; 101 ALooper_removeFd(queue->looper, queue->getFd()); 84 ASensorManager_createEventQueue(ASensorManager* manager, ALooper* looper, int ident, ALooper_callbackFunc callback, void* data) argument
|
/frameworks/base/core/java/android/os/ |
H A D | HandlerThread.java | 20 * Handy class for starting a new thread that has a looper. The looper can then be 68 * has been started, this method will block until the looper has been initialized. 69 * @return The looper. 76 // If the thread has been started, wait until the looper has been created. 89 * Quits the handler thread's looper. 91 * Causes the handler thread's looper to terminate without processing any 94 * Any attempt to post messages to the queue after the looper is asked to quit will fail. 98 * before the looper terminates. Consider using {@link #quitSafely} instead to ensure 102 * @return True if the looper loope [all...] |
/frameworks/base/core/java/com/android/internal/view/ |
H A D | WindowManagerPolicyThread.java | 29 public static void set(Thread thread, Looper looper) { argument 31 mLooper = looper;
|
/frameworks/native/include/android/ |
H A D | looper.h | 23 * @file looper.h 37 * A looper is the state tracking an event loop for a thread. 50 * Returns the looper associated with the calling thread, or NULL if 58 * This looper will accept calls to ALooper_addFd() that do not 68 * Prepares a looper associated with the calling thread, and returns it. 69 * If the thread already has a looper, it is returned. Otherwise, a new 108 void ALooper_acquire(ALooper* looper); 113 void ALooper_release(ALooper* looper); 116 * Flags for file descriptor events that a looper can monitor. 134 * The looper alway [all...] |
/frameworks/base/location/java/android/location/ |
H A D | CountryDetector.java | 55 * looper once the country changed and detected. 63 public ListenerTransport(CountryListener listener, Looper looper) { argument 65 if (looper != null) { 66 mHandler = new Handler(looper); 116 * @param looper a Looper object whose message queue will be used to 117 * implement the callback mechanism. If looper is null then the 120 public void addCountryListener(CountryListener listener, Looper looper) { argument 123 ListenerTransport transport = new ListenerTransport(listener, looper);
|
/frameworks/av/media/libstagefright/foundation/ |
H A D | ALooperRoster.cpp | 37 const sp<ALooper> looper, const sp<AHandler> &handler) { 46 info.mLooper = looper; 51 handler->setID(handlerID, looper); 86 sp<ALooper> looper = info.mLooper.promote(); local 87 if (looper == NULL) { 91 // At this point 'looper' might be the only sp<> keeping 97 activeLoopers.add(looper); 139 sp<ALooper> looper = info.mLooper.promote(); local 140 if (looper != NULL) { 141 s.append(looper 36 registerHandler( const sp<ALooper> looper, const sp<AHandler> &handler) argument [all...] |
/frameworks/base/core/java/android/view/ |
H A D | BatchedInputEventReceiver.java | 30 InputChannel inputChannel, Looper looper, Choreographer choreographer) { 31 super(inputChannel, looper); 29 BatchedInputEventReceiver( InputChannel inputChannel, Looper looper, Choreographer choreographer) argument
|
H A D | InputFilter.java | 124 * @param looper The looper to run callbacks on. 126 public InputFilter(Looper looper) { argument 127 mH = new H(looper); 220 public H(Looper looper) { argument 221 super(looper);
|
H A D | DisplayEventReceiver.java | 55 * @param looper The looper to use when invoking callbacks. 57 public DisplayEventReceiver(Looper looper) { argument 58 if (looper == null) { 59 throw new IllegalArgumentException("looper must not be null"); 62 mMessageQueue = looper.getQueue();
|
H A D | FrameMetricsObserver.java | 49 * @param looper the looper to use when invoking callbacks 51 FrameMetricsObserver(@NonNull Window window, @NonNull Looper looper, argument 53 if (looper == null) { 54 throw new NullPointerException("looper cannot be null"); 57 mMessageQueue = looper.getQueue(); 59 throw new IllegalStateException("invalid looper, null message queue\n");
|
H A D | InputEventSender.java | 53 * @param looper The looper to use when invoking callbacks. 55 public InputEventSender(InputChannel inputChannel, Looper looper) { argument 59 if (looper == null) { 60 throw new IllegalArgumentException("looper must not be null"); 64 mMessageQueue = looper.getQueue();
|
H A D | InputEventReceiver.java | 58 * @param looper The looper to use when invoking callbacks. 60 public InputEventReceiver(InputChannel inputChannel, Looper looper) { argument 64 if (looper == null) { 65 throw new IllegalArgumentException("looper must not be null"); 69 mMessageQueue = looper.getQueue(); 196 InputChannel inputChannel, Looper looper); 195 createInputEventReceiver( InputChannel inputChannel, Looper looper) argument
|
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
H A D | HistoryHandler.java | 30 HistoryHandler(Looper looper) { argument 31 super(looper);
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/ |
H A D | WifiScannerImpl.java | 38 WifiScannerImpl create(Context context, Looper looper, Clock clock); argument 46 public WifiScannerImpl create(Context context, Looper looper, Clock clock) { 49 return new HalWifiScannerImpl(context, wifiNative, looper, clock); 51 return new SupplicantWifiScannerImpl(context, wifiNative, looper, clock);
|
/frameworks/av/include/media/stagefright/foundation/ |
H A D | AHandler.h | 40 sp<ALooper> looper() const { function in struct:android::AHandler 63 inline void setID(ALooper::handler_id id, wp<ALooper> looper) { argument 65 mLooper = looper;
|
H A D | ALooperRoster.h | 31 const sp<ALooper> looper, const sp<AHandler> &handler);
|
/frameworks/base/include/android_runtime/ |
H A D | android_view_InputQueue.h | 39 void attachLooper(Looper* looper, int ident, ALooper_callbackFunc callback, void* data); 59 static InputQueue* createQueue(jobject inputQueueObj, const sp<Looper>& looper); 65 InputQueue(jobject inputQueueObj, const sp<Looper>& looper,
|
/frameworks/base/core/java/android/hardware/soundtrigger/ |
H A D | SoundTriggerModule.java | 131 // find the looper for our new event handler 132 Looper looper; 134 looper = handler.getLooper(); 136 looper = Looper.getMainLooper(); 139 // construct the event handler with this looper 140 if (looper != null) { 142 mHandler = new Handler(looper) {
|
/frameworks/base/media/java/android/media/ |
H A D | MediaSync.java | 258 Looper looper; 259 if ((looper = Looper.myLooper()) == null) { 260 looper = Looper.getMainLooper(); 262 if (looper == null) { 265 mCallbackHandler = new Handler(looper); 291 Looper looper; 292 if ((looper = Looper.myLooper()) == null) { 293 looper = Looper.getMainLooper(); 295 if (looper == null) { 298 mOnErrorListenerHandler = new Handler(looper); [all...] |
/frameworks/av/media/libstagefright/rtsp/ |
H A D | rtp_test.cpp | 66 sp<ALooper> looper = new ALooper; local 73 looper->registerHandler(rtp_pusher); 76 looper->registerHandler(rtcp_pusher); 80 looper->registerHandler(session); 176 looper->start(false /* runOnCallingThread */); 220 looper->stop();
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/ |
H A D | GSMTestHandler.java.broken | 78 Looper looper = getLooper(); 79 if (looper != null) looper.quit();
|
/frameworks/base/cmds/hid/jni/ |
H A D | com_android_commands_hid_Device.h | 42 std::unique_ptr<DeviceCallback> callback, sp<Looper> looper); 44 Device(int32_t id, int fd, std::unique_ptr<DeviceCallback> callback, sp<Looper> looper);
|
/frameworks/base/core/java/android/app/ |
H A D | IntentService.java | 61 public ServiceHandler(Looper looper) { argument 62 super(looper);
|