/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/opp/ |
D | BluetoothOppReceiveFileInfo.java | 98 String hint = null, mimeType = null; in generateFileInfo() local 116 hint = metadataCursor.getString(0); in generateFileInfo() 130 String filename = chooseFilename(hint); in generateFileInfo() 201 private static String chooseFilename(String hint) { in chooseFilename() argument 205 if (filename == null && !(hint == null) && !hint.endsWith("/") && !hint.endsWith("\\")) { in chooseFilename() 208 hint = hint.replace('\\', '/'); in chooseFilename() 210 hint = hint.replaceAll("\\s", " "); in chooseFilename() 213 hint = hint.replaceAll("[:\"<>*?|]", "_"); in chooseFilename() 215 int index = hint.lastIndexOf('/') + 1; in chooseFilename() 217 filename = hint.substring(index); in chooseFilename() [all …]
|
D | BluetoothOppShareInfo.java | 74 String hint, in BluetoothOppShareInfo() argument 88 mHint = hint; in BluetoothOppShareInfo()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/opp/ |
D | BluetoothOppReceiveFileInfoTest.java | 115 String hint = "content:///arandomhint/"; in generateFileInfo_wrongHint_fileError() local 125 mCursor.addRow(new Object[] {hint, fileLength, mimeType}); in generateFileInfo_wrongHint_fileError() 163 String hint = "content:///arandomhint.txt"; in generateFileInfo_noInsertUri_returnFileError() local 173 mCursor.addRow(new Object[] {hint, fileLength, mimeType}); in generateFileInfo_noInsertUri_returnFileError() 202 String hint = "content:///arandomhint.txt"; in generateFileInfo_withInsertUri_workCorrectly() local 213 mCursor.addRow(new Object[] {hint, fileLength, mimeType}); in generateFileInfo_withInsertUri_workCorrectly() 246 String hint = "content:///" + "a".repeat(500) + ".txt"; in generateFileInfo_longFileName_trimFileName() local 257 mCursor.addRow(new Object[] {hint, fileLength, mimeType}); in generateFileInfo_longFileName_trimFileName()
|
/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/slices/compat/core/ |
D | SliceQuery.java | 44 for (String hint : hints) { in hasAnyHints() 45 if (item.hasHint(hint)) { in hasAnyHints() 57 for (String hint : hints) { in hasHints() 58 if (!TextUtils.isEmpty(hint) && !item.hasHint(hint)) { in hasHints() 71 for (String hint : hints) { in hasHints() 72 if (!TextUtils.isEmpty(hint) && !item.hasHint(hint)) { in hasHints()
|
/packages/inputmethods/LatinIME/tools/EditTextVariations/src/com/android/inputmethod/tools/edittextvariations/ |
D | EditTextVariations.java | 286 String hint = (e instanceof MultiLineShortMessageEditText) ? "*" : ""; in setupHintText() local 287 hint += inputTypeToString(e.getInputType()); in setupHintText() 305 hint += " " + text; in setupHintText() 308 hint += " ("; in setupHintText() 312 hint += sep + elem[elem.length - 1]; in setupHintText() 315 hint += ")"; in setupHintText() 321 e.getInputType() & InputType.TYPE_MASK_FLAGS, hint)); in setupHintText() 324 hint += " restarting"; in setupHintText() 326 e.setHint(hint); in setupHintText()
|
/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/slices/compat/ |
D | SliceItem.java | 197 public void addHint(@Slice.SliceHint @NonNull String hint) { in addHint() argument 198 mHints = ArrayUtils.appendElement(String.class, mHints, hint); in addHint() 409 public boolean hasHint(@NonNull @Slice.SliceHint String hint) { in hasHint() argument 410 return ArrayUtils.contains(mHints, hint); in hasHint() 441 for (String hint : hints) { in hasHints() 442 if (!TextUtils.isEmpty(hint) && !ArrayUtils.contains(mHints, hint)) { in hasHints() 455 for (String hint : hints) { in hasAnyHints() 456 if (ArrayUtils.contains(mHints, hint)) { in hasAnyHints()
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | Helpers.java | 254 static String generateSaveFile(Context context, String url, String hint, in generateSaveFile() argument 263 final File file = new File(Uri.parse(hint).getPath()); in generateSaveFile() 273 name = chooseFilename(url, hint, contentDisposition, contentLocation); in generateSaveFile() 323 private static String chooseFilename(String url, String hint, String contentDisposition, 328 if (filename == null && hint != null && !hint.endsWith("/")) { 332 int index = hint.lastIndexOf('/') + 1; 334 filename = hint.substring(index); 336 filename = hint;
|
/packages/apps/Dialer/java/com/android/incallui/answer/impl/hint/ |
D | PawImageLoaderImpl.java | 17 package com.android.incallui.answer.impl.hint; 27 import com.android.incallui.answer.impl.hint.PawSecretCodeListener.PawType;
|
D | PawImageLoader.java | 17 package com.android.incallui.answer.impl.hint;
|
D | AnswerHint.java | 17 package com.android.incallui.answer.impl.hint;
|
D | EmptyAnswerHint.java | 17 package com.android.incallui.answer.impl.hint;
|
/packages/modules/Connectivity/tests/unit/java/android/net/ |
D | NetworkStatsTest.java | 125 for (int hint = 0; hint < stats.size(); hint++) { in testFindIndexHinted() 127 METERED_NO, ROAMING_NO, DEFAULT_NETWORK_YES, hint)); in testFindIndexHinted() 129 METERED_NO, ROAMING_NO, DEFAULT_NETWORK_NO, hint)); in testFindIndexHinted() 131 METERED_NO, ROAMING_NO, DEFAULT_NETWORK_YES, hint)); in testFindIndexHinted() 133 METERED_NO, ROAMING_NO, DEFAULT_NETWORK_NO, hint)); in testFindIndexHinted() 135 METERED_NO, ROAMING_NO, DEFAULT_NETWORK_YES, hint)); in testFindIndexHinted() 137 METERED_YES, ROAMING_NO, DEFAULT_NETWORK_NO, hint)); in testFindIndexHinted() 139 METERED_NO, ROAMING_NO, DEFAULT_NETWORK_YES, hint)); in testFindIndexHinted() 141 METERED_YES, ROAMING_YES, DEFAULT_NETWORK_NO, hint)); in testFindIndexHinted() 143 METERED_NO, ROAMING_NO, DEFAULT_NETWORK_YES, hint)); in testFindIndexHinted() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | SlideshowPage.java | 254 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()
|
D | ActivityState.java | 171 Class<? extends ActivityState> incoming, StateTransitionAnimation.Transition hint) { in transitionOnNextPause() argument 177 mNextTransition = hint; in transitionOnNextPause()
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | BlockingPrefWithSliceController.java | 273 private Optional<CharSequence> extractTextFromSlice(Slice slice, @Nullable String hint) { in extractTextFromSlice() argument 276 && ((TextUtils.isEmpty(hint) && item.getHints().isEmpty()) in extractTextFromSlice() 277 || (!TextUtils.isEmpty(hint) && item.hasHint(hint)))) { in extractTextFromSlice()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | BluetoothPairingDialogTest.java | 344 TextView hint = frag.getmDialog().findViewById(R.id.pin_values_hint); in dialogShowsMessageHintOnPinEntryView() local 345 assertThat(hint.getVisibility()).isEqualTo(View.VISIBLE); in dialogShowsMessageHintOnPinEntryView() 346 assertThat(TextUtils.equals(frag.getString(R.string.cancel), hint.getText())).isTrue(); in dialogShowsMessageHintOnPinEntryView() 364 TextView hint = frag.getmDialog().findViewById(R.id.pin_values_hint); in dialogHidesMessageAndHintWhenNotProvidedOnPinEntryView() local 365 assertThat(hint.getVisibility()).isEqualTo(View.GONE); in dialogHidesMessageAndHintWhenNotProvidedOnPinEntryView()
|
/packages/apps/Dialer/java/com/android/dialer/main/impl/toolbar/ |
D | SearchBarView.java | 225 public void setHint(@StringRes int hint) { in setHint() argument 226 searchBox.setHint(hint); in setHint() 227 searchBoxTextView.setText(hint); in setHint()
|
D | MainToolbar.java | 167 public void setHint(@StringRes int hint) { in setHint() argument 168 searchBar.setHint(hint); in setHint()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ |
D | FilterShowActivity.java | 1494 final CategorySelected hint = in startTouchAnimation() local 1501 ((View)hint.getParent()).getLocationOnScreen(locationHint); in startTouchAnimation() 1502 int dx = (int) (x - (hint.getWidth())/2); in startTouchAnimation() 1503 int dy = (int) (y - (hint.getHeight())/2); in startTouchAnimation() 1504 hint.setTranslationX(location[0] - locationHint[0] + dx); in startTouchAnimation() 1505 hint.setTranslationY(location[1] - locationHint[1] + dy); in startTouchAnimation() 1506 hint.setVisibility(View.VISIBLE); in startTouchAnimation() 1507 hint.animate().scaleX(2).scaleY(2).alpha(0).withEndAction(new Runnable() { in startTouchAnimation() 1510 hint.setVisibility(View.INVISIBLE); in startTouchAnimation() 1511 hint.setScaleX(1); in startTouchAnimation() [all …]
|
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/folder/ |
D | FolderTest.kt | 358 fun `startEditingFolderName should set hint to empty and showLabelSuggestions`() { in startEditingFolderName should set hint to empty and showLabelSuggestions() 362 folder.folderName.hint = "hello" in startEditingFolderName should set hint to empty and showLabelSuggestions() 367 assertEquals("", folder.folderName.hint) in startEditingFolderName should set hint to empty and showLabelSuggestions() 372 fun `Ensure we set the title and hint correctly onBackKey when we have a new title`() { in Ensure we set the title and hint correctly onBackKey when we have a new title() 388 assertEquals(expectedHint, folder.folderName.hint) in Ensure we set the title and hint correctly onBackKey when we have a new title() 394 fun `Ensure we set the title and hint correctly onBackKey when we do not have a new title`() { in Ensure we set the title and hint correctly onBackKey when we do not have a new title() 410 assertEquals(expectedHint, folder.folderName.hint) in Ensure we set the title and hint correctly onBackKey when we do not have a new title() 521 fun `onDragExit should not clear scroll hint if already SCROLL_NONE`() { in onDragExit should not clear scroll hint if already SCROLL_NONE() 533 …fun `onDragExit should clear scroll hint if not SCROLL_NONE and then set scroll hint to scroll non… in onDragExit should clear scroll hint if not SCROLL_NONE and then set scroll hint to scroll none() 546 fun `onDragExit we should cancel reorder pause and hint alarms`() { in onDragExit we should cancel reorder pause and hint alarms()
|
/packages/modules/Bluetooth/system/audio_hal_interface/aidl/a2dp/ |
D | a2dp_encoding_aidl.cc | 780 A2dpConfigurationHint hint; in get_a2dp_configuration() local 781 hint.bdAddr = peer_address.ToArray(); in get_a2dp_configuration() 782 auto& codecParameters = hint.codecParameters.emplace(); in get_a2dp_configuration() 837 hint.codecId = codec.value()->id; in get_a2dp_configuration() 844 log::info("hint: {}", hint.toString()); in get_a2dp_configuration() 855 auto result = offloading_hal_interface->GetA2dpConfiguration(a2dp_remote_capabilities, hint); in get_a2dp_configuration()
|
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
D | HelpersTest.java | 122 final String hint = Uri.fromFile(expected).toString(); in testGenerateSaveFileHint() local 125 final String actual = Helpers.generateSaveFile(getContext(), "url", hint, in testGenerateSaveFileHint() 132 final String hint = Uri.fromFile(fileWithInvalidName).toString(); in testGenerateSaveFileHintWithInvalidChars() local 136 final String actual = Helpers.generateSaveFile(getContext(), "url", hint, in testGenerateSaveFileHintWithInvalidChars() 143 final String hint = Uri.fromFile(fileWithInvalidName).toString(); in testGenerateSaveFileHintWithInvalidCharsOnly() local 148 final String actual = Helpers.generateSaveFile(getContext(), "url", hint, in testGenerateSaveFileHintWithInvalidCharsOnly()
|
/packages/apps/Dialer/java/com/android/contacts/common/widget/ |
D | select_phone_account_dialog_options.proto | 44 // The hint to show under the phone account, for example showing the user 46 optional string hint = 3; field
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/testcomponent/ |
D | BaseTestingActivity.java | 89 protected void addEditor(String initText, String hint, boolean requestIme) { in addEditor() argument 91 editText.setHint(hint); in addEditor()
|
/packages/modules/Virtualization/libs/libvmbase/src/memory/ |
D | shared.rs | 174 pub fn refill(&mut self, pool: &mut FrameAllocator<32>, hint: Layout) { in refill() 175 let layout = hint.align_to(self.granule).unwrap().pad_to_align(); in refill()
|