Home
last modified time | relevance | path

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

1234567

/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.java107 public void onInitializeAccessibilityNodeInfo(View host, AccessibilityNodeInfo info) { in onInitializeAccessibilityNodeInfo() argument
108 super.onInitializeAccessibilityNodeInfo(host, info); in onInitializeAccessibilityNodeInfo()
109 addSupportedActions(host, info, false); in onInitializeAccessibilityNodeInfo()
112 public void addSupportedActions(View host, AccessibilityNodeInfo info, boolean fromKeyboard) { in addSupportedActions() argument
113 if (!(host.getTag() instanceof ItemInfo)) return; in addSupportedActions()
114 ItemInfo item = (ItemInfo) host.getTag(); in addSupportedActions()
124 if (target.supportsAccessibilityDrop(item, host)) { in addSupportedActions()
136 if (!getSupportedResizeActions(host, (LauncherAppWidgetInfo) item).isEmpty()) { in addSupportedActions()
157 public boolean performAccessibilityAction(View host, int action, Bundle args) { in performAccessibilityAction() argument
158 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/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/
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()
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()
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/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.java54 @NonNull final Network network, @NonNull String host, int timeout) in getAllByName() argument
60 getAllByName(dnsResolver, network, host, TYPE_AAAA, FLAG_NO_CACHE_LOOKUP, in getAllByName()
67 getAllByName(dnsResolver, network, host, TYPE_A, FLAG_NO_CACHE_LOOKUP, in getAllByName()
73 throw new UnknownHostException(host); in getAllByName()
84 @NonNull final Network network, @NonNull final String host, int type, int flag, in getAllByName() argument
101 Log.d(TAG, "DNS error resolving " + host + ": " + e.getMessage()); in getAllByName()
109 dnsResolver.query(network, host, flag, r -> r.run(), null /* cancellationSignal */, in getAllByName()
112 dnsResolver.query(network, host, type, flag, r -> r.run(), in getAllByName()
125 throw new UnknownHostException(host); in getAllByName()
/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/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/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/Email/emailcommon/src/com/android/emailcommon/utility/
DSSLSocketFactoryWrapper.java115 public Socket createSocket(final Socket socket, final String host, final int port, in createSocket() argument
117 final SSLSocket sslSocket = (SSLSocket)mFactory.createSocket(socket, host, port, autoClose); in createSocket()
121 verifyHostname(sslSocket, host); in createSocket()
127 public Socket createSocket(String host, int port) throws IOException, UnknownHostException { in createSocket() argument
128 final SSLSocket sslSocket = (SSLSocket)mFactory.createSocket(host, port); in createSocket()
132 verifyHostname(sslSocket, host); in createSocket()
138 public Socket createSocket(String host, int i, InetAddress inetAddress, int i2) throws in createSocket() argument
140 final SSLSocket sslSocket = (SSLSocket)mFactory.createSocket(host, i, inetAddress, i2); in createSocket()
144 verifyHostname(sslSocket, host); in createSocket()
/packages/apps/Settings/src/com/android/settings/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()
/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()

1234567