/frameworks/base/native/android/ |
D | looper.cpp | 32 static inline ALooper* Looper_to_ALooper(Looper* looper) { in Looper_to_ALooper() argument 33 return reinterpret_cast<ALooper*>(looper); in Looper_to_ALooper() 44 void ALooper_acquire(ALooper* looper) { in ALooper_acquire() argument 45 ALooper_to_Looper(looper)->incStrong((void*)ALooper_acquire); in ALooper_acquire() 48 void ALooper_release(ALooper* looper) { in ALooper_release() argument 49 ALooper_to_Looper(looper)->decStrong((void*)ALooper_acquire); in ALooper_release() 53 sp<Looper> looper = Looper::getForThread(); in ALooper_pollOnce() local 54 if (looper == NULL) { in ALooper_pollOnce() 60 return looper->pollOnce(timeoutMillis, outFd, outEvents, outData); in ALooper_pollOnce() 64 sp<Looper> looper = Looper::getForThread(); in ALooper_pollAll() local [all …]
|
D | choreographer.cpp | 69 explicit Choreographer(const sp<Looper>& looper); 92 sp<Looper> looper = Looper::getForThread(); in getForThread() local 93 if (!looper.get()) { in getForThread() 97 gChoreographer = new Choreographer(looper); in getForThread() 107 Choreographer::Choreographer(const sp<Looper>& looper) : in Choreographer() argument 108 DisplayEventDispatcher(looper), mLooper(looper), mThreadId(std::this_thread::get_id()) { in Choreographer()
|
/frameworks/base/core/java/android/os/ |
D | HandlerThread.java | 126 Looper looper = getLooper(); in quit() local 127 if (looper != null) { in quit() 128 looper.quit(); in quit() 153 Looper looper = getLooper(); in quitSafely() local 154 if (looper != null) { in quitSafely() 155 looper.quitSafely(); in quitSafely()
|
D | TestLooperManager.java | 45 public TestLooperManager(Looper looper) { in TestLooperManager() argument 47 if (sHeldLoopers.contains(looper)) { in TestLooperManager() 50 sHeldLoopers.add(looper); in TestLooperManager() 52 mLooper = looper; in TestLooperManager() 55 new Handler(looper).post(new LooperHolder()); in TestLooperManager()
|
D | Handler.java | 141 public Handler(@NonNull Looper looper) { in Handler() argument 142 this(looper, null, false); in Handler() 152 public Handler(@NonNull Looper looper, @Nullable Callback callback) { in Handler() argument 153 this(looper, callback, false); in Handler() 235 public Handler(@NonNull Looper looper, @Nullable Callback callback, boolean async) { in Handler() argument 236 mLooper = looper; in Handler() 237 mQueue = looper.mQueue; in Handler() 255 public static Handler createAsync(@NonNull Looper looper) { in createAsync() argument 256 if (looper == null) throw new NullPointerException("looper must not be null"); in createAsync() 257 return new Handler(looper, null, true); in createAsync() [all …]
|
/frameworks/native/include_sensor/android/ |
D | looper.h | 108 void ALooper_acquire(ALooper* looper); 113 void ALooper_release(ALooper* looper); 213 void ALooper_wake(ALooper* looper); 241 int ALooper_addFd(ALooper* looper, int fd, int ident, int events, 261 int ALooper_removeFd(ALooper* looper, int fd);
|
/frameworks/native/include/android/ |
D | looper.h | 108 void ALooper_acquire(ALooper* looper); 113 void ALooper_release(ALooper* looper); 213 void ALooper_wake(ALooper* looper); 241 int ALooper_addFd(ALooper* looper, int fd, int ident, int events, 261 int ALooper_removeFd(ALooper* looper, int fd);
|
/frameworks/opt/net/ike/src/java/com/android/ike/ikev2/ |
D | ChildSessionStateMachineFactory.java | 31 String name, Looper looper, ChildSessionOptions sessionOptions) { in makeChildSessionStateMachine() argument 32 return sChildSessionHelper.makeChildSessionStateMachine(name, looper, sessionOptions); in makeChildSessionStateMachine() 48 String name, Looper looper, ChildSessionOptions sessionOptions); in makeChildSessionStateMachine() argument 58 String name, Looper looper, ChildSessionOptions sessionOptions) { in makeChildSessionStateMachine() argument 60 new ChildSessionStateMachine(name, looper, sessionOptions); in makeChildSessionStateMachine()
|
/frameworks/av/media/libstagefright/foundation/ |
D | ALooperRoster.cpp | 37 const sp<ALooper> &looper, const sp<AHandler> &handler) { in registerHandler() argument 46 info.mLooper = looper; in registerHandler() 51 handler->setID(handlerID, looper); in registerHandler() 86 sp<ALooper> looper = info.mLooper.promote(); in unregisterStaleHandlers() local 87 if (looper == NULL) { in unregisterStaleHandlers() 97 activeLoopers.add(looper); in unregisterStaleHandlers() 139 sp<ALooper> looper = info.mLooper.promote(); in dump() local 140 if (looper != NULL) { in dump() 141 s.append(looper->getName()); in dump()
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/ |
D | InputChannelCompat.java | 47 Looper looper, Choreographer choreographer, InputEventListener listener) { in fromBundle() argument 50 return new InputEventReceiver(channel, looper, choreographer, listener); in fromBundle() 74 public InputEventReceiver(InputChannel inputChannel, Looper looper, in InputEventReceiver() argument 77 mReceiver = new BatchedInputEventReceiver(inputChannel, looper, choreographer) { in InputEventReceiver() 104 public InputEventDispatcher(InputChannel inputChannel, Looper looper) { in InputEventDispatcher() argument 106 mSender = new InputEventSender(inputChannel, looper) { }; in InputEventDispatcher()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/charging/ |
D | WirelessChargingAnimation.java | 57 public WirelessChargingAnimation(@NonNull Context context, @Nullable Looper looper, int in WirelessChargingAnimation() argument 59 mCurrentWirelessChargingView = new WirelessChargingView(context, looper, in WirelessChargingAnimation() 68 @Nullable Looper looper, int batteryLevel, Callback callback, boolean isDozing) { in makeWirelessChargingAnimation() argument 69 return new WirelessChargingAnimation(context, looper, batteryLevel, callback, isDozing); in makeWirelessChargingAnimation() 103 public WirelessChargingView(Context context, @Nullable Looper looper, int batteryLevel, in WirelessChargingView() argument 122 if (looper == null) { in WirelessChargingView() 124 looper = Looper.myLooper(); in WirelessChargingView() 125 if (looper == null) { in WirelessChargingView() 132 mHandler = new Handler(looper, null) { in WirelessChargingView()
|
/frameworks/av/media/libstagefright/rtsp/ |
D | rtp_test.cpp | 63 sp<ALooper> looper = new ALooper; in main() local 70 looper->registerHandler(rtp_pusher); in main() 73 looper->registerHandler(rtcp_pusher); in main() 77 looper->registerHandler(session); in main() 173 looper->start(false /* runOnCallingThread */); in main() 217 looper->stop(); in main()
|
/frameworks/base/location/java/android/location/ |
D | CountryDetector.java | 64 public ListenerTransport(CountryListener listener, Looper looper) { in ListenerTransport() argument 66 if (looper != null) { in ListenerTransport() 67 mHandler = new Handler(looper); in ListenerTransport() 124 public void addCountryListener(CountryListener listener, Looper looper) { in addCountryListener() argument 127 ListenerTransport transport = new ListenerTransport(listener, looper); in addCountryListener()
|
/frameworks/base/core/java/android/view/ |
D | DisplayEventReceiver.java | 79 public DisplayEventReceiver(Looper looper) { in DisplayEventReceiver() argument 80 this(looper, VSYNC_SOURCE_APP); in DisplayEventReceiver() 89 public DisplayEventReceiver(Looper looper, int vsyncSource) { in DisplayEventReceiver() argument 90 if (looper == null) { in DisplayEventReceiver() 94 mMessageQueue = looper.getQueue(); in DisplayEventReceiver()
|
D | InputFilter.java | 122 public InputFilter(Looper looper) { in InputFilter() argument 123 mH = new H(looper); in InputFilter() 217 public H(Looper looper) { in H() argument 218 super(looper); in H()
|
D | Choreographer.java | 108 Looper looper = Looper.myLooper(); 109 if (looper == null) { 112 Choreographer choreographer = new Choreographer(looper, VSYNC_SOURCE_APP); 113 if (looper == Looper.getMainLooper()) { 127 Looper looper = Looper.myLooper(); 128 if (looper == null) { 131 return new Choreographer(looper, VSYNC_SOURCE_SURFACE_FLINGER); 254 private Choreographer(Looper looper, int vsyncSource) { in Choreographer() argument 255 mLooper = looper; in Choreographer() 256 mHandler = new FrameHandler(looper); in Choreographer() [all …]
|
D | FrameMetricsObserver.java | 52 FrameMetricsObserver(@NonNull Window window, @NonNull Looper looper, in FrameMetricsObserver() argument 54 if (looper == null) { in FrameMetricsObserver() 58 mMessageQueue = looper.getQueue(); in FrameMetricsObserver()
|
/frameworks/base/media/java/android/media/ |
D | MediaSync.java | 258 Looper looper; in setCallback() local 259 if ((looper = Looper.myLooper()) == null) { in setCallback() 260 looper = Looper.getMainLooper(); in setCallback() 262 if (looper == null) { in setCallback() 265 mCallbackHandler = new Handler(looper); in setCallback() 291 Looper looper; in setOnErrorListener() local 292 if ((looper = Looper.myLooper()) == null) { in setOnErrorListener() 293 looper = Looper.getMainLooper(); in setOnErrorListener() 295 if (looper == null) { in setOnErrorListener() 298 mOnErrorListenerHandler = new Handler(looper); in setOnErrorListener()
|
/frameworks/base/cmds/incidentd/src/ |
D | main.cpp | 37 sp<Looper> looper(Looper::prepare(0 /* opts */)); in main() local 47 sp<IncidentService> service = new IncidentService(looper); in main() 57 looper->pollAll(-1 /* timeoutMillis */); in main()
|
/frameworks/base/core/java/android/hardware/soundtrigger/ |
D | SoundTriggerModule.java | 159 Looper looper; in NativeEventHandlerDelegate() local 161 looper = handler.getLooper(); in NativeEventHandlerDelegate() 163 looper = Looper.getMainLooper(); in NativeEventHandlerDelegate() 167 if (looper != null) { in NativeEventHandlerDelegate() 169 mHandler = new Handler(looper) { in NativeEventHandlerDelegate()
|
/frameworks/base/core/jni/ |
D | android_view_InputQueue.cpp | 48 InputQueue::InputQueue(jobject inputQueueObj, const sp<Looper>& looper, in InputQueue() argument 51 mDispatchLooper(looper), mHandler(new WeakMessageHandler(this)) { in InputQueue() 64 void InputQueue::attachLooper(Looper* looper, int ident, in attachLooper() argument 68 if (looper == mAppLoopers[i]) { in attachLooper() 72 mAppLoopers.push(looper); in attachLooper() 73 looper->addFd(mDispatchReadFd, ident, ALOOPER_EVENT_INPUT, callback, data); in attachLooper() 187 InputQueue* InputQueue::createQueue(jobject inputQueueObj, const sp<Looper>& looper) { in createQueue() argument 195 return new InputQueue(inputQueueObj, looper, pipeFds[0], pipeFds[1]); in createQueue()
|
/frameworks/base/services/core/java/com/android/server/ |
D | UiThread.java | 50 final Looper looper = sInstance.getLooper(); in ensureThreadLocked() local 51 looper.setTraceTag(Trace.TRACE_TAG_SYSTEM_SERVER); in ensureThreadLocked() 52 looper.setSlowLogThresholdMs( in ensureThreadLocked()
|
D | FgThread.java | 50 final Looper looper = sInstance.getLooper(); in ensureThreadLocked() local 51 looper.setTraceTag(Trace.TRACE_TAG_SYSTEM_SERVER); in ensureThreadLocked() 52 looper.setSlowLogThresholdMs( in ensureThreadLocked()
|
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/ |
D | AHandler.h | 40 sp<ALooper> looper() const { in looper() function 63 inline void setID(ALooper::handler_id id, const wp<ALooper> &looper) { in setID() 65 mLooper = looper; in setID()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | BackgroundThread.java | 45 final Looper looper = sInstance.getLooper(); in ensureThreadLocked() local 46 looper.setTraceTag(Trace.TRACE_TAG_SYSTEM_SERVER); in ensureThreadLocked() 47 looper.setSlowLogThresholdMs( in ensureThreadLocked()
|