Home
last modified time | relevance | path

Searched refs:atCommand (Results 1 – 11 of 11) sorted by relevance

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfpclient/
DVendorCommandResponseProcessorTest.java72 String atCommand = "command;"; in sendCommand_withSemicolon() local
74 assertThat(mProcessor.sendCommand(TEST_VENDOR_ID, atCommand, mDevice)).isFalse(); in sendCommand_withSemicolon()
79 String atCommand = "+XAPL="; in sendCommand_withNullDevice() local
81 assertThat(mProcessor.sendCommand(TEST_VENDOR_ID, atCommand, null)).isFalse(); in sendCommand_withNullDevice()
93 String atCommand = "+XAPL="; in sendCommand_withEqualSign() local
101 atCommand); in sendCommand_withEqualSign()
103 assertThat(mProcessor.sendCommand(TEST_VENDOR_ID, atCommand, mDevice)).isTrue(); in sendCommand_withEqualSign()
108 String atCommand = "+APLSIRI?"; in sendCommand_withQuestionMarkSign() local
116 atCommand); in sendCommand_withQuestionMarkSign()
118 assertThat(mProcessor.sendCommand(TEST_VENDOR_ID, atCommand, mDevice)).isTrue(); in sendCommand_withQuestionMarkSign()
[all …]
DHeadsetClientStateMachineTest.java490 private void runSupportedVendorAtCommand(String atCommand, int vendorId) { in runSupportedVendorAtCommand() argument
494 sendMessage(HeadsetClientStateMachine.SEND_VENDOR_AT_COMMAND, vendorId, 0, atCommand); in runSupportedVendorAtCommand()
502 atCommand); in runSupportedVendorAtCommand()
509 String atCommand = "+XAPL=ABCD-1234-0100,100"; in testSupportedVendorAtCommandSet() local
510 runSupportedVendorAtCommand(atCommand, vendorId); in testSupportedVendorAtCommandSet()
517 String atCommand = "+APLSIRI?"; in testSupportedVendorAtCommandRead() local
518 runSupportedVendorAtCommand(atCommand, vendorId); in testSupportedVendorAtCommandRead()
522 public void runUnsupportedVendorAtCommand(String atCommand, int vendorId) { in runUnsupportedVendorAtCommand() argument
526 sendMessage(HeadsetClientStateMachine.SEND_VENDOR_AT_COMMAND, vendorId, 0, atCommand); in runUnsupportedVendorAtCommand()
534 String atCommand = "+XAAPL=ABCD-1234-0100,100"; in testUnsupportedVendorAtCommandBadCode() local
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfpclient/
DVendorCommandResponseProcessor.java69 public boolean sendCommand(int vendorId, String atCommand, BluetoothDevice device) { in sendCommand() argument
77 int indexOfSemicolon = atCommand.indexOf(';'); in sendCommand()
79 Log.e(TAG, "Do not support ; and more than one command:" + atCommand); in sendCommand()
84 int indexOfEqual = atCommand.indexOf('='); in sendCommand()
85 int indexOfQuestionMark = atCommand.indexOf('?'); in sendCommand()
88 commandWord = atCommand.substring(0, indexOfEqual + 1); in sendCommand()
90 commandWord = atCommand.substring(0, indexOfQuestionMark + 1); in sendCommand()
92 commandWord = atCommand; in sendCommand()
99 Log.e(TAG, "Invalid command " + atCommand + ", " + vendorId + ". Cand=" + commandWord); in sendCommand()
108 atCommand)) { in sendCommand()
[all …]
DHeadsetClientServiceBinder.java329 BluetoothDevice device, int vendorId, String atCommand, AttributionSource source) { in sendVendorAtCommand() argument
334 return service.sendVendorAtCommand(device, vendorId, atCommand); in sendVendorAtCommand()
DHeadsetClientService.java787 public boolean sendVendorAtCommand(BluetoothDevice device, int vendorId, String atCommand) { in sendVendorAtCommand() argument
801 HeadsetClientStateMachine.SEND_VENDOR_AT_COMMAND, vendorId, 0, atCommand); in sendVendorAtCommand()
DHeadsetClientStateMachine.java1472 String atCommand = (String) (message.obj); in processMessage() local
1473 mVendorProcessor.sendCommand(vendorId, atCommand, mCurrentDevice); in processMessage()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfp/
DHeadsetStateMachine.java1923 StringBuilder atCommand = new StringBuilder(atString.length()); in parseUnknownAt() local
1930 atCommand.append(atString.substring(i, atString.length())); in parseUnknownAt()
1931 atCommand.append('"'); in parseUnknownAt()
1935 atCommand.append(atSubString); in parseUnknownAt()
1938 atCommand.append(Character.toUpperCase(c)); in parseUnknownAt()
1941 return atCommand.toString(); in parseUnknownAt()
1945 int getAtCommandType(String atCommand) { in getAtCommandType() argument
1948 atCommand = atCommand.trim(); in getAtCommandType()
1949 if (atCommand.length() > 5) { in getAtCommandType()
1950 atString = atCommand.substring(5); in getAtCommandType()
[all …]
DAtPhonebook.java343 String atCommand = (atString.split("="))[1]; in handleCpbrCommand() local
344 String[] indices = atCommand.split(","); in handleCpbrCommand()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetStateMachineTest.java1419 String atCommand = "start?"; in testGetAtCommandType() local
1420 assertThat(mHeadsetStateMachine.getAtCommandType(atCommand)) in testGetAtCommandType()
1423 atCommand = "start=?"; in testGetAtCommandType()
1424 assertThat(mHeadsetStateMachine.getAtCommandType(atCommand)) in testGetAtCommandType()
1427 atCommand = "start=comm"; in testGetAtCommandType()
1428 assertThat(mHeadsetStateMachine.getAtCommandType(atCommand)) in testGetAtCommandType()
1431 atCommand = "start!"; in testGetAtCommandType()
1432 assertThat(mHeadsetStateMachine.getAtCommandType(atCommand)) in testGetAtCommandType()
/packages/modules/Bluetooth/android/app/aidl/android/bluetooth/
DIBluetoothHeadsetClient.aidl90 …boolean sendVendorAtCommand(in BluetoothDevice device, int vendorId, String atCommand, in Attribut… in sendVendorAtCommand() argument
/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothHeadsetClient.java911 public boolean sendVendorAtCommand(BluetoothDevice device, int vendorId, String atCommand) { in sendVendorAtCommand() argument
919 return service.sendVendorAtCommand(device, vendorId, atCommand, mAttributionSource); in sendVendorAtCommand()