Home
last modified time | relevance | path

Searched refs:size (Results 1 - 25 of 42) sorted by relevance

12

/ide/tools/previewer/test/mock_lite/ace_engine_lite/
H A DMockJsAbility.cpp43 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 DAsyncWorkManagerTest.cpp31 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 DJsAsyncWorkTest.cpp30 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 DStringHelper.h25 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 DCommandParser.cpp63 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 DCppTimerManager.cpp47 if (tempTimers.size() == 0) { in RunTimerTick()
/ide/tools/previewer/test/unittest/util/
H A DPublicMethodsTest.cpp33 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 DCppTimerManagerTest.cpp38 EXPECT_EQ(manager.runningTimers.size(), value); in TEST()
47 EXPECT_EQ(manager.runningTimers.size(), value); in TEST()
H A DTimeToolTest.cpp25 int len = formattedTime.size() - 1; in TEST()
41 int len = formattedTime.size() - 1; in TEST()
H A DCallbackQueueTest.cpp65 EXPECT_EQ(queue.callBackList.size(), 0); in TEST()
/ide/tools/previewer/automock/
H A Dbuild_jsmock_system_plugin.js94 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 DCrashHandler.cpp48 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 DClipboardX11.cpp48 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 DClipboardX11.h26 void SetCopyData(const Atom& selection, const std::string& text, const int size);
/ide/tools/previewer/test/unittest/cli/
H A DCommandLineFactoryTest.cpp26 EXPECT_TRUE(factory.typeMap.size() > 0); in TEST()
34 EXPECT_TRUE(CommandLineFactory::typeMap.size() > 0); in TEST()
/ide/tools/previewer/util/windows/
H A DClipboardHelper.cpp26 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 DLanguageManagerImplTest.cpp38 EXPECT_EQ(list.size(), 0); in TEST()
/ide/tools/previewer/mock/lite/
H A DVirtualMessageImpl.cpp58 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 DStageContext.cpp160 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 DGetModuleBufferFromHspFuzzer.cpp40 std::string strVal = DT_SetGetString(&g_Element[0], defaultString.size() + 1, defaultLength, in TEST()
/ide/tools/previewer/test/fuzztest/paramsparse_fuzzer/
H A DParamsParseFuzzer.cpp60 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 DJsApp.cpp129 void JsApp::SetJSHeapSize(uint32_t size) in SetJSHeapSize() argument
131 jsHeapSize = size; in SetJSHeapSize()
/ide/tools/previewer/mock/rich/
H A DMouseInputImpl.cpp64 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 DMockFile.cpp99 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 DEventHandlerTest.cpp58 EXPECT_TRUE(OHOS::AppExecFwk::EventRunner::GetMainEventRunner().queue.size() > 0); in TEST()

Completed in 7 milliseconds

12