Searched refs:headerSet (Results 1 – 7 of 7) sorted by relevance
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/opp/ |
D | BluetoothOppObexServerSessionTest.java | 192 HeaderSet headerSet = new HeaderSet(); in onPut_withZeroLengthInHeader_returnsLengthRequired() local 193 doReturn(headerSet).when(mOperation).getReceivedHeader(); in onPut_withZeroLengthInHeader_returnsLengthRequired() 194 headerSet.setHeader(HeaderSet.NAME, name); in onPut_withZeroLengthInHeader_returnsLengthRequired() 195 headerSet.setHeader(HeaderSet.LENGTH, length); in onPut_withZeroLengthInHeader_returnsLengthRequired() 196 headerSet.setHeader(HeaderSet.TYPE, mimeType); in onPut_withZeroLengthInHeader_returnsLengthRequired() 206 HeaderSet headerSet = new HeaderSet(); in onPut_withZeroLengthNameInHeader_returnsHttpBadRequest() local 207 doReturn(headerSet).when(mOperation).getReceivedHeader(); in onPut_withZeroLengthNameInHeader_returnsHttpBadRequest() 208 headerSet.setHeader(HeaderSet.NAME, name); in onPut_withZeroLengthNameInHeader_returnsHttpBadRequest() 209 headerSet.setHeader(HeaderSet.LENGTH, length); in onPut_withZeroLengthNameInHeader_returnsHttpBadRequest() 210 headerSet.setHeader(HeaderSet.TYPE, mimeType); in onPut_withZeroLengthNameInHeader_returnsHttpBadRequest() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcpcontroller/ |
D | AvrcpBipClient.java | 263 HeaderSet headerSet = new HeaderSet(); in connect() local 264 headerSet.setHeader(HeaderSet.TARGET, BLUETOOTH_UUID_AVRCP_COVER_ART); in connect() 266 headerSet = mSession.connect(headerSet); in connect() 267 int responseCode = headerSet.getResponseCode(); in connect() 298 HeaderSet headerSet = new HeaderSet(); in refreshObexSession() local 299 headerSet.setHeader(HeaderSet.TARGET, BLUETOOTH_UUID_AVRCP_COVER_ART); in refreshObexSession() 301 headerSet = mSession.connect(headerSet); in refreshObexSession() 302 int responseCode = headerSet.getResponseCode(); in refreshObexSession()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/mapclient/ |
D | MnsObexServerTest.java | 100 HeaderSet headerSet = new HeaderSet(); in onPut_whenTypeIsInvalid_returnsBadRequest() local 101 headerSet.setHeader(HeaderSet.TYPE, "some_invalid_type"); in onPut_whenTypeIsInvalid_returnsBadRequest() 103 when(op.getReceivedHeader()).thenReturn(headerSet); in onPut_whenTypeIsInvalid_returnsBadRequest() 128 HeaderSet headerSet = new HeaderSet(); in onPut_whenHeaderSetIsValid_returnsOk() local 129 headerSet.setHeader(HeaderSet.TYPE, MnsObexServer.TYPE); in onPut_whenHeaderSetIsValid_returnsOk() 130 headerSet.setHeader(HeaderSet.APPLICATION_PARAMETER, applicationParameter); in onPut_whenHeaderSetIsValid_returnsOk() 133 when(op.getReceivedHeader()).thenReturn(headerSet); in onPut_whenHeaderSetIsValid_returnsOk()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/ |
D | ObexAppParametersTest.java | 76 HeaderSet headerSet = new HeaderSet(); in fromHeaderSet() local 77 headerSet.setHeader(HeaderSet.APPLICATION_PARAMETER, byteArray); in fromHeaderSet() 79 ObexAppParameters params = ObexAppParameters.fromHeaderSet(headerSet); in fromHeaderSet() 91 HeaderSet headerSet = new HeaderSet(); in addToHeaderSet() local 93 params.addToHeaderSet(headerSet); in addToHeaderSet() 95 assertThat(byteArray).isEqualTo(headerSet.getHeader(HeaderSet.APPLICATION_PARAMETER)); in addToHeaderSet()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pbap/ |
D | BluetoothPbapObexServerTest.java | 294 HeaderSet headerSet = new HeaderSet(); in testLogHeader() local 296 BluetoothPbapObexServer.logHeader(headerSet); in testLogHeader() 359 HeaderSet headerSet = new HeaderSet(); in testOnGet_whenIoExceptionIsThrownFromGettingApplicationParameterHeader() local 360 when(operation.getReceivedHeader()).thenReturn(headerSet); in testOnGet_whenIoExceptionIsThrownFromGettingApplicationParameterHeader() 364 .getHeader(headerSet, HeaderSet.APPLICATION_PARAMETER); in testOnGet_whenIoExceptionIsThrownFromGettingApplicationParameterHeader() 372 HeaderSet headerSet = new HeaderSet(); in testOnGet_whenTypeIsNull() local 373 when(operation.getReceivedHeader()).thenReturn(headerSet); in testOnGet_whenTypeIsNull() 375 headerSet.setHeader(HeaderSet.TYPE, null); in testOnGet_whenTypeIsNull() 383 HeaderSet headerSet = new HeaderSet(); in testOnGet_whenUserIsNotUnlocked() local 384 headerSet.setHeader(HeaderSet.TYPE, BluetoothPbapObexServer.TYPE_VCARD); in testOnGet_whenUserIsNotUnlocked() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pbapclient/ |
D | RequestPullPhonebookMetadataTest.java | 124 HeaderSet headerSet = new HeaderSet(); in readResponseHeaders() local 125 mRequest.readResponseHeaders(headerSet); in readResponseHeaders()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/ |
D | BluetoothMethodProxy.java | 221 public Object getHeader(HeaderSet headerSet, int headerId) throws IOException { in getHeader() argument 222 return headerSet.getHeader(headerId); in getHeader()
|