Home
last modified time | relevance | path

Searched refs:loc (Results 1 – 19 of 19) 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/frameworks/intl/test/unittest/
Dintl_test.cpp108 LocaleInfo *loc = new (std::nothrow) LocaleInfo(locale, options); variable
109 if (!loc) {
113 EXPECT_EQ(loc->GetLanguage(), "ja");
114 EXPECT_EQ(loc->GetScript(), "Jpan");
115 EXPECT_EQ(loc->GetRegion(), "JP");
116 EXPECT_EQ(loc->GetBaseName(), "ja-Jpan-JP");
117 EXPECT_EQ(loc->GetCalendar(), "japanese");
118 EXPECT_EQ(loc->GetHourCycle(), "h11");
119 EXPECT_EQ(loc->GetNumberingSystem(), "jpan");
120 EXPECT_EQ(loc->Minimize(), "ja-u-hc-h11-nu-jpan-ca-japanese-co-emoji-kn-true");
[all …]
/base/location/interfaces/inner_api/include/
Dlocation_async_context.h40 std::unique_ptr<Location> loc;
43 napi_deferred deferred = nullptr) : AsyncContext(env, work, deferred), loc(nullptr) {} in AsyncContext()
91 std::unique_ptr<Location> loc;
95 : AsyncContext(env, work, deferred), loc(nullptr), request(nullptr) {} in AsyncContext()
Dlocator.h84 virtual LocationErrCode GetCachedLocationV9(std::unique_ptr<Location> &loc) = 0;
Dlocator_impl.h83 LocationErrCode GetCachedLocationV9(std::unique_ptr<Location> &loc) override;
Dlocator_proxy.h98 LocationErrCode GetCacheLocationV9(std::unique_ptr<Location> &loc);
/base/location/frameworks/native/source/
Dlocator_callback_host.cpp111 if (scope == nullptr || context->loc == nullptr) { in DoSendWork()
120 SystemLocationToJs(context->env, context->loc, jsEvent); in DoSendWork()
122 LocationToJs(context->env, context->loc, jsEvent); in DoSendWork()
261 context->loc = std::make_unique<Location>(*location); in OnLocationReport()
Dlocator_impl.cpp334 LocationErrCode LocatorImpl::GetCachedLocationV9(std::unique_ptr<Location> &loc) in GetCachedLocationV9() argument
337 return client_->GetCacheLocationV9(loc); in GetCachedLocationV9()
Dlocator_proxy.cpp713 LocationErrCode LocatorProxy::GetCacheLocationV9(std::unique_ptr<Location> &loc) in GetCacheLocationV9() argument
718 loc = Location::Unmarshalling(reply); in GetCacheLocationV9()
720 loc = nullptr; in GetCacheLocationV9()
/base/global/i18n_lite/tools/i18n-dat-tool/src/main/java/ohos/global/i18n/
DDataFetcher.java121 for (ULocale loc : availableLocales) { in processWildcard()
122 String finalLanguageTag = loc.toLanguageTag(); in processWildcard()
134 for (ULocale loc : availableLocales) { in processWildcard()
135 String finalLanguageTag = loc.toLanguageTag(); in processWildcard()
136 if (loc.getLanguage().equals(baseName) && !LOCALES.containsKey(finalLanguageTag) && in processWildcard()
/base/location/test/location_locator/source/
Dlocator_impl_test.cpp191 std::unique_ptr<Location> loc = std::make_unique<Location>(); variable
192 EXPECT_EQ(ERRCODE_SUCCESS, locatorImpl_->GetCachedLocationV9(loc)); // get last location
193 ASSERT_TRUE(loc != nullptr);
194 EXPECT_EQ(10.6, loc->GetLatitude());
195 EXPECT_EQ(10.5, loc->GetLongitude());
Dlocation_without_permission_test.cpp201 std::unique_ptr loc = std::make_unique<Location>(); variable
202 EXPECT_EQ(ERRCODE_SWITCH_OFF, locatorImpl->GetCachedLocationV9(loc));
203 EXPECT_EQ(nullptr, loc);
/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.cpp186 std::unique_ptr<OHOS::Location::Location> loc = in LocatorImplV9FuzzerTest() local
188 g_locatorImpl->GetCachedLocationV9(loc); in LocatorImplV9FuzzerTest()
468 std::unique_ptr<OHOS::Location::Location> loc = in LocatorAbility001FuzzerTest() local
470 locatorAbility->GetCacheLocation(loc, identity); in LocatorAbility001FuzzerTest()
/base/location/services/location_locator/locator/source/
Dlocator_ability.cpp770 LocationErrCode LocatorAbility::GetCacheLocation(std::unique_ptr<Location>& loc, AppIdentity &ident… in GetCacheLocation() argument
773 loc = reportManager_->GetPermittedLocation(identity.GetTokenId(), in GetCacheLocation()
775 if (loc == nullptr) { in GetCacheLocation()
778 if (fabs(loc->GetLatitude() - 0.0) > PRECISION in GetCacheLocation()
779 && fabs(loc->GetLongitude() - 0.0) > PRECISION) { in GetCacheLocation()
Dlocator_skeleton.cpp175 std::unique_ptr<Location> loc; in PreGetCacheLocation() local
176 reply.WriteInt32(locatorAbility->GetCacheLocation(loc, identity)); in PreGetCacheLocation()
177 if (loc != nullptr) { in PreGetCacheLocation()
178 loc->Marshalling(reply); in PreGetCacheLocation()
/base/location/services/location_locator/locator/include/
Dlocator_ability.h81 LocationErrCode GetCacheLocation(std::unique_ptr<Location>& loc, AppIdentity &identity);