Home
last modified time | relevance | path

Searched refs:hints (Results 1 – 25 of 39) sorted by relevance

12

/packages/modules/DnsResolver/tests/
Dresolv_unit_test.cpp211 const addrinfo hints = { in TEST_F() local
222 int rv = resolv_getaddrinfo("localhost", nullptr /*servname*/, &hints, &mNetcontext, in TEST_F()
237 const addrinfo hints = { in TEST_F() local
241 int rv = resolv_getaddrinfo("localhost", nullptr /*servname*/, &hints, &mNetcontext, in TEST_F()
253 const addrinfo hints = { in TEST_F() local
269 int rv = resolv_getaddrinfo("localhost", service, &hints, &mNetcontext, &result, in TEST_F()
312 const addrinfo hints = { in TEST_F() local
318 int rv = resolv_getaddrinfo("localhost", nullptr /*servname*/, &hints, &mNetcontext, in TEST_F()
386 const addrinfo hints = { in TEST_F() local
394 int rv = resolv_getaddrinfo("localhost", config.servname, &hints, &mNetcontext, &result, in TEST_F()
[all …]
Dresolv_integration_test.cpp98 const addrinfo* hints, unsigned netid, unsigned mark,
135 const addrinfo& hints) { in safe_getaddrinfo_time_taken() argument
137 ScopedAddrinfo result = safe_getaddrinfo(node, service, &hints); in safe_getaddrinfo_time_taken()
774 const addrinfo hints = {.ai_family = AF_INET}; in TEST_F() local
775 ScopedAddrinfo result = safe_getaddrinfo("hello", nullptr, &hints); in TEST_F()
825 const addrinfo hints = { in TEST_F() local
832 EXPECT_EQ(EAI_NODATA, getaddrinfo("hello", nullptr, &hints, &result)); in TEST_F()
868 addrinfo hints = {.ai_family = AF_INET}; in TEST_F() local
880 ScopedAddrinfo result = safe_getaddrinfo(host_name_deferred, nullptr, &hints); in TEST_F()
897 ScopedAddrinfo result = safe_getaddrinfo(host_name_deferred, nullptr, &hints); in TEST_F()
[all …]
Dresolv_gold_test.cpp186 const addrinfo hints = { in VerifyGetAddrInfo() local
202 resolv_getaddrinfo(args.host().c_str(), nullptr, &hints, &netcontext, &res, &event); in VerifyGetAddrInfo()
292 const addrinfo hints = {.ai_family = AF_INET}; in TEST_F() local
294 int rv = resolv_getaddrinfo(kHelloExampleCom, nullptr, &hints, &kNetcontext, &res, &event); in TEST_F()
304 rv = resolv_getaddrinfo(kHelloExampleCom, nullptr, &hints, &kNetcontext, &res, &event); in TEST_F()
320 const addrinfo hints = {.ai_family = AF_INET}; in TEST_F() local
322 int rv = resolv_getaddrinfo(kHelloExampleCom, nullptr, &hints, &kNetcontext, &res, &event); in TEST_F()
354 rv = resolv_getaddrinfo(kHelloExampleCom, nullptr, &hints, &kNetcontext, &res, &event); in TEST_F()
379 const addrinfo hints = {.ai_family = AF_UNSPEC, .ai_socktype = SOCK_STREAM}; in TEST_F() local
382 resolv_getaddrinfo(kHelloExampleCom, nullptr, &hints, &kNetcontextTls, &res, &event); in TEST_F()
Dresolv_callback_unit_test.cpp156 const addrinfo hints = {.ai_family = AF_INET}; in TEST_F() local
159 const int rv = resolv_getaddrinfo("hello", nullptr, &hints, &mNetcontext, &result, &event); in TEST_F()
Dresolv_test_utils.cpp154 const struct addrinfo* hints) { in safe_getaddrinfo() argument
156 if (getaddrinfo(node, service, hints, &result) != 0) { in safe_getaddrinfo()
/packages/modules/DnsResolver/
Dgetaddrinfo.cpp246 int getaddrinfo_numeric(const char* hostname, const char* servname, addrinfo hints, in getaddrinfo_numeric() argument
248 hints.ai_flags = AI_NUMERICHOST; in getaddrinfo_numeric()
258 return android_getaddrinfofornetcontext(hostname, servname, &hints, &netcontext, result, in getaddrinfo_numeric()
264 int validateHints(const addrinfo* _Nonnull hints) { in validateHints() argument
265 if (!hints) return EAI_BADHINTS; in validateHints()
268 if (hints->ai_addrlen || hints->ai_canonname || hints->ai_addr || hints->ai_next) { in validateHints()
271 if (hints->ai_flags & ~AI_MASK) { in validateHints()
274 if (!(hints->ai_family == PF_UNSPEC || hints->ai_family == PF_INET || in validateHints()
275 hints->ai_family == PF_INET6)) { in validateHints()
280 switch (hints->ai_socktype) { in validateHints()
[all …]
Dgetaddrinfo.h25 const addrinfo* hints, const android_net_context* netcontext,
29 int resolv_getaddrinfo(const char* hostname, const char* servname, const addrinfo* hints,
DDnsProxyListener.cpp759 std::unique_ptr<addrinfo> hints, in GetAddrInfoHandler() argument
764 mHints(std::move(hints)), in GetAddrInfoHandler()
1033 std::unique_ptr<addrinfo> hints; in runCommand() local
1035 hints.reset((addrinfo*)calloc(1, sizeof(addrinfo))); in runCommand()
1036 hints->ai_flags = ai_flags; in runCommand()
1037 hints->ai_family = ai_family; in runCommand()
1038 hints->ai_socktype = ai_socktype; in runCommand()
1039 hints->ai_protocol = ai_protocol; in runCommand()
1042 (new GetAddrInfoHandler(cli, name, service, std::move(hints), netcontext))->spawn(); in runCommand()
DDns64Configuration.cpp153 const struct addrinfo hints = { in doRfc7050PrefixDiscovery() local
164 resolv_getaddrinfo(kIPv4OnlyHost, nullptr, &hints, &netcontext, &res, &event); in doRfc7050PrefixDiscovery()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DWallpaperColorHints.kt35 var hints: Int = 0 in <lambda>() variable in com.android.launcher3.util.WallpaperColorHints
44 hints = wallpaperManager.getWallpaperColors(FLAG_SYSTEM)?.colorHints ?: 0 in <lambda>()
68 if (newHints != hints) { in <lambda>()
69 hints = newHints in <lambda>()
/packages/apps/Settings/src/com/android/settings/notification/
DRingerModeAffectedVolumePreferenceController.java70 final int hints; in updateEffectsSuppressor() local
72 hints = mNoMan.getHintsFromListenerNoToken(); in updateEffectsSuppressor()
78 if (hintsMatch(hints)) { in updateEffectsSuppressor()
173 protected abstract boolean hintsMatch(int hints); in hintsMatch() argument
DSeparateRingVolumePreferenceController.java98 protected boolean hintsMatch(int hints) { in hintsMatch() argument
99 return (hints & NotificationListenerService.HINT_HOST_DISABLE_CALL_EFFECTS) != 0 in hintsMatch()
100 || (hints & NotificationListenerService.HINT_HOST_DISABLE_EFFECTS) != 0; in hintsMatch()
DRingVolumePreferenceController.java97 protected boolean hintsMatch(int hints) { in hintsMatch() argument
98 return (hints & NotificationListenerService.HINT_HOST_DISABLE_CALL_EFFECTS) != 0 in hintsMatch()
99 || (hints & NotificationListenerService.HINT_HOST_DISABLE_EFFECTS) != 0; in hintsMatch()
DNotificationVolumePreferenceController.java115 protected boolean hintsMatch(int hints) { in hintsMatch() argument
117 (hints & NotificationListenerService.HINT_HOST_DISABLE_EFFECTS) != 0; in hintsMatch()
119 (hints & NotificationListenerService.HINT_HOST_DISABLE_NOTIFICATION_EFFECTS) != 0; in hintsMatch()
/packages/modules/NeuralNetworks/common/types/include/nnapi/
DIPreparedModel.h95 const std::vector<nn::TokenValuePair>& hints,
159 const std::vector<nn::TokenValuePair>& hints,
191 const std::vector<nn::TokenValuePair>& hints,
DIBurst.h120 const std::vector<nn::TokenValuePair>& hints,
149 const std::vector<nn::TokenValuePair>& hints,
DIDevice.h256 const std::vector<nn::TokenValuePair>& hints,
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/util/
DQrCodeGenerator.java47 final Map<EncodeHintType, Object> hints = new HashMap<>(); in encodeQrCode() local
49 hints.put(EncodeHintType.CHARACTER_SET, StandardCharsets.UTF_8.name()); in encodeQrCode()
53 size, size, hints); in encodeQrCode()
/packages/modules/NeuralNetworks/driver/sample/
DCanonicalPreparedModel.h44 const OptionalDuration& loopTimeoutDuration, const std::vector<TokenValuePair>& hints,
51 const std::vector<TokenValuePair>& hints,
56 const OptionalDuration& loopTimeoutDuration, const std::vector<TokenValuePair>& hints,
DCanonicalBurst.h44 const std::vector<TokenValuePair>& hints,
50 const std::vector<TokenValuePair>& hints,
DCanonicalDevice.h58 const std::vector<TokenValuePair>& hints,
DLimitedSupportDevice.h65 const std::vector<TokenValuePair>& hints,
/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/slices/builders/
DPreferenceSliceBuilderImpl.java403 ArrayList<String> hints = new ArrayList<>(); in setTitleItem() local
405 hints.add(HINT_NO_TINT); in setTitleItem()
408 hints.add(HINT_LARGE); in setTitleItem()
411 hints.add(HINT_PARTIAL); in setTitleItem()
414 .addIcon(icon, null /* subType */, hints); in setTitleItem()
614 ArrayList<String> hints = new ArrayList<>(); in addEndItem() local
616 hints.add(HINT_NO_TINT); in addEndItem()
619 hints.add(HINT_LARGE); in addEndItem()
622 hints.add(HINT_PARTIAL); in addEndItem()
625 .addIcon(icon, null /* subType */, hints); in addEndItem()
/packages/modules/DnsResolver/tests/fuzzer/
Dresolv_getaddrinfo_fuzzer.cpp18 addrinfo hints = {.ai_family = af, .ai_socktype = socktype}; in TestResolvGetaddrinfo() local
23 fdp.ConsumeBool() ? &hints : nullptr, &mNetContext, &result, &event); in TestResolvGetaddrinfo()
/packages/modules/Connectivity/staticlibs/netd/libnetdutils/
DInternetAddresses.cpp62 const addrinfo hints = { in forString() local
66 const int ret = getaddrinfo(repr.c_str(), nullptr, &hints, &res); in forString()

12