Home
last modified time | relevance | path

Searched refs:host (Results 1 – 25 of 192) sorted by relevance

12345678

/packages/apps/Messaging/src/com/android/messaging/util/
DEmailAddress.java69 public EmailAddress(final String user, final String host) { in EmailAddress() argument
70 this(user, host, false); in EmailAddress()
80 public EmailAddress(final String user, final String host, final boolean i18n) { in EmailAddress() argument
83 setHost(host); in EmailAddress()
102 host = emailString.substring(atIndex + 1); in parseEmail()
109 return user + "@" + host; in toString()
118 if ((user == null) || (host == null)) { in isValidInternal()
122 if ((user.length() == 0) || (host.length() == 0)) { in isValidInternal()
127 if (ANY_WHITESPACE.indexIn(host) >= 0) { in isValidInternal()
132 if (host.length() < 4) { in isValidInternal()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/
DLauncherAccessibilityDelegate.java110 public void onInitializeAccessibilityNodeInfo(View host, AccessibilityNodeInfo info) { in onInitializeAccessibilityNodeInfo() argument
111 super.onInitializeAccessibilityNodeInfo(host, info); in onInitializeAccessibilityNodeInfo()
112 addSupportedActions(host, info, false); in onInitializeAccessibilityNodeInfo()
115 public void addSupportedActions(View host, AccessibilityNodeInfo info, boolean fromKeyboard) { in addSupportedActions() argument
116 if (!(host.getTag() instanceof ItemInfo)) return; in addSupportedActions()
117 ItemInfo item = (ItemInfo) host.getTag(); in addSupportedActions()
127 if (target.supportsAccessibilityDrop(item, host)) { in addSupportedActions()
139 if (!getSupportedResizeActions(host, (LauncherAppWidgetInfo) item).isEmpty()) { in addSupportedActions()
160 public boolean performAccessibilityAction(View host, int action, Bundle args) { in performAccessibilityAction() argument
161 if ((host.getTag() instanceof ItemInfo) in performAccessibilityAction()
[all …]
DShortcutMenuAccessibilityDelegate.java51 public void addSupportedActions(View host, AccessibilityNodeInfo info, boolean fromKeyboard) { in addSupportedActions() argument
52 if ((host.getParent() instanceof DeepShortcutView)) { in addSupportedActions()
54 } else if (host instanceof NotificationMainView) { in addSupportedActions()
55 if (((NotificationMainView) host).canChildBeDismissed()) { in addSupportedActions()
62 public boolean performAction(View host, ItemInfo item, int action) { in performAction() argument
64 if (!(host.getParent() instanceof DeepShortcutView)) { in performAction()
67 final WorkspaceItemInfo info = ((DeepShortcutView) host.getParent()).getFinalInfo(); in performAction()
87 if (!(host instanceof NotificationMainView)) { in performAction()
90 ((NotificationMainView) host).onChildDismissed(); in performAction()
/packages/modules/DnsResolver/tests/
Dresolv_test_utils.cpp39 char host[NI_MAXHOST]; in ToString() local
40 int rv = getnameinfo(ai->ai_addr, ai->ai_addrlen, host, sizeof(host), nullptr, 0, in ToString()
43 return host; in ToString()
52 char host[NI_MAXHOST]; in ToString() local
53 int rv = getnameinfo((const sockaddr*)addr, sizeof(sockaddr_storage), host, sizeof(host), in ToString()
56 return host; in ToString()
67 char host[INET6_ADDRSTRLEN]; in ToStrings() local
68 if (!inet_ntop(he->h_addrtype, he->h_addr_list[i], host, sizeof(host))) { in ToStrings()
72 hosts.push_back(host); in ToStrings()
87 char host[NI_MAXHOST]; in ToStrings() local
[all …]
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/
DCameraPreview.java53 private final CameraPreviewHost host; field in CameraPreview
55 public CameraPreview(final CameraPreviewHost host) { in CameraPreview() argument
56 Assert.isNotNull(host); in CameraPreview()
57 Assert.isNotNull(host.getView()); in CameraPreview()
58 this.host = host; in CameraPreview()
70 boolean visible = host.getView().getVisibility() == View.VISIBLE; in maybeOpenCamera()
89 host.getView().requestLayout(); in setSize()
131 return host.getView().getContext(); in getContext()
136 host.getView().setOnTouchListener(listener); in setOnTouchListener()
140 host.getView().setOnTouchListener(focusable ? listener : null); in setFocusable()
[all …]
/packages/apps/Settings/src/com/android/settings/development/
DEnableAdbWarningDialog.java36 public static void show(Fragment host) { in show() argument
37 final FragmentManager manager = host.getActivity().getSupportFragmentManager(); in show()
40 dialog.setTargetFragment(host, 0 /* requestCode */); in show()
62 final AdbDialogHost host = (AdbDialogHost) getTargetFragment(); in onClick() local
63 if (host == null) { in onClick()
67 host.onEnableAdbDialogConfirmed(); in onClick()
69 host.onEnableAdbDialogDismissed(); in onClick()
76 final AdbDialogHost host = (AdbDialogHost) getTargetFragment(); in onDismiss() local
77 if (host == null) { in onDismiss()
80 host.onEnableAdbDialogDismissed(); in onDismiss()
DEnableOemUnlockSettingWarningDialog.java36 public static void show(Fragment host) { in show() argument
37 final FragmentManager manager = host.getActivity().getSupportFragmentManager(); in show()
41 dialog.setTargetFragment(host, 0 /* requestCode */); in show()
63 final OemUnlockDialogHost host = (OemUnlockDialogHost) getTargetFragment(); in onClick() local
64 if (host == null) { in onClick()
68 host.onOemUnlockDialogConfirmed(); in onClick()
70 host.onOemUnlockDialogDismissed(); in onClick()
77 final OemUnlockDialogHost host = (OemUnlockDialogHost) getTargetFragment(); in onDismiss() local
78 if (host == null) { in onDismiss()
81 host.onOemUnlockDialogDismissed(); in onDismiss()
DDisableLogPersistWarningDialog.java36 public static void show(LogPersistDialogHost host) { in show() argument
37 if (!(host instanceof Fragment)) { in show()
40 final Fragment hostFragment = (Fragment) host; in show()
67 final LogPersistDialogHost host = (LogPersistDialogHost) getTargetFragment(); in onClick() local
68 if (host == null) { in onClick()
72 host.onDisableLogPersistDialogConfirmed(); in onClick()
74 host.onDisableLogPersistDialogRejected(); in onClick()
DEnableDevelopmentSettingWarningDialog.java36 DevelopmentSettingsDashboardFragment host) { in show() argument
39 dialog.setTargetFragment(host, 0 /* requestCode */); in show()
40 final FragmentManager manager = host.getActivity().getSupportFragmentManager(); in show()
63 final DevelopmentSettingsDashboardFragment host = in onClick() local
66 host.onEnableDevelopmentOptionsConfirmed(); in onClick()
68 host.onEnableDevelopmentOptionsRejected(); in onClick()
DClearAdbKeysWarningDialog.java36 public static void show(Fragment host) { in show() argument
37 final FragmentManager manager = host.getActivity().getSupportFragmentManager(); in show()
41 dialog.setTargetFragment(host, 0 /* requestCode */); in show()
62 final AdbClearKeysDialogHost host = (AdbClearKeysDialogHost) getTargetFragment(); in onClick() local
63 if (host == null) { in onClick()
66 host.onAdbClearKeysDialogConfirmed(); in onClick()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/
DEnableAdbWarningDialog.java36 public static void show(Fragment host) { in show() argument
37 final FragmentManager manager = host.getActivity().getSupportFragmentManager(); in show()
40 dialog.setTargetFragment(host, 0 /* requestCode */); in show()
62 final AdbDialogHost host = (AdbDialogHost) getTargetFragment(); in onClick() local
63 if (host == null) { in onClick()
67 host.onEnableAdbDialogConfirmed(); in onClick()
69 host.onEnableAdbDialogDismissed(); in onClick()
76 final AdbDialogHost host = (AdbDialogHost) getTargetFragment(); in onDismiss() local
77 if (host == null) { in onDismiss()
80 host.onEnableAdbDialogDismissed(); in onDismiss()
DEnableOemUnlockSettingWarningDialog.java36 public static void show(Fragment host) { in show() argument
37 final FragmentManager manager = host.getActivity().getSupportFragmentManager(); in show()
41 dialog.setTargetFragment(host, 0 /* requestCode */); in show()
63 final OemUnlockDialogHost host = (OemUnlockDialogHost) getTargetFragment(); in onClick() local
64 if (host == null) { in onClick()
68 host.onOemUnlockDialogConfirmed(); in onClick()
70 host.onOemUnlockDialogDismissed(); in onClick()
77 final OemUnlockDialogHost host = (OemUnlockDialogHost) getTargetFragment(); in onDismiss() local
78 if (host == null) { in onDismiss()
81 host.onOemUnlockDialogDismissed(); in onDismiss()
DDisableLogPersistWarningDialog.java36 public static void show(LogPersistDialogHost host) { in show() argument
37 if (!(host instanceof Fragment)) { in show()
40 final Fragment hostFragment = (Fragment) host; in show()
67 final LogPersistDialogHost host = (LogPersistDialogHost) getTargetFragment(); in onClick() local
68 if (host == null) { in onClick()
72 host.onDisableLogPersistDialogConfirmed(); in onClick()
74 host.onDisableLogPersistDialogRejected(); in onClick()
DClearAdbKeysWarningDialog.java36 public static void show(Fragment host) { in show() argument
37 final FragmentManager manager = host.getActivity().getSupportFragmentManager(); in show()
41 dialog.setTargetFragment(host, 0 /* requestCode */); in show()
62 final AdbClearKeysDialogHost host = (AdbClearKeysDialogHost) getTargetFragment(); in onClick() local
63 if (host == null) { in onClick()
66 host.onAdbClearKeysDialogConfirmed(); in onClick()
DEnableDevelopmentSettingWarningDialog.java36 DevelopmentSettingsDashboardFragment host) { in show() argument
39 dialog.setTargetFragment(host, 0 /* requestCode */); in show()
40 final FragmentManager manager = host.getActivity().getSupportFragmentManager(); in show()
63 final DevelopmentSettingsDashboardFragment host = in onClick() local
66 host.onEnableDevelopmentOptionsConfirmed(); in onClick()
68 host.onEnableDevelopmentOptionsRejected(); in onClick()
/packages/apps/Settings/src/com/android/settings/search/actionbar/
DSearchMenuController.java47 public static void init(@NonNull InstrumentedPreferenceFragment host) { in init() argument
48 host.getSettingsLifecycle().addObserver( in init()
49 new SearchMenuController(host, host.getMetricsCategory())); in init()
52 public static void init(@NonNull InstrumentedFragment host) { in init() argument
53 host.getSettingsLifecycle().addObserver( in init()
54 new SearchMenuController(host, host.getMetricsCategory())); in init()
57 private SearchMenuController(@NonNull Fragment host, int pageId) { in SearchMenuController() argument
58 mHost = host; in SearchMenuController()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/search/actionbar/
DSearchMenuController.java47 public static void init(@NonNull InstrumentedPreferenceFragment host) { in init() argument
48 host.getSettingsLifecycle().addObserver( in init()
49 new SearchMenuController(host, host.getMetricsCategory())); in init()
52 public static void init(@NonNull InstrumentedFragment host) { in init() argument
53 host.getSettingsLifecycle().addObserver( in init()
54 new SearchMenuController(host, host.getMetricsCategory())); in init()
57 private SearchMenuController(@NonNull Fragment host, int pageId) { in SearchMenuController() argument
58 mHost = host; in SearchMenuController()
/packages/modules/NetworkStack/src/com/android/networkstack/util/
DDnsUtils.java63 @NonNull final Network network, @NonNull String host, int timeout, in getAllByName() argument
66 final StringBuilder errorMsg = new StringBuilder(host); in getAllByName()
70 getAllByName(dnsResolver, network, host, TYPE_AAAA, FLAG_NO_CACHE_LOOKUP, in getAllByName()
78 getAllByName(dnsResolver, network, host, TYPE_A, FLAG_NO_CACHE_LOOKUP, in getAllByName()
87 throw new UnknownHostException(host); in getAllByName()
89 logger.log("OK: " + host + " " + result.toString()); in getAllByName()
99 @NonNull final Network network, @NonNull final String host, int type, int flag, in getAllByName() argument
119 Log.d(TAG, "DNS error resolving " + host, e); in getAllByName()
132 dnsResolver.query(network, host, flag, r -> r.run(), null /* cancellationSignal */, in getAllByName()
135 dnsResolver.query(network, host, type, flag, r -> r.run(), in getAllByName()
[all …]
/packages/apps/Settings/src/com/android/settings/support/actionbar/
DHelpMenuController.java42 public static void init(@NonNull ObservablePreferenceFragment host) { in init() argument
43 host.getSettingsLifecycle().addObserver(new HelpMenuController(host)); in init()
46 public static void init(@NonNull ObservableFragment host) { in init() argument
47 host.getSettingsLifecycle().addObserver(new HelpMenuController(host)); in init()
50 private HelpMenuController(@NonNull Fragment host) { in HelpMenuController() argument
51 mHost = host; in HelpMenuController()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/support/actionbar/
DHelpMenuController.java42 public static void init(@NonNull ObservablePreferenceFragment host) { in init() argument
43 host.getSettingsLifecycle().addObserver(new HelpMenuController(host)); in init()
46 public static void init(@NonNull ObservableFragment host) { in init() argument
47 host.getSettingsLifecycle().addObserver(new HelpMenuController(host)); in init()
50 private HelpMenuController(@NonNull Fragment host) { in HelpMenuController() argument
51 mHost = host; in HelpMenuController()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DAccessibilityEventRouter.java60 public void onInitializeAccessibilityNodeInfo(View host, in AccessibilityEventRouter()
62 super.onInitializeAccessibilityNodeInfo(host, info); in AccessibilityEventRouter()
63 final RecyclerView.ViewHolder holder = recyclerView.getChildViewHolder(host); in AccessibilityEventRouter()
73 info.setSelected(host.isActivated()); in AccessibilityEventRouter()
77 public boolean performAccessibilityAction(View host, int action, Bundle args) { in AccessibilityEventRouter()
80 return mClickCallback.apply(host); in AccessibilityEventRouter()
83 return mLongClickCallback.apply(host); in AccessibilityEventRouter()
85 return super.performAccessibilityAction(host, action, args); in AccessibilityEventRouter()
/packages/apps/Settings/src/com/android/settings/deviceinfo/aboutphone/
DDeviceNameWarningDialog.java38 public static void show(MyDeviceInfoFragment host) { in show() argument
39 final FragmentManager manager = host.getActivity().getSupportFragmentManager(); in show()
45 dialog.setTargetFragment(host, 0 /* requestCode */); in show()
67 final MyDeviceInfoFragment host = (MyDeviceInfoFragment) getTargetFragment(); in onClick() local
69 host.onSetDeviceNameConfirm(true); in onClick()
71 host.onSetDeviceNameConfirm(false); in onClick()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/aboutphone/
DDeviceNameWarningDialog.java38 public static void show(MyDeviceInfoFragment host) { in show() argument
39 final FragmentManager manager = host.getActivity().getSupportFragmentManager(); in show()
45 dialog.setTargetFragment(host, 0 /* requestCode */); in show()
67 final MyDeviceInfoFragment host = (MyDeviceInfoFragment) getTargetFragment(); in onClick() local
69 host.onSetDeviceNameConfirm(true); in onClick()
71 host.onSetDeviceNameConfirm(false); in onClick()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/
DMailTransport.java58 private final String host; field in MailTransport
77 host = address; in MailTransport()
88 return new MailTransport(context, imapHelper, network, host, port, flags); in clone()
104 LogUtils.d(TAG, "*** IMAP open " + host + ":" + String.valueOf(port)); in open()
109 socketAddresses.add(new InetSocketAddress(host, port)); in open()
112 InetAddress[] inetAddresses = network.getAllByName(host); in open()
116 "Host name " + host + "cannot be resolved on designated network"); in open()
213 verifyHostname(socket, host); in reopenTls()
296 return host; in getHost()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/localepicker/
DLocaleLinearLayoutManager.java77 RecyclerView.State state, View host, AccessibilityNodeInfoCompat info) { in onInitializeAccessibilityNodeInfoForItem() argument
79 super.onInitializeAccessibilityNodeInfoForItem(recycler, state, host, info); in onInitializeAccessibilityNodeInfoForItem()
82 final int position = this.getPosition(host); in onInitializeAccessibilityNodeInfoForItem()
83 final LocaleDragCell dragCell = (LocaleDragCell) host; in onInitializeAccessibilityNodeInfoForItem()
114 RecyclerView.State state, View host, int action, Bundle args) { in performAccessibilityActionForItem() argument
117 final int position = this.getPosition(host); in performAccessibilityActionForItem()
152 return super.performAccessibilityActionForItem(recycler, state, host, action, args); in performAccessibilityActionForItem()

12345678