Home
last modified time | relevance | path

Searched refs:value (Results 1 – 25 of 54) sorted by relevance

123

/ide/tools/previewer/automock/mock-generate/src/generate/
DgenerateModuleDeclaration.ts52 defaultExportClass.forEach(value => {
53 …if (value.exportModifiers.includes(SyntaxKind.DefaultKeyword) && value.exportModifiers.includes(Sy…
63 if (value.staticMethods.length > 0) {
65 value.staticMethods.forEach(val => {
72 outBody += generateClassDeclaration('', value, false, '', filename, sourceFile, false);
79 moduleEntity.typeAliasDeclarations.forEach(value => {
80 outBody += generateTypeAliasDeclaration(value, true) + '\n';
85 moduleEntity.moduleImportEquaqls.forEach(value => {
86 outBody += generateImportEqual(value) + '\n';
91 moduleEntity.classDeclarations.forEach(value => {
[all …]
DgenerateInterfaceDeclaration.ts42 interfaceEntity.interfacePropertySignatures.forEach(value => {
43 … interfaceBody += generatePropertySignatureDeclaration(interfaceName, value, sourceFile) + '\n';
44 interfaceElementSet.add(value.propertyName);
49 interfaceEntity.interfaceMethodSignature.forEach(value => {
50 interfaceBody += generateCommonMethodSignature(interfaceName, value, sourceFile) + '\n';
51 interfaceElementSet.add(value[0].functionName);
56 interfaceEntity.indexSignature.forEach(value => {
57 interfaceBody += generateIndexSignature(value) + '\n';
58 interfaceElementSet.add(value.indexSignatureKey);
63 interfaceEntity.heritageClauses.forEach(value => {
[all …]
DgenerateIndex.ts40 indexArray.forEach(value => {
41 let functionName = value.mockFunctionName;
43 if (filterSet.has(value.mockFunctionName)) {
45 const tmpArr = value.fileName.split('_');
54 …indexBody += `import { ${value.mockFunctionName} as ${functionName} } from './${value.fileName}';\…
56 indexBody += `import { ${functionName} } from './${value.fileName}';\n`;
59 if (value.fileName.startsWith('ohos_')) {
60 …caseBody += `case '${value.fileName.split('ohos_')[1].replace(/_/g, '.')}':\n\treturn ${functionNa…
62 caseBody += `case '${value.fileName}':\n\treturn ${functionName}();\n`;
DgenerateClassDeclaration.ts52 classEntity.heritageClauses.forEach(value => {
53 if (value.clauseToken === 'extends') {
55 classBody += `${value.clauseToken} `;
56 value.types.forEach((val, index) => {
57 if (index !== value.types.length - 1) {
80 classEntity.classProperty.forEach(value => {
81 classBody += generatePropertyDeclaration(className, value, sourceFile) + '\n';
86 classEntity.classMethod.forEach(value => {
87 classBody += generateCommonMethod(className, value, sourceFile);
95 classEntity.staticMethods.forEach(value => {
[all …]
DgenerateMockJsFile.ts44 sourceFileEntity.importDeclarations.forEach(value => {
45 mockApi += generateImportDeclaration(value, fileName, heritageClausesArray);
50 sourceFileEntity.moduleDeclarations.forEach(value => {
51 mockApi += generateModuleDeclaration('', value, sourceFile, fileName) + '\n';
56 sourceFileEntity.classDeclarations.forEach(value => {
57 …if (!fileName.startsWith('system_') && !value.exportModifiers.includes(SyntaxKind.DefaultKeyword))…
58 … mockApi += generateClassDeclaration('', value, false, '', fileName, sourceFile, false) + '\n';
59 mockFunctionElements.push({ elementName: value.className, type: 'class' });
65 sourceFileEntity.interfaceDeclarations.forEach(value => {
66 …mockApi += generateInterfaceDeclaration('', value, sourceFile, true, sourceFileEntity.interfaceDec…
[all …]
DgenerateSystemIndex.ts35 systemIndexArray.forEach(value => {
36 if (!systemNoMockArray.includes(value.filename.replace('_', '.'))) {
37 systemIndex += `import { ${value.mockFunctionName} } from './${value.filename}'\n`;
38 exportFunction += `${value.mockFunctionName}();\n`;
DgenerateCommonUtil.ts177 export function getBaseReturnValue(value: string): string | number | boolean {
178 if (value === 'string') {
180 } else if (value === 'number') {
182 } else if (value === 'boolean') {
184 } else if (value === 'Object' || value === 'object') {
186 } else if (checkIsGenericSymbol(value)) {
188 } else if (value === 'WebGLActiveInfo') {
191 return value;
207 importArray.forEach(value => {
208 if (typeName.includes('.') && typeName.split('.')[0] === value.importElements) {
[all …]
DgenerateCommonFunction.ts52 functionArray.forEach(value => {
53 returnSet.add(value.returnType.returnKindName);
54 value.args.forEach(arg => {
65 returnSet.forEach(value => {
66 if (value.startsWith('Promise')) {
DgenerateCommonMethodSignature.ts49 methodSignatureArray.forEach(value => {
50 returnSet.add(value.returnType.returnKindName);
51 value.args.forEach(arg => {
62 returnSet.forEach(value => {
63 if (value.startsWith('Promise')) {
DgenerateCommonMethod.ts61 methodArray.forEach(value => {
62 returnSet.add(value.returnType.returnKindName);
63 value.args.forEach(arg => {
74 returnSet.forEach(value => {
75 if (value.startsWith('Promise')) {
/ide/tools/previewer/jsapp/lite/
DTimerTaskHandler.cpp63 void TimerTaskHandler::CheckBarometerChanged(uint32_t value) in CheckBarometerChanged() argument
65 ILOG("CheckBarometerChanged value: %d", value); in CheckBarometerChanged()
67 value); in CheckBarometerChanged()
70 void TimerTaskHandler::CheckStepCountChanged(uint32_t value) in CheckStepCountChanged() argument
72 ILOG("CheckStepCountChanged value: %d", value); in CheckStepCountChanged()
74 value); in CheckStepCountChanged()
77 void TimerTaskHandler::CheckHeartRateChanged(uint8_t value) in CheckHeartRateChanged() argument
79 ILOG("CheckHeartRateChanged value: %d", value); in CheckHeartRateChanged()
81 value); in CheckHeartRateChanged()
84 void TimerTaskHandler::CheckOnBodyStateChanged(bool value) in CheckOnBodyStateChanged() argument
[all …]
DTimerTaskHandler.h24 void CheckBarometerChanged(uint32_t value);
25 void CheckStepCountChanged(uint32_t value);
26 void CheckHeartRateChanged(uint8_t value);
27 void CheckOnBodyStateChanged(bool value);
29 void CheckBrightnessValueChanged(uint8_t value);
/ide/tools/previewer/automock/mock-generate/src/declaration-node/
DvariableStatementResolve.ts26 variableStatement.declarationList.declarations.forEach(value => {
32 if (isIdentifier(value.name)) {
33 statementName = value.name.escapedText.toString();
35 statementName = sourceFile.text.substring(value.pos, value.end).trimStart().trimEnd();
37 if (value.initializer !== undefined) {
38 initializer = sourceFile.text.substring(value.initializer.pos, value.initializer.end);
40 if (value.type !== undefined) {
41 typeName = sourceFile.text.substring(value.type.pos, value.type.end);
42 typeKind = value.type.kind;
DinterfaceDeclaration.ts52 interfaceNode.heritageClauses.forEach(value => {
53 heritageClauses.push(getHeritageClauseDeclaration(value, sourceFile));
57 interfaceNode.members.forEach(value => {
58 if (isPropertySignature(value)) {
59 interfacePropertySignatures.push(getPropertySignatureDeclaration(value, sourceFile));
60 } else if (isMethodSignature(value)) {
61 const methodSignature = getMethodSignatureDeclaration(value, sourceFile);
69 } else if (isHeritageClause(value)) {
70 heritageClauses.push(getHeritageClauseDeclaration(value, sourceFile));
71 } else if (isConstructSignatureDeclaration(value)) {
[all …]
DmoduleDeclaration.ts64 moduleBody.statements.forEach(value => {
65 if (isFunctionDeclaration(value)) {
66 const FunctionEntity = getFunctionDeclaration(value, sourceFile);
74 } else if (isTypeAliasDeclaration(value)) {
75 typeAliasDeclarations.push(getTypeAliasDeclaration(value, sourceFile));
76 } else if (isEnumDeclaration(value)) {
77 enumDeclarations.push(getEnumDeclaration(value, sourceFile));
78 } else if (isClassDeclaration(value)) {
79 classDeclarations.push(getClassDeclaration(value, sourceFile));
80 } else if (isInterfaceDeclaration(value)) {
[all …]
DenumDeclaration.ts34 node.members.forEach(value => {
35 const enumValueName = getPropertyName(value.name, sourceFile);
37 if (value.initializer !== undefined) {
38 …enumValue = sourceFile.text.substring(value.initializer.pos, value.initializer.end).trimEnd().trim…
40 const enumKind = value.initializer?.kind === undefined ? -1 : value.initializer?.kind;
DclassDeclaration.ts49 classNode.heritageClauses.forEach(value => {
50 heritageClauses.push(getHeritageClauseDeclaration(value, sourceFile));
54 classNode.members.forEach(value => {
55 if (isMethodDeclaration(value)) {
56 const methodEntity = getMethodDeclaration(value, sourceFile);
68 } else if (isPropertyDeclaration(value)) {
69 classProperty.push(getPropertyDeclaration(value, sourceFile));
70 } else if (isConstructorDeclaration(value)) {
71 classConstructor.push(getConstructorDeclaration(value, sourceFile));
72 } else if (isTypeParameterDeclaration(value)) {
[all …]
DtypeAliasDeclaration.ts36 modifiersNode.forEach(value => {
37 modifiers.push(value.kind);
44 typeAliasTypeElementsNode.types.forEach(value => {
45 const typeName = sourceFile.text.substring(value.pos, value.end).trimStart().trimEnd();
46 const typeKind = value.kind;
53 typeAliasTypeElementsNode.members.forEach(value => {
54 const typeName = sourceFile.text.substring(value.pos, value.end).trimStart().trimEnd();
55 const typeKind = value.kind;
DheritageClauseDeclaration.ts29 HeritageClauseNode.types.forEach(value => {
30 types.push(sourceFile.text.substring(value.pos, value.end).trimStart().trimEnd());
DpropertySignatureDeclaration.ts34 node.modifiers.forEach(value => {
35 modifiers.push(sourceFile.text.substring(value.pos, value.end));
DconstructorDeclaration.ts27 constructorNode.parameters.forEach(value => {
28 const paramElement = value.name;
38 const paramTypeElement = value.type;
/ide/tools/previewer/jsapp/
DJsApp.cpp81 void JsApp::SetJsAppPath(const string& value) in SetJsAppPath() argument
83 jsAppPath = value; in SetJsAppPath()
86 void JsApp::SetScreenDensity(const std::string value) in SetScreenDensity() argument
88 screenDensity = value; in SetScreenDensity()
91 void JsApp::SetConfigChanges(const std::string value) in SetConfigChanges() argument
93 configChanges = value; in SetConfigChanges()
96 void JsApp::SetUrlPath(const string& value) in SetUrlPath() argument
98 urlPath = value; in SetUrlPath()
118 void JsApp::SetIsDebug(bool value) in SetIsDebug() argument
120 isDebug = value; in SetIsDebug()
[all …]
DJsApp.h33 void SetJsAppPath(const std::string& value);
34 void SetUrlPath(const std::string& value);
40 void SetIsDebug(bool value);
41 void SetDebugServerPort(uint16_t value);
47 virtual void SetArgsColorMode(const std::string& value);
48 virtual void SetArgsAceVersion(const std::string& value);
54 virtual void SetScreenDensity(const std::string value);
55 virtual void SetConfigChanges(const std::string value);
/ide/tools/previewer/automock/mock-generate/src/
Dmain.ts37 arr.forEach(value => {
38 const fullPath = path.join(dir, value);
56 arr.forEach(value => {
57 const currPath = path.join(outDir, value);
99 dtsFileList.forEach(value => {
100 collectAllFileName(value);
101 if (value.endsWith('.d.ts')) {
102 const code = fs.readFileSync(value);
108 dtsFileList.forEach(value => {
109 if (value.endsWith('.d.ts')) {
[all …]
/ide/tools/previewer/mock/lite/
DBrightnessModuleImpl.cpp24 int32_t BrightnessImpl::SetValueImpl(uint8_t value) in SetValueImpl() argument
26 if (!SharedData<uint8_t>::SetData(SharedDataType::BRIGHTNESS_VALUE, value)) { in SetValueImpl()
29 ILOG("Set screen brightness value: %d", value); in SetValueImpl()
33 int32_t BrightnessImpl::GetValueImpl(uint8_t& value) in GetValueImpl() argument
35 value = SharedData<uint8_t>::GetData(SharedDataType::BRIGHTNESS_VALUE); in GetValueImpl()
36 ILOG("Get screen brightness value: %d", value); in GetValueImpl()

123