Home
last modified time | relevance | path

Searched refs:flag (Results 1 - 25 of 106) sorted by relevance

12345

/developtools/profiler/host/smartperf/client/client_command/test/unittest/
H A Dsp_daemon_test.cpp66 bool flag = false; in HWTEST_F() local
71 flag = true; in HWTEST_F()
75 EXPECT_EQ(flag, true); in HWTEST_F()
94 bool flag = false; in HWTEST_F() local
99 flag = true; in HWTEST_F()
103 EXPECT_EQ(flag, true); in HWTEST_F()
125 bool flag = false; in HWTEST_F() local
130 flag = true; in HWTEST_F()
134 EXPECT_EQ(flag, true); in HWTEST_F()
146 bool flag in HWTEST_F() local
168 bool flag = false; HWTEST_F() local
200 bool flag = false; HWTEST_F() local
231 bool flag = false; HWTEST_F() local
252 bool flag = false; HWTEST_F() local
273 bool flag = false; HWTEST_F() local
294 bool flag = false; HWTEST_F() local
315 bool flag = false; HWTEST_F() local
336 bool flag = false; HWTEST_F() local
[all...]
H A Dsp_task_test.cpp52 bool flag = spTask.CheckTcpParam(str, errorInfo); in HWTEST_F() local
53 EXPECT_TRUE(flag); in HWTEST_F()
61 bool flag = spTask.CheckTcpParam(str, errorInfo); in HWTEST_F() local
62 EXPECT_FALSE(flag); in HWTEST_F()
70 bool flag = spTask.CheckTcpParam(str, errorInfo); in HWTEST_F() local
71 EXPECT_FALSE(flag); in HWTEST_F()
/developtools/hapsigner/hapsigntool_cpp_test/unittest/codeSigning/sign/
H A Dverify_code_signature_test.cpp76 bool flag = VerifyCodeSignature::AreVectorsEqual(vec1, vec2); in HWTEST_F() local
78 EXPECT_EQ(flag, true); in HWTEST_F()
93 bool flag = VerifyCodeSignature::AreVectorsEqual(vec1, vec2); in HWTEST_F() local
95 EXPECT_EQ(flag, false); in HWTEST_F()
116 bool flag = VerifyCodeSignature::VerifyCodeSign(file, pairResult, csb); in HWTEST_F() local
118 EXPECT_EQ(flag, false); in HWTEST_F()
136 bool flag = VerifyCodeSignature::VerifyHap(file, offset, length, fileFormat, profileContent); in HWTEST_F() local
138 EXPECT_EQ(flag, false); in HWTEST_F()
156 bool flag = VerifyCodeSignature::VerifyHap(file, offset, length, fileFormat, profileContent); in HWTEST_F() local
158 EXPECT_EQ(flag, tru in HWTEST_F()
176 bool flag = VerifyCodeSignature::VerifyHap(file, offset, length, fileFormat, profileContent); HWTEST_F() local
196 bool flag = VerifyCodeSignature::VerifyHap(file, offset, length, fileFormat, profileContent); HWTEST_F() local
216 bool flag = VerifyCodeSignature::VerifyHap(file, offset, length, fileFormat, profileContent); HWTEST_F() local
236 bool flag = VerifyCodeSignature::VerifyHap(file, offset, length, fileFormat, profileContent); HWTEST_F() local
256 bool flag = VerifyCodeSignature::VerifyHap(file, offset, length, fileFormat, profileContent); HWTEST_F() local
276 bool flag = VerifyCodeSignature::VerifyHap(file, offset, length, fileFormat, profileContent); HWTEST_F() local
297 bool flag = VerifyCodeSignature::VerifySingleFile(input, length, signature, merkleTreeOffset, inMerkleTreeBytes); HWTEST_F() local
317 bool flag = VerifyCodeSignature::VerifyElf(file, offset, length, fileFormat, profileContent); HWTEST_F() local
337 bool flag = VerifyCodeSignature::VerifyElf(file, offset, length, fileFormat, profileContent); HWTEST_F() local
357 bool flag = VerifyCodeSignature::VerifyElf(file, offset, length, fileFormat, profileContent); HWTEST_F() local
377 bool flag = VerifyCodeSignature::VerifyElf(file, offset, length, fileFormat, profileContent); HWTEST_F() local
397 bool flag = VerifyCodeSignature::VerifyElf(file, offset, length, fileFormat, profileContent); HWTEST_F() local
417 bool flag = VerifyCodeSignature::VerifyElf(file, offset, length, fileFormat, profileContent); HWTEST_F() local
437 bool flag = VerifyCodeSignature::VerifyElf(file, offset, length, fileFormat, profileContent); HWTEST_F() local
458 bool flag = VerifyCodeSignature::VerifyNativeLib(csb, file, zFile, pairResult); HWTEST_F() local
479 bool flag = VerifyCodeSignature::VerifyHap(file, offset, length, fileFormat, profileContent); HWTEST_F() local
[all...]
/developtools/hapsigner/hapsigntool_cpp_test/unittest/elfVerify/
H A Dsignature_block_types_test.cpp44 bool flag = type == SignatureBlockTypes::PROFILE_NOSIGNED_BLOCK; in HWTEST_F() local
46 EXPECT_EQ(flag, true); in HWTEST_F()
60 bool flag = type == SignatureBlockTypes::PROFILE_SIGNED_BLOCK; in HWTEST_F() local
62 EXPECT_EQ(flag, true); in HWTEST_F()
76 bool flag = type == SignatureBlockTypes::PROFILE_NOSIGNED_BLOCK; in HWTEST_F() local
78 EXPECT_EQ(flag, true); in HWTEST_F()
92 bool flag = type == SignatureBlockTypes::PROFILE_NOSIGNED_BLOCK; in HWTEST_F() local
94 EXPECT_EQ(flag, true); in HWTEST_F()
H A Dverify_elf_test.cpp75 bool flag = verifyElf.Verify(&options); in HWTEST_F() local
77 EXPECT_EQ(flag, true); in HWTEST_F()
91 bool flag = verifyElf.Verify(nullptr); in HWTEST_F() local
93 EXPECT_EQ(flag, false); in HWTEST_F()
111 bool flag = verifyElf.Verify(&options); in HWTEST_F() local
113 EXPECT_EQ(flag, false); in HWTEST_F()
131 bool flag = verifyElf.Verify(&options); in HWTEST_F() local
133 EXPECT_EQ(flag, false); in HWTEST_F()
151 bool flag = verifyElf.Verify(&options); in HWTEST_F() local
153 EXPECT_EQ(flag, fals in HWTEST_F()
172 bool flag = verifyElf.Verify(&options); HWTEST_F() local
193 bool flag = verifyElf.Verify(&options); HWTEST_F() local
214 bool flag = verifyElf.Verify(&options); HWTEST_F() local
235 bool flag = verifyElf.Verify(&options); HWTEST_F() local
256 bool flag = verifyElf.Verify(&options); HWTEST_F() local
277 bool flag = verifyElf.Verify(&options); HWTEST_F() local
298 bool flag = verifyElf.Verify(&options); HWTEST_F() local
319 bool flag = verifyElf.Verify(&options); HWTEST_F() local
339 bool flag = VerifyElf::CheckParams(&options); HWTEST_F() local
356 bool flag = VerifyElf::CheckSignFile(file); HWTEST_F() local
374 bool flag = VerifyElf::GetSignBlockData(bytes, blockData, "elf"); HWTEST_F() local
392 bool flag = VerifyElf::GetSignBlockInfo(file, signBlockInfo, "elf"); HWTEST_F() local
413 bool flag = VerifyElf::GetFileDigest(fileBytes, signatrue, signBlockInfo); HWTEST_F() local
431 bool flag = VerifyElf::GetRawContent(contentVec, rawContent); HWTEST_F() local
455 bool flag = VerifyElf::VerifyP7b(signBlockMap, &options, pkcs7Context, profileVec, profileJson); HWTEST_F() local
485 bool flag = signProvider.SignElf(&options); HWTEST_F() local
514 bool flag = signProvider.SignElf(&options); HWTEST_F() local
544 bool flag = signProvider.SignElf(&options); HWTEST_F() local
574 bool flag = signProvider.SignElf(&options); HWTEST_F() local
604 bool flag = signProvider.SignElf(&options); HWTEST_F() local
634 bool flag = signProvider.SignElf(&options); HWTEST_F() local
665 bool flag = signProvider.SignElf(&options); HWTEST_F() local
695 bool flag = signProvider.SignElf(&options); HWTEST_F() local
724 bool flag = signProvider.SignBin(&options); HWTEST_F() local
754 int32_t flag = hapVerifyV2.WriteVerifyOutput(pkcs7Context, profileVec, &options); HWTEST_F() local
784 int32_t flag = hapVerifyV2.WriteVerifyOutput(pkcs7Context, profileVec, &options); HWTEST_F() local
[all...]
H A Dverify_bin_test.cpp86 bool flag = verifyBin.Verify(&options); in HWTEST_F() local
88 EXPECT_EQ(flag, true); in HWTEST_F()
102 bool flag = verifyBin.Verify(nullptr); in HWTEST_F() local
104 EXPECT_EQ(flag, false); in HWTEST_F()
122 bool flag = verifyBin.Verify(&options); in HWTEST_F() local
124 EXPECT_EQ(flag, false); in HWTEST_F()
142 bool flag = verifyBin.Verify(&options); in HWTEST_F() local
144 EXPECT_EQ(flag, false); in HWTEST_F()
162 bool flag = verifyBin.Verify(&options); in HWTEST_F() local
164 EXPECT_EQ(flag, fals in HWTEST_F()
183 bool flag = verifyBin.Verify(&options); HWTEST_F() local
204 bool flag = verifyBin.Verify(&options); HWTEST_F() local
225 bool flag = verifyBin.Verify(&options); HWTEST_F() local
246 bool flag = verifyBin.Verify(&options); HWTEST_F() local
267 bool flag = verifyBin.Verify(&options); HWTEST_F() local
288 bool flag = verifyBin.Verify(&options); HWTEST_F() local
344 bool flag = api->Sign(signerConfig, signParams); HWTEST_F() local
[all...]
/developtools/hapsigner/hapsigntool_cpp_test/unittest/codeSigning/utils/
H A Dcms_utils_test.cpp63 bool flag = CmsUtils::CheckOwnerID(signature, profileOwnerID, profileType); in HWTEST_F() local
65 EXPECT_EQ(flag, false); in HWTEST_F()
84 bool flag = CmsUtils::CheckOwnerID(signature, profileOwnerID, profileType); in HWTEST_F() local
86 EXPECT_EQ(flag, true); in HWTEST_F()
105 bool flag = CmsUtils::CheckOwnerID(signature, profileOwnerID, profileType); in HWTEST_F() local
107 EXPECT_EQ(flag, true); in HWTEST_F()
126 bool flag = CmsUtils::CheckOwnerID(signature, profileOwnerID, profileType); in HWTEST_F() local
128 EXPECT_EQ(flag, false); in HWTEST_F()
146 bool flag = VerifyCodeSignature::VerifyHap(file, offset, length, fileFormat, profileContent); in HWTEST_F() local
148 EXPECT_EQ(flag, fals in HWTEST_F()
181 bool flag = CmsUtils::VerifySignDataWithUnsignedDataDigest(unsignedDataDigest, signedData); HWTEST_F() local
[all...]
/developtools/hapsigner/hapsigntool_cpp/utils/src/
H A Dfile_utils.cpp69 bool flag = suffix.empty() || (StringUtils::ContainsCase(types, suffix) == false); in ValidFileType() local
70 if (flag) { in ValidFileType()
80 bool flag = (outFile.rdstate() != 0); in Write() local
81 if (flag) { in Write()
112 bool flag = (file.rdstate() != 0); in ReadFile() local
113 if (flag) { in ReadFile()
167 bool flag = (input.gcount() != readLen); in ReadInputByLength() local
168 if (flag) { in ReadInputByLength()
204 bool flag = (0 != input.rdstate()); in AppendWriteFileToFile() local
205 if (flag) { in AppendWriteFileToFile()
240 bool flag = (WriteByteToOutFile(bytes, output) == false); AppendWriteByteToFile() local
298 bool flag = (in.rdstate() != 0); WriteInputToOutPut() local
336 bool flag = (WriteByteToOutFile(bytes, ops) == false); WriteByteToOutFile() local
405 bool flag = std::filesystem::exists(filePath); IsValidFile() local
421 bool flag = std::filesystem::exists(filePath) && std::filesystem::is_regular_file(filePath); GetFileLen() local
431 bool flag = std::filesystem::is_directory(filePath); DelDir() local
[all...]
/developtools/profiler/hiebpf/include/
H A Dcommandline_flags.h69 FlagRegesterer(const std::string& name, const T& flag) in FlagRegesterer() argument
72 std::cout << "CommandLineFlags WARN: flag " << name << " redefined" << std::endl; in FlagRegesterer()
75 metaFlag.addr_ = (void*) &flag; in FlagRegesterer()
247 // flag parsing done in GetNextFlag()
256 static int ParseBoolFlag(const std::string& flag, const std::string& valStr) in ParseBoolFlag() argument
258 bool *val = (bool*) flags_[flag].addr_; in ParseBoolFlag()
264 std::cout << "CommandLineFlags ERROR: argument " << flag in ParseBoolFlag()
274 static int ParseInt8Flag(const std::string& flag, const std::string& valStr) in ParseInt8Flag() argument
279 std::cout << "CommandLineFlags ERROR: argument " << flag in ParseInt8Flag()
284 int8_t* val = (int8_t*) flags_[flag] in ParseInt8Flag()
289 ParseInt16Flag(const std::string& flag, const std::string& valStr) ParseInt16Flag() argument
304 ParseInt32Flag(const std::string& flag, const std::string& valStr) ParseInt32Flag() argument
319 ParseInt64Flag(const std::string& flag, const std::string& valStr) ParseInt64Flag() argument
334 ParseUint8Flag(const std::string& flag, const std::string& valStr) ParseUint8Flag() argument
349 ParseUint16Flag(const std::string& flag, const std::string& valStr) ParseUint16Flag() argument
364 ParseUint32Flag(const std::string& flag, const std::string& valStr) ParseUint32Flag() argument
379 ParseUint64Flag(const std::string& flag, const std::string& valStr) ParseUint64Flag() argument
394 ParseDoubleFlag(const std::string& flag, const std::string& valStr) ParseDoubleFlag() argument
409 ParseStringFlag(const std::string& flag, const std::string& valStr) ParseStringFlag() argument
416 ParseBoolArrayFlag(const std::string& flag, const std::string& valStr) ParseBoolArrayFlag() argument
443 ParseInt8ArrayFlag(const std::string& flag, const std::string& valStr) ParseInt8ArrayFlag() argument
469 ParseInt16ArrayFlag(const std::string& flag, const std::string& valStr) ParseInt16ArrayFlag() argument
495 ParseInt32ArrayFlag(const std::string& flag, const std::string& valStr) ParseInt32ArrayFlag() argument
521 ParseInt64ArrayFlag(const std::string& flag, const std::string& valStr) ParseInt64ArrayFlag() argument
547 ParseUint8ArrayFlag(const std::string& flag, const std::string& valStr) ParseUint8ArrayFlag() argument
573 ParseUint16ArrayFlag(const std::string& flag, const std::string& valStr) ParseUint16ArrayFlag() argument
599 ParseUint32ArrayFlag(const std::string& flag, const std::string& valStr) ParseUint32ArrayFlag() argument
625 ParseUint64ArrayFlag(const std::string& flag, const std::string& valStr) ParseUint64ArrayFlag() argument
651 ParseDoubleArrayFlag(const std::string& flag, const std::string& valStr) ParseDoubleArrayFlag() argument
677 ParseStringArrayFlag(const std::string& flag, const std::string& valStr) ParseStringArrayFlag() argument
[all...]
/developtools/hapsigner/hapsigntool_cpp/hap/provider/src/
H A Dlocal_sign_provider.cpp52 bool flag = false; in CheckPublicKeyPath() local
54 flag = !FileUtils::IsValidFile(publicCertsFile); in CheckPublicKeyPath()
55 if (flag) { in CheckPublicKeyPath()
60 flag = !publicKeyFile.is_open(); in CheckPublicKeyPath()
61 if (flag) { in CheckPublicKeyPath()
/developtools/smartperf_host/trace_streamer/build/
H A Dbuild_stanalone_plugins.sh28 local flag='false'
34 flag="true"
37 check_plugin_true $flag $plugin
38 flag="false"
/developtools/hdc/src/daemon/
H A Ddaemon_forward.cpp69 uint8_t flag[1 + len + len]; in SetupJdwpPoint() local
70 flag[0] = SP_JDWP_NEWFD; in SetupJdwpPoint()
71 if (memcpy_s(flag + 1, sizeof(flag) - 1, &pid, len) || in SetupJdwpPoint()
72 memcpy_s(flag + 1 + len, sizeof(flag) - len - 1, &fds[1], len)) { in SetupJdwpPoint()
75 if (ThreadCtrlCommunicate(flag, sizeof(flag)) > 0) { in SetupJdwpPoint()
/developtools/ace_js2bundle/ace-loader/test/lite/commandTest/
H A Dcompile.js24 let flag = false;
27 flag = fs.existsSync(
30 resolve(flag);
/developtools/hapsigner/hapsigntool_cpp_test/unittest/codeSigning/datastructure/
H A Delf_sign_block_test.cpp51 bool flag = elfSignBlock.FromByteArray(arr, block); in HWTEST_F() local
53 EXPECT_EQ(flag, false); in HWTEST_F()
74 bool flag = elfSignBlock.FromByteArray(arr, block); in HWTEST_F() local
76 EXPECT_EQ(flag, false); in HWTEST_F()
/developtools/syscap_codec/src/
H A Dmain.c47 void SetBitMap(char *const *argv, int32_t flag, uint16_t *bitMap, char **outputpath);
87 int32_t flag = getopt_long(argc, argv, "hvRPC:edsi:o:", g_longOptions, &optIndex); in main() local
88 if (flag == -1) { in main()
91 if (flag == 'C') { in main()
97 SetBitMap(argv, flag, &bitMap, &outputpath); in main()
146 void SetBitMap(char *const *argv, int32_t flag, uint16_t *bitMap, char **outputpath) in SetBitMap() argument
148 switch (flag) { in SetBitMap()
/developtools/hapsigner/hapsigntool_cpp/codesigning/datastructure/src/
H A Dsign_info.cpp230 bool flag = bf->GetInt32(inSaltSize); in FromByteArray() local
233 if (!flag || !ret || inSaltSize < 0 || inSigSize < 0) { in FromByteArray()
239 flag = bf->GetInt32(inFlags); in FromByteArray()
240 if (!flag || (inFlags != 0 && inFlags != SignInfo::FLAG_MERKLE_TREE_INCLUDED)) { in FromByteArray()
245 flag = bf->GetInt64(inDataSize); in FromByteArray()
246 if (!flag || (inDataSize < 0)) { in FromByteArray()
253 flag = bf->GetInt32(inExtensionNum); in FromByteArray()
254 if (!flag || inExtensionNum < 0 || inExtensionNum > SignInfo::MAX_EXTENSION_NUM) { in FromByteArray()
259 flag = bf->GetInt32(inExtensionOffset); in FromByteArray()
260 if (!flag || inExtensionOffse in FromByteArray()
[all...]
H A Dmerkle_tree_extension.cpp78 bool flag = bf->GetInt64(inMerkleTreeSize); in FromByteArray() local
79 if (!flag || (inMerkleTreeSize % PAGE_SIZE_4K != 0)) { in FromByteArray()
85 flag = bf->GetInt64(inMerkleTreeOffset); in FromByteArray()
86 if (!flag || (inMerkleTreeOffset % PAGE_SIZE_4K != 0)) { in FromByteArray()
/developtools/global_resource_tool/src/
H A Did_worker.cpp160 uint64_t flag = 1; in GetMaxId() local
161 while ((flag & startId) == 0) { in GetMaxId()
162 flag = flag << 1; in GetMaxId()
164 if (startId + flag < 1) { in GetMaxId()
167 return startId + flag - 1; in GetMaxId()
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/zip/
H A DZipEntryHeader.java62 private short flag; field in ZipEntryHeader
190 bf.putShort(flag); in toBytes()
225 return flag; in getFlag()
228 public void setFlag(short flag) { in setFlag() argument
229 this.flag = flag; in setFlag()
H A DCentralDirectory.java30 * general purpose bit flag 2 bytes
74 private short flag; field in CentralDirectory
223 UnsignedDecimalUtil.setUnsignedShort(bf, flag); in toBytes()
274 return flag; in getFlag()
277 public void setFlag(short flag) { in setFlag() argument
278 this.flag = flag; in setFlag()
H A DZipEntry.java135 private short flag = 2048; field in ZipEntry.Builder
156 public Builder setFlag(short flag) { in setFlag() argument
157 this.flag = flag; in setFlag()
233 cd.setFlag(flag); in addCenterDirectory()
263 zipEntryHeader.setFlag(flag); in addZipEntryHeader()
/developtools/smartperf_host/trace_streamer/src/filter/perf_filter/
H A Dperf_data_filter.cpp56 uint64_t flag = 1; in Finish() local
57 flag = ~(flag << FLAG_SHIFT_LEFT); in Finish()
70 base::number(ips[i] & flag, base::INTEGER_RADIX_TYPE_HEX)); in Finish()
79 "+0x" + base::number(traceDataCache_->GetPerfCallChainData()->VaddrInFiles()[i] & flag)); in Finish()
/developtools/profiler/hidebug/test/unittest/native/
H A Dhidebug_test.cpp243 HiDebug_TraceFlag flag = HIDEBUG_TRACE_FLAG_MAIN_THREAD; in HWTEST_F() local
247 auto captureResult = OH_HiDebug_StartAppTraceCapture(flag, tags, limitSize, fileName, fileLength); in HWTEST_F()
267 HiDebug_TraceFlag flag = HIDEBUG_TRACE_FLAG_MAIN_THREAD; in HWTEST_F() local
271 auto captureResult = OH_HiDebug_StartAppTraceCapture(flag, tags, limitSize, fileName, fileLength); in HWTEST_F()
274 auto captureResult2 = OH_HiDebug_StartAppTraceCapture(flag, tags, limitSize, fileName, fileLength); in HWTEST_F()
293 HiDebug_TraceFlag flag = HIDEBUG_TRACE_FLAG_MAIN_THREAD; in HWTEST_F() local
297 auto captureResult = OH_HiDebug_StartAppTraceCapture(flag, tags, limitSize, fileName, fileLength); in HWTEST_F()
/developtools/hdc/hdc_rust/src/serializer/
H A Dserialize.rs329 flag: self.flag, in serialize()
349 self.flag = pack.flag; in parse()
362 flag: self.flag, in serialize()
381 self.flag = pack.flag; in parse()
393 flag: self.flag, in serialize()
[all...]
H A Dnative_struct.rs38 pub flag: [u8; 2],
48 pub flag: [u8; 2],
60 pub flag: [u8; 2],

Completed in 12 milliseconds

12345