Home
last modified time | relevance | path

Searched refs:hints (Results 1 – 25 of 39) sorted by relevance

12

/frameworks/base/core/java/android/app/slice/
DSlice.java276 Slice(ArrayList<SliceItem> items, @SliceHint String[] hints, Uri uri, SliceSpec spec) { in Slice() argument
277 mHints = hints; in Slice()
410 public Builder addHints(@SliceHint List<String> hints) { in addHints() argument
411 mHints.addAll(hints); in addHints()
445 List<String> hints = s.getHints(); in addAction() local
447 mItems.add(new SliceItem(action, s, SliceItem.FORMAT_ACTION, subType, hints.toArray( in addAction()
448 new String[hints.size()]))); in addAction()
458 @SliceHint List<String> hints) { in addText() argument
459 mItems.add(new SliceItem(text, SliceItem.FORMAT_TEXT, subType, hints)); in addText()
469 @SliceHint List<String> hints) { in addIcon() argument
[all …]
DSliceQuery.java90 public static List<SliceItem> findAll(SliceItem s, String type, String hints, String nonHints) { in findAll() argument
91 return findAll(s, type, new String[]{ hints }, new String[]{ nonHints }); in findAll()
97 public static List<SliceItem> findAll(SliceItem s, String type, String[] hints, in findAll() argument
100 && (item.hasHints(hints) && !item.hasAnyHints(nonHints))) in findAll()
107 public static SliceItem find(Slice s, String type, String hints, String nonHints) { in find() argument
108 return find(s, type, new String[]{ hints }, new String[]{ nonHints }); in find()
128 public static SliceItem find(SliceItem s, String type, String hints, String nonHints) { in find() argument
129 return find(s, type, new String[]{ hints }, new String[]{ nonHints }); in find()
135 public static SliceItem find(Slice s, String type, String[] hints, String[] nonHints) { in find() argument
138 type, hints, nonHints); in find()
[all …]
DSliceItem.java132 List<String> hints) { in SliceItem() argument
133 this(obj, format, subType, hints.toArray(new String[hints.size()])); in SliceItem()
140 @Slice.SliceHint String[] hints) { in SliceItem() argument
141 mHints = hints; in SliceItem()
151 @Slice.SliceHint String[] hints) { in SliceItem() argument
152 this(new Pair<>(intent, slice), format, subType, hints); in SliceItem()
302 public boolean hasHints(@Slice.SliceHint String[] hints) { in hasHints() argument
303 if (hints == null) return true; in hasHints()
304 for (String hint : hints) { in hasHints()
315 public boolean hasAnyHints(@Slice.SliceHint String[] hints) { in hasAnyHints() argument
[all …]
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/
DUtilities.java109 int hints = oldHints; in calculateBackDispositionHints() local
115 hints |= NAVIGATION_HINT_BACK_ALT; in calculateBackDispositionHints()
117 hints &= ~NAVIGATION_HINT_BACK_ALT; in calculateBackDispositionHints()
121 hints &= ~NAVIGATION_HINT_BACK_ALT; in calculateBackDispositionHints()
125 hints |= NAVIGATION_HINT_IME_SHOWN; in calculateBackDispositionHints()
127 hints &= ~NAVIGATION_HINT_IME_SHOWN; in calculateBackDispositionHints()
130 hints |= NAVIGATION_HINT_IME_SWITCHER_SHOWN; in calculateBackDispositionHints()
132 hints &= ~NAVIGATION_HINT_IME_SWITCHER_SHOWN; in calculateBackDispositionHints()
135 return hints; in calculateBackDispositionHints()
/frameworks/base/tests/Internal/src/android/app/
DWallpaperColorsTest.java59 int hints = WallpaperColors.fromBitmap(image).getColorHints(); in colorHintsTest() local
60 boolean supportsDarkText = (hints & WallpaperColors.HINT_SUPPORTS_DARK_TEXT) != 0; in colorHintsTest()
61 boolean supportsDarkTheme = (hints & WallpaperColors.HINT_SUPPORTS_DARK_THEME) != 0; in colorHintsTest()
62 boolean fromBitmap = (hints & WallpaperColors.HINT_FROM_BITMAP) != 0; in colorHintsTest()
69 hints = WallpaperColors.fromBitmap(image).getColorHints(); in colorHintsTest()
70 supportsDarkText = (hints & WallpaperColors.HINT_SUPPORTS_DARK_TEXT) != 0; in colorHintsTest()
71 supportsDarkTheme = (hints & WallpaperColors.HINT_SUPPORTS_DARK_THEME) != 0; in colorHintsTest()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/qrcode/
DQrCodeGenerator.java43 final Map<EncodeHintType, Object> hints = new HashMap<>(); in encodeQrCode() local
45 hints.put(EncodeHintType.CHARACTER_SET, StandardCharsets.UTF_8.name()); in encodeQrCode()
49 size, size, hints); in encodeQrCode()
/frameworks/base/core/java/android/view/textclassifier/
DConversationActions.java323 @Nullable @Hint List<String> hints, in Request() argument
328 mHints = hints; in Request()
337 List<String> hints = new ArrayList<>(); in readFromParcel() local
338 in.readStringList(hints); in readFromParcel()
346 hints, in readFromParcel()
474 public Builder setHints(@Nullable @Hint List<String> hints) { in setHints() argument
475 mHints = hints; in setHints()
DTextClassifier.java446 List<String> hints, in EntityConfig() argument
450 mHints = Objects.requireNonNull(hints); in EntityConfig()
481 public static EntityConfig createWithHints(@Nullable Collection<String> hints) { in createWithHints() argument
484 .setHints(hints) in createWithHints()
501 public static EntityConfig create(@Nullable Collection<String> hints, in create() argument
507 .setHints(hints) in create()
634 public Builder setHints(@Nullable Collection<String> hints) { in setHints() argument
635 mHints = hints; in setHints()
/frameworks/base/core/java/android/service/autofill/
DInlinePresentation.java74 List<String> hints = mSlice.getHints(); in getAutofillHints() local
75 return hints.toArray(new String[hints.size()]); in getAutofillHints()
/frameworks/base/core/java/android/inputmethodservice/navigationbar/
DNavigationBarView.java241 public void setNavigationIconHints(int hints) { in setNavigationIconHints() argument
242 if (hints == mNavigationIconHints) return; in setNavigationIconHints()
243 final boolean newBackAlt = (hints & StatusBarManager.NAVIGATION_HINT_BACK_ALT) != 0; in setNavigationIconHints()
251 android.widget.Toast.makeText(getContext(), "Navigation icon hints = " + hints, 500) in setNavigationIconHints() local
254 mNavigationIconHints = hints; in setNavigationIconHints()
/frameworks/base/native/android/
Dnet.c127 const struct addrinfo *hints, struct addrinfo **res) { in android_getaddrinfofornetwork() argument
134 return android_getaddrinfofornet(node, service, hints, netid, 0, res); in android_getaddrinfofornetwork()
/frameworks/libs/net/common/netd/libnetdutils/
DInternetAddresses.cpp61 const addrinfo hints = { in forString() local
65 const int ret = getaddrinfo(repr.c_str(), nullptr, &hints, &res); in forString()
/frameworks/base/core/java/android/app/
DWallpaperColors.java236 int hints = calculateDarkHints(bitmap, dimAmount); in fromBitmap() local
242 return new WallpaperColors(populationByColor, HINT_FROM_BITMAP | hints); in fromBitmap()
581 int hints = 0; in calculateDarkHints() local
584 hints |= HINT_SUPPORTS_DARK_TEXT; in calculateDarkHints()
587 hints |= HINT_SUPPORTS_DARK_THEME; in calculateDarkHints()
602 return hints; in calculateDarkHints()
/frameworks/base/services/core/java/com/android/server/notification/
DZenLog.java249 private static String hintsToString(int hints) { in hintsToString() argument
250 switch (hints) { in hintsToString()
258 default: return Integer.toString(hints); in hintsToString()
/frameworks/base/core/java/android/service/voice/
DVoiceInteractionService.java527 public final void setUiHints(@NonNull Bundle hints) { in setUiHints() argument
528 if (hints == null) { in setUiHints()
533 mSystemService.setUiHints(hints); in setUiHints()
/frameworks/base/core/java/android/inputmethodservice/
DNavigationBarController.java213 final int hints = StatusBarManager.NAVIGATION_HINT_BACK_ALT in installNavigationBarFrameIfNecessary() local
217 navigationBarView.setNavigationIconHints(hints); in installNavigationBarFrameIfNecessary()
448 final int hints = StatusBarManager.NAVIGATION_HINT_BACK_ALT in onNavButtonFlagsChanged() local
451 navigationBarView.setNavigationIconHints(hints); in onNavButtonFlagsChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/
DAssistManager.java208 public void onSetUiHints(Bundle hints) { in registerVoiceInteractionSessionListener()
213 String action = hints.getString(ACTION_KEY); in registerVoiceInteractionSessionListener()
218 hints.getBoolean(CONSTRAINED_KEY, false)) in registerVoiceInteractionSessionListener()
/frameworks/base/native/android/include/android/
Dmultinetwork.h145 const struct addrinfo *hints, struct addrinfo **res) __INTRODUCED_IN(23);
/frameworks/native/include/android/
Dmultinetwork.h145 const struct addrinfo *hints, struct addrinfo **res) __INTRODUCED_IN(23);
/frameworks/native/opengl/tests/hwc/
DhwcTestLib.cpp443 list->hwLayers[layer].hints, in hwcTestDisplayList()
444 (list->hwLayers[layer].hints & HWC_HINT_TRIPLE_BUFFER) in hwcTestDisplayList()
446 (list->hwLayers[layer].hints & HWC_HINT_CLEAR_FB) in hwcTestDisplayList()
513 list->hwLayers[layer].hints, in hwcTestDisplayListPrepareModifiable()
514 (list->hwLayers[layer].hints & HWC_HINT_TRIPLE_BUFFER) in hwcTestDisplayListPrepareModifiable()
516 (list->hwLayers[layer].hints & HWC_HINT_CLEAR_FB) in hwcTestDisplayListPrepareModifiable()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DFrameType.java360 private static String keyValueForType(int elemId, int dims, int hints, Class<?> clazz) { in keyValueForType() argument
361 return elemId + ":" + dims + ":" + hints + ":" + (clazz != null ? clazz.getName() : "0"); in keyValueForType()
/frameworks/base/core/tests/coretests/src/android/app/assist/
DAssistStructureTest.java320 String[] hints = view.getAutofillHints(); in assertBigView() local
321 assertThat(hints.length).isEqualTo(1); in assertBigView()
322 String hint = hints[0]; in assertBigView()
/frameworks/base/core/java/android/service/notification/
DINotificationListener.aidl42 void onListenerHintsChanged(int hints); in onListenerHintsChanged() argument
DNotificationListenerService.java572 public void onListenerHintsChanged(int hints) { in onListenerHintsChanged() argument
1161 public final void requestListenerHints(int hints) { in requestListenerHints() argument
1164 getNotificationInterface().requestHintsFromListener(mWrapper, hints); in requestListenerHints()
1489 public void onListenerHintsChanged(int hints) throws RemoteException { in onListenerHintsChanged() argument
1491 hints, 0).sendToTarget(); in onListenerHintsChanged()
2359 final int hints = msg.arg1; in handleMessage() local
2360 onListenerHintsChanged(hints); in handleMessage()
/frameworks/base/telecomm/java/android/telecom/
DParcelableConference.java92 public Builder setStatusHints(StatusHints hints) { in setStatusHints() argument
93 mStatusHints = hints; in setStatusHints()

12