Home
last modified time | relevance | path

Searched refs:opCode (Results 1 – 19 of 19) sorted by relevance

/packages/modules/IPsec/src/java/com/android/internal/net/eap/message/mschapv2/
DEapMsChapV2TypeData.java68 public final int opCode; field in EapMsChapV2TypeData
70 EapMsChapV2TypeData(int opCode) throws EapMsChapV2ParsingException { in EapMsChapV2TypeData() argument
71 this.opCode = opCode; in EapMsChapV2TypeData()
73 if (!SUPPORTED_OP_CODES.contains(opCode)) { in EapMsChapV2TypeData()
74 throw new EapMsChapV2ParsingException("Unsupported opCode provided: " + opCode); in EapMsChapV2TypeData()
92 EapMsChapV2VariableTypeData(int opCode, int msChapV2Id, int msLength) in EapMsChapV2VariableTypeData() argument
94 super(opCode); in EapMsChapV2VariableTypeData()
486 int opCode = Byte.toUnsignedInt(buffer.get()); in decodeChallengeRequest() local
488 if (opCode != EAP_MSCHAP_V2_CHALLENGE) { in decodeChallengeRequest()
494 opCode, "Unknown (" + opCode + ")")))); in decodeChallengeRequest()
[all …]
/packages/modules/NetworkStack/src/com/android/networkstack/arp/
DArpPacket.java48 public final short opCode; field in ArpPacket
54 ArpPacket(short opCode, MacAddress senderHwAddress, Inet4Address senderIp, in ArpPacket() argument
56 this.opCode = opCode; in ArpPacket()
69 final short opCode) { in buildArpPacket() argument
82 buf.putShort(opCode); // op in buildArpPacket()
133 final short opCode = buffer.getShort(); in parseArpPacket() local
134 if (opCode != ARP_REQUEST && opCode != ARP_REPLY) { in parseArpPacket()
135 throw new ParseException("Incorrect opCode: " + opCode); in parseArpPacket()
148 return new ArpPacket(opCode, MacAddress.fromBytes(senderHwAddress), in parseArpPacket()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DMetrics.java200 @MetricConsts.FileOp int opCode = MetricConsts.FILEOP_OTHER_ERROR; in logFileOperationErrors() local
203 opCode = MetricConsts.FILEOP_COPY_ERROR; in logFileOperationErrors()
206 opCode = MetricConsts.FILEOP_COMPRESS_ERROR; in logFileOperationErrors()
209 opCode = MetricConsts.FILEOP_EXTRACT_ERROR; in logFileOperationErrors()
212 opCode = MetricConsts.FILEOP_DELETE_ERROR; in logFileOperationErrors()
215 opCode = MetricConsts.FILEOP_MOVE_ERROR; in logFileOperationErrors()
221 MetricConsts.PROVIDER_SYSTEM, opCode); in logFileOperationErrors()
226 MetricConsts.PROVIDER_EXTERNAL, opCode); in logFileOperationErrors()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/mschapv2/
DEapMsChapV2SuccessRequestTest.java68 assertEquals(EAP_MSCHAP_V2_SUCCESS, successRequest.opCode); in testDecodeSuccessRequest()
83 assertEquals(EAP_MSCHAP_V2_SUCCESS, successRequest.opCode); in testDecodeSuccessRequestEmptyMessage()
98 assertEquals(EAP_MSCHAP_V2_SUCCESS, successRequest.opCode); in testDecodeSuccessRequestMissingMessage()
113 assertEquals(EAP_MSCHAP_V2_SUCCESS, successRequest.opCode); in testDecodeSuccessRequestMissingMessageWithSpace()
DEapMsChapV2FailureRequestTest.java66 assertEquals(EAP_MSCHAP_V2_FAILURE, failureRequest.opCode); in testDecodeFailureRequest()
84 assertEquals(EAP_MSCHAP_V2_FAILURE, failureRequest.opCode); in testDecodeFailureRequestMissingMessage()
102 assertEquals(EAP_MSCHAP_V2_FAILURE, failureRequest.opCode); in testDecodeFailureRequestMissingMessageWithSpace()
DEapMsChapV2TypeDataTest.java57 assertEquals(EAP_MSCHAP_V2_CHALLENGE, typeData.opCode); in testEapMsChapV2TypeDataConstructor()
71 assertEquals(EAP_MSCHAP_V2_CHALLENGE, typeData.opCode); in testEapMsChapV2VariableTypeDataConstructor()
DEapMsChapV2SuccessResponseTest.java34 assertEquals(EAP_MSCHAP_V2_SUCCESS, successResponse.opCode); in testGetEapMsChapV2SuccessResponse()
DEapMsChapV2FailureResponseTest.java34 assertEquals(EAP_MSCHAP_V2_FAILURE, failureResponse.opCode); in testGetEapMsChapV2FailureResponse()
DEapMsChapV2ChallengeResponseTest.java46 assertEquals(EAP_MSCHAP_V2_RESPONSE, challengeResponse.opCode); in testConstructor()
DEapMsChapV2ChallengeRequestTest.java63 assertEquals(EAP_MSCHAP_V2_CHALLENGE, challengeRequest.opCode); in testDecodeChallengeRequest()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/statemachine/
DEapMsChapV2MethodStateMachine.java332 int opCode; in process() local
334 opCode = mTypeDataDecoder.getOpCode(message.eapData.eapTypeData); in process()
343 + EAP_OP_CODE_STRING.getOrDefault(opCode, "Unknown") in process()
344 + " (" + opCode + ")"); in process()
346 switch (opCode) { in process()
413 LOG.e(mTAG, "Invalid OpCode: " + opCode); in process()
/packages/modules/NetworkStack/src/android/net/util/
DConnectivityPacketSummary.java179 final int opCode = asUint(mPacket.getShort()); in parseARP() local
186 if (opCode == ARP_REQUEST) { in parseARP()
188 } else if (opCode == ARP_REPLY) { in parseARP()
191 sj.add("unknown opcode").add(asString(opCode)); in parseARP()
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/arp/
DArpPacketTest.java164 assertEquals(packet.opCode, ARP_REQUEST); in testParseArpProbePacket()
175 assertEquals(packet.opCode, ARP_REQUEST); in testParseArpAnnouncePacket()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DFrameParser.java326 int opCode = getUnsignedShort(data); in parseArpPacket() local
327 switch (opCode) { in parseArpPacket()
335 mTypeString = "Operation " + opCode; in parseArpPacket()
/packages/services/Telecomm/src/com/android/server/telecom/
DTelecomServiceImpl.java2019 final int opCode = AppOpsManager.permissionToOpCode(permission); in enforceAnswerCallPermission()
2020 if (opCode != AppOpsManager.OP_NONE in enforceAnswerCallPermission()
2021 && mAppOpsManager.checkOp(opCode, uid, packageName) in enforceAnswerCallPermission()
2038 final int opCode = AppOpsManager.permissionToOpCode(Manifest.permission.ACCEPT_HANDOVER); in enforceAcceptHandoverPermission() local
2039 if (opCode != AppOpsManager.OP_ACCEPT_HANDOVER || ( in enforceAcceptHandoverPermission()
2040 mAppOpsManager.checkOp(opCode, uid, packageName) in enforceAcceptHandoverPermission()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpClient.java1561 return (packet.opCode == ARP_REQUEST && packet.senderIp.equals(INADDR_ANY) in isArpProbe()
1589 + (packet.opCode == ARP_REQUEST ? "ARP Request" : "ARP Reply") in hasIpAddressConflict()
/packages/modules/NeuralNetworks/common/include/
DLegacyHalUtils.h151 std::string getOperationName(V1_3::OperationType opCode);
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/
DIpClientIntegrationTestCommon.java1134 assertEquals(packet.opCode, ARP_REQUEST);
1150 assertEquals(packet.opCode, ARP_REPLY);
/packages/modules/NeuralNetworks/runtime/test/
DTestValidateOperations.cpp331 OperationTestBase(ANeuralNetworksOperationType opCode, in OperationTestBase() argument
335 : mOpCode(opCode), mValidInputs(), mValidOutputs(), mInputRankMutators(inputRankMutators) {