/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/tools/ |
D | data_process.py | 35 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/ |
D | lib.rs | 64 …let (file, line) = info.location().map(|loc| (loc.file(), loc.line())).unwrap_or(("<unknown>", 0)); in report_info_handler()
|
/base/location/frameworks/native/source/ |
D | locator_callback_host.cpp | 110 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()
|
D | locator_proxy.cpp | 688 LocationErrCode LocatorProxy::GetCacheLocationV9(std::unique_ptr<Location> &loc) in GetCacheLocationV9() argument 694 loc = Location::Unmarshalling(reply); in GetCacheLocationV9() 696 loc = nullptr; in GetCacheLocationV9()
|
D | locator_impl.cpp | 686 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/ |
D | location_async_context.h | 43 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()
|
D | locator_proxy.h | 95 LocationErrCode GetCacheLocationV9(std::unique_ptr<Location> &loc);
|
D | locator_impl.h | 92 LocationErrCode GetCachedLocationV9(std::unique_ptr<Location> &loc);
|
D | locator.h | 85 virtual LocationErrCode GetCachedLocationV9(std::unique_ptr<Location> &loc) = 0;
|
/base/location/test/location_locator/source/ |
D | location_without_permission_test.cpp | 227 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);
|
D | locator_impl_test.cpp | 229 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/ |
D | intl_test.cpp | 121 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/ |
D | DataFetcher.java | 128 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/ |
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 | 199 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/ |
D | locator_ability.cpp | 846 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()
|
D | locator_skeleton.cpp | 221 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/ |
D | locator_ability.h | 87 LocationErrCode GetCacheLocation(std::unique_ptr<Location>& loc, AppIdentity &identity);
|
/base/location/services/location_gnss/gnss/source/ |
D | gnss_ability.cpp | 642 auto loc = GetLocationMock(); in IsMockProcessing() local 643 return !loc.empty(); in IsMockProcessing()
|