- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
23 lines
822 B
Java
23 lines
822 B
Java
package com.google.android.exoplayer2.ui;
|
|
|
|
import android.graphics.Color;
|
|
import com.google.android.exoplayer2.util.Util;
|
|
import csdk.gluads.Consts;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public abstract class HtmlUtils {
|
|
public static String toCssRgba(int i) {
|
|
return Util.formatInvariant("rgba(%d,%d,%d,%.3f)", Integer.valueOf(Color.red(i)), Integer.valueOf(Color.green(i)), Integer.valueOf(Color.blue(i)), Double.valueOf(Color.alpha(i) / 255.0d));
|
|
}
|
|
|
|
public static String cssAllClassDescendantsSelector(String str) {
|
|
StringBuilder sb = new StringBuilder(String.valueOf(str).length() + 5 + String.valueOf(str).length());
|
|
sb.append(Consts.STRING_PERIOD);
|
|
sb.append(str);
|
|
sb.append(",.");
|
|
sb.append(str);
|
|
sb.append(" *");
|
|
return sb.toString();
|
|
}
|
|
}
|