Home
last modified time | relevance | path

Searched refs:loc (Results 1 – 22 of 22) sorted by relevance

/base/update/updater/services/script/script_interpreter/
Dscript_lex.l28 #define YY_USER_ACTION loc.columns (yyleng);
31 #define yyterminate() Parser::make_END(loc);
48 loc.step();
52 loc.step(); // 注释
56 loc.step(); // 注释
65 loc.step();
68 loc.lines(yyleng); // 使用lines函数来更新位置信息中的行号
69 loc.step();
72 "function" { return Parser::make_FUNCTION(yytext, loc); }
73 "for" { return Parser::make_FOR(yytext, loc); }
[all …]
Dscanner.h41 loc = location(); in Scanner()
61 location loc {};
Dscript_yacc.y71 void Parser::error (const location_type& loc, const std::string& msg) in error() argument
73 LOG(Updater::ERROR) << "error " << msg << " loc " << loc << std::endl; in error()
/base/global/i18n/tools/
Ddata_process.py35 loc = re.search(loc_pattern, line).group()
37 location = eval(loc)
56 for loc, tzs in data_input.items():
57 if loc[0] < 0 and loc[1] >= 0:
60 elif loc[0] >= 0 and loc[1] >= 0:
63 elif loc[0] < 0 and loc[1] < 0:
/base/hiviewdfx/faultloggerd/interfaces/rust/panic_handler/
Dlib.rs64 …let (file, line) = info.location().map(|loc| (loc.file(), loc.line())).unwrap_or(("<unknown>", 0)); in report_info_handler()
/base/location/frameworks/native/source/
Dlocator_callback_host.cpp110 if (context->env == nullptr || context->loc == nullptr) { in DoSendWork()
123 SystemLocationToJs(context->env, context->loc, jsEvent); in DoSendWork()
125 LocationToJs(context->env, context->loc, jsEvent); in DoSendWork()
255 context->loc = std::make_unique<Location>(*location); in OnLocationReport()
Dlocator_proxy.cpp688 LocationErrCode LocatorProxy::GetCacheLocationV9(std::unique_ptr<Location> &loc) in GetCacheLocationV9() argument
694 loc = Location::Unmarshalling(reply); in GetCacheLocationV9()
696 loc = nullptr; in GetCacheLocationV9()
Dlocator_impl.cpp686 LocationErrCode LocatorImpl::GetCachedLocationV9(std::unique_ptr<Location> &loc) in GetCachedLocationV9() argument
701 LocationErrCode errCode = proxy->GetCacheLocationV9(loc); in GetCachedLocationV9()
/base/location/interfaces/inner_api/include/
Dlocation_async_context.h43 std::unique_ptr<Location> loc;
46 napi_deferred deferred = nullptr) : AsyncContext(env, work, deferred), loc(nullptr) {} in AsyncContext()
94 std::unique_ptr<Location> loc;
98 : AsyncContext(env, work, deferred), loc(nullptr), request(nullptr) {} in AsyncContext()
Dlocator_proxy.h95 LocationErrCode GetCacheLocationV9(std::unique_ptr<Location> &loc);
Dlocator_impl.h92 LocationErrCode GetCachedLocationV9(std::unique_ptr<Location> &loc);
Dlocator.h85 virtual LocationErrCode GetCachedLocationV9(std::unique_ptr<Location> &loc) = 0;
/base/location/test/location_locator/source/
Dlocation_without_permission_test.cpp227 std::unique_ptr loc = std::make_unique<Location>(); variable
229 EXPECT_EQ(ERRCODE_PERMISSION_DENIED, locatorImpl->GetCachedLocationV9(loc));
231 EXPECT_EQ(ERRCODE_SWITCH_OFF, locatorImpl->GetCachedLocationV9(loc));
233 EXPECT_EQ(nullptr, loc);
Dlocator_impl_test.cpp229 std::unique_ptr<Location> loc = std::make_unique<Location>(); variable
230 EXPECT_EQ(ERRCODE_SUCCESS, locatorImpl_->GetCachedLocationV9(loc)); // get last location
231 ASSERT_TRUE(loc != nullptr);
232 EXPECT_EQ(10.6, loc->GetLatitude());
233 EXPECT_EQ(10.5, loc->GetLongitude());
/base/global/i18n/frameworks/intl/test/unittest/
Dintl_test.cpp121 LocaleInfo *loc = new (std::nothrow) LocaleInfo(locale, options); variable
122 if (!loc) {
126 EXPECT_EQ(loc->GetLanguage(), "ja");
127 EXPECT_EQ(loc->GetScript(), "Jpan");
128 EXPECT_EQ(loc->GetRegion(), "JP");
129 EXPECT_EQ(loc->GetBaseName(), "ja-Jpan-JP");
130 EXPECT_EQ(loc->GetCalendar(), "japanese");
131 EXPECT_EQ(loc->GetHourCycle(), "h11");
132 EXPECT_EQ(loc->GetNumberingSystem(), "jpan");
133 EXPECT_EQ(loc->Minimize(), "ja-u-hc-h11-nu-jpan-ca-japanese-co-emoji-kn-true");
[all …]
/base/global/i18n_lite/tools/i18n-dat-tool/src/main/java/ohos/global/i18n/
DDataFetcher.java128 for (ULocale loc : availableLocales) { in processWildcard()
129 String finalLanguageTag = loc.toLanguageTag(); in processWildcard()
142 for (ULocale loc : availableLocales) { in processWildcard()
143 String finalLanguageTag = loc.toLanguageTag(); in processWildcard()
144 if (loc.getLanguage().equals(baseName) && !LOCALES.containsKey(finalLanguageTag) && in processWildcard()
/base/location/frameworks/js/napi/source/
Dlocation_napi_adapter.cpp44 …context->loc = g_locatorClient->IsLocationEnabled() ? g_locatorClient->GetCachedLocation() : nullp… in GetLastLocation()
45 if (context->loc != nullptr) { in GetLastLocation()
55 if (context->loc != nullptr) { in GetLastLocation()
56 LocationToJs(context->env, context->loc, context->result[PARAM1]); in GetLastLocation()
78 std::unique_ptr<Location> loc; in HandleGetCachedLocation() local
79 errorCode = g_locatorClient->GetCachedLocationV9(loc); in HandleGetCachedLocation()
80 if (loc != nullptr) { in HandleGetCachedLocation()
81 LocationToJs(env, loc, res); in HandleGetCachedLocation()
/base/location/test/fuzztest/locator/locator_fuzzer/
Dlocator_fuzzer.cpp199 std::unique_ptr<OHOS::Location::Location> loc = in LocatorImplV9FuzzerTest() local
201 g_locatorImpl->GetCachedLocationV9(loc); in LocatorImplV9FuzzerTest()
483 std::unique_ptr<OHOS::Location::Location> loc = in LocatorAbility001FuzzerTest() local
485 locatorAbility->GetCacheLocation(loc, identity); in LocatorAbility001FuzzerTest()
/base/location/services/location_locator/locator/source/
Dlocator_ability.cpp846 LocationErrCode LocatorAbility::GetCacheLocation(std::unique_ptr<Location>& loc, AppIdentity &ident… in GetCacheLocation() argument
849 loc = reportManager_->GetPermittedLocation(identity.GetUid(), identity.GetTokenId(), in GetCacheLocation()
851 if (loc == nullptr) { in GetCacheLocation()
854 if (fabs(loc->GetLatitude() - 0.0) > PRECISION in GetCacheLocation()
855 && fabs(loc->GetLongitude() - 0.0) > PRECISION) { in GetCacheLocation()
Dlocator_skeleton.cpp221 std::unique_ptr<Location> loc; in PreGetCacheLocation() local
222 reply.WriteInt32(locatorAbility->GetCacheLocation(loc, identity)); in PreGetCacheLocation()
223 if (loc != nullptr) { in PreGetCacheLocation()
224 loc->Marshalling(reply); in PreGetCacheLocation()
/base/location/services/location_locator/locator/include/
Dlocator_ability.h87 LocationErrCode GetCacheLocation(std::unique_ptr<Location>& loc, AppIdentity &identity);
/base/location/services/location_gnss/gnss/source/
Dgnss_ability.cpp642 auto loc = GetLocationMock(); in IsMockProcessing() local
643 return !loc.empty(); in IsMockProcessing()