Home
last modified time | relevance | path

Searched refs:handler (Results 1 – 25 of 32) sorted by relevance

12

/development/samples/WiFiDirectServiceDiscovery/src/com/example/android/wifidirect/discovery/
DChatManager.java19 private Handler handler; field in ChatManager
21 public ChatManager(Socket socket, Handler handler) { in ChatManager() argument
23 this.handler = handler; in ChatManager()
38 handler.obtainMessage(WiFiServiceDiscoveryActivity.MY_HANDLE, this) in run()
51 handler.obtainMessage(WiFiServiceDiscoveryActivity.MESSAGE_READ, in run()
DClientSocketHandler.java15 private Handler handler; field in ClientSocketHandler
19 public ClientSocketHandler(Handler handler, InetAddress groupOwnerAddress) { in ClientSocketHandler() argument
20 this.handler = handler; in ClientSocketHandler()
32 chat = new ChatManager(socket, handler); in run()
DGroupOwnerSocketHandler.java21 private Handler handler; field in GroupOwnerSocketHandler
24 public GroupOwnerSocketHandler(Handler handler) throws IOException { in GroupOwnerSocketHandler() argument
27 this.handler = handler; in GroupOwnerSocketHandler()
50 pool.execute(new ChatManager(socket.accept(), handler)); in run()
DWiFiServiceDiscoveryActivity.java76 private Handler handler = new Handler(this); field in WiFiServiceDiscoveryActivity
83 return handler; in getHandler()
86 public void setHandler(Handler handler) { in setHandler() argument
87 this.handler = handler; in setHandler()
378 Thread handler = null; in onConnectionInfoAvailable() local
388 handler = new GroupOwnerSocketHandler( in onConnectionInfoAvailable()
390 handler.start(); in onConnectionInfoAvailable()
398 handler = new ClientSocketHandler( in onConnectionInfoAvailable()
401 handler.start(); in onConnectionInfoAvailable()
/development/samples/ControllerSample/src/com/example/inputmanagercompat/
DInputManagerV9.java119 public void registerInputDeviceListener(InputDeviceListener listener, Handler handler) { in registerInputDeviceListener() argument
121 if (handler == null) { in registerInputDeviceListener()
122 handler = mDefaultHandler; in registerInputDeviceListener()
124 mListeners.put(listener, handler); in registerInputDeviceListener()
138 Handler handler = mListeners.get(listener); in notifyListeners() local
140 handler.post(odc); in notifyListeners()
DInputManagerV16.java76 public void registerInputDeviceListener(InputDeviceListener listener, Handler handler) { in registerInputDeviceListener() argument
78 mInputManager.registerInputDeviceListener(v16Listener, handler); in registerInputDeviceListener()
DInputManagerCompat.java51 Handler handler); in registerInputDeviceListener() argument
/development/samples/browseable/MidiScope/src/com.example.android.common.midi/
DMidiPortConnector.java113 final OnPortsConnectedListener listener, final Handler handler) { in connectToDevicePort() argument
140 listener, handler); in connectToDevicePort()
152 }, handler); in connectToDevicePort()
167 final OnPortsConnectedListener listener, final Handler handler) { in connectToDevicePort() argument
197 }, handler); in connectToDevicePort()
/development/samples/browseable/MidiSynth/src/com.example.android.common.midi/
DMidiPortConnector.java113 final OnPortsConnectedListener listener, final Handler handler) { in connectToDevicePort() argument
140 listener, handler); in connectToDevicePort()
152 }, handler); in connectToDevicePort()
167 final OnPortsConnectedListener listener, final Handler handler) { in connectToDevicePort() argument
197 }, handler); in connectToDevicePort()
/development/apps/Development/src/com/android/development/
DLogViewer.java43 Handler handler; field in LogViewer
50 this.handler = new Handler(); in onCreate()
118 handler.post(new AppendCharacters(builder)); in run()
125 handler.post(new AppendThrowable(e)); in run()
/development/samples/LceDemo/src/com/example/android/lce/
DLceDemoActivity.java53 final Handler handler = new Handler() { in onCreate() local
67 Message message = handler.obtainMessage(); in onCreate()
71 handler.sendMessage(message); in onCreate()
/development/samples/browseable/HdrViewfinder/src/com.example.android.hdrviewfinder/
DCameraOps.java154 final Handler handler) { in setRepeatingRequest() argument
158 mCameraSession.setRepeatingRequest(request, listener, handler); in setRepeatingRequest()
172 final Handler handler) { in setRepeatingBurst() argument
176 mCameraSession.setRepeatingBurst(requests, listener, handler); in setRepeatingBurst()
/development/samples/training/NsdChat/src/com/example/android/nsdchat/
DChatConnection.java48 public ChatConnection(Handler handler) { in ChatConnection() argument
49 mUpdateHandler = handler; in ChatConnection()
50 mChatServer = new ChatServer(handler); in ChatConnection()
123 public ChatServer(Handler handler) { in ChatServer() argument
/development/samples/training/basic/ActivityLifecycle/src/com/example/android/lifecycle/util/
DUtils.java37 Handler handler = new Handler(); in printStatus() local
38 handler.postDelayed(new Runnable() { in printStatus()
/development/tools/repo_diff/service/repodiff/persistence/filesystem/
Dcsv.go15 func GenerateCSVLines(filePath string, handler lineHandler) error {
39 handler(line)
/development/samples/training/multiscreen/newsreader/src/com/example/android/newsreader/
DNewsReaderActivity.java141 CompatActionBarNavHandler handler = new CompatActionBarNavHandler(this); in setUpActionBar() local
146 actionBar.addTab(actionBar.newTab().setText(CATEGORIES[i]).setTabListener(handler)); in setUpActionBar()
154 actionBar.setListNavigationCallbacks(adap, handler); in setUpActionBar()
/development/samples/browseable/JobScheduler/src/com.example.android.jobscheduler/service/
DMyJobService.java79 Handler handler = new Handler(); in onStartJob() local
80 handler.postDelayed(new Runnable() { in onStartJob()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DPurgeableBitmapView.java81 public int update(PurgeableBitmap.RefreshHandler handler) { in update() argument
88 handler.sleep(delay); in update()
/development/tools/apkcheck/src/com/android/apkcheck/
DApkCheck.java185 ApiDescrHandler handler = new ApiDescrHandler(apiList); in parseXml() local
186 xmlReader.setContentHandler(handler); in parseXml()
187 xmlReader.setErrorHandler(handler); in parseXml()
/development/samples/browseable/BasicMediaDecoder/src/com.example.android.common.media/
DMediaCodecWrapper.java113 outputFormatChangedListener, Handler handler) { in setOutputFormatChangedListener() argument
119 mHandler = handler; in setOutputFormatChangedListener()
/development/samples/browseable/MediaRecorder/src/com.example.android.common.media/
DMediaCodecWrapper.java113 outputFormatChangedListener, Handler handler) { in setOutputFormatChangedListener() argument
119 mHandler = handler; in setOutputFormatChangedListener()
/development/samples/browseable/BasicRenderScript/src/com.example.android.common.media/
DMediaCodecWrapper.java113 outputFormatChangedListener, Handler handler) { in setOutputFormatChangedListener() argument
119 mHandler = handler; in setOutputFormatChangedListener()
/development/samples/browseable/BluetoothChat/src/com.example.android.bluetoothchat/
DBluetoothChatService.java77 public BluetoothChatService(Context context, Handler handler) { in BluetoothChatService() argument
81 mHandler = handler; in BluetoothChatService()
/development/samples/BluetoothChat/src/com/example/android/BluetoothChat/
DBluetoothChatService.java75 public BluetoothChatService(Context context, Handler handler) { in BluetoothChatService() argument
78 mHandler = handler; in BluetoothChatService()
/development/samples/ApiDemos/src/com/example/android/apis/view/
DGameView.java350 Handler handler = getHandler();
351 if (handler != null) {
352 handler.postAtTime(mAnimationRunnable, currentStepTime + ANIMATION_TIME_STEP);

12