/external/qemu/android/protocol/ |
fb-updates-proxy.c | 19 #include "android/looper.h" 43 /* Looper used to communicate framebuffer updates. */ 44 Looper* looper; member in struct:ProxyFramebuffer 265 ret->looper = looper_newCore(); 276 loopIo_init(&ret->io, ret->looper, sock, _proxyFb_io_fun, ret); 287 if (proxy_fb->looper != NULL) { 297 looper_free(proxy_fb->looper); 298 proxy_fb->looper = NULL;
|
core-commands-impl.c | 23 #include "android/looper.h" 49 /* Looper used to communicate with the UI. */ 50 Looper* looper; member in struct:CoreCmdImpl 407 _coreCmdImpl.looper = looper_newCore(); 408 loopIo_init(&_coreCmdImpl.io, _coreCmdImpl.looper, _coreCmdImpl.sock, 432 if (_coreCmdImpl.looper != NULL) { 435 looper_free(_coreCmdImpl.looper); 436 _coreCmdImpl.looper = NULL;
|
/external/skia/gm/ |
megalooper.cpp | 17 // using 1 4-level draw looper 21 // The types define "<# of loopers> x <# of stages per looper>" 24 k4x1_Type, // a looper for each shadow 25 k1x4_Type, // all four shadows in one looper 125 // Each blurred rect is drawn with a draw looper where the original (non- 127 // it never appears) but the offset in the draw looper is used to translate 155 // looper will undo this translation) 165 SkLayerDrawLooper* looper = new SkLayerDrawLooper; local 175 SkPaint* paint = looper->addLayer(info); 182 return looper; 210 SkLayerDrawLooper* looper = new SkLayerDrawLooper; local [all...] |
/frameworks/base/media/java/android/media/ |
ImageReader.java | 22 import android.os.Looper; 382 * if the listener should be invoked on the calling thread's looper. 384 * If no handler specified and the calling thread has no looper. 389 Looper looper = handler != null ? handler.getLooper() : Looper.myLooper(); local 390 if (looper == null) { 392 "handler is null but the current thread is not a looper"); 394 if (mListenerHandler == null || mListenerHandler.getLooper() != looper) { 395 mListenerHandler = new ListenerHandler(looper); [all...] |
SoundPool.java | 27 import android.os.Looper; 557 Looper looper; local 558 if ((looper = Looper.myLooper()) != null) { 559 mEventHandler = new EventHandler(mProxy, looper); 560 } else if ((looper = Looper.getMainLooper()) != null) { 561 mEventHandler = new EventHandler(mProxy, looper); 576 public EventHandler(SoundPool soundPool, Looper looper) [all...] |
AudioTrack.java | 22 import android.os.Looper; 173 * Looper associated with the thread that creates the AudioTrack instance. 175 private final Looper mInitializationLooper; 308 // remember which looper is associated with the AudioTrack instantiation 309 Looper looper; local 310 if ((looper = Looper.myLooper()) == null) { 311 looper = Looper.getMainLooper() 1248 Looper looper; local [all...] |
/system/core/libutils/ |
Looper.cpp | 4 // A looper implementation based on epoll(). 6 #define LOG_TAG "Looper" 17 #include <utils/Looper.h> 58 // --- Looper --- 69 Looper::Looper(bool allowNonCallbacks) : 102 Looper::~Looper() { 108 void Looper::initTLSKey() { 113 void Looper::threadDestructor(void *st) 143 sp<Looper> looper = Looper::getForThread(); 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; 78 Looper looper = thread.getLooper(); local 79 mHandler = new MnsObexClientHandler(looper); 95 private MnsObexClientHandler(Looper looper) { 96 super(looper); 161 Looper looper = mHandler.getLooper(); local 162 if (looper != null) [all...] |
/frameworks/av/cmds/stagefright/ |
muxer.cpp | 51 const android::sp<android::ALooper> &looper, 296 sp<ALooper> looper = new ALooper; local 297 looper->start(); 299 int result = muxing(looper, argv[0], useAudio, useVideo, outputFileName, 302 looper->stop();
|
/frameworks/base/core/java/com/android/internal/os/ |
HandlerCaller.java | 21 import android.os.Looper; 28 final Looper mMainLooper; 34 MyHandler(Looper looper, boolean async) { 35 super(looper, null, async); 48 public HandlerCaller(Context context, Looper looper, Callback callback, 51 mMainLooper = looper != null ? looper : context.getMainLooper(); 60 if (Looper.myLooper() == mMainLooper) [all...] |
/frameworks/base/location/lib/java/com/android/location/provider/ |
FusedLocationHardware.java | 25 import android.os.Looper; 67 public void registerSink(FusedLocationHardwareSink sink, Looper looper) { 68 if(sink == null || looper == null) { 69 throw new IllegalArgumentException("Parameter sink and looper cannot be null."); 83 newSinkList.put(sink, new DispatcherHandler(looper)); 208 public DispatcherHandler(Looper looper) { 209 super(looper, null /*callback*/ , true /*async*/);
|
/system/core/adb/ |
sysdeps_win32.c | 1613 EventLooper looper = &win32_looper; local 1622 EventLooper looper = &win32_looper; local 1631 EventLooper looper = &win32_looper; local 1650 EventLooper looper = &win32_looper; local [all...] |
/external/qemu/android/ |
hw-pipe-net.c | 27 #include "android/looper.h" 187 netPipe_initFromAddress( void* hwpipe, const SockAddress* address, Looper* looper ) 206 loopIo_init(pipe->io, looper, fd, netPipe_io_func, pipe); 544 Looper* looper = looper_newCore(); local 546 goldfish_pipe_add_type( "tcp", looper, &netPipeTcp_funcs ); 548 goldfish_pipe_add_type( "unix", looper, &netPipeUnix_funcs ); 550 goldfish_pipe_add_type( "opengles", looper, &openglesPipe_funcs );
|
/external/chromium_org/chrome/browser/chromeos/ui/ |
focus_ring_layer.cc | 47 skia::RefPtr<SkDrawLooper> looper = CreateShadowDrawLooper(shadows_); variable 48 paint.setLooper(looper.get());
|
/frameworks/base/core/java/android/hardware/ |
SystemSensorManager.java | 21 import android.os.Looper; 54 // Looper associated with the context in which this instance was created. 55 private final Looper mMainLooper; 59 public SystemSensorManager(Context context, Looper mainLooper) { 112 // - one Looper per SensorEventListener 113 // - one Looper per SensorEventQueue 114 // We map SensorEventListener to a SensorEventQueue, which holds the looper 118 Looper looper = (handler != null) ? handler.getLooper() : mMainLooper; local 119 queue = new SensorEventQueue(listener, looper, this) [all...] |
/frameworks/base/services/java/com/android/server/wm/ |
FakeWindowImpl.java | 22 import android.os.Looper; 42 Looper looper, InputEventReceiver.Factory inputEventReceiverFactory, 53 mClientChannel, looper);
|
/frameworks/native/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);
|
/packages/apps/Camera2/src/com/android/camera/ |
MosaicPreviewRenderer.java | 23 import android.os.Looper; 53 public MyHandler(Looper looper) { 54 super(looper);
|
/system/core/include/utils/ |
Looper.h | 25 #include <android/looper.h> 30 * Declare a concrete type for the NDK's looper forward declaration. 38 * A message that can be posted to a Looper. 50 * Interface for a Looper message handler. 52 * The Looper holds a strong reference to the message handler whenever it has 53 * a message to deliver to it. Make sure to call Looper::removeMessages 86 * A looper callback. 100 * to have this file descriptor and callback unregistered from the looper. 126 * A looper can be associated with a thread although there is no requirement that it must be. 128 class Looper : public ALooper, public RefBase [all...] |
/frameworks/base/location/java/android/location/ |
LocationManager.java | 24 import android.os.Looper; 217 ListenerTransport(LocationListener listener, Looper looper) { 220 if (looper == null) { 228 mListenerHandler = new Handler(looper) { 444 * @throws RuntimeException if the calling thread has no Looper 459 * the specified looper thread. 470 * @param looper a Looper object whose message queue will be used to 479 LocationListener listener, Looper looper) [all...] |
/external/chromium_org/ui/gfx/ |
skia_util.cc | 107 skia::RefPtr<SkLayerDrawLooper> looper = 110 looper->addLayer(); // top layer of the original. 133 SkPaint* paint = looper->addLayer(layer_info); 138 return looper;
|
/frameworks/av/include/media/stagefright/foundation/ |
ALooperRoster.h | 30 const sp<ALooper> looper, const sp<AHandler> &handler);
|
/frameworks/base/core/java/android/content/ |
AsyncQueryHandler.java | 23 import android.os.Looper; 44 private static Looper sLooper = null; 61 public WorkerHandler(Looper looper) { 62 super(looper); 138 protected Handler createHandler(Looper looper) { 139 return new WorkerHandler(looper);
|
/frameworks/native/include/gui/ |
SensorEventQueue.h | 36 ALooper* looper; member in struct:ASensorEventQueue 45 class Looper; 80 sp<Looper> getLooper() const; 84 mutable sp<Looper> mLooper;
|