/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...] |
/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/native/include_sensor/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/core/java/android/os/ |
H A D | HandlerThread.java | 23 * Handy class for starting a new thread that has a looper. The looper can then be 72 * has been started, this method will block until the looper has been initialized. 73 * @return The looper. 80 // If the thread has been started, wait until the looper has been created. 105 * Quits the handler thread's looper. 107 * Causes the handler thread's looper to terminate without processing any 110 * Any attempt to post messages to the queue after the looper is asked to quit will fail. 114 * before the looper terminates. Consider using {@link #quitSafely} instead to ensure 118 * @return True if the looper loope [all...] |
/frameworks/base/core/java/android/view/ |
H A D | DisplayEventReceiver.java | 74 * @param looper The looper to use when invoking callbacks. 76 public DisplayEventReceiver(Looper looper) { argument 77 this(looper, VSYNC_SOURCE_APP); 83 * @param looper The looper to use when invoking callbacks. 86 public DisplayEventReceiver(Looper looper, int vsyncSource) { argument 87 if (looper == null) { 88 throw new IllegalArgumentException("looper must not be null"); 91 mMessageQueue = looper [all...] |
H A D | FrameMetricsObserver.java | 46 * @param looper the looper to use when invoking callbacks 48 FrameMetricsObserver(@NonNull Window window, @NonNull Looper looper, argument 50 if (looper == null) { 51 throw new NullPointerException("looper cannot be null"); 54 mMessageQueue = looper.getQueue(); 56 throw new IllegalStateException("invalid looper, null message queue\n");
|
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 | 118 * @param looper The looper to run callbacks on. 120 public InputFilter(Looper looper) { argument 121 mH = new H(looper); 214 public H(Looper looper) { argument 215 super(looper);
|
/frameworks/base/cmds/incidentd/src/ |
H A D | main.cpp | 36 // Set up the looper 37 sp<Looper> looper(Looper::prepare(0 /* opts */)); 47 sp<IncidentService> service = new IncidentService(looper); 56 looper->pollAll(-1 /* timeoutMillis */);
|
/frameworks/base/core/java/com/android/internal/os/ |
H A D | BackgroundThread.java | 41 final Looper looper = sInstance.getLooper(); 42 looper.setTraceTag(Trace.TRACE_TAG_SYSTEM_SERVER); 43 looper.setSlowLogThresholdMs(
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | FgThread.java | 46 final Looper looper = sInstance.getLooper(); 47 looper.setTraceTag(Trace.TRACE_TAG_SYSTEM_SERVER); 48 looper.setSlowLogThresholdMs(
|
H A D | UiThread.java | 50 final Looper looper = sInstance.getLooper(); 51 looper.setTraceTag(Trace.TRACE_TAG_SYSTEM_SERVER); 52 looper.setSlowLogThresholdMs(
|
/frameworks/base/tests/net/java/com/android/internal/util/ |
H A D | TestUtils.java | 39 public static void waitForIdleLooper(Looper looper, long timeoutMs) { argument 40 waitForIdleHandler(new Handler(looper), timeoutMs);
|
/frameworks/base/location/java/android/location/ |
H A D | CountryDetector.java | 54 * looper once the country changed and detected. 62 public ListenerTransport(CountryListener listener, Looper looper) { argument 64 if (looper != null) { 65 mHandler = new Handler(looper); 115 * @param looper a Looper object whose message queue will be used to 116 * implement the callback mechanism. If looper is null then the 119 public void addCountryListener(CountryListener listener, Looper looper) { argument 122 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/packages/SystemUI/tests/src/com/android/systemui/utils/os/ |
H A D | FakeHandler.java | 37 public FakeHandler(Looper looper) { argument 38 super(looper);
|
/frameworks/base/tests/ServiceCrashTest/src/com/android/tests/servicecrashtest/ |
H A D | CrashingService.java | 36 public ServiceHandler(Looper looper) { argument 37 super(looper);
|
/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/ |
H A D | OpenNetworkNotifier.java | 38 Looper looper, 47 SystemMessage.NOTE_NETWORK_AVAILABLE, context, looper, framework, clock, 36 OpenNetworkNotifier( Context context, Looper looper, FrameworkFacade framework, Clock clock, WifiMetrics wifiMetrics, WifiConfigManager wifiConfigManager, WifiConfigStore wifiConfigStore, WifiStateMachine wifiStateMachine, ConnectToNetworkNotificationBuilder connectToNetworkNotificationBuilder) argument
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
H A D | WifiHandler.java | 37 public WifiHandler(String tag, Looper looper) { argument 38 super(looper);
|
/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, const wp<ALooper> &looper) { argument 65 mLooper = looper;
|
/frameworks/av/media/libstagefright/foundation/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, const wp<ALooper> &looper) { argument 65 mLooper = looper;
|
/frameworks/av/media/libstagefright/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, const wp<ALooper> &looper) { argument 65 mLooper = looper;
|
/frameworks/base/core/jni/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,
|