/third_party/skia/src/sksl/ir/ |
H A D | SkSLFieldAccess.cpp | 17 std::unique_ptr<Expression> FieldAccess::Convert(const Context& context, in Convert() 19 std::unique_ptr<Expression> base, in Convert() 29 std::vector<const FunctionDeclaration*> f = { in Convert() 31 return std::make_unique<MethodReference>( in Convert() 32 context, base->fLine, std::move(base), f); in Convert() 36 return std::make_unique<MethodReference>( in Convert() 37 context, base->fLine, std::move(base), f.functions()); in Convert() 49 const std::vector<Type::Field>& fields = baseType.fields(); in Convert() 52 return FieldAccess::Make(context, std::move(base), (int) i); in Convert() 65 std [all...] |
/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/ |
H A D | nested_vtable.rs | 21 ::std::mem::size_of::<nsISupports>(), in bindgen_test_layout_nsISupports() 26 ::std::mem::align_of::<nsISupports>(), in bindgen_test_layout_nsISupports() 33 let mut s = ::std::mem::MaybeUninit::<Self>::uninit(); in default() 35 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 43 this: *mut ::std::os::raw::c_void, in nsISupports_QueryInterface() 54 ::std::mem::size_of::<nsIRunnable>(), in bindgen_test_layout_nsIRunnable() 59 ::std::mem::align_of::<nsIRunnable>(), in bindgen_test_layout_nsIRunnable() 66 let mut s = ::std::mem::MaybeUninit::<Self>::uninit(); in default() 68 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 81 ::std in bindgen_test_layout_Runnable() [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/ |
H A D | str_replace_benchmark.cc | 25 std::string* big_string; 26 std::string* after_replacing_the; 27 std::string* after_replacing_many; 55 big_string = new std::string(1000 * 1000, ' '); in SetUpStrings() 56 for (std::string phrase : {"the quick brown fox jumped over the lazy dogs", in SetUpStrings() 67 after_replacing_the = new std::string(*big_string); in SetUpStrings() 69 (pos = after_replacing_the->find("the", pos)) != std::string::npos;) { in SetUpStrings() 73 after_replacing_many = new std::string(*big_string); in SetUpStrings() 80 if (needlepos != std::string::npos && needlepos < next_pos) { in SetUpStrings() 97 std in BM_StrReplaceAllOneReplacement() [all...] |
/third_party/rust/crates/syn/src/ |
H A D | export.rs | 2 pub use std::clone::Clone; 4 pub use std::cmp::{Eq, PartialEq}; 6 pub use std::concat; 8 pub use std::default::Default; 10 pub use std::fmt::Debug; 12 pub use std::hash::{Hash, Hasher}; 14 pub use std::marker::Copy; 16 pub use std::option::Option::{None, Some}; 18 pub use std::result::Result::{Err, Ok}; 20 pub use std [all...] |
/third_party/spirv-tools/source/reduce/ |
H A D | reducer.h | 51 std::function<bool(const std::vector<uint32_t>&, uint32_t)>; 87 void AddReductionPass(std::unique_ptr<ReductionOpportunityFinder> finder); 92 std::unique_ptr<ReductionOpportunityFinder> finder); 97 ReductionResultStatus Run(const std::vector<uint32_t>& binary_in, 98 std::vector<uint32_t>* binary_out, 107 std::vector<std::unique_ptr<ReductionPass>>* passes, 110 std::vector<uint32_t>* current_binary, uint32_t* reductions_applied); 115 std [all...] |
/third_party/vk-gl-cts/framework/delibs/decpp/ |
H A D | deFilePath.hpp | 48 static const std::string separator; /*!< Path separator. */ 51 FilePath (const std::string& path); 53 FilePath (const std::vector<std::string>& components); 60 std::string getBaseName (void) const; 61 std::string getDirName (void) const; 62 std::string getFileExtension (void) const; 70 void split (std::vector<std::string>& components) const; 71 static FilePath join (const std [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_textpicker.cpp | 43 const std::vector<DialogAlignment> DIALOG_ALIGNMENT = { DialogAlignment::TOP, DialogAlignment::CENTER, 47 const std::vector<HoverModeAreaType> HOVER_MODE_AREA_TYPE = { HoverModeAreaType::TOP_SCREEN, 49 const std::regex DIMENSION_REGEX(R"(^[-+]?\d+(?:\.\d+)?(?:px|vp|fp|lpx)?$)", std::regex::icase); 52 std::unique_ptr<TextPickerModel> TextPickerModel::textPickerInstance_ = nullptr; 53 std::unique_ptr<TextPickerDialogModel> TextPickerDialogModel::textPickerDialogInstance_ = nullptr; 54 std::mutex TextPickerModel::mutex_; 55 std::mutex TextPickerDialogModel::mutex_; 60 std::lock_guard<std in GetInstance() 1511 TextPickerDialogShow(const JSRef<JSObject>& paramObj, const std::map<std::string, NG::DialogTextEvent>& dialogEvent, const std::map<std::string, NG::DialogGestureEvent>& dialogCancelEvent) TextPickerDialogShow() argument [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/web/resource/ |
H A D | web_delegate.cpp | 90 const std::string RESOURCE_VIDEO_CAPTURE = "TYPE_VIDEO_CAPTURE"; 91 const std::string RESOURCE_AUDIO_CAPTURE = "TYPE_AUDIO_CAPTURE"; 92 const std::string RESOURCE_PROTECTED_MEDIA_ID = "TYPE_PROTECTED_MEDIA_ID"; 93 const std::string RESOURCE_MIDI_SYSEX = "TYPE_MIDI_SYSEX"; 94 const std::string RESOURCE_CLIPBOARD_READ_WRITE = "TYPE_CLIPBOARD_READ_WRITE"; 95 const std::string RESOURCE_SENSOR = "TYPE_SENSOR"; 96 const std::string DEFAULT_CANONICAL_ENCODING_NAME = "UTF-8"; 100 const std::string DEFAULT_NATIVE_EMBED_ID = "0"; 102 const std::vector<std 861 LoadUrl(const std::string& url, const std::map<std::string, std::string>& httpHeaders) LoadUrl() argument 6657 ExecuteAction(int64_t accessibilityId, AceAction action, const std::map<std::string, std::string>& actionArguments) ExecuteAction() argument 7050 OnInterceptKeyboardAttach( const std::shared_ptr<OHOS::NWeb::NWebCustomKeyboardHandler> keyboardHandler, const std::map<std::string, std::string> &attributes, bool &useSystemKeyboard, int32_t &enterKeyType) OnInterceptKeyboardAttach() argument [all...] |
H A D | web_client_impl.cpp | 24 explicit NWebResponseAsyncHandle(std::shared_ptr<OHOS::NWeb::NWebUrlResourceResponse> nwebResponse) in NWebResponseAsyncHandle() 35 void HandleData(std::string& data) override 43 void HandleResourceUrl(std::string& url) override 49 void HandleHeadersVal(const std::map<std::string, std::string>& response_headers) override 57 void HandleEncoding(std::string& encoding) override 65 void HandleMimeType(std::string& mimeType) override 73 void HandleStatusCodeAndReason(int32_t statusCode, std::string& reason) override 90 std 1143 OnInterceptKeyboardAttach( const std::shared_ptr<OHOS::NWeb::NWebCustomKeyboardHandler> keyboardHandler, const std::map<std::string, std::string> &attributes, bool &useSystemKeyboard, int32_t &enterKeyType) OnInterceptKeyboardAttach() argument [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rich_editor/ |
H A D | rich_editor_pattern.h | 114 const std::map<std::pair<HandleType, SelectorAdjustPolicy>, MoveDirection> SELECTOR_ADJUST_DIR_MAP = { 143 std::optional<std::string> addText; 144 std::optional<std::string> deleteText; 154 std::string previewContent; 155 std::string newPreviewContent; 160 std::string ToString() const in ToString() 228 std [all...] |
/foundation/distributedhardware/distributed_input/services/source/transport/test/sourcetransunittest/ |
H A D | distributed_input_sourcetrans_test.cpp | 27 using namespace std; 55 std::string remoteDevId = "f6d4c08647073e02e7a78f09473aa122ff57fc81c00981fcf5be989e7d112591"; in HWTEST_F() 63 std::string remoteDevId = "f6d4c08647073e02e7a78f09473aa122ff57fc81c00981fcf5be989e7d112591"; in HWTEST_F() 70 std::string remoteDevId = "f6d4c08647073e02e7a78f09473aa122ff57fc81c00981fcf5be989e7d112591"; in HWTEST_F() 79 std::string deviceId = ""; in HWTEST_F() 87 std::string deviceId = "f6d4c08647073e02e7a78f09473aa122ff57fc81c00981fcf5be989e7d112591"; in HWTEST_F() 95 std::string deviceId = ""; in HWTEST_F() 103 std::string deviceId = "f6d4c08647073e02e7a78f09473aa122ff57fc81c00981fcf5be989e7d112591"; in HWTEST_F() 111 std::string deviceId = ""; in HWTEST_F() 118 std in HWTEST_F() [all...] |
/third_party/mesa3d/src/gtest/src/ |
H A D | gtest.cc | 185 static FILE* OpenFileForWriting(const std::string& output_file) { in OpenFileForWriting() 358 static int SumOverTestSuiteList(const std::vector<TestSuite*>& case_list, in SumOverTestSuiteList() 407 static ::std::vector<std::string> g_argvs; 409 ::std::vector<std::string> GetArgvs() { in GetArgvs() 411 // GTEST_CUSTOM_GET_ARGVS_() may return a container of std::string or in GetArgvs() 414 return ::std::vector<std::string>(custom.begin(), custom.end()); in GetArgvs() 437 std [all...] |
/base/inputmethod/imf/frameworks/native/inputmethod_ability/src/ |
H A D | input_method_ability.cpp | 41 std::mutex InputMethodAbility::instanceLock_; 60 std::lock_guard<std::mutex> autoLock(instanceLock_); in GetInstance() 63 instance_ = new (std::nothrow) InputMethodAbility(); in GetInstance() 76 std::lock_guard<std::mutex> lock(abilityLock_); in GetImsaProxy() 93 deathRecipient_ = new (std::nothrow) InputDeathRecipient(); in GetImsaProxy() 162 sptr<InputMethodCoreStub> coreStub = new (std::nothrow) InputMethodCoreStub(); in Initialize() 167 sptr<InputMethodAgentStub> agentStub = new (std::nothrow) InputMethodAgentStub(); in Initialize() 176 void InputMethodAbility::SetImeListener(std 1149 SendPrivateCommand(const std::unordered_map<std::string, PrivateDataValue> &privateCommand) SendPrivateCommand() argument 1176 ReceivePrivateCommand( const std::unordered_map<std::string, PrivateDataValue> &privateCommand) ReceivePrivateCommand() argument [all...] |
/base/web/webview/interfaces/kits/cj/src/ |
H A D | webview_controller_impl.cpp | 36 std::unordered_map<int32_t, WebviewControllerImpl*> g_webview_controller_map; 37 std::string WebviewControllerImpl::customeSchemeCmdLine_ = ""; 42 WebMessagePortImpl::WebMessagePortImpl(int32_t nwebId, std::string port, bool isExtentionType) in WebMessagePortImpl() 58 ErrCode WebMessagePortImpl::PostPortMessage(std::shared_ptr<NWeb::NWebMessage> data) in PostPortMessage() 74 std::shared_ptr<NWeb::NWebMessageValueCallback> callback) in SetPortMessageCallback() 89 std::string WebMessagePortImpl::GetPortHandle() const in GetPortHandle() 94 void NWebMessageCallbackImpl::OnReceiveValue(std::shared_ptr<NWeb::NWebMessage> result) in OnReceiveValue() 102 std::string msgStr = result->GetString(); in OnReceiveValue() 108 std::vector<uint8_t> msgArr = result->GetBinary(); in OnReceiveValue() 119 void NWebWebMessageExtCallbackImpl::OnReceiveValue(std [all...] |
/foundation/ability/ability_runtime/services/uripermmgr/src/ |
H A D | uri_permission_manager_stub_impl.cpp | 70 std::lock_guard<std::mutex> guard(mutex_); in VerifyUriPermission() 84 bool UriPermissionManagerStubImpl::VerifySubDirUriPermission(const std::string &uriStr, in VerifySubDirUriPermission() 88 if (iPos == std::string::npos) { in VerifySubDirUriPermission() 110 bool UriPermissionManagerStubImpl::IsDistributedSubDirUri(const std::string &inputUri, const std::string &cachedUri) in IsDistributedSubDirUri() 114 if ((iPos == std::string::npos) || (cPos == std::string::npos)) { in IsDistributedSubDirUri() 118 std::string iTempUri = inputUri.substr(0, iPos); in IsDistributedSubDirUri() 119 std in IsDistributedSubDirUri() [all...] |
/foundation/multimedia/image_framework/plugins/common/libs/image/libjpegplugin/src/ |
H A D | jpeg_decoder.cpp | 71 const std::string BITS_PER_SAMPLE = "BitsPerSample"; 72 const std::string ORIENTATION = "Orientation"; 73 const std::string IMAGE_LENGTH = "ImageLength"; 74 const std::string IMAGE_WIDTH = "ImageWidth"; 75 const std::string GPS_LATITUDE = "GPSLatitude"; 76 const std::string GPS_LONGITUDE = "GPSLongitude"; 77 const std::string GPS_LATITUDE_REF = "GPSLatitudeRef"; 78 const std::string GPS_LONGITUDE_REF = "GPSLongitudeRef"; 79 const std::string DATE_TIME_ORIGINAL = "DateTimeOriginal"; 80 const std [all...] |
/foundation/filemanagement/user_file_service/interfaces/inner_api/file_access/src/ |
H A D | file_access_helper.cpp | 47 std::vector<Uri> deviceUris(DEVICE_ROOTS.begin(), DEVICE_ROOTS.end()); 56 static bool GetBundleNameFromPath(const std::string &path, std::string &bundleName) in GetBundleNameFromPath() 86 std::string schemeStr = std::string(uri.GetScheme()); in CheckUri() 110 FileAccessHelper::FileAccessHelper(const std::shared_ptr<OHOS::AbilityRuntime::Context> &context, in FileAccessHelper() argument 111 const std::unordered_map<std::string, std::shared_ptr<ConnectInfo>> &cMap) in FileAccessHelper() 123 const std in FileAccessHelper() 122 FileAccessHelper(const sptr<IRemoteObject> &token, const std::unordered_map<std::string, std::shared_ptr<ConnectInfo>> &cMap) FileAccessHelper() argument [all...] |
/base/update/updater/services/flashd/daemon/ |
H A D | flashd_utils.h | 23 std::string GetPathRoot(const std::string &path); 25 std::string GetFileName(const std::string &path); 27 std::vector<std::string> Split(const std::string &src, const std::vector<std::string> &filter);
|
/base/update/updater/interfaces/kits/include/updaterkits/ |
H A D | updaterkits.h | 26 extern int RebootAndInstallUpgradePackage(const std::string &miscFile, const std::vector<std::string> &packageName,
27 const std::string &upgradeType = UPGRADE_TYPE_OTA);
31 extern bool RebootAndInstallSdcardPackage(const std::string &miscFile, const std::vector<std::string> &packageName);
35 extern bool RebootAndCleanUserData(const std::string &miscFile, const std::string &cmd);
|
/base/web/webview/ohos_nweb/include/ |
H A D | nweb_cache_options_impl.h | 24 NWebCacheOptionsImpl(const std::map<std::string, std::string> &responseHeaders) in NWebCacheOptionsImpl() argument 28 std::map<std::string, std::string> GetResponseHeaders() override { 33 std::map<std::string, std::string> responseHeaders_;
|
/foundation/bundlemanager/app_domain_verify/interfaces/kits/js/include/ |
H A D | config_parser.h | 25 bool load(const std::string& filename); 27 std::string get(const std::string& key, const std::string& defaultValue = "") const; 30 static std::string trim(const std::string& str); 32 std::map<std::string, std::string> configData;
|
/foundation/filemanagement/file_api/interfaces/kits/js/src/common/file_helper/ |
H A D | hash_file.h | 26 static std::tuple<int, std::string> HashWithMD5(const std::string &fpath); 27 static std::tuple<int, std::string> HashWithSHA1(const std::string &fpath); 28 static std::tuple<int, std::string> HashWithSHA256(const std::string &fpath);
|
/third_party/json/docs/examples/ |
H A D | operator_ltlt__basic_json.cpp | 14 std::cout << j_object << "\n\n"; in main() 15 std::cout << j_array << "\n\n"; in main() 18 std::cout << std::setw(4) << j_object << "\n\n"; in main() 19 std::cout << std::setw(2) << j_array << "\n\n"; in main() 20 std::cout << std::setw(1) << std::setfill('\t') << j_object << "\n\n"; in main()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/property/ |
H A D | rs_properties.cpp | 72 constexpr static std::array<ResetPropertyFunc, static_cast<int>(RSModifierType::CUSTOM)> g_propertyResetterLUT = { 170 [](RSProperties* prop) { prop->SetGreyCoef(std::nullopt); }, // GREY_COEF 225 boundsGeo_ = std::make_shared<RSObjAbsGeometry>(); in RSProperties() 438 const std::shared_ptr<RSObjAbsGeometry>& RSProperties::GetBoundsGeometry() const in GetBoundsGeometry() 449 const std::optional<Drawing::Point>& offset) in UpdateGeometryByParent() 469 const RSProperties* parent, bool dirtyFlag, const std::optional<Drawing::Point>& offset) in UpdateGeometry() 501 void RSProperties::SetSandBox(const std::optional<Vector2f>& parentPosition) in SetSandBox() 504 sandbox_ = std::make_unique<Sandbox>(); in SetSandBox() 511 std::optional<Vector2f> RSProperties::GetSandBox() const in GetSandBox() 513 return sandbox_ ? sandbox_->position_ : std in GetSandBox() [all...] |
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/ |
H A D | hisysevent.cpp | 41 HiSysEvent::EventBase::EventBase(const std::string& domain, const std::string& eventName, int type, in EventBase() 75 void HiSysEvent::EventBase::AppendParam(std::shared_ptr<Encoded::EncodedParam> param) in AppendParam() 88 rawData_ = std::make_shared<RawData>(); in WritebaseInfo() 139 std::shared_ptr<Encoded::RawData> HiSysEvent::EventBase::GetEventRawData() in GetEventRawData() 150 int HiSysEvent::CheckKey(const std::string& key) in CheckKey() 158 int HiSysEvent::CheckValue(const std::string& value) in CheckValue() 233 void HiSysEvent::AppendHexData(EventBase& eventBase, const std::string& key, uint64_t value) in AppendHexData() 235 eventBase.AppendParam(std::make_shared<Encoded::UnsignedVarintEncodedParam<uint64_t>>(key, value)); in AppendHexData() 253 eventBase.AppendParam(std in AppendBoolParam() [all...] |