Loading src/com/android/bluetooth/hfp/HeadsetStateMachine.java +9 −0 Original line number Diff line number Diff line Loading @@ -269,6 +269,7 @@ final class HeadsetStateMachine extends StateMachine { addState(mAudioOn); setInitialState(mDisconnected); mPhoneState.listenForPhoneState(true); } static HeadsetStateMachine make(HeadsetService context) { Loading Loading @@ -1092,6 +1093,14 @@ final class HeadsetStateMachine extends StateMachine { public void onServiceConnected(ComponentName className, IBinder service) { if (DBG) Log.d(TAG, "Proxy object connected"); mPhoneProxy = IBluetoothHeadsetPhone.Stub.asInterface(service); if (mPhoneProxy != null) { try { log("Try to query the phonestate on bind"); mPhoneProxy.queryPhoneState(); } catch (RemoteException e) { Log.e(TAG, Log.getStackTraceString(new Throwable())); } } else Log.e(TAG, " phone proxy null for query phone state"); } public void onServiceDisconnected(ComponentName className) { Loading Loading
src/com/android/bluetooth/hfp/HeadsetStateMachine.java +9 −0 Original line number Diff line number Diff line Loading @@ -269,6 +269,7 @@ final class HeadsetStateMachine extends StateMachine { addState(mAudioOn); setInitialState(mDisconnected); mPhoneState.listenForPhoneState(true); } static HeadsetStateMachine make(HeadsetService context) { Loading Loading @@ -1092,6 +1093,14 @@ final class HeadsetStateMachine extends StateMachine { public void onServiceConnected(ComponentName className, IBinder service) { if (DBG) Log.d(TAG, "Proxy object connected"); mPhoneProxy = IBluetoothHeadsetPhone.Stub.asInterface(service); if (mPhoneProxy != null) { try { log("Try to query the phonestate on bind"); mPhoneProxy.queryPhoneState(); } catch (RemoteException e) { Log.e(TAG, Log.getStackTraceString(new Throwable())); } } else Log.e(TAG, " phone proxy null for query phone state"); } public void onServiceDisconnected(ComponentName className) { Loading