/prebuilts/ndk/9/platforms/android-18/arch-arm/usr/include/android/ |
sensor.h | 45 #include <android/looper.h> 166 * Creates a new sensor event queue and associate it with a looper. 169 ALooper* looper, int ident, ALooper_callbackFunc callback, void* data);
|
/prebuilts/ndk/9/platforms/android-18/arch-mips/usr/include/android/ |
sensor.h | 45 #include <android/looper.h> 166 * Creates a new sensor event queue and associate it with a looper. 169 ALooper* looper, int ident, ALooper_callbackFunc callback, void* data);
|
/prebuilts/ndk/9/platforms/android-18/arch-x86/usr/include/android/ |
sensor.h | 45 #include <android/looper.h> 166 * Creates a new sensor event queue and associate it with a looper. 169 ALooper* looper, int ident, ALooper_callbackFunc callback, void* data);
|
/prebuilts/ndk/9/platforms/android-9/arch-arm/usr/include/android/ |
sensor.h | 45 #include <android/looper.h> 166 * Creates a new sensor event queue and associate it with a looper. 169 ALooper* looper, int ident, ALooper_callbackFunc callback, void* data);
|
/prebuilts/ndk/9/platforms/android-9/arch-mips/usr/include/android/ |
sensor.h | 45 #include <android/looper.h> 166 * Creates a new sensor event queue and associate it with a looper. 169 ALooper* looper, int ident, ALooper_callbackFunc callback, void* data);
|
/prebuilts/ndk/9/platforms/android-9/arch-x86/usr/include/android/ |
sensor.h | 45 #include <android/looper.h> 166 * Creates a new sensor event queue and associate it with a looper. 169 ALooper* looper, int ident, ALooper_callbackFunc callback, void* data);
|
/frameworks/base/native/android/ |
sensor.cpp | 20 #include <android/looper.h> 24 #include <utils/Looper.h> 89 ALooper* looper, int ident, ALooper_callbackFunc callback, void* data) 94 ALooper_addFd(looper, queue->getFd(), ident, ALOOPER_EVENT_INPUT, callback, data); 95 queue->looper = looper; 105 ALooper_removeFd(queue->looper, queue->getFd());
|
/frameworks/base/media/java/android/media/ |
MediaDrm.java | 32 import android.os.Looper; 116 * MediaDrm objects on a thread with its own Looper running (main UI 117 * thread by default has a Looper running). 203 Looper looper; local 204 if ((looper = Looper.myLooper()) != null) { 205 mEventHandler = new EventHandler(this, looper); 206 } else if ((looper = Looper.getMainLooper()) != null) [all...] |
MediaRecorder.java | 24 import android.os.Looper; 64 * Looper running (the main UI thread by default already has a Looper running). 102 Looper looper; local 103 if ((looper = Looper.myLooper()) != null) { 104 mEventHandler = new EventHandler(this, looper); 105 } else if ((looper = Looper.getMainLooper()) != null) [all...] |
RemoteControlClient.java | 28 import android.os.Looper; 353 Looper looper; local 354 if ((looper = Looper.myLooper()) != null) { 355 mEventHandler = new EventHandler(this, looper); 356 } else if ((looper = Looper.getMainLooper()) != null) { 357 mEventHandler = new EventHandler(this, looper); 366 * happens on a user-provided Looper [all...] |
AudioPortEventHandler.java | 20 import android.os.Looper; 54 // find the looper for our new event handler 55 Looper looper = Looper.getMainLooper(); local 57 if (looper != null) { 58 mHandler = new Handler(looper) {
|
ImageReader.java | 22 import android.os.Looper; 419 * if the listener should be invoked on the calling thread's looper. 421 * If no handler specified and the calling thread has no looper. 426 Looper looper = handler != null ? handler.getLooper() : Looper.myLooper(); local 427 if (looper == null) { 429 "handler is null but the current thread is not a looper"); 431 if (mListenerHandler == null || mListenerHandler.getLooper() != looper) { 432 mListenerHandler = new ListenerHandler(looper); [all...] |
ImageWriter.java | 22 import android.os.Looper; 391 * looper. 393 * thread has no looper. 398 Looper looper = handler != null ? handler.getLooper() : Looper.myLooper(); local 399 if (looper == null) { 401 "handler is null but the current thread is not a looper"); 403 if (mListenerHandler == null || mListenerHandler.getLooper() != looper) { 404 mListenerHandler = new ListenerHandler(looper); [all...] |
/frameworks/base/media/java/android/media/audiopolicy/ |
AudioPolicy.java | 35 import android.os.Looper; 103 private AudioPolicy(AudioPolicyConfig config, Context context, Looper looper, 108 if (looper == null) { 109 looper = Looper.getMainLooper(); 111 if (looper != null) { 112 mEventHandler = new EventHandler(this, looper); 115 Log.e(TAG, "No event handler due to looper without a thread"); 128 private Looper mLooper [all...] |
/frameworks/base/cmds/hid/jni/ |
com_android_commands_hid_Device.cpp | 38 #include <utils/Looper.h> 87 std::unique_ptr<DeviceCallback> callback, sp<Looper> looper) { 123 return new Device(id, fd, std::move(callback), looper); 126 Device::Device(int32_t id, int fd, std::unique_ptr<DeviceCallback> callback, sp<Looper> looper) : 127 mId(id), mFd(fd), mDeviceCallback(std::move(callback)), mLooper(looper) { 128 looper->addFd(fd, 0, Looper::EVENT_INPUT, handleLooperEvents, reinterpret_cast<void*>(this)); 154 if (events & (Looper::EVENT_ERROR | Looper::EVENT_HANGUP)) 197 sp<Looper> looper = android_os_MessageQueue_getMessageQueue(env, queue)->getLooper(); local [all...] |
/frameworks/base/core/java/android/os/ |
Handler.java | 107 * Default constructor associates this handler with the {@link Looper} for the 110 * If this thread does not have a looper, this handler won't be able to receive messages 118 * Constructor associates this handler with the {@link Looper} for the 122 * If this thread does not have a looper, this handler won't be able to receive messages 132 * Use the provided {@link Looper} instead of the default one. 134 * @param looper The looper, must not be null. 136 public Handler(Looper looper) { 137 this(looper, null, false) [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
BluetoothMnsObexClient.java | 22 import android.os.Looper; 81 /* This will block until the looper have started, hence it will be safe to use it, 83 Looper looper = thread.getLooper(); local 84 mHandler = new MnsObexClientHandler(looper); 94 private MnsObexClientHandler(Looper looper) { 95 super(looper); 163 Looper looper = mHandler.getLooper() local [all...] |
/cts/tests/tests/os/src/android/os/cts/ |
LooperTest.java | 21 import android.os.Looper; 35 private Looper mLooper = null; 42 Looper.getMainLooper().dump(printer, prefix); 46 Looper looper = Looper.getMainLooper(); local 47 assertNotNull(looper); 53 Looper.prepare(); 61 Looper.loop(); 72 assertNull(Looper.myLooper()) 82 final Looper[] looper = new Looper[1]; local [all...] |
/frameworks/base/location/lib/java/com/android/location/provider/ |
FusedLocationHardware.java | 25 import android.os.Looper; 77 public void registerSink(FusedLocationHardwareSink sink, Looper looper) { 78 if(sink == null || looper == null) { 79 throw new IllegalArgumentException("Parameter sink and looper cannot be null."); 93 newSinkList.put(sink, new DispatcherHandler(looper)); 248 public DispatcherHandler(Looper looper) { 249 super(looper, null /*callback*/ , true /*async*/);
|
/frameworks/base/telephony/java/android/telephony/ |
PhoneStateListener.java | 21 import android.os.Looper; 239 * This class requires Looper.myLooper() not return null. 242 this(SubscriptionManager.DEFAULT_SUBSCRIPTION_ID, Looper.myLooper()); 247 * using a particular non-null Looper. 250 public PhoneStateListener(Looper looper) { 251 this(SubscriptionManager.DEFAULT_SUBSCRIPTION_ID, looper); 256 * This class requires Looper.myLooper() not return null. To supply your 257 * own non-null Looper use PhoneStateListener(int subId, Looper looper) below [all...] |
/frameworks/av/cmds/stagefright/ |
mediafilter.cpp | 313 const sp<ALooper> &looper, 356 looper, mime.c_str(), false /* encoder */); 399 looper, "android.filter.zerofilter"); 406 looper, "android.filter.intrinsicblur"); 413 looper, "android.filter.saturation"); 426 looper, "android.filter.RenderScript"); 438 looper, "android.filter.RenderScript"); 450 looper, "android.filter.RenderScript"); 740 android::sp<ALooper> looper = new ALooper; local 741 looper->start() [all...] |
/frameworks/base/services/core/java/com/android/server/job/ |
JobServiceContext.java | 30 import android.os.Looper; 128 JobServiceContext(JobSchedulerService service, IBatteryStats batteryStats, Looper looper) { 129 this(service.getContext(), batteryStats, service, looper); 134 JobCompletedListener completedListener, Looper looper) { 137 mCallbackHandler = new JobServiceHandler(looper); 297 JobServiceHandler(Looper looper) { 298 super(looper); [all...] |
/development/ndk/platforms/android-19/include/android/ |
sensor.h | 45 #include <android/looper.h> 199 * Creates a new sensor event queue and associate it with a looper. 202 ALooper* looper, int ident, ALooper_callbackFunc callback, void* data);
|
/development/ndk/platforms/android-21/include/android/ |
sensor.h | 46 #include <android/looper.h> 226 * Creates a new sensor event queue and associate it with a looper. 229 ALooper* looper, int ident, ALooper_callbackFunc callback, void* data);
|
/external/skia/experimental/PdfViewer/src/ |
SkPdfContext.cpp | 44 PdfMainLooper looper(&tokenizer, this, canvas); 45 looper.loop();
|