Home
last modified time | relevance | path

Searched refs:mChatService (Results 1 – 2 of 2) sorted by relevance

/development/samples/browseable/BluetoothChat/src/com.example.android.bluetoothchat/
DBluetoothChatFragment.java87 private BluetoothChatService mChatService = null; field in BluetoothChatFragment
114 } else if (mChatService == null) { in onStart()
122 if (mChatService != null) { in onDestroy()
123 mChatService.stop(); in onDestroy()
134 if (mChatService != null) { in onResume()
136 if (mChatService.getState() == BluetoothChatService.STATE_NONE) { in onResume()
138 mChatService.start(); in onResume()
184 mChatService = new BluetoothChatService(getActivity(), mHandler); in setupChat()
209 if (mChatService.getState() != BluetoothChatService.STATE_CONNECTED) { in sendMessage()
218 mChatService.write(send); in sendMessage()
[all …]
/development/samples/BluetoothChat/src/com/example/android/BluetoothChat/
DBluetoothChat.java81 private BluetoothChatService mChatService = null; field in BluetoothChat
115 if (mChatService == null) setupChat(); in onStart()
127 if (mChatService != null) { in onResume()
129 if (mChatService.getState() == BluetoothChatService.STATE_NONE) { in onResume()
131 mChatService.start(); in onResume()
160 mChatService = new BluetoothChatService(this, mHandler); in setupChat()
182 if (mChatService != null) mChatService.stop(); in onDestroy()
202 if (mChatService.getState() != BluetoothChatService.STATE_CONNECTED) { in sendMessage()
211 mChatService.write(send); in sendMessage()
326 mChatService.connect(device, secure); in connectDevice()