/drivers/hdf_core/framework/tools/hdi-gen/parser/ |
H A D | parser.cpp | 117 Token token = lexer_.PeekToken(false);
in ParseLicense() local 118 if (token.kind == TokenType::COMMENT_BLOCK) {
in ParseLicense() 120 return token.value;
in ParseLicense() 128 Token token = lexer_.PeekToken();
in ParsePackage() local 129 if (token.kind != TokenType::PACKAGE) {
in ParsePackage() 130 LogError(token, StringHelper::Format("expected 'package' before '%s' token", token.value.c_str()));
in ParsePackage() 135 token = lexer_.PeekToken();
in ParsePackage() 136 if (token in ParsePackage() 188 Token token = lexer_.PeekToken(); ParseImports() local 223 Token token = lexer_.PeekToken(); ParseImportInfo() local 255 Token token = lexer_.PeekToken(); ParseSequenceableInfo() local 281 Token token = lexer_.PeekToken(); ParseTypeDecls() local 312 Token token = lexer_.PeekToken(); ParseAttribute() local 336 Token token = lexer_.PeekToken(); ParseAttributeInfo() local 371 Token token = lexer_.PeekToken(); AprseAttrUnit() local 401 Token token = lexer_.PeekToken(); ParseInterface() local 469 CheckInterfaceAttr(const AutoPtr<ASTInterfaceType> &interface, Token token) CheckInterfaceAttr() argument 498 Token token = lexer_.PeekToken(); ParseInterfaceBody() local 532 Token token = lexer_.PeekToken(); ParseMethod() local 657 Token token = lexer_.PeekToken(); ParseMethodParamList() local 705 Token token = lexer_.PeekToken(); ParseParam() local 733 Token token = lexer_.PeekToken(); ParseParamAttr() local 765 Token token = lexer_.PeekToken(); ParseType() local 818 Token token = lexer_.PeekToken(); ParseBasicType() local 834 Token token = lexer_.PeekToken(); ParseUnsignedType() local 856 Token token = lexer_.PeekToken(); ParseArrayType() local 878 Token token = lexer_.PeekToken(); ParseListType() local 909 Token token = lexer_.PeekToken(); ParseMapType() local 956 Token token = lexer_.PeekToken(); ParseSmqType() local 985 Token token = lexer_.GetToken(); ParseUserDefType() local 1011 Token token = lexer_.PeekToken(); ParseEnumDeclaration() local 1050 Token token = lexer_.PeekToken(); ParseEnumBaseType() local 1090 Token token = lexer_.GetToken(); ParserEnumMember() local 1122 Token token = lexer_.PeekToken(); ParseStructDeclaration() local 1163 Token token = lexer_.PeekToken(); ParseStructParentType() local 1190 Token token = lexer_.PeekToken(); ParseStructMember() local 1230 Token token = lexer_.PeekToken(); ParseUnionDeclaration() local 1267 Token token = lexer_.PeekToken(); ParseUnionMember() local 1376 Token token = lexer_.PeekToken(); ParseAndExpr() local 1393 Token token = lexer_.PeekToken(); ParseXorExpr() local 1410 Token token = lexer_.PeekToken(); ParseOrExpr() local 1427 Token token = lexer_.PeekToken(); ParseShiftExpr() local 1445 Token token = lexer_.PeekToken(); ParseAddExpr() local 1463 Token token = lexer_.PeekToken(); ParseMulExpr() local 1486 Token token = lexer_.PeekToken(); ParseUnaryExpr() local 1510 Token token = lexer_.PeekToken(); ParsePrimaryExpr() local 1542 Token token = lexer_.GetToken(); ParseNumExpr() local 1555 Token token = lexer_.GetToken(); ParseEnumExpr() local 1577 CheckType(const Token &token, const AutoPtr<ASTType> &type) CheckType() argument 1615 CheckTypeByMode(const Token &token, const AutoPtr<ASTType> &type) CheckTypeByMode() argument 1782 LogError(const Token &token, const std::string &message) LogError() argument 1796 Token token = lexer_.PeekToken(); ParseInterfaceExtends() local 1814 Token token = lexer_.PeekToken(); ParseExtendsInfo() local [all...] |
H A D | parser.h | 92 void CheckInterfaceAttr(const AutoPtr<ASTInterfaceType> &interface, Token token);
176 bool CheckType(const Token &token, const AutoPtr<ASTType> &type);
178 bool CheckTypeByMode(const Token &token, const AutoPtr<ASTType> &type);
205 inline static bool IsPrimitiveType(Token token)
in IsPrimitiveType() argument 207 return token.kind >= TokenType::BOOLEAN && token.kind <= TokenType::ASHMEM;
in IsPrimitiveType() 214 void LogError(const Token &token, const std::string &message);
|
/drivers/hdf_core/framework/tools/hdi-gen/lexer/ |
H A D | lexer.cpp | 163 Token token = PeekToken();
in SkipUntilToken() local 164 while (token.kind != tokenType) {
in SkipUntilToken() 166 token = PeekToken();
in SkipUntilToken() 176 void Lexer::ReadToken(Token &token, bool skipComment)
in ReadToken() argument 179 InitCurToken(token);
in ReadToken() 187 token.location.row = file_->GetCharLineNumber();
in ReadToken() 188 token.location.col = file_->GetCharColumnNumber();
in ReadToken() 190 ReadId(token);
in ReadToken() 193 ReadNum(token);
in ReadToken() 196 ReadShiftLeftOp(token);
in ReadToken() 222 InitCurToken(Token &token) InitCurToken() argument 231 ReadId(Token &token) ReadId() argument 255 ReadNum(Token &token) ReadNum() argument 281 ReadBinaryNum(Token &token) ReadBinaryNum() argument 303 ReadOctNum(Token &token) ReadOctNum() argument 326 ReadHexNum(Token &token) ReadHexNum() argument 348 ReadDecNum(Token &token) ReadDecNum() argument 368 ReadNumSuffix(Token &token) ReadNumSuffix() argument 381 ReadShiftLeftOp(Token &token) ReadShiftLeftOp() argument 398 ReadShiftRightOp(Token &token) ReadShiftRightOp() argument 415 ReadPPlusOp(Token &token) ReadPPlusOp() argument 432 ReadMMinusOp(Token &token) ReadMMinusOp() argument 449 ReadComment(Token &token) ReadComment() argument 467 ReadLineComment(Token &token) ReadLineComment() argument 485 ReadBlockComment(Token &token) ReadBlockComment() argument 506 ReadSymbolToken(Token &token) ReadSymbolToken() argument [all...] |
H A D | lexer.h | 17 #include "lexer/token.h"
62 void ReadToken(Token &token, bool skipComment = true);
64 void InitCurToken(Token &token);
66 void ReadId(Token &token);
68 void ReadNum(Token &token);
70 void ReadBinaryNum(Token &token);
72 void ReadOctNum(Token &token);
74 void ReadHexNum(Token &token);
76 void ReadDecNum(Token &token);
78 void ReadNumSuffix(Token &token);
[all...] |
H A D | token.cpp | 9 #include "lexer/token.h"
28 std::string LocInfo(const Token &token)
in LocInfo() argument 30 size_t index = token.location.filePath.rfind(SEPARATOR);
in LocInfo() 32 (index == std::string::npos) ? token.location.filePath : token.location.filePath.substr(index + 1);
in LocInfo() 33 return StringHelper::Format("%s:%zu:%zu", fileName.c_str(), token.location.row, token.location.col);
in LocInfo()
|
/drivers/peripheral/user_auth/test/unittest/idm_test/ |
H A D | enroll_specification_check_test.cpp | 73 UserAuthTokenHal token = {}; in HWTEST_F() local 74 token.tokenDataPlain.authType = FACE_AUTH; in HWTEST_F() 75 EXPECT_EQ(CheckIdmOperationToken(0, &token), RESULT_BAD_MATCH); in HWTEST_F() 77 token.tokenDataPlain.time = GetSystemTime(); in HWTEST_F() 80 GENERATE_TOKEN(data, token, tokenKey); in HWTEST_F() 81 EXPECT_EQ(CheckIdmOperationToken(0, &token), RESULT_VERIFY_TOKEN_FAIL); in HWTEST_F() 82 token.tokenDataPlain.authType = PIN_AUTH; in HWTEST_F() 83 token.tokenDataPlain.authMode = SCHEDULE_MODE_AUTH; in HWTEST_F() 84 token.tokenDataPlain.tokenType = TOKEN_TYPE_LOCAL_AUTH; in HWTEST_F() 85 GENERATE_TOKEN(data, token, tokenKe in HWTEST_F() 109 UserAuthTokenHal token = {}; HWTEST_F() local [all...] |
/drivers/hdf_core/framework/tools/hc-gen/src/ |
H A D | lexer.cpp | 51 bool Lexer::SetTokenCharacter(char c, Token &token) in SetTokenCharacter() argument 64 token.type = c; in SetTokenCharacter() 65 token.lineNo = lineno_; in SetTokenCharacter() 68 return LexFromString(token); in SetTokenCharacter() 71 return LexFromNumber(token); in SetTokenCharacter() 73 token.type = EOF; in SetTokenCharacter() 82 bool Lexer::Lex(Token &token) in Lex() argument 85 InitToken(token); in Lex() 88 token.type = EOF; in Lex() 92 return LexInclude(token); in Lex() 247 LexFromString(Token &token) LexFromString() argument 297 LexFromNumber(Token &token) LexFromNumber() argument 343 LexFromLiteral(Token &token) LexFromLiteral() argument 394 LexInclude(Token &token) LexInclude() argument [all...] |
H A D | token.cpp | 12 #include "token.h" 46 std::ostream &OHOS::Hardware::operator<<(std::ostream &stream, const OHOS::Hardware::Token &token) in operator <<() argument 48 stream << "Token: type: " << std::setw(WIDTH_EIGHT) << ::std::left << TokenType2String(token.type); in operator <<() 50 token.type != NUMBER ? stream << std::setw(WIDTH_TWENTY) << token.strval in operator <<() 52 std::hex << token.numval; in operator <<() 53 stream << " lineno:" << token.lineNo; in operator <<() 68 bool Token::operator==(const Token &token) const 70 return token.type == type && token [all...] |
H A D | lexer.h | 17 #include "token.h" 29 bool Lex(Token &token); 31 bool SetTokenCharacter(char c, Token &token); 44 void InitToken(Token &token) const; 60 bool LexInclude(Token &token); 62 bool LexFromString(Token &token); 64 bool LexFromNumber(Token &token); 68 void LexFromLiteral(Token &token);
|
H A D | token.h | 39 bool operator==(const Token &token) const; 40 bool operator!=(const Token &token) const; 43 friend std::ostream &operator<<(std::ostream &stream, const Token &token); 46 std::ostream &operator<<(std::ostream &stream, const Token &token);
|
/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/hcs/ |
H A D | lexer.js | 92 lexInclude(token) { 94 this.lexFromLiteral(token); 95 if (token.strval !== 'include') { 99 token.type = TokenType.INCLUDE; 120 lex(token) { 122 this.initToken(token); 125 token.type = TokenType.EOF; 129 return this.lexInclude(token); 132 this.lexFromLiteral(token); 137 return this.lexFromNumber(token); [all...] |
/drivers/hdf_core/framework/tools/hdi-gen/preprocessor/ |
H A D | preprocessor.cpp | 150 Token token = lexer.PeekToken();
in ParsePackage() local 151 if (token.kind != TokenType::PACKAGE) {
in ParsePackage() 152 Logger::E(TAG, "%s: expected 'package' before '%s' token", LocInfo(token).c_str(), token.value.c_str());
in ParsePackage() 157 token = lexer.PeekToken();
in ParsePackage() 158 if (token.kind != TokenType::ID) {
in ParsePackage() 159 Logger::E(TAG, "%s: expected package name before '%s' token", LocInfo(token).c_str(), token in ParsePackage() 182 Token token = lexer.PeekToken(); ParseImports() local [all...] |
/drivers/hdf_core/framework/core/host/src/ |
H A D | hdf_device_token.c | 20 struct HdfDeviceToken *token = in HdfDeviceTokenCreate() local 22 if (token != NULL) { in HdfDeviceTokenCreate() 23 HdfDeviceTokenConstruct(token); in HdfDeviceTokenCreate() 25 return (struct HdfObject *)token; in HdfDeviceTokenCreate() 43 void HdfDeviceTokenFreeInstance(struct IHdfDeviceToken *token) in HdfDeviceTokenFreeInstance() argument 45 if (token != NULL) { in HdfDeviceTokenFreeInstance() 46 HdfObjectManagerFreeObject(&token->object); in HdfDeviceTokenFreeInstance()
|
H A D | hdf_device_node.c | 122 ret = DevmgrServiceClntAttachDevice(devNode->token); in HdfDeviceLaunchNode() 225 devNode->token = HdfDeviceTokenNewInstance(); in HdfDeviceNodeConstruct() 243 HdfDeviceTokenFreeInstance(devNode->token); in HdfDeviceNodeDestruct() 244 devNode->token = NULL; in HdfDeviceNodeDestruct() 275 devNode->token->devid = deviceInfo->deviceId; in HdfDeviceNodeNewInstance() 277 devNode->token->servName = HdfStringCopy(deviceInfo->svcName); in HdfDeviceNodeNewInstance() 278 devNode->token->deviceName = HdfStringCopy(deviceInfo->deviceName); in HdfDeviceNodeNewInstance()
|
H A D | power_state_token.c | 92 static void PowerStateTokenAcquireWakeLock(struct IPowerStateToken *token) in PowerStateTokenAcquireWakeLock() argument 95 struct PowerStateToken *stateToken = (struct PowerStateToken *)token; in PowerStateTokenAcquireWakeLock() 105 static void PowerStateTokenReleaseWakeLock(struct IPowerStateToken *token) in PowerStateTokenReleaseWakeLock() argument 108 struct PowerStateToken *stateToken = (struct PowerStateToken *)token; in PowerStateTokenReleaseWakeLock()
|
/drivers/peripheral/user_auth/test/unittest/user_auth_test/ |
H A D | user_sign_centre_test.cpp | 65 UserAuthTokenHal token = {}; in HWTEST_F() local 66 token.tokenDataPlain.time = UINT64_MAX; in HWTEST_F() 67 EXPECT_FALSE(IsTimeValid(&token)); in HWTEST_F() 68 token.tokenDataPlain.time = 0; in HWTEST_F() 69 IsTimeValid(&token); in HWTEST_F() 70 token.tokenDataPlain.time = GetSystemTime(); in HWTEST_F() 71 EXPECT_TRUE(IsTimeValid(&token)); in HWTEST_F() 76 UserAuthTokenHal token = {}; in HWTEST_F() local 78 EXPECT_EQ(UserAuthTokenHmac(&token, &userAuthTokenKey), RESULT_SUCCESS); in HWTEST_F() 92 UserAuthTokenHal token in HWTEST_F() local 158 UserAuthTokenHal token = {}; HWTEST_F() local [all...] |
H A D | identify_funcs_test.cpp | 59 UserAuthTokenHal token = {}; in HWTEST_F() local 66 EXPECT_EQ(DoUpdateIdentify(contextId, scheduleResult, &userId, &token, &result), RESULT_GENERAL_ERROR); in HWTEST_F()
|
/drivers/external_device_manager/services/native/driver_extension/src/ |
H A D | driver_extension.cpp | 58 const sptr<IRemoteObject> &token) in Init() 60 ExtensionBase<DriverExtensionContext>::Init(record, application, handler, token); in Init() 68 const sptr<IRemoteObject> &token) in CreateAndInitContext() 71 ExtensionBase<DriverExtensionContext>::CreateAndInitContext(record, application, handler, token); in CreateAndInitContext() 55 Init(const std::shared_ptr<AbilityLocalRecord> &record, const std::shared_ptr<OHOSApplication> &application, std::shared_ptr<AbilityHandler> &handler, const sptr<IRemoteObject> &token) Init() argument 64 CreateAndInitContext( const std::shared_ptr<AbilityLocalRecord> &record, const std::shared_ptr<OHOSApplication> &application, std::shared_ptr<AbilityHandler> &handler, const sptr<IRemoteObject> &token) CreateAndInitContext() argument
|
/drivers/hdf_core/adapter/uhdf2/host/src/ |
H A D | devmgr_service_proxy.c | 67 int DevmgrServiceProxyAttachDevice(struct IDevmgrService *inst, struct IHdfDeviceToken *token) in DevmgrServiceProxyAttachDevice() argument 73 if (serviceProxy == NULL || serviceProxy->remote == NULL || data == NULL || reply == NULL || token == NULL) { in DevmgrServiceProxyAttachDevice() 78 const char *srvName = (token->servName == NULL) ? "" : token->servName; in DevmgrServiceProxyAttachDevice() 79 const char *deviceName = (token->deviceName == NULL) ? "" : token->deviceName; in DevmgrServiceProxyAttachDevice() 80 if (!HdfRemoteServiceWriteInterfaceToken(remoteService, data) || !HdfSbufWriteInt32(data, token->devid) || in DevmgrServiceProxyAttachDevice()
|
/drivers/peripheral/user_auth/hdi_service/user_auth/src/ |
H A D | identify_funcs.c | 52 UserAuthTokenHal *token, int32_t *result)
in DoUpdateIdentify() 54 if (!IsBufferValid(scheduleResult) || token == NULL || userId == NULL || result == NULL) {
in DoUpdateIdentify() 84 ret = GetAuthTokenDataAndSign(identifyContext, credentialId, SCHEDULE_MODE_IDENTIFY, token);
in DoUpdateIdentify() 86 LOG_ERROR("get token failed");
in DoUpdateIdentify() 51 DoUpdateIdentify(uint64_t contextId, const Buffer *scheduleResult, int32_t *userId, UserAuthTokenHal *token, int32_t *result) DoUpdateIdentify() argument
|
/drivers/external_device_manager/services/native/driver_extension/include/ |
H A D | driver_extension.h | 42 * @param token the remote token. 49 const sptr<IRemoteObject> &token) override; 57 * @param token the remote token. 62 const sptr<IRemoteObject> &token) override;
|
/drivers/peripheral/user_auth/hdi_service/idm/inc/ |
H A D | user_idm_funcs.h | 28 uint8_t token[AUTH_TOKEN_LEN]; member 36 uint8_t token[AUTH_TOKEN_LEN]; member
|
/drivers/hdf_core/framework/core/host/include/ |
H A D | hdf_device_token.h | 24 void HdfDeviceTokenFreeInstance(struct IHdfDeviceToken *token);
|
/drivers/hdf_core/framework/tools/hdi-gen/ |
H A D | build_hdi_files_info.py | 366 token = lex.peek_token() 369 token.info(), token.value)) 371 CodeGen.get_package_path(token.value) + ".idl") 404 lex.get_token() # package token 405 token = lex.peek_token() 406 if token.token_type != TokenType.ID: 408 token.info(), token.value)) 409 token 425 lex.get_token() # import token global() namespace [all...] |
/drivers/peripheral/user_auth/hdi_service/service/ |
H A D | user_auth_interface_service.cpp | 616 infoOut.token.resize(sizeof(UserAuthTokenHal));
in CopyAuthResult() 617 if (memcpy_s(infoOut.token.data(), infoOut.token.size(), &authTokenIn, sizeof(UserAuthTokenHal)) != EOK) {
in CopyAuthResult() 619 infoOut.token.clear();
in CopyAuthResult() 628 infoOut.token.clear();
in CopyAuthResult() 640 infoOut.token.clear();
in CopyAuthResult() 766 UserAuthTokenHal token = {};
in UpdateIdentificationResult() local 767 int32_t ret = DoUpdateIdentify(contextId, scheduleResultBuffer, &info.userId, &token, &info.result);
in UpdateIdentificationResult() 774 info.token.resize(sizeof(UserAuthTokenHal));
in UpdateIdentificationResult() 775 if (memcpy_s(info.token in UpdateIdentificationResult() [all...] |