/packages/apps/RemoteProvisioner/tests/unittests/src/com/android/remoteprovisioner/unittest/ |
D | CborUtilsTest.java | 175 GeekResponse resp = CborUtils.parseGeekResponse(mBaos.toByteArray()); in testParseGeekResponseFakeData() local 177 assertArrayEquals(mEncodedmGeekChain1, resp.getGeekChain(CborUtils.EC_CURVE_25519)); in testParseGeekResponseFakeData() 178 assertArrayEquals(mEncodedGeekChain2, resp.getGeekChain(CborUtils.EC_CURVE_P256)); in testParseGeekResponseFakeData() 179 assertArrayEquals(CHALLENGE, resp.getChallenge()); in testParseGeekResponseFakeData() 180 assertEquals(TEST_EXTRA_KEYS, resp.numExtraAttestationKeys); in testParseGeekResponseFakeData() 181 assertEquals(TEST_TIME_TO_REFRESH_HOURS, resp.timeToRefresh.toHours()); in testParseGeekResponseFakeData() 182 assertEquals(TEST_URL, resp.provisioningUrl); in testParseGeekResponseFakeData() 204 GeekResponse resp = CborUtils.parseGeekResponse(mBaos.toByteArray()); in testExtraDeviceConfigEntriesDontFail() local 206 assertArrayEquals(mEncodedmGeekChain1, resp.getGeekChain(CborUtils.EC_CURVE_25519)); in testExtraDeviceConfigEntriesDontFail() 207 assertArrayEquals(mEncodedGeekChain2, resp.getGeekChain(CborUtils.EC_CURVE_P256)); in testExtraDeviceConfigEntriesDontFail() [all …]
|
/packages/apps/RemoteProvisioner/src/com/android/remoteprovisioner/ |
D | PeriodicProvisioner.java | 114 GeekResponse resp = null; in run() local 119 resp = ServerInterface.fetchGeek(mContext); in run() 120 if (!checkGeekResp(resp)) { in run() 125 resp.numExtraAttestationKeys, in run() 126 resp.timeToRefresh, in run() 127 resp.provisioningUrl); in run() 128 if (resp.numExtraAttestationKeys == 0) { in run() 135 resp = ServerInterface.fetchGeek(mContext); in run() 136 if (!checkGeekResp(resp)) { in run() 141 resp.numExtraAttestationKeys, in run() [all …]
|
D | CborUtils.java | 137 private static boolean parseDeviceConfig(GeekResponse resp, DataItem deviceConfig) { in parseDeviceConfig() argument 152 resp.numExtraAttestationKeys = ((UnsignedInteger) extraKeys).getValue().intValue(); in parseDeviceConfig() 158 resp.timeToRefresh = in parseDeviceConfig() 165 resp.provisioningUrl = ((UnicodeString) newUrl).getString(); in parseDeviceConfig() 176 GeekResponse resp = new GeekResponse(); in parseGeekResponse() local 220 resp.addGeek(curve.getValue().intValue(), baos.toByteArray()); in parseGeekResponse() 225 resp.setChallenge(((ByteString) respItems.get(CHALLENGE_INDEX)).getBytes()); in parseGeekResponse() 227 && !parseDeviceConfig(resp, respItems.get(CONFIG_INDEX))) { in parseGeekResponse() 230 return resp; in parseGeekResponse()
|
/packages/modules/Connectivity/Tethering/jni/ |
D | com_android_networkstack_tethering_BpfUtils.cpp | 102 } resp = {}; in sendAndProcessNetlinkResponse() local 104 rv = recv(fd, &resp, sizeof(resp), MSG_TRUNC); in sendAndProcessNetlinkResponse() 118 if (resp.h.nlmsg_len != (unsigned)rv) { in sendAndProcessNetlinkResponse() 120 "recv() returned invalid header length: %d != %d", resp.h.nlmsg_len, in sendAndProcessNetlinkResponse() 126 if (resp.h.nlmsg_type != NLMSG_ERROR) { in sendAndProcessNetlinkResponse() 128 "recv() did not return NLMSG_ERROR message: %d", resp.h.nlmsg_type); in sendAndProcessNetlinkResponse() 133 if (resp.e.error) { // returns 0 on success in sendAndProcessNetlinkResponse() 135 strerror(-resp.e.error)); in sendAndProcessNetlinkResponse()
|
/packages/modules/Wifi/framework/java/android/net/wifi/p2p/ |
D | WifiP2pManager.java | 1010 WifiP2pServiceResponse resp = (WifiP2pServiceResponse) message.obj; in handleMessage() local 1011 handleServiceResponse(resp); in handleMessage() 1068 private void handleServiceResponse(WifiP2pServiceResponse resp) { in handleServiceResponse() argument 1069 if (resp instanceof WifiP2pDnsSdServiceResponse) { in handleServiceResponse() 1070 handleDnsSdServiceResponse((WifiP2pDnsSdServiceResponse)resp); in handleServiceResponse() 1071 } else if (resp instanceof WifiP2pUpnpServiceResponse) { in handleServiceResponse() 1073 handleUpnpServiceResponse((WifiP2pUpnpServiceResponse)resp); in handleServiceResponse() 1077 mServRspListener.onServiceAvailable(resp.getServiceType(), in handleServiceResponse() 1078 resp.getRawData(), resp.getSrcDevice()); in handleServiceResponse() 1083 private void handleUpnpServiceResponse(WifiP2pUpnpServiceResponse resp) { in handleUpnpServiceResponse() argument [all …]
|
/packages/modules/DnsResolver/ |
D | doh.rs | 70 DohQuery { query: Query, resp: QueryResponder }, 235 Command::DohQuery { query, resp } => { in doh_handler() 238 query_map.insert(stream_id, resp); in doh_handler() 242 pending_cmds.push(Command::DohQuery { query, resp }); in doh_handler() 306 if let Some(resp) = map.remove(&stream_id) { in recv_query() 307 resp.send(Some(buf[..read].to_vec())).unwrap_or_else(|e| { in recv_query() 461 let cmd = Command::DohQuery { query: q.to_vec(), resp: resp_tx }; in doh_query() 468 if let Some(resp) = value { in doh_query() 469 if resp.len() > response_len || resp.len() > isize::MAX as usize { in doh_query() 472 let response = slice::from_raw_parts_mut(response, resp.len()); in doh_query() [all …]
|
/packages/services/Car/service/src/com/android/car/user/ |
D | CarUserService.java | 821 mHal.getInitialUserInfo(requestType, mHalTimeoutMs, usersInfo, (status, resp) -> { in initBootUser() 822 if (resp != null) { in initBootUser() 824 status, resp.action, resp.userToSwitchOrCreate.userId, in initBootUser() 825 resp.userToSwitchOrCreate.flags, resp.userNameToCreate, resp.userLocales); in initBootUser() 827 String userLocales = resp.userLocales; in initBootUser() 829 switch (resp.action) { in initBootUser() 831 int userId = resp.userToSwitchOrCreate.userId; in initBootUser() 846 int halFlags = resp.userToSwitchOrCreate.flags; in initBootUser() 847 String userName = resp.userNameToCreate; in initBootUser() 860 Slog.w(TAG, "invalid response action on " + resp); in initBootUser() [all …]
|
/packages/modules/Wifi/framework/java/android/net/wifi/p2p/nsd/ |
D | WifiP2pServiceResponse.java | 239 WifiP2pServiceResponse resp; in newInstance() local 241 resp = WifiP2pDnsSdServiceResponse.newInstance(status, in newInstance() 244 resp = WifiP2pUpnpServiceResponse.newInstance(status, in newInstance() 247 resp = new WifiP2pServiceResponse(type, status, transId, dev, data); in newInstance() 249 if (resp != null && resp.getStatus() == Status.SUCCESS) { in newInstance() 250 respList.add(resp); in newInstance()
|
/packages/services/Car/service/src/com/android/car/ |
D | CarShellCommand.java | 1280 HalCallback<InitialUserInfoResponse> callback = (status, resp) -> { 1282 Slog.d(TAG, "GetUserInfoResponse: status=" + status + ", resp=" + resp); 1288 writer.printf("Request id: %d\n", resp.requestId); 1290 InitialUserInfoResponseAction.toString(resp.action)); 1291 if (!TextUtils.isEmpty(resp.userNameToCreate)) { 1292 writer.printf("User name: %s\n", resp.userNameToCreate); 1294 if (resp.userToSwitchOrCreate.userId != UserHandle.USER_NULL) { 1295 writer.printf("User id: %d\n", resp.userToSwitchOrCreate.userId); 1297 if (resp.userToSwitchOrCreate.flags != UserFlags.NONE) { 1299 UserHalHelper.userFlagsToString(resp.userToSwitchOrCreate.flags)); [all …]
|
/packages/apps/RemoteProvisioner/src/com/android/remoteprovisioner/service/ |
D | GenerateRkpKeyService.java | 107 GeekResponse resp = ServerInterface.fetchGeek(context); 108 if (resp == null) { 112 Provisioner.provisionCerts(keysToProvision, secLevel, resp.getGeekChain(curve), 113 resp.getChallenge(), binder, context);
|
/packages/apps/Launcher3/src/com/android/launcher3/allapps/ |
D | AllAppsPagedView.java | 48 boolean resp = super.snapToPageWithVelocity(whichPage, velocity); in snapToPageWithVelocity() 49 if (resp && whichPage != mCurrentPage) { in snapToPageWithVelocity() 55 return resp; in snapToPageWithVelocity()
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/ |
D | ChildSessionStateMachine.java | 1330 ReceivedResponse resp = (ReceivedResponse) message.obj; in processStateMessage() local 1332 resp.responsePayloads, resp.exchangeType); in processStateMessage() 1336 resp.responsePayloads, mCurrentChildSaRecord); in processStateMessage() 1474 ReceivedCreateResponse resp = (ReceivedCreateResponse) message.obj; in processStateMessage() local 1478 resp.responsePayloads, in processStateMessage() 1479 resp.exchangeType, in processStateMessage() 1496 resp.responsePayloads, in processStateMessage() 1519 handleProcessRespOrSaCreationFailAndQuit(resp.registeredSpi, e); in processStateMessage() 1529 resp.registeredSpi, createChildResult.exception); in processStateMessage() 1933 ReceivedResponse resp = (ReceivedResponse) message.obj; in processStateMessage() local [all …]
|
D | IkeSessionStateMachine.java | 2273 IkeMessage resp = buildIkeDeleteResp(ikeMessage, mCurrentIkeSaRecord); in handleDeleteSessionRequest() local 2280 sendEncryptedIkeMessage(mCurrentIkeSaRecord, resp); in handleDeleteSessionRequest() 2301 protected void validateIkeDeleteResp(IkeMessage resp, IkeSaRecord expectedSaRecord) in validateIkeDeleteResp() argument 2303 if (expectedSaRecord != getIkeSaRecordForPacket(resp.ikeHeader)) { in validateIkeDeleteResp() 2307 if (resp.ikeHeader.exchangeType != IkeHeader.EXCHANGE_TYPE_INFORMATIONAL) { in validateIkeDeleteResp() 2310 + resp.ikeHeader.exchangeType); in validateIkeDeleteResp() 2313 if (!resp.ikePayloadList.isEmpty()) { in validateIkeDeleteResp() 5341 public void handleResponseIkeMessage(IkeMessage resp) { in handleResponseIkeMessage() argument 5345 validateResp(resp); in handleResponseIkeMessage() 5355 private void validateResp(IkeMessage resp) throws IkeException, IOException { in validateResp() argument [all …]
|
/packages/apps/HTMLViewer/src/com/android/htmlviewer/ |
D | HTMLViewerActivity.java | 179 final WebResourceResponse resp = new WebResourceResponse( in shouldInterceptRequest() local 181 resp.setStatusCodeAndReasonPhrase(200, "OK"); in shouldInterceptRequest() 182 return resp; in shouldInterceptRequest()
|
/packages/modules/Connectivity/framework/src/android/net/ |
D | DnsResolver.java | 494 DnsResponse resp = null; in registerFDListener() 501 resp = resNetworkResult(fd); // Closes fd, marks it invalid. in registerFDListener() 511 answerCallback.onAnswer(resp.answerbuf, resp.rcode); in registerFDListener()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/ |
D | IkeSessionStateMachineTest.java | 1581 ReceivedIkePacket resp = in testCreateIkeLocalIkeInitNegotiatesDhGroup() local 1585 mIkeSessionStateMachine.sendMessage(IkeSessionStateMachine.CMD_RECEIVE_IKE_PACKET, resp); in testCreateIkeLocalIkeInitNegotiatesDhGroup() 1615 ReceivedIkePacket resp = getIkeInitRespWithCookie(); in testCreateIkeLocalIkeInitReceivesCookie() local 1616 mIkeSessionStateMachine.sendMessage(IkeSessionStateMachine.CMD_RECEIVE_IKE_PACKET, resp); in testCreateIkeLocalIkeInitReceivesCookie() 3313 IkeMessage resp = verifyEncryptAndEncodeAndGetMessage(mSpyCurrentIkeSaRecord); in testCreateIkeLocalIkeAuthInEapHandlesOutboundResponse() local 3314 IkeHeader ikeHeader = resp.ikeHeader; in testCreateIkeLocalIkeAuthInEapHandlesOutboundResponse() 3320 assertEquals(1, resp.ikePayloadList.size()); in testCreateIkeLocalIkeAuthInEapHandlesOutboundResponse() 3321 assertArrayEquals(EAP_DUMMY_MSG, ((IkeEapPayload) resp.ikePayloadList.get(0)).eapMessage); in testCreateIkeLocalIkeAuthInEapHandlesOutboundResponse() 3725 ReceivedIkePacket resp = in testRekeyIkeLocalCreateHandleRespWithNonFatalErrorNotify() local 3727 mIkeSessionStateMachine.sendMessage(CMD_RECEIVE_IKE_PACKET, resp); in testRekeyIkeLocalCreateHandleRespWithNonFatalErrorNotify() [all …]
|
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
D | AbstractDownloadProviderFunctionalTest.java | 271 void enqueueResponse(MockResponse resp) { in enqueueResponse() argument 272 mServer.enqueue(resp); in enqueueResponse()
|
/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/ |
D | IkeTunUtils.java | 141 for (String resp : ikeRespDataFragmentsHex) { in awaitReqAndInjectResp() 149 hexStringToByteArray(resp)); in awaitReqAndInjectResp()
|
/packages/apps/Nfc/nci/jni/ |
D | NativeNfcTag.cpp | 1487 uint8_t* resp = (uint8_t*)e->GetByteArrayElements(respBytes, NULL); in nativeNfcTag_doIsNdefFormatable() local 1488 if (respLength == 9 && resp[7] == 0x91 && resp[8] == 0xAF) { in nativeNfcTag_doIsNdefFormatable() 1491 e->ReleaseByteArrayElements(respBytes, (jbyte*)resp, JNI_ABORT); in nativeNfcTag_doIsNdefFormatable()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/ |
D | IpSecServiceParameterizedTest.java | 354 IpSecConfig config, IpSecTransformResponse resp) throws Exception { in verifyTransformNetdCalledForCreatingSA() argument 355 verifyTransformNetdCalledForCreatingSA(config, resp, 0); in verifyTransformNetdCalledForCreatingSA() 359 IpSecConfig config, IpSecTransformResponse resp, int encapSocketPort) throws Exception { in verifyTransformNetdCalledForCreatingSA() argument
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppObexServerSession.java | 618 public void onDisconnect(HeaderSet req, HeaderSet resp) { in onDisconnect() argument 626 resp.responseCode = ResponseCodes.OBEX_HTTP_OK; in onDisconnect()
|
D | TestActivity.java | 561 public void onDisconnect(HeaderSet req, HeaderSet resp) { in onDisconnect() argument
|
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/ |
D | WifiP2pServiceImpl.java | 1860 for (WifiP2pServiceResponse resp : sdRespList) { in processMessage() 1862 mPeers.get(resp.getSrcDevice().deviceAddress); in processMessage() 1863 resp.setSrcDevice(dev); in processMessage() 1864 sendServiceResponse(resp); in processMessage() 4399 private void sendServiceResponse(WifiP2pServiceResponse resp) { in sendServiceResponse() argument 4400 if (resp == null) { in sendServiceResponse() 4405 WifiP2pServiceRequest req = c.mReqList.get(resp.getTransactionId()); in sendServiceResponse() 4411 msg.obj = resp; in sendServiceResponse()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/ |
D | BluetoothPbapObexServer.java | 299 public void onDisconnect(final HeaderSet req, final HeaderSet resp) { in onDisconnect() argument 307 resp.responseCode = ResponseCodes.OBEX_HTTP_OK; in onDisconnect()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapObexServer.java | 418 public void onDisconnect(final HeaderSet req, final HeaderSet resp) { in onDisconnect() argument 426 resp.responseCode = ResponseCodes.OBEX_HTTP_OK; in onDisconnect()
|