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.java77 public boolean sendCommand(int vendorId, String atCommand, BluetoothDevice device) { in sendCommand() argument
85 int indexOfSemicolon = atCommand.indexOf(';'); in sendCommand()
88 + atCommand); in sendCommand()
93 int indexOfEqual = atCommand.indexOf('='); in sendCommand()
94 int indexOfQuestionMark = atCommand.indexOf('?'); in sendCommand()
97 commandWord = atCommand.substring(0, indexOfEqual + 1); in sendCommand()
99 commandWord = atCommand.substring(0, indexOfQuestionMark + 1); in sendCommand()
101 commandWord = atCommand; in sendCommand()
108 Log.e(TAG, "Invalid command " + atCommand + ", " + vendorId + ". Cand=" in sendCommand()
116 0, 0, atCommand)) { in sendCommand()
[all …]
DHeadsetClientService.java434 public boolean sendVendorAtCommand(BluetoothDevice device, int vendorId, String atCommand) { in sendVendorAtCommand() argument
439 return service.sendVendorAtCommand(device, vendorId, atCommand); in sendVendorAtCommand()
881 public boolean sendVendorAtCommand(BluetoothDevice device, int vendorId, String atCommand) { in sendVendorAtCommand() argument
895 vendorId, 0, atCommand); in sendVendorAtCommand()
DHeadsetClientStateMachine.java1151 String atCommand = (String) (message.obj); in processMessage() local
1152 mVendorProcessor.sendCommand(vendorId, atCommand, mCurrentDevice); in processMessage()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfpclient/
DHeadsetClientStateMachineTest.java383 private void runSupportedVendorAtCommand(String atCommand, int vendorId) { in runSupportedVendorAtCommand() argument
394 HeadsetClientStateMachine.SEND_VENDOR_AT_COMMAND, vendorId, 0, atCommand); in runSupportedVendorAtCommand()
400 0, 0, atCommand); in runSupportedVendorAtCommand() local
410 String atCommand = "+XAPL=ABCD-1234-0100,100"; in testSupportedVendorAtCommandSet() local
411 runSupportedVendorAtCommand(atCommand, vendorId); in testSupportedVendorAtCommandSet()
421 String atCommand = "+APLSIRI?"; in testSupportedVendorAtCommandRead() local
422 runSupportedVendorAtCommand(atCommand, vendorId); in testSupportedVendorAtCommandRead()
426 public void runUnsupportedVendorAtCommand(String atCommand, int vendorId) { in runUnsupportedVendorAtCommand() argument
437 HeadsetClientStateMachine.SEND_VENDOR_AT_COMMAND, vendorId, 0, atCommand); in runUnsupportedVendorAtCommand()
450 String atCommand = "+XAAPL=ABCD-1234-0100,100"; in testUnsupportedVendorAtCommandBadCode() local
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetStateMachine.java1519 StringBuilder atCommand = new StringBuilder(atString.length()); in parseUnknownAt() local
1526 atCommand.append(atString.substring(i, atString.length())); in parseUnknownAt()
1527 atCommand.append('"'); in parseUnknownAt()
1530 atCommand.append(atString.substring(i, j + 1)); in parseUnknownAt()
1533 atCommand.append(Character.toUpperCase(c)); in parseUnknownAt()
1536 return atCommand.toString(); in parseUnknownAt()
1539 private int getAtCommandType(String atCommand) { in getAtCommandType() argument
1542 atCommand = atCommand.trim(); in getAtCommandType()
1543 if (atCommand.length() > 5) { in getAtCommandType()
1544 atString = atCommand.substring(5); in getAtCommandType()
[all …]
DAtPhonebook.java332 String atCommand = (atString.split("="))[1]; in handleCpbrCommand() local
333 String[] indices = atCommand.split(","); in handleCpbrCommand()