Home
last modified time | relevance | path

Searched refs:mConnection (Results 1 – 8 of 8) sorted by relevance

/development/samples/training/NsdChat/src/com/example/android/nsdchat/
DNsdChatActivity.java40 ChatConnection mConnection; field in NsdChatActivity
62 if(mConnection.getLocalPort() > -1) { in clickAdvertise()
63 mNsdHelper.registerService(mConnection.getLocalPort()); in clickAdvertise()
77 mConnection.connectToServer(service.getHost(), in clickConnect()
89 mConnection.sendMessage(messageString); in clickSend()
102 mConnection = new ChatConnection(mUpdateHandler); in onStart()
143 mConnection.tearDown(); in onStop()
145 mConnection = null; in onStop()
/development/samples/USB/MissileLauncher/src/com/android/missilelauncher/
DMissileLauncherActivity.java48 private UsbDeviceConnection mConnection; field in MissileLauncherActivity
138 mConnection = connection; in setDevice()
144 mConnection = null; in setDevice()
154 if (mConnection != null) { in sendCommand()
158 mConnection.controlTransfer(0x21, 0x9, 0x200, 0, message, message.length, 0); in sendCommand()
219 request.initialize(mConnection, mEndpointIntr); in run()
227 if (mConnection.requestWait() == request) { in run()
/development/samples/ApiDemos/src/com/example/android/apis/app/
DLocalServiceActivities.java96 private ServiceConnection mConnection = new ServiceConnection() { field in LocalServiceActivities.Binding
127 LocalService.class), mConnection, Context.BIND_AUTO_CREATE); in doBindService()
134 unbindService(mConnection); in doUnbindService()
DIsolatedService.java128 mActivity.unbindService(mConnection); in destroy()
149 mConnection, Context.BIND_AUTO_CREATE)) {
156 mActivity.unbindService(mConnection);
164 private ServiceConnection mConnection = new ServiceConnection() { field in IsolatedService.Controller.ServiceInfo
DMessengerServiceActivities.java65 private ServiceConnection mConnection = new ServiceConnection() { field in MessengerServiceActivities.Binding
117 MessengerService.class), mConnection, Context.BIND_AUTO_CREATE); in doBindService()
139 unbindService(mConnection); in doUnbindService()
DRemoteService.java299 private ServiceConnection mConnection = new ServiceConnection() { field in RemoteService.Binding
365 mConnection, Context.BIND_AUTO_CREATE);
388 unbindService(mConnection);
/development/samples/browseable/MessagingService/src/com.example.android.messagingservice/
DMessagingFragment.java54 private ServiceConnection mConnection = new ServiceConnection() { field in MessagingFragment
126 getActivity().bindService(new Intent(getActivity(), MessagingService.class), mConnection, in onStart()
147 getActivity().unbindService(mConnection); in onStop()
/development/samples/BluetoothHDP/src/com/example/bluetooth/health/
DBluetoothHDPActivity.java202 private ServiceConnection mConnection = new ServiceConnection() { field in BluetoothHDPActivity
225 if (mHealthServiceBound) unbindService(mConnection); in onDestroy()
280 bindService(intent, mConnection, Context.BIND_AUTO_CREATE); in initialize()