| /ide/tools/previewer/test/mock_lite/ace_engine_lite/ |
| H A D | MockJsAbility.cpp | 43 void *MemoryHeap::operator new(size_t size) in operator new() argument 45 if (size > 1024) { // 1024 is maxSize for test in operator new() 48 return malloc(size); in operator new() 51 void *MemoryHeap::operator new[](size_t size) in operator new[]() argument 53 if (size > 1024) { // 1024 is maxSize for test in operator new[]() 56 return malloc(size); in operator new[]()
|
| /ide/tools/previewer/test/unittest/mock_lite/ |
| H A D | AsyncWorkManagerTest.cpp | 31 EXPECT_EQ(AsyncWorkManager::GetInstance().workList.size(), 1); // 1 element in list in TEST() 34 EXPECT_EQ(AsyncWorkManager::GetInstance().workList.size(), 0); // 0 element in list in TEST() 40 EXPECT_EQ(AsyncWorkManager::GetInstance().workList.size(), 1); // 1 element in list in TEST() 42 EXPECT_EQ(AsyncWorkManager::GetInstance().workList.size(), 0); // 0 element in list in TEST()
|
| H A D | JsAsyncWorkTest.cpp | 30 EXPECT_EQ(AsyncWorkManager::GetInstance().workList.size(), 1); // 1 element in list in TEST() 32 EXPECT_EQ(AsyncWorkManager::GetInstance().workList.size(), 0); // 0 element in list in TEST()
|
| /ide/tools/previewer/util/ |
| H A D | StringHelper.h | 25 static Encode IsUtf8Data(const uint8_t* data, size_t size) in IsUtf8Data() argument 31 for (auto i = 0; i < size; i++) { in IsUtf8Data() 70 static Encode DetectEncode(const uint8_t* data, size_t size) in DetectEncode() argument 74 // Detect the size and the first and second bytes in DetectEncode() 75 if (size > utf16HeadLen && data[0] == 0xFF && data[1] == 0xFE) { in DetectEncode() 77 // Detect the size and the first and second bytes in DetectEncode() 78 } else if (size > utf16HeadLen && data[0] == 0xFE && data[1] == 0xFF) { in DetectEncode() 80 // Detect the size and the first, second, and third bytes in DetectEncode() 81 } else if (size > utf8HeadLen && data[0] == 0xEF && data[1] == 0xBB&& data[2] == 0xBF) { // NOLINT in DetectEncode() 84 return IsUtf8Data(data, size); in DetectEncode() [all...] |
| H A D | CommandParser.cpp | 63 Register("-hs", 1, "JS Heap <size>"); in CommandParser() 157 if (args.size() > 0) { in Value() 345 size_t size = Value("n").size(); in IsAppNameValid() local 346 if (size > MAX_NAME_LENGTH) { in IsAppNameValid() 383 int size = atoi(Value("hs").c_str()); in IsJsHeapValid() local 384 if (size < MIN_JSHEAPSIZE || size > MAX_JSHEAPSIZE) { in IsJsHeapValid() 385 errorInfo = std::string("JS heap size out of range: " + std::to_string(MIN_JSHEAPSIZE) + "-" + in IsJsHeapValid() 390 jsHeapSize = static_cast<uint32_t>(size); in IsJsHeapValid() 520 uint32_t size = regsArgsCountMap[command]; IsResolutionArgValid() local [all...] |
| H A D | CppTimerManager.cpp | 47 if (tempTimers.size() == 0) { in RunTimerTick()
|
| /ide/tools/previewer/test/unittest/util/ |
| H A D | PublicMethodsTest.cpp | 33 bool CompareInt8Arrays(const int8_t* arr1, const int8_t* arr2, size_t size) in CompareInt8Arrays() argument 35 for (size_t i = 0; i < size; ++i) { in CompareInt8Arrays() 51 ASSERT_EQ(std::size(expectedOutput) - 1, resultLength); // 减去 1,以排除空字符(‘\0’)的影响 in TEST()
|
| H A D | CppTimerManagerTest.cpp | 38 EXPECT_EQ(manager.runningTimers.size(), value); in TEST() 47 EXPECT_EQ(manager.runningTimers.size(), value); in TEST()
|
| H A D | TimeToolTest.cpp | 25 int len = formattedTime.size() - 1; in TEST() 41 int len = formattedTime.size() - 1; in TEST()
|
| H A D | CallbackQueueTest.cpp | 65 EXPECT_EQ(queue.callBackList.size(), 0); in TEST()
|
| /ide/tools/previewer/automock/ |
| H A D | build_jsmock_system_plugin.js | 94 console.error('file size is wrong'); 98 const size = (stats.size / KB_BYTE_LENGTH).toFixed(num) + 'KB'; 99 console.log(`generate snapshot file: ${file}...\nthe snapshot file size: ${size}...`);
|
| /ide/tools/previewer/util/unix/ |
| H A D | CrashHandler.cpp | 48 size_t size = backtrace(array, MAX_STACK_SIZE); in ApplicationCrashHandler() local 50 backtrace_symbols_fd(array, size, STDERR_FILENO); in ApplicationCrashHandler()
|
| /ide/tools/previewer/util/linux/ |
| H A D | ClipboardX11.cpp | 48 void ClipboardX11::SetCopyData(const Atom& selection, const std::string& text, const int size) in SetCopyData() argument 73 nFormateProp8, PropModeReplace, (unsigned char*)text.c_str(), size); in SetCopyData() 76 nFormateProp8, PropModeReplace, (unsigned char*)text.c_str(), size); in SetCopyData() 91 unsigned long num, size; in GetPasteType() local 104 (~0L), 0, AnyPropertyType, &target, &format, &size, &num, (unsigned char**)&data); in GetPasteType()
|
| H A D | ClipboardX11.h | 26 void SetCopyData(const Atom& selection, const std::string& text, const int size);
|
| /ide/tools/previewer/test/unittest/cli/ |
| H A D | CommandLineFactoryTest.cpp | 26 EXPECT_TRUE(factory.typeMap.size() > 0); in TEST() 34 EXPECT_TRUE(CommandLineFactory::typeMap.size() > 0); in TEST()
|
| /ide/tools/previewer/util/windows/ |
| H A D | ClipboardHelper.cpp | 26 HANDLE hHandle = GlobalAlloc(GMEM_FIXED, newData.size() + 1); in SetClipboardData() 47 StringHelper::Encode encode = StringHelper::DetectEncode((uint8_t*)str.c_str(), str.size()); in GetClipboardData()
|
| /ide/tools/previewer/test/unittest/mock/ |
| H A D | LanguageManagerImplTest.cpp | 38 EXPECT_EQ(list.size(), 0); in TEST()
|
| /ide/tools/previewer/mock/lite/ |
| H A D | VirtualMessageImpl.cpp | 58 osInfo.messageLength = static_cast<uint32_t>(message.size()); in SendVirtualMessage() 61 if (callBacks.size() > 1) { in SendVirtualMessage() 62 ILOG("VirtualMessage callBacks size > 1."); in SendVirtualMessage()
|
| /ide/tools/previewer/jsapp/rich/external/ |
| H A D | StageContext.cpp | 160 std::string moduleName = inputPath.substr(pos + spliter.size()); in GetModuleBuffer() 180 ILOG("system hsp buf size is %d", buf->size()); in GetModuleBuffer() 244 int idx = pos + spliter.size(); in GetCloudHspVersion() 265 while (ver1.size() < ver2.size()) { in CompareHspVersion() 268 while (ver2.size() < ver1.size()) { in CompareHspVersion() 272 for (size_t i = 0; i < ver1.size(); ++i) { in CompareHspVersion() 473 ret.replace(pos, find.size(), replac in ReplaceLastStr() [all...] |
| /ide/tools/previewer/test/fuzztest/jsonparse_fuzzer/ |
| H A D | GetModuleBufferFromHspFuzzer.cpp | 40 std::string strVal = DT_SetGetString(&g_Element[0], defaultString.size() + 1, defaultLength, in TEST()
|
| /ide/tools/previewer/test/fuzztest/paramsparse_fuzzer/ |
| H A D | ParamsParseFuzzer.cpp | 60 args.push_back(DT_SetGetString(&g_Element[index], str.size() + 1, DEFAULT_LENGTH, (char*)str.c_str())); in SetTestArgs()
|
| /ide/tools/previewer/jsapp/ |
| H A D | JsApp.cpp | 129 void JsApp::SetJSHeapSize(uint32_t size) in SetJSHeapSize() argument 131 jsHeapSize = size; in SetJSHeapSize()
|
| /ide/tools/previewer/mock/rich/ |
| H A D | MouseInputImpl.cpp | 64 pointerEvent->size = sizeof (PointerEvent); in DispatchOsTouchEvent() 74 pointerEvent->sourceTool, pointerEvent->pressedButtons_.size(), ss.str().c_str()); in DispatchOsTouchEvent()
|
| /ide/tools/previewer/test/mock/ |
| H A D | MockFile.cpp | 99 int size; in AddFileToZip() local 100 while ((size = fread(buffer, 1, bufferSize, file)) > 0) { in AddFileToZip() 101 if (zipWriteInFileInZip(zip, buffer, size) < 0) { in AddFileToZip()
|
| /ide/tools/previewer/test/unittest/jsapp/ |
| H A D | EventHandlerTest.cpp | 58 EXPECT_TRUE(OHOS::AppExecFwk::EventRunner::GetMainEventRunner().queue.size() > 0); in TEST()
|