Searched refs:headerSet (Results 1 – 8 of 8) sorted by relevance
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/opp/ |
D | BluetoothOppObexServerSessionTest.java | 184 HeaderSet headerSet = new HeaderSet(); in onPut_withZeroLengthInHeader_returnsLengthRequired() local 185 doReturn(headerSet).when(mOperation).getReceivedHeader(); in onPut_withZeroLengthInHeader_returnsLengthRequired() 186 headerSet.setHeader(HeaderSet.NAME, name); in onPut_withZeroLengthInHeader_returnsLengthRequired() 187 headerSet.setHeader(HeaderSet.LENGTH, length); in onPut_withZeroLengthInHeader_returnsLengthRequired() 188 headerSet.setHeader(HeaderSet.TYPE, mimeType); in onPut_withZeroLengthInHeader_returnsLengthRequired() 198 HeaderSet headerSet = new HeaderSet(); in onPut_withZeroLengthNameInHeader_returnsHttpBadRequest() local 199 doReturn(headerSet).when(mOperation).getReceivedHeader(); in onPut_withZeroLengthNameInHeader_returnsHttpBadRequest() 200 headerSet.setHeader(HeaderSet.NAME, name); in onPut_withZeroLengthNameInHeader_returnsHttpBadRequest() 201 headerSet.setHeader(HeaderSet.LENGTH, length); in onPut_withZeroLengthNameInHeader_returnsHttpBadRequest() 202 headerSet.setHeader(HeaderSet.TYPE, mimeType); in onPut_withZeroLengthNameInHeader_returnsHttpBadRequest() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcpcontroller/ |
D | AvrcpBipClient.java | 256 HeaderSet headerSet = new HeaderSet(); in connect() local 257 headerSet.setHeader(HeaderSet.TARGET, BLUETOOTH_UUID_AVRCP_COVER_ART); in connect() 259 headerSet = mSession.connect(headerSet); in connect() 260 int responseCode = headerSet.getResponseCode(); in connect() 291 HeaderSet headerSet = new HeaderSet(); in refreshObexSession() local 292 headerSet.setHeader(HeaderSet.TARGET, BLUETOOTH_UUID_AVRCP_COVER_ART); in refreshObexSession() 294 headerSet = mSession.connect(headerSet); in refreshObexSession() 295 int responseCode = headerSet.getResponseCode(); in refreshObexSession()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/mapclient/ |
D | MnsObexServerTest.java | 99 HeaderSet headerSet = new HeaderSet(); in onPut_whenTypeIsInvalid_returnsBadRequest() local 100 headerSet.setHeader(HeaderSet.TYPE, "some_invalid_type"); in onPut_whenTypeIsInvalid_returnsBadRequest() 102 when(op.getReceivedHeader()).thenReturn(headerSet); in onPut_whenTypeIsInvalid_returnsBadRequest() 127 HeaderSet headerSet = new HeaderSet(); in onPut_whenHeaderSetIsValid_returnsOk() local 128 headerSet.setHeader(HeaderSet.TYPE, MnsObexServer.TYPE); in onPut_whenHeaderSetIsValid_returnsOk() 129 headerSet.setHeader(HeaderSet.APPLICATION_PARAMETER, applicationParameter); in onPut_whenHeaderSetIsValid_returnsOk() 132 when(op.getReceivedHeader()).thenReturn(headerSet); in onPut_whenHeaderSetIsValid_returnsOk()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/ |
D | ObexAppParametersTest.java | 75 HeaderSet headerSet = new HeaderSet(); in fromHeaderSet() local 76 headerSet.setHeader(HeaderSet.APPLICATION_PARAMETER, byteArray); in fromHeaderSet() 78 ObexAppParameters params = ObexAppParameters.fromHeaderSet(headerSet); in fromHeaderSet() 90 HeaderSet headerSet = new HeaderSet(); in addToHeaderSet() local 92 params.addToHeaderSet(headerSet); in addToHeaderSet() 94 assertThat(byteArray).isEqualTo(headerSet.getHeader(HeaderSet.APPLICATION_PARAMETER)); in addToHeaderSet()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pbapclient/ |
D | BluetoothPbapRequestPullPhoneBookSizeTest.java | 47 HeaderSet headerSet = new HeaderSet(); in readResponseHeaders() local 48 mRequest.readResponseHeaders(headerSet); in readResponseHeaders()
|
D | BluetoothPbapRequestPullPhoneBookTest.java | 127 HeaderSet headerSet = new HeaderSet(); in readResponseHeaders() local 128 request.readResponseHeaders(headerSet); in readResponseHeaders()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pbap/ |
D | BluetoothPbapObexServerTest.java | 295 HeaderSet headerSet = new HeaderSet(); in testLogHeader() local 297 BluetoothPbapObexServer.logHeader(headerSet); in testLogHeader() 360 HeaderSet headerSet = new HeaderSet(); in testOnGet_whenIoExceptionIsThrownFromGettingApplicationParameterHeader() local 361 when(operation.getReceivedHeader()).thenReturn(headerSet); in testOnGet_whenIoExceptionIsThrownFromGettingApplicationParameterHeader() 365 .getHeader(headerSet, HeaderSet.APPLICATION_PARAMETER); in testOnGet_whenIoExceptionIsThrownFromGettingApplicationParameterHeader() 373 HeaderSet headerSet = new HeaderSet(); in testOnGet_whenTypeIsNull() local 374 when(operation.getReceivedHeader()).thenReturn(headerSet); in testOnGet_whenTypeIsNull() 376 headerSet.setHeader(HeaderSet.TYPE, null); in testOnGet_whenTypeIsNull() 384 HeaderSet headerSet = new HeaderSet(); in testOnGet_whenUserIsNotUnlocked() local 385 headerSet.setHeader(HeaderSet.TYPE, BluetoothPbapObexServer.TYPE_VCARD); in testOnGet_whenUserIsNotUnlocked() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/ |
D | BluetoothMethodProxy.java | 205 public Object getHeader(HeaderSet headerSet, int headerId) throws IOException { in getHeader() argument 206 return headerSet.getHeader(headerId); in getHeader()
|