/development/samples/ReceiveShareDemo/src/com/example/android/receiveshare/ |
D | ReceiveShareService.java | 26 Handler mHandler; field in ReceiveShareService 34 mHandler = new Handler(getMainLooper()); in onCreate() 39 mHandler.post(new Runnable() { in onHandleIntent() 53 mHandler.post(new Runnable() { in onHandleIntent()
|
/development/samples/ApiDemos/src/com/example/android/apis/accessibility/ |
D | ClockBackService.java | 224 Handler mHandler = new Handler() { field in ClockBackService 302 mHandler.obtainMessage(MESSAGE_SPEAK, utterance).sendToTarget(); 305 mHandler.obtainMessage(MESSAGE_PLAY_EARCON, feedbackIndex, 0).sendToTarget(); 308 mHandler.obtainMessage(MESSAGE_VIBRATE, feedbackIndex, 0).sendToTarget(); 326 mHandler.sendEmptyMessage(MESSAGE_START_TTS); in onServiceConnected() 346 mHandler.sendEmptyMessage(MESSAGE_SHUTDOWN_TTS); in onUnbind() 442 mHandler.obtainMessage(MESSAGE_PLAY_EARCON, INDEX_RINGER_SILENT, 0).sendToTarget(); in configureForRingerMode() 452 mHandler.obtainMessage(MESSAGE_PLAY_EARCON, INDEX_RINGER_VIBRATE, 0).sendToTarget(); in configureForRingerMode() 460 mHandler.obtainMessage(MESSAGE_PLAY_EARCON, INDEX_RINGER_NORMAL, 0).sendToTarget(); in configureForRingerMode() 493 mHandler.obtainMessage(MESSAGE_SPEAK, formatUtterance(event)).sendToTarget(); in onAccessibilityEvent() [all …]
|
/development/samples/browseable/Flashlight/src/com.example.android.wearable.flashlight/ |
D | PartyLightView.java | 53 private Handler mHandler; field in PartyLightView 72 mHandler.sendEmptyMessage(0); in startCycling() 76 mHandler.removeMessages(0); in stopCycling() 81 mHandler = new Handler() { in init() 97 mHandler.sendEmptyMessageDelayed(0, 100); in init()
|
/development/samples/browseable/BluetoothChat/src/com.example.android.bluetoothchat/ |
D | BluetoothChatService.java | 57 private final Handler mHandler; field in BluetoothChatService 81 mHandler = handler; in BluetoothChatService() 93 mHandler.obtainMessage(Constants.MESSAGE_STATE_CHANGE, mNewState, -1).sendToTarget(); in updateUserInterfaceTitle() 202 Message msg = mHandler.obtainMessage(Constants.MESSAGE_DEVICE_NAME); in connected() 206 mHandler.sendMessage(msg); in connected() 264 Message msg = mHandler.obtainMessage(Constants.MESSAGE_TOAST); in connectionFailed() 268 mHandler.sendMessage(msg); in connectionFailed() 283 Message msg = mHandler.obtainMessage(Constants.MESSAGE_TOAST); in connectionLost() 287 mHandler.sendMessage(msg); in connectionLost() 497 mHandler.obtainMessage(Constants.MESSAGE_READ, bytes, -1, buffer) in run() [all …]
|
/development/samples/BluetoothChat/src/com/example/android/BluetoothChat/ |
D | BluetoothChatService.java | 57 private final Handler mHandler; field in BluetoothChatService 78 mHandler = handler; in BluetoothChatService() 90 mHandler.obtainMessage(BluetoothChat.MESSAGE_STATE_CHANGE, state, -1).sendToTarget(); in setState() 176 Message msg = mHandler.obtainMessage(BluetoothChat.MESSAGE_DEVICE_NAME); in connected() 180 mHandler.sendMessage(msg); in connected() 235 Message msg = mHandler.obtainMessage(BluetoothChat.MESSAGE_TOAST); in connectionFailed() 239 mHandler.sendMessage(msg); in connectionFailed() 250 Message msg = mHandler.obtainMessage(BluetoothChat.MESSAGE_TOAST); in connectionLost() 254 mHandler.sendMessage(msg); in connectionLost() 457 mHandler.obtainMessage(BluetoothChat.MESSAGE_READ, bytes, -1, buffer) in run() [all …]
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
D | VoiceRecognition.java | 55 private Handler mHandler; field in VoiceRecognition 65 mHandler = new Handler(); in onCreate() 186 mHandler.post(new Runnable() { in onReceive() 195 mHandler.post(new Runnable() { in onReceive() 204 mHandler.post(new Runnable() { in onReceive() 215 mHandler.post(new Runnable() { in onReceive()
|
D | ForegroundService.java | 64 private Handler mHandler = new Handler(); field in ForegroundService 68 mHandler.postDelayed(this, 5*1000); 122 mHandler.removeCallbacks(mPulser); in onStartCommand() 139 mHandler.removeCallbacks(mPulser); in handleDestroy()
|
/development/samples/ToyVpn/src/com/example/android/toyvpn/ |
D | ToyVpnService.java | 45 private Handler mHandler; field in ToyVpnService 63 if (mHandler == null) { in onCreate() 64 mHandler = new Handler(this); in onCreate() 101 mHandler.sendEmptyMessage(R.string.connecting); in connect() 126 mHandler.sendEmptyMessage(R.string.connected); in startConnection() 154 mHandler.sendEmptyMessage(R.string.disconnected); in disconnect()
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
D | List9.java | 51 Handler mHandler = new Handler(); field in List9 76 mHandler.post(new Runnable() { in onCreate() 125 mHandler.removeCallbacks(mRemoveWindow); in onScroll() 126 mHandler.postDelayed(mRemoveWindow, 3000); in onScroll()
|
/development/samples/CubeLiveWallpaper/src/com/example/android/livecubes/cube1/ |
D | CubeWallpaper1.java | 34 private final Handler mHandler = new Handler(); field in CubeWallpaper1 91 mHandler.removeCallbacks(mDrawCube); in onDestroy() 100 mHandler.removeCallbacks(mDrawCube); in onVisibilityChanged() 122 mHandler.removeCallbacks(mDrawCube); in onSurfaceDestroyed() 168 mHandler.removeCallbacks(mDrawCube); in drawFrame() 170 mHandler.postDelayed(mDrawCube, 1000 / 25); in drawFrame()
|
/development/samples/MultiDisplay/src/com/example/android/multidisplay/wallpaper/ |
D | SampleWallpaper.java | 54 private final Handler mHandler = new Handler(); field in SampleWallpaper.MySampleEngine 81 mHandler.post(mDrawRunner); in onCreate() 104 mHandler.post(mDrawRunner); in onVisibilityChanged() 106 mHandler.removeCallbacks(mDrawRunner); in onVisibilityChanged() 124 mHandler.removeCallbacks(mDrawRunner); in onSurfaceDestroyed() 153 mHandler.removeCallbacks(mDrawRunner); in draw() 155 mHandler.postDelayed(mDrawRunner, 40); in draw()
|
/development/samples/browseable/BasicRenderScript/src/com.example.android.common.media/ |
D | MediaCodecWrapper.java | 36 private Handler mHandler; field in MediaCodecWrapper 97 mHandler = null; in stopAndRelease() 119 mHandler = handler; in setOutputFormatChangedListener() 120 if (outputFormatChangedListener != null && mHandler == null) { in setOutputFormatChangedListener() 122 mHandler = new Handler(); in setOutputFormatChangedListener() 352 mHandler.post(new Runnable() { in update()
|
/development/samples/browseable/BasicMediaDecoder/src/com.example.android.common.media/ |
D | MediaCodecWrapper.java | 36 private Handler mHandler; field in MediaCodecWrapper 97 mHandler = null; in stopAndRelease() 119 mHandler = handler; in setOutputFormatChangedListener() 120 if (outputFormatChangedListener != null && mHandler == null) { in setOutputFormatChangedListener() 122 mHandler = new Handler(); in setOutputFormatChangedListener() 352 mHandler.post(new Runnable() { in update()
|
/development/samples/browseable/MediaRecorder/src/com.example.android.common.media/ |
D | MediaCodecWrapper.java | 36 private Handler mHandler; field in MediaCodecWrapper 97 mHandler = null; in stopAndRelease() 119 mHandler = handler; in setOutputFormatChangedListener() 120 if (outputFormatChangedListener != null && mHandler == null) { in setOutputFormatChangedListener() 122 mHandler = new Handler(); in setOutputFormatChangedListener() 352 mHandler.post(new Runnable() { in update()
|
/development/samples/browseable/JumpingJack/src/com.example.android.wearable.jumpingjack/fragments/ |
D | CounterFragment.java | 42 private Handler mHandler; field in CounterFragment 57 mHandler = new Handler(); in onCreateView() 66 mHandler.post(new Runnable() { in startAnimation()
|
/development/samples/browseable/BluetoothAdvertisements/src/com.example.android.bluetoothadvertisements/ |
D | AdvertiserService.java | 47 private Handler mHandler; field in AdvertiserService 74 mHandler.removeCallbacks(timeoutRunnable); in onDestroy() 112 mHandler = new Handler(); in setTimeout() 121 mHandler.postDelayed(timeoutRunnable, TIMEOUT); in setTimeout()
|
/development/samples/USB/AdbTest/src/com/android/adb/ |
D | AdbTestActivity.java | 82 Message m = Message.obtain(mHandler, MESSAGE_LOG); in log() 84 mHandler.sendMessage(m); in log() 109 Message m = Message.obtain(mHandler, MESSAGE_DEVICE_ONLINE); in deviceOnline() 111 mHandler.sendMessage(m); in deviceOnline() 196 Handler mHandler = new Handler() { field in AdbTestActivity
|
/development/samples/CubeLiveWallpaper/src/com/example/android/livecubes/cube2/ |
D | CubeWallpaper2.java | 68 private final Handler mHandler = new Handler(); field in CubeWallpaper2.CubeEngine 155 mHandler.removeCallbacks(mDrawCube); in onDestroy() 164 mHandler.removeCallbacks(mDrawCube); in onVisibilityChanged() 186 mHandler.removeCallbacks(mDrawCube); in onSurfaceDestroyed() 234 mHandler.removeCallbacks(mDrawCube); in drawFrame() 236 mHandler.postDelayed(mDrawCube, 1000 / 25); in drawFrame()
|
/development/samples/ApiDemos/src/com/example/android/apis/content/ |
D | MediaContentJob.java | 41 final Handler mHandler = new Handler(); field in MediaContentJob 108 mHandler.postDelayed(mWorker, 10*1000); in onStartJob() 114 mHandler.removeCallbacks(mWorker); in onStopJob()
|
D | PhotosContentJob.java | 77 final Handler mHandler = new Handler(); field in PhotosContentJob 203 mHandler.postDelayed(mWorker, 10*1000); in onStartJob() 209 mHandler.removeCallbacks(mWorker); in onStopJob()
|
/development/samples/training/threadsample/src/com/example/android/threadsample/ |
D | PhotoManager.java | 107 private Handler mHandler; field in PhotoManager 178 mHandler = new Handler(Looper.getMainLooper()) { in PhotoManager() 289 Message completeMessage = mHandler.obtainMessage(state, photoTask); in handleState() 303 mHandler.obtainMessage(state, photoTask).sendToTarget(); in handleState()
|
/development/apps/Development/src/com/android/development/ |
D | PackageBrowser.java | 53 private Handler mHandler; field in PackageBrowser 110 mHandler= new Handler(); in onCreate() 151 mHandler.post(new Runnable() { in deletePackage() 161 mHandler.post(new Runnable() { in deletePackage()
|
/development/samples/browseable/WearHighBandwidthNetworking/src/com.example.android.wearable.wear.wearhighbandwidthnetworking/ |
D | MainActivity.java | 63 private Handler mHandler; field in MainActivity 110 mHandler = new Handler() { in onCreate() 188 mHandler.removeMessages(MESSAGE_CONNECTIVITY_TIMEOUT); in requestHighBandwidthNetwork() 233 mHandler.sendMessageDelayed( in requestHighBandwidthNetwork() 234 mHandler.obtainMessage(MESSAGE_CONNECTIVITY_TIMEOUT), in requestHighBandwidthNetwork()
|
/development/samples/MySampleRss/src/com/example/codelab/rssexample/ |
D | RssService.java | 54 private Handler mHandler; // Handler to trap our update reminders. field in RssService 66 mHandler = new Handler(); in onCreate() 133 mHandler.postDelayed(this, 1000 * 60 * UPDATE_FREQUENCY_IN_MINUTES); in queryIfPeriodicRefreshRequired() 157 mHandler.postDelayed(this, 1000 * 60 * UPDATE_FREQUENCY_IN_MINUTES); in queryRssItems()
|
/development/samples/training/location-aware/src/com/example/android/location/ |
D | LocationActivity.java | 53 private Handler mHandler; field in LocationActivity 101 mHandler = new Handler() { in onCreate() 248 Message.obtain(mHandler, in updateUILocation() 358 Message.obtain(mHandler, UPDATE_ADDRESS, e.toString()).sendToTarget(); in doInBackground() 368 Message.obtain(mHandler, UPDATE_ADDRESS, addressText).sendToTarget(); in doInBackground()
|