/base/update/updater/services/script/script_interpreter/ |
D | script_lex.l | 28 #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 …]
|
D | scanner.h | 41 loc = location(); in Scanner() 61 location loc {};
|
D | script_yacc.y | 71 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/ |
D | intl_test.cpp | 108 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/ |
D | location_async_context.h | 40 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()
|
D | locator.h | 84 virtual LocationErrCode GetCachedLocationV9(std::unique_ptr<Location> &loc) = 0;
|
D | locator_impl.h | 83 LocationErrCode GetCachedLocationV9(std::unique_ptr<Location> &loc) override;
|
D | locator_proxy.h | 98 LocationErrCode GetCacheLocationV9(std::unique_ptr<Location> &loc);
|
/base/location/frameworks/native/source/ |
D | locator_callback_host.cpp | 111 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()
|
D | locator_impl.cpp | 334 LocationErrCode LocatorImpl::GetCachedLocationV9(std::unique_ptr<Location> &loc) in GetCachedLocationV9() argument 337 return client_->GetCacheLocationV9(loc); in GetCachedLocationV9()
|
D | locator_proxy.cpp | 713 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/ |
D | DataFetcher.java | 121 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/ |
D | locator_impl_test.cpp | 191 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());
|
D | location_without_permission_test.cpp | 201 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/ |
D | location_napi_adapter.cpp | 44 …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/ |
D | locator_fuzzer.cpp | 186 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/ |
D | locator_ability.cpp | 770 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()
|
D | locator_skeleton.cpp | 175 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/ |
D | locator_ability.h | 81 LocationErrCode GetCacheLocation(std::unique_ptr<Location>& loc, AppIdentity &identity);
|