Lines Matching defs:ambient

2760          * Caches a ambient version of {@link #mCachedContrastColorIsFor}.
3895 bindNotificationHeader(contentView, p.ambient);
3901 if (!p.ambient) {
3912 if (!p.ambient) {
4167 private void bindNotificationHeader(RemoteViews contentView, boolean ambient) {
4168 bindSmallIcon(contentView, ambient);
4169 bindHeaderAppName(contentView, ambient);
4170 if (!ambient) {
4274 private void bindHeaderAppName(RemoteViews contentView, boolean ambient) {
4276 if (isColorized() && !ambient) {
4280 ambient ? resolveAmbientColor() : resolveContrastColor());
4284 private void bindSmallIcon(RemoteViews contentView, boolean ambient) {
4291 processSmallIconColor(mN.mSmallIcon, contentView, ambient);
4332 boolean emphazisedMode = mN.fullScreenIntent != null && !p.ambient;
4337 if (p.ambient) {
4353 i % 2 != 0, p.ambient);
4361 if (!p.ambient && validRemoteInput && replyText != null
4465 * @param ambient if true, generate the header for the ambient display layout.
4468 public RemoteViews makeNotificationHeader(boolean ambient) {
4472 ambient ? R.layout.notification_template_ambient_header
4475 bindNotificationHeader(header, ambient);
4485 * Construct a RemoteViews for the ambient version of the notification.
4490 RemoteViews ambient = applyStandardTemplateWithActions(
4492 mParams.reset().ambient(true).fillTextsFrom(this).hasProgress(false));
4493 return ambient;
4551 return makePublicView(false /* ambient */);
4560 return makePublicView(true /* ambient */);
4563 private RemoteViews makePublicView(boolean ambient) {
4566 return ambient ? builder.makeAmbientNotification() : builder.createContentView();
4586 if (ambient) {
4591 view = makeNotificationHeader(false /* ambient */);
4621 RemoteViews header = makeNotificationHeader(false /* ambient */);
4657 boolean oddAction, boolean ambient) {
4702 if (isColorized() && !ambient) {
4706 ambient ? resolveAmbientColor() : resolveContrastColor());
4793 return processLegacyText(charSequence, false /* ambient */);
4796 private CharSequence processLegacyText(CharSequence charSequence, boolean ambient) {
4798 boolean wantLightText = ambient;
4810 boolean ambient) {
4812 int color = ambient ? resolveAmbientColor() : getPrimaryHighlightColor();
7778 * converted to low-bit and displayed in ambient mode, especially useful for barcodes and
7780 * @param hintAmbientBigPicture {@code true} to enable converstion and ambient.
7790 * converted to low-bit and displayed in ambient mode, especially useful for barcodes and
7792 * @return {@code true} if it should be displayed in ambient, false otherwise
8483 boolean ambient = false;
8489 ambient = false;
8510 final StandardTemplateParams ambient(boolean ambient) {
8511 Preconditions.checkState(title == null && text == null, "must set ambient before text");
8512 this.ambient = ambient;
8518 this.title = b.processLegacyText(extras.getCharSequence(EXTRA_TITLE), ambient);
8520 // Big text notifications should contain their content when viewed in ambient mode.
8522 if (!ambient || TextUtils.isEmpty(text)) {
8525 this.text = b.processLegacyText(text, ambient);