Home
last modified time | relevance | path

Searched refs:mConnection (Results 1 – 10 of 10) 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/browseable/MidiScope/src/com.example.android.common.midi/
DMidiPortConnector.java36 private MidiConnection mConnection; field in MidiPortConnector
46 if (mConnection != null) { in close()
48 "MidiPortConnector closing connection " + mConnection); in close()
49 mConnection.close(); in close()
50 mConnection = null; in close()
185 mConnection = device.connectPorts( in connectToDevicePort()
187 if (mConnection == null) { in connectToDevicePort()
193 listener.onPortsConnected(mConnection); in connectToDevicePort()
/development/samples/browseable/MidiSynth/src/com.example.android.common.midi/
DMidiPortConnector.java36 private MidiConnection mConnection; field in MidiPortConnector
46 if (mConnection != null) { in close()
48 "MidiPortConnector closing connection " + mConnection); in close()
49 mConnection.close(); in close()
50 mConnection = null; in close()
185 mConnection = device.connectPorts( in connectToDevicePort()
187 if (mConnection == null) { in connectToDevicePort()
193 listener.onPortsConnected(mConnection); in connectToDevicePort()
/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.java102 private ServiceConnection mConnection = new ServiceConnection() { field in LocalServiceActivities.Binding
134 mConnection, Context.BIND_AUTO_CREATE)) { in doBindService()
145 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.java66 private ServiceConnection mConnection = new ServiceConnection() { field in MessengerServiceActivities.Binding
118 MessengerService.class), mConnection, Context.BIND_AUTO_CREATE); in doBindService()
140 unbindService(mConnection); in doUnbindService()
DRemoteService.java306 private ServiceConnection mConnection = new ServiceConnection() { field in RemoteService.Binding
373 bindService(intent, mConnection, Context.BIND_AUTO_CREATE);
396 unbindService(mConnection);
/development/samples/browseable/MessagingService/src/com.example.android.messagingservice/
DMessagingFragment.java54 private final 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/ToyVpn/src/com/example/android/toyvpn/
DToyVpnService.java54 private final AtomicReference<Connection> mConnection = new AtomicReference<>(); field in ToyVpnService
142 final Connection oldConnection = mConnection.getAndSet(connection); in setConnection()