Home
last modified time | relevance | path

Searched refs:hint (Results 1 – 25 of 55) sorted by relevance

123

/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppReceiveFileInfo.java96 String filename = null, hint = null, mimeType = null; in generateFileInfo() local
104 hint = metadataCursor.getString(0); in generateFileInfo()
120 filename = choosefilename(hint); in generateFileInfo()
195 private static String choosefilename(String hint) { in choosefilename() argument
199 if (filename == null && !(hint == null) && !hint.endsWith("/") && !hint.endsWith("\\")) { in choosefilename()
202 hint = hint.replace('\\', '/'); in choosefilename()
204 hint = hint.replaceAll("\\s", " "); in choosefilename()
207 hint = hint.replaceAll("[:\"<>*?|]", "_"); in choosefilename()
211 int index = hint.lastIndexOf('/') + 1; in choosefilename()
213 filename = hint.substring(index); in choosefilename()
[all …]
DBluetoothOppShareInfo.java71 public BluetoothOppShareInfo(int id, Uri uri, String hint, String filename, String mimetype, in BluetoothOppShareInfo() argument
76 mHint = hint; in BluetoothOppShareInfo()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/widget/
DCarUiTextViewTest.java97 String hint = "Test textView"; in testSpanOverLastLine() local
98 textView.setHint(hint); in testSpanOverLastLine()
107 onView(withHint(hint)).check(matches(isDisplayed())); in testSpanOverLastLine()
116 String hint = "Test textView"; in testLineBreaks_lineBreakAtEnd() local
117 textView.setHint(hint); in testLineBreaks_lineBreakAtEnd()
124 onView(withHint(hint)).check(matches(isDisplayed())); in testLineBreaks_lineBreakAtEnd()
131 String hint = "Test textView"; in testSpan() local
135 textView.setHint(hint); in testSpan()
141 onView(withHint(hint)).check(matches(isDisplayed())); in testSpan()
/packages/inputmethods/LatinIME/tools/EditTextVariations/src/com/android/inputmethod/tools/edittextvariations/
DEditTextVariations.java221 String hint = (e instanceof MultiLineShortMessageEditText) ? "*" : ""; in setupHintText() local
222 hint += inputTypeToString(e.getInputType()); in setupHintText()
240 hint += " " + text; in setupHintText()
243 hint += " ("; in setupHintText()
247 hint += sep + elem[elem.length - 1]; in setupHintText()
250 hint += ")"; in setupHintText()
256 e.getInputType() & InputType.TYPE_MASK_FLAGS, hint)); in setupHintText()
259 hint += " restarting"; in setupHintText()
261 e.setHint(hint); in setupHintText()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DHelpers.java236 static String generateSaveFile(Context context, String url, String hint, in generateSaveFile() argument
245 final File file = new File(Uri.parse(hint).getPath()); in generateSaveFile()
255 name = chooseFilename(url, hint, contentDisposition, contentLocation); in generateSaveFile()
305 private static String chooseFilename(String url, String hint, String contentDisposition,
310 if (filename == null && hint != null && !hint.endsWith("/")) {
314 int index = hint.lastIndexOf('/') + 1;
316 filename = hint.substring(index);
318 filename = hint;
/packages/apps/Car/libs/car-ui-lib/referencedesign/sharedlibrary/src/main/java/com/chassis/car/ui/sharedlibrary/toolbar/
DSearchController.java216 public void setSearchHint(@Nullable String hint) { in setSearchHint() argument
217 if (hint == null) { in setSearchHint()
218 hint = mStub.getContext().getString(R.string.toolbar_default_search_hint); in setSearchHint()
220 mSearchHint = hint; in setSearchHint()
223 mEditText.setHint(hint); in setSearchHint()
DToolbarControllerImpl.java159 public void setSearchHint(@Nullable String hint) { in setSearchHint() argument
160 mSearchController.setSearchHint(hint); in setSearchHint()
/packages/modules/Connectivity/tests/unit/java/android/net/
DNetworkStatsTest.java120 for (int hint = 0; hint < stats.size(); hint++) { in testFindIndexHinted()
122 METERED_NO, ROAMING_NO, DEFAULT_NETWORK_YES, hint)); in testFindIndexHinted()
124 METERED_NO, ROAMING_NO, DEFAULT_NETWORK_NO, hint)); in testFindIndexHinted()
126 METERED_NO, ROAMING_NO, DEFAULT_NETWORK_YES, hint)); in testFindIndexHinted()
128 METERED_NO, ROAMING_NO, DEFAULT_NETWORK_NO, hint)); in testFindIndexHinted()
130 METERED_NO, ROAMING_NO, DEFAULT_NETWORK_YES, hint)); in testFindIndexHinted()
132 METERED_YES, ROAMING_NO, DEFAULT_NETWORK_NO, hint)); in testFindIndexHinted()
134 METERED_NO, ROAMING_NO, DEFAULT_NETWORK_YES, hint)); in testFindIndexHinted()
136 METERED_YES, ROAMING_YES, DEFAULT_NETWORK_NO, hint)); in testFindIndexHinted()
138 METERED_NO, ROAMING_NO, DEFAULT_NETWORK_YES, hint)); in testFindIndexHinted()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/
DFilterShowActivity.java1497 final CategorySelected hint = in startTouchAnimation() local
1504 ((View)hint.getParent()).getLocationOnScreen(locationHint); in startTouchAnimation()
1505 int dx = (int) (x - (hint.getWidth())/2); in startTouchAnimation()
1506 int dy = (int) (y - (hint.getHeight())/2); in startTouchAnimation()
1507 hint.setTranslationX(location[0] - locationHint[0] + dx); in startTouchAnimation()
1508 hint.setTranslationY(location[1] - locationHint[1] + dy); in startTouchAnimation()
1509 hint.setVisibility(View.VISIBLE); in startTouchAnimation()
1510 hint.animate().scaleX(2).scaleY(2).alpha(0).withEndAction(new Runnable() { in startTouchAnimation()
1513 hint.setVisibility(View.INVISIBLE); in startTouchAnimation()
1514 hint.setScaleX(1); in startTouchAnimation()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothPairingDialogTest.java345 TextView hint = frag.getmDialog().findViewById(R.id.pin_values_hint); in dialogShowsMessageHintOnPinEntryView() local
346 assertThat(hint.getVisibility()).isEqualTo(View.VISIBLE); in dialogShowsMessageHintOnPinEntryView()
347 assertThat(TextUtils.equals(frag.getString(R.string.cancel), hint.getText())).isTrue(); in dialogShowsMessageHintOnPinEntryView()
365 TextView hint = frag.getmDialog().findViewById(R.id.pin_values_hint); in dialogHidesMessageAndHintWhenNotProvidedOnPinEntryView() local
366 assertThat(hint.getVisibility()).isEqualTo(View.GONE); in dialogHidesMessageAndHintWhenNotProvidedOnPinEntryView()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DSlideshowPage.java254 public int findItemIndex(Path path, int hint) { in findItemIndex() argument
255 return hint; in findItemIndex()
324 public int findItemIndex(Path path, int hint) { in findItemIndex() argument
325 return mMediaSet.getIndexOfItem(path, hint); in findItemIndex()
DActivityState.java171 Class<? extends ActivityState> incoming, StateTransitionAnimation.Transition hint) { in transitionOnNextPause() argument
177 mNextTransition = hint; in transitionOnNextPause()
/packages/apps/Dialer/java/com/android/incallui/answer/impl/hint/
DPawImageLoaderImpl.java17 package com.android.incallui.answer.impl.hint;
27 import com.android.incallui.answer.impl.hint.PawSecretCodeListener.PawType;
DPawImageLoader.java17 package com.android.incallui.answer.impl.hint;
DAnswerHint.java17 package com.android.incallui.answer.impl.hint;
DEmptyAnswerHint.java17 package com.android.incallui.answer.impl.hint;
/packages/apps/Dialer/java/com/android/dialer/main/impl/toolbar/
DSearchBarView.java225 public void setHint(@StringRes int hint) { in setHint() argument
226 searchBox.setHint(hint); in setHint()
227 searchBoxTextView.setText(hint); in setHint()
DMainToolbar.java167 public void setHint(@StringRes int hint) { in setHint() argument
168 searchBar.setHint(hint); in setHint()
/packages/apps/Dialer/java/com/android/contacts/common/widget/
Dselect_phone_account_dialog_options.proto44 // The hint to show under the phone account, for example showing the user
46 optional string hint = 3; field
/packages/apps/Dialer/java/com/android/dialer/preferredsim/impl/
DPreferredAccountWorkerImpl.java218 Optional<String> hint = in createDialogOptionsBuilder() local
220 if (hint.isPresent()) { in createDialogOptionsBuilder()
221 entryBuilder.setHint(hint.get()); in createDialogOptionsBuilder()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DMediaSet.java119 public int getIndexOfItem(Path path, int hint) { in getIndexOfItem() argument
123 hint - MEDIAITEM_BATCH_FETCH_COUNT / 2); in getIndexOfItem()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/toolbar/
DSearchView.java225 public void setHint(CharSequence hint) { in setHint() argument
226 mSearchText.setHint(hint); in setHint()
/packages/apps/Car/Media/src/com/android/car/media/browse/
DBrowseAdapter.java319 private BrowseItemViewType fromMediaHint(int hint) { in fromMediaHint() argument
320 switch(hint) { in fromMediaHint()
/packages/apps/Car/libs/car-ui-lib/oem-apis/src/main/java/com/android/car/ui/sharedlibrary/oemapis/toolbar/
DToolbarControllerOEMV1.java65 void setSearchHint(String hint); in setSearchHint() argument
/packages/apps/Settings/protos/
Dcontextual_card_list.proto13 * The category of a card: this is a hint for how a card should be collected,

123