Home
last modified time | relevance | path

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

/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
DVendorCommandResponseProcessor.java79 public boolean sendCommand(int vendorId, String atCommand, BluetoothDevice device) { in sendCommand() argument
87 int indexOfSemicolon = atCommand.indexOf(';'); in sendCommand()
90 + atCommand); in sendCommand()
95 int indexOfEqual = atCommand.indexOf('='); in sendCommand()
96 int indexOfQuestionMark = atCommand.indexOf('?'); in sendCommand()
99 commandWord = atCommand.substring(0, indexOfEqual + 1); in sendCommand()
101 commandWord = atCommand.substring(0, indexOfQuestionMark + 1); in sendCommand()
103 commandWord = atCommand; in sendCommand()
110 Log.e(TAG, "Invalid command " + atCommand + ", " + vendorId + ". Cand=" in sendCommand()
118 0, 0, atCommand)) { in sendCommand()
[all …]
DHeadsetClientService.java507 public boolean sendVendorAtCommand(BluetoothDevice device, int vendorId, String atCommand, in sendVendorAtCommand() argument
514 return service.sendVendorAtCommand(device, vendorId, atCommand); in sendVendorAtCommand()
947 public boolean sendVendorAtCommand(BluetoothDevice device, int vendorId, String atCommand) { in sendVendorAtCommand() argument
960 vendorId, 0, atCommand); in sendVendorAtCommand()
DHeadsetClientStateMachine.java1253 String atCommand = (String) (message.obj); in processMessage() local
1254 mVendorProcessor.sendCommand(vendorId, atCommand, mCurrentDevice); in processMessage()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfpclient/
DHeadsetClientStateMachineTest.java387 private void runSupportedVendorAtCommand(String atCommand, int vendorId) { in runSupportedVendorAtCommand() argument
398 HeadsetClientStateMachine.SEND_VENDOR_AT_COMMAND, vendorId, 0, atCommand); in runSupportedVendorAtCommand()
404 0, 0, atCommand); in runSupportedVendorAtCommand() local
414 String atCommand = "+XAPL=ABCD-1234-0100,100"; in testSupportedVendorAtCommandSet() local
415 runSupportedVendorAtCommand(atCommand, vendorId); in testSupportedVendorAtCommandSet()
425 String atCommand = "+APLSIRI?"; in testSupportedVendorAtCommandRead() local
426 runSupportedVendorAtCommand(atCommand, vendorId); in testSupportedVendorAtCommandRead()
430 public void runUnsupportedVendorAtCommand(String atCommand, int vendorId) { in runUnsupportedVendorAtCommand() argument
441 HeadsetClientStateMachine.SEND_VENDOR_AT_COMMAND, vendorId, 0, atCommand); in runUnsupportedVendorAtCommand()
454 String atCommand = "+XAAPL=ABCD-1234-0100,100"; in testUnsupportedVendorAtCommandBadCode() local
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetStateMachine.java1557 StringBuilder atCommand = new StringBuilder(atString.length()); in parseUnknownAt() local
1564 atCommand.append(atString.substring(i, atString.length())); in parseUnknownAt()
1565 atCommand.append('"'); in parseUnknownAt()
1568 atCommand.append(atString.substring(i, j + 1)); in parseUnknownAt()
1571 atCommand.append(Character.toUpperCase(c)); in parseUnknownAt()
1574 return atCommand.toString(); in parseUnknownAt()
1577 private int getAtCommandType(String atCommand) { in getAtCommandType() argument
1580 atCommand = atCommand.trim(); in getAtCommandType()
1581 if (atCommand.length() > 5) { in getAtCommandType()
1582 atString = atCommand.substring(5); in getAtCommandType()
[all …]
DAtPhonebook.java334 String atCommand = (atString.split("="))[1]; in handleCpbrCommand() local
335 String[] indices = atCommand.split(","); in handleCpbrCommand()