Home
last modified time | relevance | path

Searched refs:data (Results 1 – 25 of 35) sorted by relevance

12

/ide/tools/previewer/util/
DStringHelper.h25 static Encode IsUtf8Data(const uint8_t* data, size_t size) in IsUtf8Data() argument
32 ch = *(data + i); in IsUtf8Data()
70 static Encode DetectEncode(const uint8_t* data, size_t size) in DetectEncode() argument
75 if (size > utf16HeadLen && data[0] == 0xFF && data[1] == 0xFE) { in DetectEncode()
78 } else if (size > utf16HeadLen && data[0] == 0xFE && data[1] == 0xFF) { 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()
DEndianUtil.h26 T ToNetworkEndian(T data) in ToNetworkEndian() argument
29 return data; in ToNetworkEndian()
33 T data; in ToNetworkEndian() member
37 source.data = data; in ToNetworkEndian()
41 return dest.data; in ToNetworkEndian()
DLocalSocket.h43 int64_t ReadData(char* data, size_t length) const;
44 size_t WriteData(const void* data, size_t length) const;
47 const LocalSocket& operator<<(const T data) const
49 T dataToSend = EndianUtil::ToNetworkEndian<T>(data);
57 const LocalSocket& operator<<(const std::string data) const;
59 const LocalSocket& operator>>(std::string& data) const;
DFileSystem.cpp71 MakeDir(dirToMake.data()); in MakeVirtualFileSystemPath()
83 result = mkdir(path.data()); in MakeDir()
85 result = mkdir(path.data(), S_IRUSR | S_IWUSR | S_IXUSR); in MakeDir()
98 if (stat(path.data(), &info) != 0) { in GetFileMode()
DSharedData.h52 SharedData data = dataMap[type]; in SetData() local
53 if ((data.minValue != data.maxValue) && (v < data.minValue || v > data.maxValue)) { in SetData()
57 data.value = v; in SetData()
58 data.isChanged = true; in SetData()
59 dataMap[type] = data; in SetData()
DJsonReader.cpp51 if (!reader->parse(jsonStr.data(), jsonStr.data() + jsonStr.size(), &val, &message)) { in ParseJsonData()
DClipboardHelper.h24 static void SetClipboardData(const std::string& data);
DEndianUtil.cpp23 uint32_t data; in IsBigEndian() member
/ide/tools/previewer/util/windows/
DClipboardHelper.cpp22 void ClipboardHelper::SetClipboardData(const std::string& data) in SetClipboardData() argument
24 string newData = StringHelper::Utf8ToString(data); in SetClipboardData()
37 string data; in GetClipboardData() local
39 return data; in GetClipboardData()
45 data = str; in GetClipboardData()
50 data = StringHelper::StringToUtf8(data); in GetClipboardData()
52 return data; in GetClipboardData()
DLocalSocket.cpp65 int64_t LocalSocket::ReadData(char* data, size_t length) const in ReadData() argument
81 if (!ReadFile(pipeHandle, data, static_cast<DWORD>(length), &readSize, NULL)) { in ReadData()
89 size_t LocalSocket::WriteData(const void* data, size_t length) const in WriteData() argument
97 if (!WriteFile(pipeHandle, data, static_cast<DWORD>(length), &writeSize, nullptr)) { in WriteData()
105 const LocalSocket& LocalSocket::operator<<(const string data) const in operator <<()
107 WriteData(data.c_str(), data.length() + 1); in operator <<()
111 const LocalSocket& LocalSocket::operator>>(string& data) const in operator >>()
115 data.push_back(c); in operator >>()
/ide/tools/previewer/mock/lite/
DMouseInputImpl.cpp28 bool MouseInputImpl::Read(OHOS::DeviceData& data) in Read() argument
30 data.point.x = static_cast<short>(mouseXPosition); in Read()
31 data.point.y = static_cast<short>(mouseYPosition); in Read()
32 data.state = mouseStatus; in Read()
DJsAsyncWork.cpp22 bool JsAsyncWork::DispatchAsyncWork(AsyncWorkHandler workHandler, void* data) in DispatchAsyncWork() argument
24 AsyncWorkManager::GetInstance().AppendAsyncWork(workHandler, data); in DispatchAsyncWork()
DMouseWheelImpl.cpp28 bool MouseWheelImpl::Read(OHOS::DeviceData& data) in Read() argument
30 data.rotate = static_cast<short>(rotate); in Read()
DVirtualScreenImpl.h53 void Send(unsigned char* data, int32_t width, int32_t height);
59 void WriteBuffer(const T data) in WriteBuffer() argument
61 T dataToSend = EndianUtil::ToNetworkEndian<T>(data); in WriteBuffer()
DMouseWheelImpl.h26 virtual bool Read(OHOS::DeviceData& data) override;
DMouseInputImpl.h26 virtual bool Read(OHOS::DeviceData& data) override;
/ide/tools/previewer/util/unix/
DLocalSocket.cpp75 int64_t LocalSocket::ReadData(char* data, size_t length) const in ReadData() argument
89 int32_t readSize = recv(socketHandle, data, length, 0); in ReadData()
101 size_t LocalSocket::WriteData(const void* data, size_t length) const in WriteData() argument
107 string str((const char*)data); in WriteData()
120 const LocalSocket& LocalSocket::operator>>(string& data) const in operator >>()
124 data.push_back(c); in operator >>()
129 const LocalSocket& LocalSocket::operator<<(const string data) const in operator <<()
131 WriteData(data.c_str(), data.length() + 1); in operator <<()
DClipboardHelper.cpp20 void ClipboardHelper::SetClipboardData(const std::string& data) in SetClipboardData() argument
22 ClipboardObjc::SetClipboardData(data); in SetClipboardData()
DClipboardObjc.h23 static void SetClipboardData(const std::string& data);
/ide/tools/previewer/mock/rich/
DVirtualScreenImpl.h27 static bool LoadDocCallback(const void* data, const size_t length,
29 …static bool CallBack(const void* data, const size_t length, const int32_t width, const int32_t hei…
37 void Send(const void* data, int32_t retWidth, int32_t retHeight);
38 bool SendPixmap(const void* data, size_t length, int32_t retWidth, int32_t retHeight);
41 void WriteBuffer(const T data) in WriteBuffer() argument
43 T dataToSend = EndianUtil::ToNetworkEndian<T>(data); in WriteBuffer()
DVirtualScreenImpl.cpp70 bool VirtualScreenImpl::LoadDocCallback(const void* data, in LoadDocCallback() argument
89 uint8_t* dataPtr = reinterpret_cast<uint8_t*>(const_cast<void*>(data)); in LoadDocCallback()
103 bool VirtualScreenImpl::CallBack(const void* data, const size_t length, in CallBack() argument
122 if (!LoadDocCallback(data, length, width, height)) { in CallBack()
130 return GetInstance().SendPixmap(data, length, width, height); in CallBack()
183 void VirtualScreenImpl::Send(const void* data, int32_t retWidth, int32_t retHeight) in Send() argument
198 dataTemp[now_base_pos + redPos] = *((char*)data + input_base_pos + redPos); in Send()
199 dataTemp[now_base_pos + greenPos] = *((char*)data + input_base_pos + greenPos); in Send()
200 dataTemp[now_base_pos + bluePos] = *((char*)data + input_base_pos + bluePos); in Send()
225 bool VirtualScreenImpl::SendPixmap(const void* data, size_t length, int32_t retWidth, int32_t retHe… in SendPixmap() argument
[all …]
DKeyInputImpl.cpp42 auto callbackSetClipboardData = [](const std::string& data) { in SetDelegate() argument
43 ClipboardHelper::SetClipboardData(data); in SetDelegate()
/ide/tools/previewer/util/linux/
DClipboardHelper.cpp21 void ClipboardHelper::SetClipboardData(const std::string& data) in SetClipboardData() argument
24 clipboard.SetClipboardData(data); in SetClipboardData()
DClipboardX11.cpp93 char* data = nullptr; in GetPasteType() local
105 … (~0L), 0, AnyPropertyType, &target, &format, &size, &num, (unsigned char**)&data); in GetPasteType()
107 string str(data); in GetPasteType()
110 XFree(data); in GetPasteType()
/ide/tools/previewer/jsapp/lite/
DJsAppImpl.cpp67 int8_t ret = font->SetFontPath(fontPath.data(), BaseFont::DYNAMIC_FONT); in InitSmartVisionFont()
69 ELOG("The vector font path does not exist ! fontPath : %s", fontPath.data()); in InitSmartVisionFont()
70 FLOG("InitFontEngine SetFontPath failed. vector fontPath: %s", fontPath.data()); in InitSmartVisionFont()
88 …int8_t retDynamic = font->SetFontPath(string(fontPath + "font.bin").data(), BaseFont::DYNAMIC_FONT… in InitLiteWearable()
89 …int8_t retStatic = font->SetFontPath(string(fontPath + "glyphs.bin").data(), BaseFont::STATIC_FONT… in InitLiteWearable()
92 string(fontPath + "font.bin").data()); in InitLiteWearable()
93 …OG("InitFontEngine SetFontPath failed. bitmap fontPath: %s", string(fontPath + "font.bin").data()); in InitLiteWearable()
199 GLOBAL_ConfigLanguage(SharedData<string>::GetData(SharedDataType::LANGUAGE).data()); in ThreadCallBack()
280 jsAbility->Launch(jsAppPath.c_str(), bundleName.c_str(), 0, routerInfo.data()); in StartJsApp()

12