/packages/modules/DnsResolver/ |
D | resolv_unit_test.cpp | 162 int rv = resolv_getaddrinfo(nullptr /*hostname*/, nullptr /*servname*/, nullptr /*hints*/, in TEST_F() local 165 EXPECT_EQ(EAI_NONAME, rv); in TEST_F() 217 int rv = resolv_getaddrinfo("localhost", nullptr /*servname*/, &hints, &mNetcontext, in TEST_F() local 220 EXPECT_EQ(config.expected_eai_error, rv); in TEST_F() 236 int rv = resolv_getaddrinfo("localhost", nullptr /*servname*/, &hints, &mNetcontext, in TEST_F() local 239 EXPECT_EQ(EAI_FAMILY, rv); in TEST_F() 264 int rv = resolv_getaddrinfo("localhost", service, &hints, &mNetcontext, &result, in TEST_F() local 267 EXPECT_EQ(EAI_SOCKTYPE, rv); in TEST_F() 313 int rv = resolv_getaddrinfo("localhost", nullptr /*servname*/, &hints, &mNetcontext, in TEST_F() local 316 EXPECT_EQ(EAI_BADHINTS, rv); in TEST_F() [all …]
|
D | DnsProxyListener.cpp | 659 void DnsProxyListener::GetAddrInfoHandler::doDns64Synthesis(int32_t* rv, addrinfo** res, in doDns64Synthesis() argument 663 const bool ipv6WantedButNoData = (mHints && mHints->ai_family == AF_INET6 && *rv == EAI_NODATA); in doDns64Synthesis() 665 ((!mHints || mHints->ai_family == AF_UNSPEC) && *rv == 0 && onlyIPv4Answers(*res)); in doDns64Synthesis() 683 *rv = resolv_getaddrinfo(mHost, mService, mHints, &mNetContext, res, event); in doDns64Synthesis() 685 if (*rv) { in doDns64Synthesis() 686 *rv = EAI_NODATA; // return original error code in doDns64Synthesis() 699 *rv = EAI_NODATA; // return original error code in doDns64Synthesis() 717 int32_t rv = 0; in run() local 722 rv = resolv_getaddrinfo(mHost, mService, mHints, &mNetContext, &result, in run() 725 rv = EAI_SYSTEM; in run() [all …]
|
D | ResolverController.cpp | 146 int rv = in getDnsInfo() local 150 if (rv == 0) { in getDnsInfo() 153 LOG(ERROR) << "getnameinfo() failed for server #" << i << ": " << gai_strerror(rv); in getDnsInfo() 301 int rv = getDnsInfo(netId, &servers, &domains, ¶ms, &stats, in dump() local 304 if (rv != 0) { in dump()
|
/packages/apps/DeskClock/src/com/android/alarmclock/ |
D | DigitalAppWidgetCityViewsFactory.kt | 102 val rv = RemoteViews(mContext.getPackageName(), R.layout.world_clock_remote_list_item) in getViewAt() constant 106 update(rv, left, R.id.left_clock, R.id.city_name_left, R.id.city_day_left) in getViewAt() 108 hide(rv, R.id.left_clock, R.id.city_name_left, R.id.city_day_left) in getViewAt() 113 update(rv, right, R.id.right_clock, R.id.city_name_right, R.id.city_day_right) in getViewAt() 115 hide(rv, R.id.right_clock, R.id.city_name_right, R.id.city_day_right) in getViewAt() 120 rv.setViewVisibility(R.id.city_spacer, if (lastRow) View.GONE else View.VISIBLE) in getViewAt() 121 rv.setOnClickFillInIntent(R.id.widget_item, mFillInIntent) in getViewAt() 122 return rv in getViewAt() 160 private fun update(rv: RemoteViews, city: City, clockId: Int, labelId: Int, dayId: Int) { in update() 161 rv.setCharSequence(clockId, "setFormat12Hour", Utils.get12ModeFormat(0.4f, false)) in update() [all …]
|
D | DigitalAppWidgetCityViewsFactory.java | 116 final RemoteViews rv = in getViewAt() 121 update(rv, left, R.id.left_clock, R.id.city_name_left, R.id.city_day_left); in getViewAt() 123 hide(rv, R.id.left_clock, R.id.city_name_left, R.id.city_day_left); in getViewAt() 128 update(rv, right, R.id.right_clock, R.id.city_name_right, R.id.city_day_right); in getViewAt() 130 hide(rv, R.id.right_clock, R.id.city_name_right, R.id.city_day_right); in getViewAt() 135 rv.setViewVisibility(R.id.city_spacer, lastRow ? View.GONE : View.VISIBLE); in getViewAt() 137 rv.setOnClickFillInIntent(R.id.widget_item, mFillInIntent); in getViewAt() 138 return rv; in getViewAt() 180 private void update(RemoteViews rv, City city, int clockId, int labelId, int dayId) { 181 rv.setCharSequence(clockId, "setFormat12Hour", Utils.get12ModeFormat(0.4f, false)); [all …]
|
D | DigitalAppWidgetProvider.java | 208 final RemoteViews rv = new RemoteViews(packageName, R.layout.digital_widget); in relayoutWidget() local 214 rv.setOnClickPendingIntent(R.id.digital_widget, pi); in relayoutWidget() 219 rv.setCharSequence(R.id.date, "setFormat12Hour", dateFormat); in relayoutWidget() 220 rv.setCharSequence(R.id.date, "setFormat24Hour", dateFormat); in relayoutWidget() 224 rv.setViewVisibility(R.id.nextAlarm, GONE); in relayoutWidget() 225 rv.setViewVisibility(R.id.nextAlarmIcon, GONE); in relayoutWidget() 227 rv.setTextViewText(R.id.nextAlarm, nextAlarmTime); in relayoutWidget() 228 rv.setViewVisibility(R.id.nextAlarm, VISIBLE); in relayoutWidget() 229 rv.setViewVisibility(R.id.nextAlarmIcon, VISIBLE); in relayoutWidget() 258 rv.setImageViewBitmap(R.id.nextAlarmIcon, sizes.mIconBitmap); in relayoutWidget() [all …]
|
D | DigitalAppWidgetProvider.kt | 323 val rv = RemoteViews(packageName, R.layout.digital_widget) in <lambda>() constant 329 rv.setOnClickPendingIntent(R.id.digital_widget, pi) in <lambda>() 334 rv.setCharSequence(R.id.date, "setFormat12Hour", dateFormat) in <lambda>() 335 rv.setCharSequence(R.id.date, "setFormat24Hour", dateFormat) in <lambda>() 339 rv.setViewVisibility(R.id.nextAlarm, GONE) in <lambda>() 340 rv.setViewVisibility(R.id.nextAlarmIcon, GONE) in <lambda>() 342 rv.setTextViewText(R.id.nextAlarm, nextAlarmTime) in <lambda>() 343 rv.setViewVisibility(R.id.nextAlarm, VISIBLE) in <lambda>() 344 rv.setViewVisibility(R.id.nextAlarmIcon, VISIBLE) in <lambda>() 371 rv.setImageViewBitmap(R.id.nextAlarmIcon, sizes.mIconBitmap) in <lambda>() [all …]
|
/packages/modules/DnsResolver/tests/dns_responder/ |
D | dns_responder_client_ndk.cpp | 103 auto rv = dnsResolverService->getResolverInfo(netId, servers, domains, tlsServers, ¶ms32, in GetResolverInfo() local 106 if (!rv.isOk() || params32.size() != static_cast<size_t>(IDnsResolver::RESOLVER_PARAMS_COUNT)) { in GetResolverInfo() 144 const auto rv = mDnsResolvSrv->setResolverConfiguration(resolverParams); in SetResolversForNetwork() local 145 return rv.isOk(); in SetResolversForNetwork() 155 const auto rv = mDnsResolvSrv->setResolverConfiguration(resolverParams); in SetResolversWithTls() local 156 if (!rv.isOk()) LOG(ERROR) << "SetResolversWithTls() -> " << rv.getMessage(); in SetResolversWithTls() 157 return rv.isOk(); in SetResolversWithTls() 161 const auto rv = mDnsResolvSrv->setResolverConfiguration(resolverParams); in SetResolversFromParcel() local 162 if (!rv.isOk()) LOG(ERROR) << "SetResolversFromParcel() -> " << rv.getMessage(); in SetResolversFromParcel() 163 return rv.isOk(); in SetResolversFromParcel()
|
D | dns_tls_frontend.cpp | 54 int rv = getnameinfo(sa, sa_len, host_str, sizeof(host_str), nullptr, 0, NI_NUMERICHOST); in addr2str() local 55 if (rv == 0) return std::string(host_str); in addr2str() 102 int rv = getaddrinfo(listen_address_.c_str(), listen_service_.c_str(), &frontend_ai_hints, in startServer() local 105 if (rv) { in startServer() 107 << listen_service_.c_str() << ") failed: " << gai_strerror(rv); in startServer() 138 rv = getaddrinfo(backend_address_.c_str(), backend_service_.c_str(), &backend_ai_hints, in startServer() 141 if (rv) { in startServer() 143 << listen_service_.c_str() << ") failed: " << gai_strerror(rv); in startServer()
|
/packages/apps/Launcher3/src/com/android/launcher3/allapps/ |
D | AllAppsContainerView.java | 184 AllAppsRecyclerView rv = getActiveRecyclerView(); in shouldContainerScroll() local 185 if (rv == null) { in shouldContainerScroll() 188 if (rv.getScrollbar().getThumbOffsetY() >= 0 && in shouldContainerScroll() 189 mLauncher.getDragLayer().isEventOverView(rv.getScrollbar(), ev)) { in shouldContainerScroll() 192 return rv.shouldContainerScroll(ev, mLauncher.getDragLayer()); in shouldContainerScroll() 206 AllAppsRecyclerView rv = getActiveRecyclerView(); in onInterceptTouchEvent() local 207 if (rv != null && in onInterceptTouchEvent() 208 rv.getScrollbar().isHitInParent(ev.getX(), ev.getY(), mFastScrollerOffset)) { in onInterceptTouchEvent() 209 mTouchHandler = rv.getScrollbar(); in onInterceptTouchEvent() 223 AllAppsRecyclerView rv = getActiveRecyclerView(); in onTouchEvent() local [all …]
|
/packages/modules/DnsResolver/tests/ |
D | resolv_test_utils.cpp | 40 int rv = getnameinfo(ai->ai_addr, ai->ai_addrlen, host, sizeof(host), nullptr, 0, in ToString() local 42 if (rv != 0) return gai_strerror(rv); in ToString() 53 int rv = getnameinfo((const sockaddr*)addr, sizeof(sockaddr_storage), host, sizeof(host), in ToString() local 55 if (rv != 0) return gai_strerror(rv); in ToString() 88 int rv = getnameinfo(aip->ai_addr, aip->ai_addrlen, host, sizeof(host), nullptr, 0, in ToStrings() local 90 if (rv != 0) { in ToStrings() 92 hosts.push_back(gai_strerror(rv)); in ToStrings()
|
D | resolv_gold_test.cpp | 201 const int rv = in VerifyGetAddrInfo() local 204 ASSERT_EQ(rv, goldtest.result().return_code()); in VerifyGetAddrInfo() 216 const int rv = resolv_gethostbyname(args.host().c_str(), args.family(), &hbuf, tmpbuf, in VerifyGetHostByName() local 218 ASSERT_EQ(rv, goldtest.result().return_code()); in VerifyGetHostByName() 290 int rv = resolv_getaddrinfo(kHelloExampleCom, nullptr, &hints, &kNetcontext, &res, &event); in TEST_F() local 293 ASSERT_EQ(rv, 0); in TEST_F() 300 rv = resolv_getaddrinfo(kHelloExampleCom, nullptr, &hints, &kNetcontext, &res, &event); in TEST_F() 303 ASSERT_EQ(rv, EAI_NODATA); in TEST_F() 318 int rv = resolv_getaddrinfo(kHelloExampleCom, nullptr, &hints, &kNetcontext, &res, &event); in TEST_F() local 321 ASSERT_EQ(rv, 0); in TEST_F() [all …]
|
D | resolv_stress_test.cpp | 61 int rv = getaddrinfo(mapping.host.c_str(), nullptr, nullptr, &result); in RunGetAddrInfoStressTest() local 62 EXPECT_EQ(0, rv) << "error [" << rv << "] " << gai_strerror(rv); in RunGetAddrInfoStressTest() 63 if (rv == 0) { in RunGetAddrInfoStressTest()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ |
D | RefreshHelper.java | 40 private boolean onInterceptTouchEvent(RecyclerView rv, MotionEvent e) { in onInterceptTouchEvent() argument 48 if (Events.isActionDown(e) && rv.computeVerticalScrollOffset() != 0) { in onInterceptTouchEvent() 60 private void onTouchEvent(RecyclerView rv, MotionEvent e) { in onTouchEvent() argument 72 public void onTouchEvent(RecyclerView rv, MotionEvent e) { in attach() 73 RefreshHelper.this.onTouchEvent(rv, e); in attach() 77 public boolean onInterceptTouchEvent(RecyclerView rv, MotionEvent e) { in attach() 78 return RefreshHelper.this.onInterceptTouchEvent(rv, e); in attach()
|
D | ScaleHelper.java | 54 private boolean onInterceptTouchEvent(RecyclerView rv, MotionEvent e) { in onInterceptTouchEvent() argument 83 public boolean onInterceptTouchEvent(RecyclerView rv, MotionEvent e) { in attach() 84 return ScaleHelper.this.onInterceptTouchEvent(rv, e); in attach() 88 public void onTouchEvent(RecyclerView rv, MotionEvent e) {} in attach()
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/ |
D | FallbackActivityControllerHelper.java | 127 FallbackRecentsView rv = activity.getOverviewPanel(); 128 rv.setContentAlpha(0); 129 rv.getClearAllButton().setVisibilityAlpha(0); 130 rv.setDisallowScrollToClearAll(true); 133 rv.setInOverviewState(fromState); 143 rv.setContentAlpha(1); 153 ObjectAnimator anim = ObjectAnimator.ofFloat(rv, CONTENT_ALPHA, 0, 1); 158 ObjectAnimator anim = ObjectAnimator.ofFloat(rv, ZOOM_PROGRESS, 1, 0); 168 rv.setInOverviewState(controller.getInterpolatedProgress() > 0.5 ?
|
D | OverviewCommandHelper.java | 103 RecentsView rv = (RecentsView) mHelper.getVisibleRecentsView(); in onTransitionComplete() local 104 if (rv == null) { in onTransitionComplete() 109 TaskView taskView = rv.getNextTaskView(); in onTransitionComplete() 111 if (rv.getTaskViewCount() > 0) { in onTransitionComplete() 112 taskView = rv.getTaskViewAt(0); in onTransitionComplete() 115 rv.requestFocus(); in onTransitionComplete()
|
/packages/apps/Launcher3/go/quickstep/src/com/android/quickstep/ |
D | FallbackActivityControllerHelper.java | 52 IconRecentsView rv = activity.getOverviewPanel(); in prepareRecentsUI() local 53 rv.setUsingRemoteAnimation(true); in prepareRecentsUI() 54 rv.setAlpha(0); in prepareRecentsUI() 64 rv.setAlpha(1); in prepareRecentsUI() 76 ObjectAnimator anim = ObjectAnimator.ofFloat(rv, CONTENT_ALPHA, 0, 1); in prepareRecentsUI()
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/ |
D | ConversationFastScroller.java | 65 public static ConversationFastScroller addTo(RecyclerView rv, int position) { in addTo() argument 67 return new ConversationFastScroller(rv, position); in addTo() 122 private ConversationFastScroller(RecyclerView rv, int position) { in ConversationFastScroller() argument 123 mContext = rv.getContext(); in ConversationFastScroller() 124 mRv = rv; in ConversationFastScroller() 155 mOverlay = rv.getOverlay(); in ConversationFastScroller() 330 public boolean onInterceptTouchEvent(RecyclerView rv, MotionEvent e) { in onInterceptTouchEvent() argument 372 public void onTouchEvent(RecyclerView rv, MotionEvent e) { in onTouchEvent() argument
|
/packages/apps/Launcher3/ |
D | fill_screens.py | 36 rv = os.system("adb pull" 39 if rv != 0: 45 rv = os.system("adb push" 48 if rv != 0:
|
/packages/apps/Gallery2/jni/filters/ |
D | hsv.c | 45 short rv,rs,rh; in rgb2hsv() local 57 rv = (short)( iMax << ABITS); in rgb2hsv() 60 if (rv == 0) in rgb2hsv() 77 hsv[hsvOff+0] = rv; in rgb2hsv()
|
/packages/apps/Launcher3/src/com/android/launcher3/settings/ |
D | SettingsActivity.java | 276 private void requestAccessibilityFocus(@NonNull final RecyclerView rv) { in requestAccessibilityFocus() argument 277 rv.post(() -> { in requestAccessibilityFocus() 278 if (!rv.hasFocus() && rv.getChildCount() > 0) { in requestAccessibilityFocus() 279 rv.getChildAt(0) in requestAccessibilityFocus()
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
D | WidgetsListAdapter.java | 80 public void setApplyBitmapDeferred(boolean isDeferred, RecyclerView rv) { in setApplyBitmapDeferred() argument 83 for (int i = rv.getChildCount() - 1; i >= 0; i--) { in setApplyBitmapDeferred() 85 rv.getChildViewHolder(rv.getChildAt(i)); in setApplyBitmapDeferred()
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/touchcontrollers/ |
D | OverviewToAllAppsTouchController.java | 58 RecentsView rv = mLauncher.getOverviewPanel(); in canInterceptTouch() local 59 return ev.getY() > (rv.getBottom() - rv.getPaddingBottom()); in canInterceptTouch()
|
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/ |
D | WidgetService.java | 110 RemoteViews rv = new RemoteViews( in getLoadingView() local 113 rv.setProgressBar(R.id.appwidget_loading_item, 0, 0, true); in getLoadingView() 114 return rv; in getLoadingView()
|