diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..a972cd1 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,34 @@ +name: Test + +on: + push: + branches: [main] + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: '17' + cache: gradle + + - uses: actions/setup-node@v4 + with: + node-version: '22' + cache: npm + cache-dependency-path: test/typecheck/package-lock.json + + - name: Build the generator + working-directory: dts-generator + run: ./gradlew jar + + - name: Compare with the expected output + run: make test + + - name: Type-check the expected output + run: make test-typecheck diff --git a/.gitignore b/.gitignore index 435fcb6..81fe4f7 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,5 @@ testparams.txt /jars bin/ +/test/kotlin-fixture/build +/test/typecheck/node_modules diff --git a/Makefile b/Makefile index 669db7d..76dbf75 100644 --- a/Makefile +++ b/Makefile @@ -133,9 +133,23 @@ androidx-35: mv out/android.d.ts out/androidx-35.d.ts test-compare-output: + rm -f out/android.d.ts out/android-declarations.d.ts java -jar dts-generator/build/libs/dts-generator.jar \ --input libs cmp out/android.d.ts test/expected-output/android.d.ts cmp out/android-declarations.d.ts test/expected-output/android-declarations.d.ts +test-kotlin-fixture: + dts-generator/gradlew -q -p test/kotlin-fixture jar + rm -rf out/kotlin-fixture + java -jar dts-generator/build/libs/dts-generator.jar \ + --input test/kotlin-fixture/build/libs/kotlin-fixture.jar --output out/kotlin-fixture + cmp out/kotlin-fixture/android.d.ts test/expected-output/kotlin-fixture/android.d.ts + cmp out/kotlin-fixture/android-declarations.d.ts test/expected-output/kotlin-fixture/android-declarations.d.ts + +test: test-compare-output test-kotlin-fixture + +test-typecheck: + cd test/typecheck && npm ci --no-audit --no-fund && node check.mjs + androidx-all: androidx-17 androidx-23 androidx-26 androidx-28 androidx-29 androidx-30 androidx-31 androidx-32 androidx-33 androidx-34 androidx-35 diff --git a/README.md b/README.md index c9297ac..196ef27 100644 --- a/README.md +++ b/README.md @@ -48,16 +48,18 @@ java -jar build/libs/dts-generator.jar --input ## Test -In order to test the tool there are some predefined AndroidX packages. We are running the tool and comparing the output with the expected output committed in the repo. -To run the test: +The tests run the tool and compare its output with the expected output committed in the repo. There are two inputs: the predefined AndroidX packages in `libs`, and a small Kotlin and Java library in `test/kotlin-fixture`, built from source, where each declaration exercises one case the generator has to handle. +To run the tests: ```shell -make test-compare-output +make test ``` -Then check whether the make command returns an error when comparing the files. +Then check whether the make command returns an error when comparing the files. `make test-compare-output` and `make test-kotlin-fixture` run them one at a time. -> Note: If the contents of the libs folder are changed, the expected output should also be changed +`make test-typecheck` (Node.js required) type-checks the expected output against the published `@nativescript/types-android` platform typings: the Kotlin fixture must have no errors, and the AndroidX output no syntax errors. + +> Note: If the contents of the libs folder or the fixture sources are changed, the expected output should also be changed ## Generate definitions for .aar Pass the aar as input as you would normally do diff --git a/_helpers.d.ts b/_helpers.d.ts index 32b8e90..ff510cc 100644 --- a/_helpers.d.ts +++ b/_helpers.d.ts @@ -1,4 +1,4 @@ -declare module androidNative { +declare namespace androidNative { export class Array { public constructor(); } diff --git a/dts-generator/src/main/java/com/telerik/Main.java b/dts-generator/src/main/java/com/telerik/Main.java index 31273d7..104589e 100644 --- a/dts-generator/src/main/java/com/telerik/Main.java +++ b/dts-generator/src/main/java/com/telerik/Main.java @@ -64,7 +64,17 @@ public static void main(String[] args) { } try { - InputParameters inputParameters = parseCommand(args); + InputParameters inputParameters; + try { + inputParameters = parseCommand(args); + } catch (IllegalArgumentException ex) { + // A malformed command line is the user's mistake, not a crash: say what is wrong and + // how to look up the right spelling, without burying it under a stack trace. + System.err.println("dts-generator: " + ex.getMessage()); + System.err.println("Run with " + HELP + " to see the available options."); + System.exit(2); + return; + } long startTime = System.currentTimeMillis(); @@ -75,12 +85,6 @@ public static void main(String[] args) { long elapsedTime = System.currentTimeMillis() - startTime; System.out.println("Generation of definitions took " + elapsedTime + "ms."); - } catch (IllegalArgumentException ex) { - // A malformed command line is the user's mistake, not a crash: say what is wrong and - // how to look up the right spelling, without burying it under a stack trace. - System.err.println("dts-generator: " + ex.getMessage()); - System.err.println("Run with " + HELP + " to see the available options."); - System.exit(2); } catch (Throwable ex) { System.err.println(String.format("Error executing Typescript Definitions Generator: %s", ex.getMessage())); ex.printStackTrace(System.out); diff --git a/dts-generator/src/main/java/com/telerik/dts/DtsApi.java b/dts-generator/src/main/java/com/telerik/dts/DtsApi.java index 048d42d..1f8dd5a 100644 --- a/dts-generator/src/main/java/com/telerik/dts/DtsApi.java +++ b/dts-generator/src/main/java/com/telerik/dts/DtsApi.java @@ -4,6 +4,13 @@ import org.apache.bcel.classfile.AnnotationEntry; import org.apache.bcel.classfile.Attribute; +import org.apache.bcel.classfile.Constant; +import org.apache.bcel.classfile.ConstantDouble; +import org.apache.bcel.classfile.ConstantFloat; +import org.apache.bcel.classfile.ConstantInteger; +import org.apache.bcel.classfile.ConstantLong; +import org.apache.bcel.classfile.ConstantString; +import org.apache.bcel.classfile.ConstantValue; import org.apache.bcel.classfile.Field; import org.apache.bcel.classfile.FieldOrMethod; import org.apache.bcel.classfile.JavaClass; @@ -63,7 +70,6 @@ public class DtsApi { private StringBuilder2 sbContent; private Set references; - private JavaClass prevClass; private String currentFileClassname; private Set baseMethodNames; private List baseMethods; @@ -73,6 +79,7 @@ public class DtsApi { private boolean nullableUnknownTypes; private Map aliasedTypes; private String[] namespaceParts; + private final List openNamespaces = new ArrayList<>(); private int indent = 0; private boolean allGenericImplements; private Pattern methodSignature = Pattern.compile("\\((?.*)\\)(?.*)"); @@ -126,8 +133,6 @@ public DtsApi(boolean allGenericImplements, InputParameters inputParameters) thr } public String generateDtsContent(List javaClasses) { - this.prevClass = null; - if ((javaClasses != null) && (javaClasses.size() > 0)) { references = new HashSet<>(); sbContent = new StringBuilder2(); @@ -163,7 +168,8 @@ public String generateDtsContent(List javaClasses) { currentFileClassname.contains(".debugger.") || currentFileClassname.endsWith("package-info") || currentFileClassname.endsWith("module-info") || - currentFileClassname.endsWith("Kt")) { + currentFileClassname.endsWith("Kt") || + hasUnspellableNameSegment(currentFileClassname)) { continue; } @@ -179,8 +185,8 @@ public String generateDtsContent(List javaClasses) { boolean isInterface = currClass.isInterface(); boolean isAbstract = currClass.isAbstract(); - this.indent = closePackage(this.prevClass, currClass); - this.indent = openPackage(this.prevClass, currClass); + this.indent = closePackage(currClass); + this.indent = openPackage(currClass); String tabs = getTabs(this.indent); @@ -262,34 +268,15 @@ public String generateDtsContent(List javaClasses) { String innerClassAlias = "export type " + getSimpleClassname(currClass) + " = " + getFullClassNameConcatenated(currClass); sbContent.appendln(tabs + innerClassAlias); } - this.prevClass = currClass; } - closePackage(prevClass, null); + closePackage(null); // process class scope end String[] refs = references.toArray(new String[references.size()]); Arrays.sort(refs); } - String content = replaceIgnoredNamespaces(sbContent.toString()); - - return content; - } - - private String replaceIgnoredNamespaces(String content) { - String regexFormat = "(?%s(?:(?:\\.[a-zA-Z\\d]*)|<[a-zA-Z\\d\\.<>]*>)*)(?[^a-zA-Z\\d]+)"; - // these namespaces are not known in some android api levels, so we cannot use them in android-support for instance, so we are replacing them with any - for (String ignoredNamespace : this.getIgnoredNamespaces()) { - String regexString = String.format(regexFormat, ignoredNamespace.replace(".", "\\.")); - content = content.replaceAll(regexString, "any$2"); - regexString = String.format(regexFormat, getGlobalAliasedClassName(ignoredNamespace).replace(".", "\\.")); - content = content.replaceAll(regexString, "any$2"); - } - - // replace "extends any" with "extends java.lang.Object" - content = content.replace(" extends any ", String.format(" extends %s ", DtsApi.JavaLangObject)); - - return content; + return sbContent.toString(); } public static String serializeGenerics() { @@ -384,19 +371,21 @@ private String getExtendsLine(JavaClass currClass, TypeDefinition typeDefinition List interfaces = typeDefinition.getInterfaces(); if (parent != null) { + String parentType = getTypeScriptTypeFromJavaType(parent, typeDefinition); result.append(" extends "); - result.append(getTypeScriptTypeFromJavaType(parent, typeDefinition)); + result.append(isAnyType(parentType) ? DtsApi.JavaLangObject : parentType); } if (interfaces.size() == 1 || (this.allGenericImplements && interfaces.size() > 0)) { - result.append(" implements "); - + List implemented = new ArrayList<>(); for (ReferenceType referenceType : interfaces) { String tsType = getTypeScriptTypeFromJavaType(referenceType, typeDefinition); - if (!this.isPrimitiveTSType(tsType)) { - result.append(tsType + ", "); + if (!this.isPrimitiveTSType(tsType) && !isAnyType(tsType)) { + implemented.add(tsType); } } - result.deleteCharAt(result.lastIndexOf(",")); + if (!implemented.isEmpty()) { + result.append(" implements ").append(String.join(", ", implemented)); + } } return result.toString(); } else { @@ -417,6 +406,9 @@ private String getExtendsLine(JavaClass superClass, List interfaces) implementsSegmentSb.append(" implements "); for (JavaClass clazz : interfaces) { + if (isUnusableSupertype(clazz)) { + continue; + } String implementedInterface = clazz.getClassName().replaceAll("\\$", "\\."); if (!typeBelongsInCurrentTopLevelNamespace(implementedInterface)) { implementedInterface = getAliasedClassName(implementedInterface); @@ -425,12 +417,15 @@ private String getExtendsLine(JavaClass superClass, List interfaces) implementsSegmentSb.append(implementedInterface + ", "); } - implementsSegment = implementsSegmentSb.substring(0, implementsSegmentSb.lastIndexOf(",")); + int lastComma = implementsSegmentSb.lastIndexOf(","); + implementsSegment = lastComma < 0 ? "" : implementsSegmentSb.substring(0, lastComma); } if (superClass != null) { - String extendedClass = superClass.getClassName().replaceAll("\\$", "\\."); + String extendedClass = isUnusableSupertype(superClass) + ? DtsApi.JavaLangObject + : superClass.getClassName().replaceAll("\\$", "\\."); if (!extendedClass.equals(DtsApi.JavaLangObject)) { // check for type override @@ -441,7 +436,9 @@ private String getExtendsLine(JavaClass superClass, List interfaces) } } - if (!typeBelongsInCurrentTopLevelNamespace(extendedClass)) { + if (isAnyType(extendedClass)) { + extendedClass = DtsApi.JavaLangObject; + } else if (!typeBelongsInCurrentTopLevelNamespace(extendedClass)) { extendedClass = getAliasedClassName(extendedClass); } @@ -451,6 +448,16 @@ private String getExtendsLine(JavaClass superClass, List interfaces) } } + // java.lang.Object, ignored types, overrides and private Google classes all come out as any, + // possibly followed by a comment naming the type, and a class can neither extend nor implement any. + private static boolean isAnyType(String tsType) { + return tsType.equals("any") || tsType.startsWith("any /*"); + } + + private boolean isUnusableSupertype(JavaClass clazz) { + return hasUnspellableNameSegment(clazz.getClassName()) || isIgnoredType(clazz.getClassName().replace('$', '.')); + } + private String getAliasedClassName(String className) { return mangleRootClassname(className); } @@ -502,101 +509,39 @@ private String mangleRootClassname(String className) { return className; } - private int closePackage(JavaClass prevClass, JavaClass currClass) { - int indent = 0; - - if (prevClass == null) { - return indent; + // Any class in a nesting chain can be skipped (internal, obfuscated, synthetic), so the previous + // class says nothing reliable about which namespaces are open. + private int closePackage(JavaClass currClass) { + List wanted = currClass == null ? Collections.emptyList() : enclosingNamespaces(currClass); + int common = commonPrefixLength(wanted); + while (openNamespaces.size() > common) { + openNamespaces.remove(openNamespaces.size() - 1); + sbContent.appendln(getTabs(openNamespaces.size()) + "}"); } + return openNamespaces.size(); + } - String prevClassName = prevClass.getClassName(); - int prevDotCount = prevClassName.length() - prevClassName.replace(".", "").length(); - int prevDollarCount = prevClassName.length() - prevClassName.replace("$", "").length(); - int prevCount = prevDotCount + prevDollarCount; - - if (currClass == null) { - indent = prevCount; - while (indent > 0) { - String tabs = getTabs(--indent); - sbContent.appendln(tabs + "}"); - } - return indent; - } - - String currClassName = currClass.getClassName(); - int currDotCount = currClassName.length() - currClassName.replace(".", "").length(); - int currDollarCount = currClassName.length() - currClassName.replace("$", "").length(); - int currCount = currDotCount + currDollarCount; - - while (prevCount > currCount) { - String tabs = getTabs(--prevCount); - sbContent.appendln(tabs + "}"); - } - - boolean isNested = isNested(currClass); - - if (!isNested) { - throw new UnsupportedOperationException("TODO: implement"); - // String prevClassName = prevClass.getClassName(); - // int dotCount = prevClassName.length() - - // prevClassName.replace(".", "").length(); - // int dollarCount = prevClassName.length() - - // prevClassName.replace("$", "").length(); - // indent = dotCount + dollarCount; - // - // String[] prevParts = prevClassName.replace('$', - // '.').split("\\."); - // String[] currParts = currClass.getClassName().replace('$', - // '.').split("\\."); - // - // int diffIdx = 0; - // while ((diffIdx < prevParts.length) && (diffIdx < - // currParts.length) && - // prevParts[diffIdx].equals(currParts[diffIdx])) { - // ++diffIdx; - // } - // - // int count = prevParts.length - diffIdx - 1; - // while (count-- > 0) { - // String tabs = getTabs(--indent); - // ps.println(tabs + "}"); - // } - } - - return indent; - } - - private int openPackage(JavaClass prevClass, JavaClass currClass) { - int indent = 0; - - String prevClassName = (prevClass != null) ? prevClass.getClassName() : ""; - String[] prevParts = prevClassName.replace('$', '.').split("\\."); - String[] currParts = currClass.getClassName().replace('$', '.').split("\\."); - - int diffIdx = 0; - while ((diffIdx < prevParts.length) && (diffIdx < currParts.length) - && prevParts[diffIdx].equals(currParts[diffIdx])) { - ++diffIdx; - } - - indent = diffIdx; - for (int idx = diffIdx; idx < currParts.length - 1; idx++) { - ++indent; - String tabs = getTabs(idx); - if (idx == 0) { - sbContent.append(tabs + "declare "); - } else { - sbContent.append(tabs + "export "); - } - sbContent.appendln("module " + currParts[idx] + " {"); + private int openPackage(JavaClass currClass) { + List wanted = enclosingNamespaces(currClass); + for (int idx = commonPrefixLength(wanted); idx < wanted.size(); idx++) { + sbContent.appendln(getTabs(idx) + (idx == 0 ? "declare " : "export ") + "namespace " + wanted.get(idx) + " {"); + openNamespaces.add(wanted.get(idx)); } + return openNamespaces.size(); + } - if (isNested(currClass) && (prevParts.length < currParts.length)) { - String tabs = getTabs(prevParts.length - 1); - sbContent.appendln(tabs + "export module " + prevParts[prevParts.length - 1] + " {"); - } + private List enclosingNamespaces(JavaClass javaClass) { + String[] parts = javaClass.getClassName().split("[.$]"); + return Arrays.asList(parts).subList(0, parts.length - 1); + } - return indent; + private int commonPrefixLength(List wanted) { + int common = 0; + while (common < openNamespaces.size() && common < wanted.size() + && openNamespaces.get(common).equals(wanted.get(common))) { + common++; + } + return common; } private void processInterfaceConstructor(JavaClass classInterface, TypeDefinition typeDefinition, List allInterfacesMethods) { @@ -611,6 +556,11 @@ private void generateInterfaceConstructorContent(JavaClass classInterface, TypeD sbContent.appendln(tabs + "public constructor(implementation: {"); for (Method m : methods) { + // An interface with a companion object or constant fields carries a static initializer, + // which is not something an implementation provides. + if (m.isSynthetic() || m.getName().equals("")) { + continue; + } sbContent.append(getTabs(this.indent + 2) + getMethodName(m) + getMethodParamSignature(classInterface, typeDefinition, m)); String bmSig = ""; if (!isConstructor(m)) { @@ -767,9 +717,20 @@ private void processMethod(Method method, JavaClass clazz, TypeDefinition typeDe private void addMethod(Map methods, JavaClass clazz, TypeDefinition typeDefinition, String tabs, Method method) { ApiLevels.Tags tags = memberTags(clazz, method.getName() + method.getSignature(), isDeprecated(method)); - methods.merge(generateMethodContent(clazz, typeDefinition, tabs, method), tags, ApiLevels.Tags::mergedWith); + methods.merge(generateMethodContent(clazz, typeDefinition, tabs, method, method.isStatic()), tags, ApiLevels.Tags::mergedWith); + + // The runtime resolves Outer.Companion to the static field holding the companion instance, + // not to the nested class, so its methods are also called on the class value itself. + // TypeScript cannot give one name both a class and a field, so they are declared static too. + if (this.currentClassKotlin.isCompanionObject() && !method.isStatic() && !isConstructor(method) + && !functionOwnStatics.contains(method.getName())) { + methods.merge(generateMethodContent(clazz, typeDefinition, tabs, method, true), tags, ApiLevels.Tags::mergedWith); + } } + // Static members by these names clash with the built-in properties of a class's constructor (TS2699). + private static final Set functionOwnStatics = Set.of("name", "length", "caller", "arguments", "prototype"); + // Kotlin metadata states nullability outright, so it decides wherever it is available. Java // bytecode carries it only where someone annotated the declaration: @Nullable and @NonNull are // definitive, and the rest is unknown rather than non-null, which -nullable-unknown-types settles. @@ -837,12 +798,12 @@ private String apiLevelComment(String tabs, List tags) { return comment.append(" */").toString(); } - private String generateMethodContent(JavaClass clazz, TypeDefinition typeDefinition, String tabs, Method method) { + private String generateMethodContent(JavaClass clazz, TypeDefinition typeDefinition, String tabs, Method method, boolean asStatic) { StringBuilder2 sbTemp = new StringBuilder2(); sbTemp.append(tabs + "public "); - if (method.isStatic()) { + if (asStatic) { sbTemp.append("static "); } @@ -1044,55 +1005,97 @@ private String getMethodName(Method m) { } private String getMethodParamSignature(JavaClass clazz, TypeDefinition typeDefinition, Method m) { - LocalVariableTable table = m.getLocalVariableTable(); - LocalVariable[] variables = table != null ? table.getLocalVariableTable() : null; + Type[] signatureTypes = this.getArgumentTypes(m); + Type[] descriptorTypes = m.getArgumentTypes(); + // The generic signature leaves out the synthetic leading parameters javac and kotlinc add, + // the outer instance of an inner class's constructor. The runtime matches a call against + // the descriptor, so those are declared from it, ahead of the signature's parameters. + int leading = Math.max(0, descriptorTypes.length - signatureTypes.length); + Type[] types = new Type[leading + signatureTypes.length]; + System.arraycopy(descriptorTypes, 0, types, 0, leading); + System.arraycopy(signatureTypes, 0, types, leading, signatureTypes.length); + String[] names = getParameterNames(m, types.length); StringBuilder sb = new StringBuilder(); sb.append("("); int idx = 0; - for (Type type : this.getArgumentTypes(m)) { + for (Type type : types) { if (idx > 0) { sb.append(", "); } - int localVarIndex = m.isStatic() ? idx : idx + 1; // skip "this" variable name - LocalVariable localVariable = variables != null && variables.length > localVarIndex - ? variables[localVarIndex] - : null; - - if (localVariable != null) { - String name = localVariable.getName(); - if (reservedJsKeywords.contains(name)) { - System.out.println(String.format("Appending _ to reserved JS keyword %s", name)); - sb.append(name + "_"); - } else { - sb.append(name); - } - } else { - // interface declarations will fallback to paramN since they don't have names in the bytecode - sb.append("param"); - sb.append(idx); - } + sb.append(names[idx]); int paramIndex = idx; idx++; sb.append(": "); String paramTypeName = getTypeScriptTypeFromJavaType(type, typeDefinition); - // TODO: Pete: - if (paramTypeName.startsWith("java.util.function")) { - sb.append("any /* " + paramTypeName + "*/"); - } else { - addReference(type); - Boolean kotlinNullable = this.currentClassKotlin.isParameterNullable(m.getName(), m.getSignature(), paramIndex); - sb.append(withNull(paramTypeName, isNullable(type, Nullability.parameterAnnotations(m, paramIndex), kotlinNullable))); - } + addReference(type); + Boolean kotlinNullable = this.currentClassKotlin.isParameterNullable(m.getName(), m.getSignature(), paramIndex); + sb.append(withNull(paramTypeName, isNullable(type, Nullability.parameterAnnotations(m, paramIndex), kotlinNullable))); } sb.append(")"); String sig = sb.toString(); return sig; } + + // Parameter names come from the LocalVariableTable entry that occupies the parameter's slot at + // pc 0. The table's array order is not parameter order: Kotlin inlining puts locals such as + // $i$a$-apply-... ahead of the parameters. + private String[] getParameterNames(Method m, int count) { + LocalVariableTable table = m.getLocalVariableTable(); + Type[] descriptorTypes = m.getArgumentTypes(); + int slot = m.isStatic() ? 0 : 1; + + String[] names = new String[count]; + Set used = new HashSet<>(); + for (int idx = 0; idx < count; idx++) { + LocalVariable variable = table != null ? table.getLocalVariable(slot, 0) : null; + String name = parameterName(m, variable != null ? variable.getName() : null, idx); + String unique = name; + for (int n = 1; !used.add(unique); n++) { + unique = name + n; + } + names[idx] = unique; + + slot += idx < descriptorTypes.length ? descriptorTypes[idx].getSize() : 1; + } + return names; + } + + private static final Pattern outerInstanceName = Pattern.compile("^this\\$\\d+$"); + + private String parameterName(Method m, String name, int idx) { + if (name == null) { + // interface declarations will fallback to paramN since they don't have names in the bytecode + return "param" + idx; + } + if (name.equals("")) { + // Kotlin's name for a property setter's value parameter. + String method = m.getName(); + return method.startsWith("set") && method.length() > 3 + ? Character.toLowerCase(method.charAt(3)) + method.substring(4) + : "value"; + } + if (name.startsWith("$this$")) { + // Kotlin's name for an extension function's receiver. + return "receiver"; + } + if (outerInstanceName.matcher(name).matches()) { + // javac and kotlinc's name for the outer instance an inner class's constructor takes. + return "outer"; + } + if (!jsFieldPattern.matcher(name).matches()) { + return "param" + idx; + } + if (reservedJsKeywords.contains(name)) { + return name + "_"; + } + return name; + } + //field related private void processField(Field f, JavaClass clazz, TypeDefinition typeDefinition) { String fieldName = f.getName(); @@ -1125,13 +1128,20 @@ private void processField(Field f, JavaClass clazz, TypeDefinition typeDefinitio } String tabs = getTabs(this.indent + 1); + Object constant = constantValue(f); + String literal = constant != null && f.isStatic() && f.isFinal() ? typeScriptLiteral(f.getType(), constant) : null; + List commentLines = new ArrayList<>(); + if (constant != null && literal == null) { + commentLines.add("Constant value: " + String.valueOf(constant).replace("*/", "*\\/")); + } // Only annotated with a versions file in hand: a field has never carried a bare // @deprecated, so deriving one from the bytecode alone would rewrite existing definitions. if (this.apiLevels != null) { - String fieldComment = apiLevelComment(tabs, memberTags(clazz, f.getName(), isDeprecated(f)).render()); - if (!fieldComment.isEmpty()) { - sbContent.appendln(fieldComment); - } + commentLines.addAll(memberTags(clazz, f.getName(), isDeprecated(f)).render()); + } + String fieldComment = apiLevelComment(tabs, commentLines); + if (!fieldComment.isEmpty()) { + sbContent.appendln(fieldComment); } sbContent.append(tabs + "public "); if (f.isStatic()) { @@ -1142,13 +1152,80 @@ private void processField(Field f, JavaClass clazz, TypeDefinition typeDefinitio name = "\"" + name + "\""; } - sbContent.append(name + ": " + getTypeScriptTypeFromJavaType(this.getFieldType(f), typeDefinition)); - if (f.getConstantValue() != null) { - sbContent.appendln(" = " + f.getConstantValue() + ";"); + // `readonly NAME = 1` rather than `NAME: 1`: the initializer gives a widening literal type, + // so `let v = View.VISIBLE` is still a number that View.GONE can be assigned to. + if (literal != null) { + sbContent.appendln("readonly " + name + " = " + literal + ";"); } else { - sbContent.appendln(";"); + sbContent.appendln(name + ": " + getTypeScriptTypeFromJavaType(this.getFieldType(f), typeDefinition) + ";"); + } + } + + private static Object constantValue(Field f) { + ConstantValue attribute = f.getConstantValue(); + if (attribute == null) { + return null; + } + Constant constant = f.getConstantPool().getConstant(attribute.getConstantValueIndex()); + if (constant instanceof ConstantInteger) { + return ((ConstantInteger) constant).getBytes(); + } else if (constant instanceof ConstantLong) { + return ((ConstantLong) constant).getBytes(); + } else if (constant instanceof ConstantFloat) { + return ((ConstantFloat) constant).getBytes(); + } else if (constant instanceof ConstantDouble) { + return ((ConstantDouble) constant).getBytes(); + } else if (constant instanceof ConstantString) { + return ((ConstantString) constant).getBytes(f.getConstantPool()); + } + return null; + } + private static final long MAX_SAFE_INTEGER = (1L << 53) - 1; + + // The literal JavaScript sees when it reads the field, or null when it has none: NaN and the + // infinities have no literal type, and the runtime does not hand out longs beyond 2^53 as numbers. + private static String typeScriptLiteral(Type type, Object value) { + if (type.equals(Type.BOOLEAN)) { + return ((Integer) value) != 0 ? "true" : "false"; + } + if (type.equals(Type.CHAR)) { + return javaScriptString(String.valueOf((char) ((Integer) value).intValue())); + } + if (value instanceof String) { + return javaScriptString((String) value); + } + if (value instanceof Long) { + long l = (Long) value; + return l >= -MAX_SAFE_INTEGER && l <= MAX_SAFE_INTEGER ? Long.toString(l) : null; + } + if (value instanceof Float || value instanceof Double) { + // A float reaches JavaScript widened to a double, so 0.1f reads as 0.10000000149011612. + double d = ((Number) value).doubleValue(); + return Double.isFinite(d) ? Double.toString(d) : null; + } + return value.toString(); + } + + private static String javaScriptString(String value) { + StringBuilder sb = new StringBuilder("\""); + for (int i = 0; i < value.length(); i++) { + char c = value.charAt(i); + switch (c) { + case '"': sb.append("\\\""); break; + case '\\': sb.append("\\\\"); break; + case '\n': sb.append("\\n"); break; + case '\r': sb.append("\\r"); break; + case '\t': sb.append("\\t"); break; + default: + if (c < 0x20 || c == 0x7f || c == '\u2028' || c == '\u2029' || Character.isSurrogate(c)) { + sb.append(String.format("\\u%04x", (int) c)); + } else { + sb.append(c); + } + } } + return sb.append('"').toString(); } private void addClassField(JavaClass clazz) { @@ -1199,7 +1276,7 @@ private String getTypeScriptTypeFromJavaType(Type type, TypeDefinition typeDefin convertToTypeScriptType(type, typeDefinition, sb); tsType = sb.toString(); - if (tsType.startsWith("java.util.function") || isPrivateGoogleApiClass(tsType)) { + if (isPrivateGoogleApiClass(tsType)) { tsType = "any /* " + tsType + "*/"; } } @@ -1249,10 +1326,20 @@ private void convertToTypeScriptType(Type type, TypeDefinition typeDefinition, S } ObjectType objType = (ObjectType) type; String typeName = objType.getClassName(); + if (hasUnspellableNameSegment(typeName)) { + tsType.append("any"); + return; + } if (typeName.contains("$")) { typeName = typeName.replaceAll("\\$", "\\."); } + // Replaced as a whole, generic arguments included. + if (isIgnoredType(typeName)) { + tsType.append("any"); + return; + } + if (this.typeOverrides.containsKey(typeName)) { typeName = this.typeOverrides.get(typeName); } @@ -1374,9 +1461,16 @@ private void addMembersFromOtherVersions(JavaClass javaClass, List metho } // HELPER METHODS - private boolean isNested(JavaClass javaClass) { - boolean isNested = javaClass.getClassName().contains("$"); - return isNested; + // Names a namespace path cannot spell: Foo$$serializer (kotlinx.serialization) has an empty + // segment, and Kotlin names some file facades -Base64 precisely to hide them from Java. + private static boolean hasUnspellableNameSegment(String binaryName) { + for (String part : binaryName.split("[.$]", -1)) { + if (part.isEmpty() || !Character.isJavaIdentifierStart(part.codePointAt(0)) + || !part.codePoints().allMatch(Character::isJavaIdentifierPart)) { + return true; + } + } + return false; } private String getSimpleClassname(JavaClass javaClass) { @@ -1405,11 +1499,6 @@ private String getTypeSuffix(String fullClassName, TypeDefinition typeDefinition generics.add(new Tuple<>(fullClassName.replace("$", "."), genericDefinitions.size())); for (TypeDefinition.GenericDefinition definition : genericDefinitions) { - ObjectType genericObjectType = (ObjectType) definition.getType(); - String baseClassName = getAliasedClassName(genericObjectType.getClassName()); - String resultType = definition.getType().toString(); - String typeToExtend = resultType.replace(genericObjectType.getClassName(), baseClassName); - //parts.add(String.format("%s extends %s", definition.getLabel(), typeToExtend)); parts.add(definition.getLabel()); } return "<" + String.join(", ", parts) + "> "; @@ -1552,6 +1641,15 @@ private List getIgnoredNamespaces() { return result; } + private boolean isIgnoredType(String dottedClassName) { + for (String ignored : getIgnoredNamespaces()) { + if (dottedClassName.equals(ignored) || dottedClassName.startsWith(ignored + ".")) { + return true; + } + } + return false; + } + private boolean isIgnoredNamespace() { String[] namespaceOnlyParts = Arrays.copyOf(namespaceParts, namespaceParts.length - 1); String namespace = String.join(".", namespaceOnlyParts); diff --git a/dts-generator/src/main/java/com/telerik/dts/Generator.java b/dts-generator/src/main/java/com/telerik/dts/Generator.java index 90ded96..e444ad7 100644 --- a/dts-generator/src/main/java/com/telerik/dts/Generator.java +++ b/dts-generator/src/main/java/com/telerik/dts/Generator.java @@ -60,8 +60,10 @@ private void generateDts() throws Exception { DtsApi.loadGenerics(inputGenericsFile); } + // Generated overloads and namespace merges trip lint rules no one can act on in this file. + this.fileHelper.writeToFile("/* eslint-disable */\n", this.outFileName, false); if(!this.skipDeclarations) { - this.fileHelper.writeToFile(String.format("/// \n", this.declarationsFileName), this.outFileName, false); + this.fileHelper.writeToFile(String.format("/// \n", this.declarationsFileName), this.outFileName, true); } while (ClassRepo.hasNext()) { @@ -92,7 +94,7 @@ private void generateDts() throws Exception { private void writeDeclarations() { List imports = DtsApi.imports; - imports.add(0, "declare module androidNative {\texport class Array {\tconstructor(); length: number; [index: number]: T; } }\n"); + imports.add(0, "declare namespace androidNative {\texport class Array {\tconstructor(); length: number; [index: number]: T; } }\n"); String existingContent = this.fileHelper.readFileContent(this.declarationsFileName); existingContent = existingContent != null ? existingContent : ""; diff --git a/dts-generator/src/main/java/com/telerik/dts/KotlinTypeInfo.java b/dts-generator/src/main/java/com/telerik/dts/KotlinTypeInfo.java index d1aba85..b56158f 100644 --- a/dts-generator/src/main/java/com/telerik/dts/KotlinTypeInfo.java +++ b/dts-generator/src/main/java/com/telerik/dts/KotlinTypeInfo.java @@ -2,12 +2,14 @@ import kotlin.Metadata; import kotlin.metadata.Attributes; +import kotlin.metadata.ClassKind; import kotlin.metadata.KmClass; import kotlin.metadata.KmConstructor; import kotlin.metadata.KmDeclarationContainer; import kotlin.metadata.KmFunction; import kotlin.metadata.KmProperty; import kotlin.metadata.KmPropertyAccessorAttributes; +import kotlin.metadata.KmType; import kotlin.metadata.KmValueParameter; import kotlin.metadata.Visibility; @@ -24,6 +26,7 @@ import org.apache.bcel.classfile.ElementValuePair; import org.apache.bcel.classfile.JavaClass; import org.apache.bcel.classfile.SimpleElementValue; +import org.apache.bcel.generic.Type; /** * What a class's @kotlin.Metadata annotation says about its declarations, for the things the @@ -86,6 +89,10 @@ public boolean isInternalClass() { return internalClass; } + public boolean isCompanionObject() { + return kmClass != null && Attributes.getKind(kmClass) == ClassKind.COMPANION_OBJECT; + } + public boolean isInternalMember(String name, String descriptor) { if (container == null) { return false; @@ -131,7 +138,11 @@ public Boolean isReturnNullable(String name, String descriptor) { return null; } - /** Whether a parameter accepts null, or null when this is not a Kotlin declaration. */ + /** + * Whether the parameter at a descriptor index accepts null, or null when this is not a Kotlin + * declaration. Kotlin's value parameters leave out what the JVM passes ahead of them: an inner + * class constructor's outer instance, which is never null, and an extension's receiver. + */ public Boolean isParameterNullable(String name, String descriptor, int index) { if (CONSTRUCTOR_NAME.equals(name)) { KmConstructor constructor = findConstructor(name, descriptor); @@ -139,14 +150,23 @@ public Boolean isParameterNullable(String name, String descriptor, int index) { return null; } List parameters = constructor.getValueParameters(); - return index < parameters.size() ? Attributes.isNullable(parameters.get(index).getType()) : null; + int outer = Math.max(0, Type.getArgumentTypes(descriptor).length - parameters.size()); + if (index < outer) { + return false; + } + return index - outer < parameters.size() ? Attributes.isNullable(parameters.get(index - outer).getType()) : null; } KmFunction function = findFunction(name, descriptor); if (function != null) { + KmType receiver = function.getReceiverParameterType(); + if (receiver != null && index == 0) { + return Attributes.isNullable(receiver); + } + int valueIndex = receiver != null ? index - 1 : index; List parameters = function.getValueParameters(); - if (index < parameters.size()) { - return Attributes.isNullable(parameters.get(index).getType()); + if (valueIndex < parameters.size()) { + return Attributes.isNullable(parameters.get(valueIndex).getType()); } return null; } diff --git a/dts-generator/src/main/java/com/telerik/dts/Nullability.java b/dts-generator/src/main/java/com/telerik/dts/Nullability.java index 1e027e0..8465195 100644 --- a/dts-generator/src/main/java/com/telerik/dts/Nullability.java +++ b/dts-generator/src/main/java/com/telerik/dts/Nullability.java @@ -25,12 +25,19 @@ public static boolean isNonNull(AnnotationEntry[] annotations) { return hasSimpleName(annotations, "NonNull;"); } + /** The annotations on the parameter at a descriptor index. */ public static AnnotationEntry[] parameterAnnotations(Method method, int index) { ParameterAnnotationEntry[] parameters = method.getParameterAnnotationEntries(); - if (parameters == null || index >= parameters.length || parameters[index] == null) { + if (parameters == null) { return null; } - return parameters[index].getAnnotationEntries(); + // javac can leave synthetic leading parameters, such as an inner class constructor's outer + // instance, out of the annotations, so the entries line up with the descriptor's tail. + int entry = index - Math.max(0, method.getArgumentTypes().length - parameters.length); + if (entry < 0 || entry >= parameters.length || parameters[entry] == null) { + return null; + } + return parameters[entry].getAnnotationEntries(); } /** null is only expressible for reference types; a primitive never needs the union. */ diff --git a/dts-generator/src/main/java/com/telerik/dts/TypeDefinition.java b/dts-generator/src/main/java/com/telerik/dts/TypeDefinition.java index 05f1aba..f510ad9 100644 --- a/dts-generator/src/main/java/com/telerik/dts/TypeDefinition.java +++ b/dts-generator/src/main/java/com/telerik/dts/TypeDefinition.java @@ -14,8 +14,6 @@ public class TypeDefinition { private static Pattern typeSignature = Pattern.compile("^(<(?.*)>)?(?L.*)$"); - //private static Pattern extendsGenericType = Pattern.compile("(?\\w+)\\:+(?L.*?(?=;\\w+|;$))"); - private static Pattern extendsGenericType = Pattern.compile("(?\\w+)\\:+(?L.*?(?=(?=;\\w+|;$)|(?=<.*>)))"); private String signature; private String className; @@ -93,13 +91,51 @@ private void checkSignature() { } } + // Formal type parameters: Label ':' ClassBound? (':' InterfaceBound)*, repeated. A label can + // carry several bounds (`>`), so they cannot be split on ':'. private void setTypeGenerics(String typeGenericsSignature) { - Matcher matcher = extendsGenericType.matcher(typeGenericsSignature); this.genericDefinitions = new ArrayList<>(); - while (matcher.find()) { - String label = matcher.group(1); - Type type = GenericUtilities.getType(matcher.group(2) + ";"); + int i = 0; + while (i < typeGenericsSignature.length()) { + int colon = typeGenericsSignature.indexOf(':', i); + if (colon < 0) { + break; + } + String label = typeGenericsSignature.substring(i, colon); + String firstBound = null; + i = colon; + while (i < typeGenericsSignature.length() && typeGenericsSignature.charAt(i) == ':') { + i++; + if (i < typeGenericsSignature.length() && typeGenericsSignature.charAt(i) != ':') { + int end = fieldTypeSignatureEnd(typeGenericsSignature, i); + if (firstBound == null) { + firstBound = typeGenericsSignature.substring(i, end); + } + i = end; + } + } + Type type = GenericUtilities.getType(firstBound != null ? firstBound : "Ljava/lang/Object;"); this.genericDefinitions.add(new GenericDefinition(label, type)); } } + + private static int fieldTypeSignatureEnd(String signature, int start) { + char first = signature.charAt(start); + if (first == '[') { + char element = signature.charAt(start + 1); + return (element == 'L' || element == 'T' || element == '[') ? fieldTypeSignatureEnd(signature, start + 1) : start + 2; + } + int depth = 0; + for (int i = start; i < signature.length(); i++) { + char c = signature.charAt(i); + if (c == '<') { + depth++; + } else if (c == '>') { + depth--; + } else if (c == ';' && depth == 0) { + return i + 1; + } + } + return signature.length(); + } } diff --git a/test/expected-output/android-declarations.d.ts b/test/expected-output/android-declarations.d.ts index 6cdcb48..56e3ab8 100644 --- a/test/expected-output/android-declarations.d.ts +++ b/test/expected-output/android-declarations.d.ts @@ -1,4 +1,4 @@ -declare module androidNative { export class Array { constructor(); length: number; [index: number]: T; } } +declare namespace androidNative { export class Array { constructor(); length: number; [index: number]: T; } } import globalAndroid = android; diff --git a/test/expected-output/android.d.ts b/test/expected-output/android.d.ts index fee61fc..abbdf21 100644 --- a/test/expected-output/android.d.ts +++ b/test/expected-output/android.d.ts @@ -1,9 +1,11 @@ +/* eslint-disable */ + /// -declare module android { - export module support { - export module v4 { - export module app { +declare namespace android { + export namespace support { + export namespace v4 { + export namespace app { export class INotificationSideChannel { public static class: java.lang.Class; /** @@ -19,18 +21,18 @@ declare module android { public cancel(param0: string, param1: number, param2: string): void; public cancelAll(param0: string): void; } - export module INotificationSideChannel { + export namespace INotificationSideChannel { export abstract class Stub implements android.support.v4.app.INotificationSideChannel { public static class: java.lang.Class; public constructor(); public static asInterface(obj: android.os.IBinder): android.support.v4.app.INotificationSideChannel; public asBinder(): android.os.IBinder; - public onTransact(_arg0: number, _arg1: android.os.Parcel, _arg2: android.os.Parcel, _arg3: number): boolean; + public onTransact(code: number, data: android.os.Parcel, reply: android.os.Parcel, flags: number): boolean; public notify(param0: string, param1: number, param2: string, param3: android.app.Notification): void; public cancel(param0: string, param1: number, param2: string): void; public cancelAll(param0: string): void; } - export module Stub { + export namespace Stub { export class Proxy extends android.support.v4.app.INotificationSideChannel { public static class: java.lang.Class; public asBinder(): android.os.IBinder; @@ -49,11 +51,11 @@ declare module android { } } -declare module android { - export module support { - export module v4 { - export module graphics { - export module drawable { +declare namespace android { + export namespace support { + export namespace v4 { + export namespace graphics { + export namespace drawable { export class IconCompatParcelizer extends androidx.core.graphics.drawable.IconCompatParcelizer { public static class: java.lang.Class; public constructor(); @@ -66,18 +68,18 @@ declare module android { } } -declare module android { - export module support { - export module v4 { - export module media { +declare namespace android { + export namespace support { + export namespace v4 { + export namespace media { export class MediaBrowserCompat { public static class: java.lang.Class; - public static EXTRA_PAGE: string = "any"; - public static EXTRA_PAGE_SIZE: string = "any_SIZE"; - public static EXTRA_MEDIA_ID: string = "any_ID"; - public static EXTRA_DOWNLOAD_PROGRESS: string = "any_PROGRESS"; - public static CUSTOM_ACTION_DOWNLOAD: string = "android.support.v4.media.action.DOWNLOAD"; - public static CUSTOM_ACTION_REMOVE_DOWNLOADED_FILE: string = "android.support.v4.media.action.REMOVE_DOWNLOADED_FILE"; + public static readonly EXTRA_PAGE = "android.media.browse.extra.PAGE"; + public static readonly EXTRA_PAGE_SIZE = "android.media.browse.extra.PAGE_SIZE"; + public static readonly EXTRA_MEDIA_ID = "android.media.browse.extra.MEDIA_ID"; + public static readonly EXTRA_DOWNLOAD_PROGRESS = "android.media.browse.extra.DOWNLOAD_PROGRESS"; + public static readonly CUSTOM_ACTION_DOWNLOAD = "android.support.v4.media.action.DOWNLOAD"; + public static readonly CUSTOM_ACTION_REMOVE_DOWNLOADED_FILE = "android.support.v4.media.action.REMOVE_DOWNLOADED_FILE"; public constructor(context: android.content.Context, serviceComponent: android.content.ComponentName, callback: android.support.v4.media.MediaBrowserCompat.ConnectionCallback, rootHints: android.os.Bundle); public connect(): void; public disconnect(): void; @@ -95,10 +97,10 @@ declare module android { public sendCustomAction(action: string, extras: android.os.Bundle, callback: android.support.v4.media.MediaBrowserCompat.CustomActionCallback | null): void; public getNotifyChildrenChangedOptions(): android.os.Bundle | null; } - export module MediaBrowserCompat { + export namespace MediaBrowserCompat { export class CallbackHandler { public static class: java.lang.Class; - public handleMessage(options: android.os.Message): void; + public handleMessage(msg: android.os.Message): void; } export class ConnectionCallback { public static class: java.lang.Class; @@ -107,7 +109,7 @@ declare module android { public onConnectionSuspended(): void; public onConnectionFailed(): void; } - export module ConnectionCallback { + export namespace ConnectionCallback { export class ConnectionCallbackInternal { public static class: java.lang.Class; /** @@ -147,10 +149,10 @@ declare module android { public onItemLoaded(item: android.support.v4.media.MediaBrowserCompat.MediaItem): void; public onError(itemId: string): void; } - export module ItemCallback { + export namespace ItemCallback { export class StubApi23 extends android.support.v4.media.MediaBrowserCompatApi23.ItemCallback { public static class: java.lang.Class; - public onItemLoaded(this_: android.os.Parcel): void; + public onItemLoaded(itemParcel: android.os.Parcel): void; public onError(itemId: string): void; public onItemLoaded(param0: android.os.Parcel): void; public onError(param0: string): void; @@ -210,11 +212,11 @@ declare module android { public getRoot(): string; public getExtras(): android.os.Bundle | null; public getSessionToken(): android.support.v4.media.session.MediaSessionCompat.Token; - public subscribe(this_: string, parentId: android.os.Bundle, options: android.support.v4.media.MediaBrowserCompat.SubscriptionCallback): void; - public unsubscribe(callbacks: string, optionsList: android.support.v4.media.MediaBrowserCompat.SubscriptionCallback): void; - public getItem(this_: string, mediaId: android.support.v4.media.MediaBrowserCompat.ItemCallback): void; - public search(this_: string, query: android.os.Bundle, extras: android.support.v4.media.MediaBrowserCompat.SearchCallback): void; - public sendCustomAction(this_: string, action: android.os.Bundle, extras: android.support.v4.media.MediaBrowserCompat.CustomActionCallback | null): void; + public subscribe(parentId: string, options: android.os.Bundle, callback: android.support.v4.media.MediaBrowserCompat.SubscriptionCallback): void; + public unsubscribe(parentId: string, callback: android.support.v4.media.MediaBrowserCompat.SubscriptionCallback): void; + public getItem(mediaId: string, cb: android.support.v4.media.MediaBrowserCompat.ItemCallback): void; + public search(query: string, extras: android.os.Bundle, callback: android.support.v4.media.MediaBrowserCompat.SearchCallback): void; + public sendCustomAction(action: string, extras: android.os.Bundle, callback: android.support.v4.media.MediaBrowserCompat.CustomActionCallback | null): void; public onConnected(): void; public onConnectionSuspended(): void; public onConnectionFailed(): void; @@ -289,12 +291,12 @@ declare module android { public getRoot(): string; public getExtras(): android.os.Bundle | null; public getSessionToken(): android.support.v4.media.session.MediaSessionCompat.Token; - public subscribe(this_: string, parentId: android.os.Bundle, options: android.support.v4.media.MediaBrowserCompat.SubscriptionCallback): void; - public unsubscribe(callbacks: string, optionsList: android.support.v4.media.MediaBrowserCompat.SubscriptionCallback): void; - public getItem(this_: string, mediaId: android.support.v4.media.MediaBrowserCompat.ItemCallback): void; - public search(this_: string, query: android.os.Bundle, extras: android.support.v4.media.MediaBrowserCompat.SearchCallback): void; - public sendCustomAction(this_: string, action: android.os.Bundle, extras: android.support.v4.media.MediaBrowserCompat.CustomActionCallback | null): void; - public onServiceConnected(id: android.os.Messenger, sub: string, callbackList: android.support.v4.media.session.MediaSessionCompat.Token, optionsList: android.os.Bundle): void; + public subscribe(parentId: string, options: android.os.Bundle, callback: android.support.v4.media.MediaBrowserCompat.SubscriptionCallback): void; + public unsubscribe(parentId: string, callback: android.support.v4.media.MediaBrowserCompat.SubscriptionCallback): void; + public getItem(mediaId: string, cb: android.support.v4.media.MediaBrowserCompat.ItemCallback): void; + public search(query: string, extras: android.os.Bundle, callback: android.support.v4.media.MediaBrowserCompat.SearchCallback): void; + public sendCustomAction(action: string, extras: android.os.Bundle, callback: android.support.v4.media.MediaBrowserCompat.CustomActionCallback | null): void; + public onServiceConnected(callback: android.os.Messenger, root: string, session: android.support.v4.media.session.MediaSessionCompat.Token, extra: android.os.Bundle): void; public onConnectionFailed(callback: android.os.Messenger): void; public onLoadChildren(callback: android.os.Messenger, parentId: string, list: java.util.List, options: android.os.Bundle, notifyChildrenChangedOptions: android.os.Bundle): void; public getNotifyChildrenChangedOptions(): android.os.Bundle; @@ -308,7 +310,7 @@ declare module android { public onConnectionFailed(param0: android.os.Messenger): void; public onLoadChildren(param0: android.os.Messenger, param1: string, param2: java.util.List, param3: android.os.Bundle, param4: android.os.Bundle): void; } - export module MediaBrowserImplBase { + export namespace MediaBrowserImplBase { export class MediaServiceConnection { public static class: java.lang.Class; public onServiceConnected(name: android.content.ComponentName, binder: android.os.IBinder): void; @@ -332,11 +334,11 @@ declare module android { } export class MediaItem { public static class: java.lang.Class; - public static FLAG_BROWSABLE: number = 1; - public static FLAG_PLAYABLE: number = 2; + public static readonly FLAG_BROWSABLE = 1; + public static readonly FLAG_PLAYABLE = 2; public static CREATOR: android.os.Parcelable.Creator; public static fromMediaItem(itemObj: any): android.support.v4.media.MediaBrowserCompat.MediaItem; - public static fromMediaItemList(itemObj: java.util.List): java.util.List; + public static fromMediaItemList(itemList: java.util.List): java.util.List; public constructor(description: android.support.v4.media.MediaDescriptionCompat, flags: number); public describeContents(): number; public writeToParcel(out: android.os.Parcel, flags: number): void; @@ -347,7 +349,7 @@ declare module android { public getDescription(): android.support.v4.media.MediaDescriptionCompat; public getMediaId(): string | null; } - export module MediaItem { + export namespace MediaItem { export class Flags { public static class: java.lang.Class; /** @@ -366,7 +368,7 @@ declare module android { } export class SearchResultReceiver extends android.support.v4.os.ResultReceiver { public static class: java.lang.Class; - public onReceiveResult(this_: number, resultCode: android.os.Bundle): void; + public onReceiveResult(resultCode: number, resultData: android.os.Bundle): void; } export class ServiceBinderWrapper { public static class: java.lang.Class; @@ -378,8 +380,8 @@ declare module android { public isEmpty(): boolean; public getOptionsList(): java.util.List; public getCallbacks(): java.util.List; - public getCallback(this_: android.os.Bundle): android.support.v4.media.MediaBrowserCompat.SubscriptionCallback; - public putCallback(this_: android.os.Bundle, options: android.support.v4.media.MediaBrowserCompat.SubscriptionCallback): void; + public getCallback(options: android.os.Bundle): android.support.v4.media.MediaBrowserCompat.SubscriptionCallback; + public putCallback(options: android.os.Bundle, callback: android.support.v4.media.MediaBrowserCompat.SubscriptionCallback): void; } export abstract class SubscriptionCallback { public static class: java.lang.Class; @@ -389,17 +391,17 @@ declare module android { public onError(parentId: string): void; public onError(parentId: string, options: android.os.Bundle): void; } - export module SubscriptionCallback { + export namespace SubscriptionCallback { export class StubApi21 extends android.support.v4.media.MediaBrowserCompatApi21.SubscriptionCallback { public static class: java.lang.Class; - public onChildrenLoaded(i: string, itemList: java.util.List): void; + public onChildrenLoaded(parentId: string, children: java.util.List): void; public onError(parentId: string): void; public onChildrenLoaded(param0: string, param1: java.util.List): void; public onError(param0: string): void; } export class StubApi26 extends android.support.v4.media.MediaBrowserCompat.SubscriptionCallback.StubApi21 implements android.support.v4.media.MediaBrowserCompatApi26.SubscriptionCallback { public static class: java.lang.Class; - public onChildrenLoaded(i: string, itemList: java.util.List): void; + public onChildrenLoaded(parentId: string, children: java.util.List): void; public onChildrenLoaded(parentId: string, children: java.util.List, options: android.os.Bundle): void; public onError(parentId: string): void; public onError(parentId: string, options: android.os.Bundle): void; @@ -415,10 +417,10 @@ declare module android { } } -declare module android { - export module support { - export module v4 { - export module media { +declare namespace android { + export namespace support { + export namespace v4 { + export namespace media { export class MediaBrowserCompatApi21 { public static class: java.lang.Class; public static createConnectionCallback(callback: android.support.v4.media.MediaBrowserCompatApi21.ConnectionCallback): any; @@ -434,7 +436,7 @@ declare module android { public static subscribe(browserObj: any, parentId: string, subscriptionCallbackObj: any): void; public static unsubscribe(browserObj: any, parentId: string): void; } - export module MediaBrowserCompatApi21 { + export namespace MediaBrowserCompatApi21 { export class ConnectionCallback { public static class: java.lang.Class; /** @@ -489,16 +491,16 @@ declare module android { } } -declare module android { - export module support { - export module v4 { - export module media { +declare namespace android { + export namespace support { + export namespace v4 { + export namespace media { export class MediaBrowserCompatApi23 { public static class: java.lang.Class; public static createItemCallback(callback: android.support.v4.media.MediaBrowserCompatApi23.ItemCallback): any; public static getItem(browserObj: any, mediaId: string, itemCallbackObj: any): void; } - export module MediaBrowserCompatApi23 { + export namespace MediaBrowserCompatApi23 { export class ItemCallback { public static class: java.lang.Class; /** @@ -516,7 +518,7 @@ declare module android { public static class: java.lang.Class>; public mItemCallback: any; public constructor(callback: any); - public onItemLoaded(this_: any): void; + public onItemLoaded(item: any): void; public onError(itemId: string): void; } } @@ -525,16 +527,16 @@ declare module android { } } -declare module android { - export module support { - export module v4 { - export module media { +declare namespace android { + export namespace support { + export namespace v4 { + export namespace media { export class MediaBrowserCompatApi26 { public static class: java.lang.Class; public static subscribe(browserObj: any, parentId: string, options: android.os.Bundle, subscriptionCallbackObj: any): void; public static unsubscribe(browserObj: any, parentId: string, subscriptionCallbackObj: any): void; } - export module MediaBrowserCompatApi26 { + export namespace MediaBrowserCompatApi26 { export class SubscriptionCallback extends android.support.v4.media.MediaBrowserCompatApi21.SubscriptionCallback { public static class: java.lang.Class; /** @@ -565,26 +567,26 @@ declare module android { } } -declare module android { - export module support { - export module v4 { - export module media { +declare namespace android { + export namespace support { + export namespace v4 { + export namespace media { export class MediaDescriptionCompat { public static class: java.lang.Class; - public static EXTRA_BT_FOLDER_TYPE: string = "android.media.extra.BT_FOLDER_TYPE"; - public static BT_FOLDER_TYPE_MIXED: number = 0; - public static BT_FOLDER_TYPE_TITLES: number = 1; - public static BT_FOLDER_TYPE_ALBUMS: number = 2; - public static BT_FOLDER_TYPE_ARTISTS: number = 3; - public static BT_FOLDER_TYPE_GENRES: number = 4; - public static BT_FOLDER_TYPE_PLAYLISTS: number = 5; - public static BT_FOLDER_TYPE_YEARS: number = 6; - public static EXTRA_DOWNLOAD_STATUS: string = "android.media.extra.DOWNLOAD_STATUS"; - public static STATUS_NOT_DOWNLOADED: number = 0; - public static STATUS_DOWNLOADING: number = 1; - public static STATUS_DOWNLOADED: number = 2; - public static DESCRIPTION_KEY_MEDIA_URI: string = "android.support.v4.media.description.MEDIA_URI"; - public static DESCRIPTION_KEY_NULL_BUNDLE_FLAG: string = "android.support.v4.media.description.NULL_BUNDLE_FLAG"; + public static readonly EXTRA_BT_FOLDER_TYPE = "android.media.extra.BT_FOLDER_TYPE"; + public static readonly BT_FOLDER_TYPE_MIXED = 0; + public static readonly BT_FOLDER_TYPE_TITLES = 1; + public static readonly BT_FOLDER_TYPE_ALBUMS = 2; + public static readonly BT_FOLDER_TYPE_ARTISTS = 3; + public static readonly BT_FOLDER_TYPE_GENRES = 4; + public static readonly BT_FOLDER_TYPE_PLAYLISTS = 5; + public static readonly BT_FOLDER_TYPE_YEARS = 6; + public static readonly EXTRA_DOWNLOAD_STATUS = "android.media.extra.DOWNLOAD_STATUS"; + public static readonly STATUS_NOT_DOWNLOADED = 0; + public static readonly STATUS_DOWNLOADING = 1; + public static readonly STATUS_DOWNLOADED = 2; + public static readonly DESCRIPTION_KEY_MEDIA_URI = "android.support.v4.media.description.MEDIA_URI"; + public static readonly DESCRIPTION_KEY_NULL_BUNDLE_FLAG = "android.support.v4.media.description.NULL_BUNDLE_FLAG"; public static CREATOR: android.os.Parcelable.Creator; public getMediaId(): string | null; public getTitle(): string | null; @@ -598,9 +600,9 @@ declare module android { public writeToParcel(dest: android.os.Parcel, flags: number): void; public toString(): string; public getMediaDescription(): any; - public static fromMediaDescription(bob: any): android.support.v4.media.MediaDescriptionCompat; + public static fromMediaDescription(descriptionObj: any): android.support.v4.media.MediaDescriptionCompat; } - export module MediaDescriptionCompat { + export namespace MediaDescriptionCompat { export class Builder { public static class: java.lang.Class; public constructor(); @@ -620,10 +622,10 @@ declare module android { } } -declare module android { - export module support { - export module v4 { - export module media { +declare namespace android { + export namespace support { + export namespace v4 { + export namespace media { export class MediaDescriptionCompatApi21 { public static class: java.lang.Class; public static getMediaId(descriptionObj: any): string; @@ -636,7 +638,7 @@ declare module android { public static writeToParcel(descriptionObj: any, dest: android.os.Parcel, flags: number): void; public static fromParcel(in_: android.os.Parcel): any; } - export module MediaDescriptionCompatApi21 { + export namespace MediaDescriptionCompatApi21 { export class Builder { public static class: java.lang.Class; public static newInstance(): any; @@ -655,15 +657,15 @@ declare module android { } } -declare module android { - export module support { - export module v4 { - export module media { +declare namespace android { + export namespace support { + export namespace v4 { + export namespace media { export class MediaDescriptionCompatApi23 { public static class: java.lang.Class; public static getMediaUri(descriptionObj: any): android.net.Uri; } - export module MediaDescriptionCompatApi23 { + export namespace MediaDescriptionCompatApi23 { export class Builder { public static class: java.lang.Class; public static setMediaUri(builderObj: any, mediaUri: android.net.Uri): void; @@ -674,60 +676,60 @@ declare module android { } } -declare module android { - export module support { - export module v4 { - export module media { +declare namespace android { + export namespace support { + export namespace v4 { + export namespace media { export class MediaMetadataCompat { public static class: java.lang.Class; - public static METADATA_KEY_TITLE: string = "android.media.metadata.TITLE"; - public static METADATA_KEY_ARTIST: string = "android.media.metadata.ARTIST"; - public static METADATA_KEY_DURATION: string = "android.media.metadata.DURATION"; - public static METADATA_KEY_ALBUM: string = "android.media.metadata.ALBUM"; - public static METADATA_KEY_AUTHOR: string = "android.media.metadata.AUTHOR"; - public static METADATA_KEY_WRITER: string = "android.media.metadata.WRITER"; - public static METADATA_KEY_COMPOSER: string = "android.media.metadata.COMPOSER"; - public static METADATA_KEY_COMPILATION: string = "android.media.metadata.COMPILATION"; - public static METADATA_KEY_DATE: string = "android.media.metadata.DATE"; - public static METADATA_KEY_YEAR: string = "android.media.metadata.YEAR"; - public static METADATA_KEY_GENRE: string = "android.media.metadata.GENRE"; - public static METADATA_KEY_TRACK_NUMBER: string = "android.media.metadata.TRACK_NUMBER"; - public static METADATA_KEY_NUM_TRACKS: string = "android.media.metadata.NUM_TRACKS"; - public static METADATA_KEY_DISC_NUMBER: string = "android.media.metadata.DISC_NUMBER"; - public static METADATA_KEY_ALBUM_ARTIST: string = "android.media.metadata.ALBUM_ARTIST"; - public static METADATA_KEY_ART: string = "android.media.metadata.ART"; - public static METADATA_KEY_ART_URI: string = "android.media.metadata.ART_URI"; - public static METADATA_KEY_ALBUM_ART: string = "android.media.metadata.ALBUM_ART"; - public static METADATA_KEY_ALBUM_ART_URI: string = "android.media.metadata.ALBUM_ART_URI"; - public static METADATA_KEY_USER_RATING: string = "android.media.metadata.USER_RATING"; - public static METADATA_KEY_RATING: string = "android.media.metadata.RATING"; - public static METADATA_KEY_DISPLAY_TITLE: string = "android.media.metadata.DISPLAY_TITLE"; - public static METADATA_KEY_DISPLAY_SUBTITLE: string = "android.media.metadata.DISPLAY_SUBTITLE"; - public static METADATA_KEY_DISPLAY_DESCRIPTION: string = "android.media.metadata.DISPLAY_DESCRIPTION"; - public static METADATA_KEY_DISPLAY_ICON: string = "android.media.metadata.DISPLAY_ICON"; - public static METADATA_KEY_DISPLAY_ICON_URI: string = "android.media.metadata.DISPLAY_ICON_URI"; - public static METADATA_KEY_MEDIA_ID: string = "android.media.metadata.MEDIA_ID"; - public static METADATA_KEY_MEDIA_URI: string = "android.media.metadata.MEDIA_URI"; - public static METADATA_KEY_BT_FOLDER_TYPE: string = "android.media.metadata.BT_FOLDER_TYPE"; - public static METADATA_KEY_ADVERTISEMENT: string = "android.media.metadata.ADVERTISEMENT"; - public static METADATA_KEY_DOWNLOAD_STATUS: string = "android.media.metadata.DOWNLOAD_STATUS"; + public static readonly METADATA_KEY_TITLE = "android.media.metadata.TITLE"; + public static readonly METADATA_KEY_ARTIST = "android.media.metadata.ARTIST"; + public static readonly METADATA_KEY_DURATION = "android.media.metadata.DURATION"; + public static readonly METADATA_KEY_ALBUM = "android.media.metadata.ALBUM"; + public static readonly METADATA_KEY_AUTHOR = "android.media.metadata.AUTHOR"; + public static readonly METADATA_KEY_WRITER = "android.media.metadata.WRITER"; + public static readonly METADATA_KEY_COMPOSER = "android.media.metadata.COMPOSER"; + public static readonly METADATA_KEY_COMPILATION = "android.media.metadata.COMPILATION"; + public static readonly METADATA_KEY_DATE = "android.media.metadata.DATE"; + public static readonly METADATA_KEY_YEAR = "android.media.metadata.YEAR"; + public static readonly METADATA_KEY_GENRE = "android.media.metadata.GENRE"; + public static readonly METADATA_KEY_TRACK_NUMBER = "android.media.metadata.TRACK_NUMBER"; + public static readonly METADATA_KEY_NUM_TRACKS = "android.media.metadata.NUM_TRACKS"; + public static readonly METADATA_KEY_DISC_NUMBER = "android.media.metadata.DISC_NUMBER"; + public static readonly METADATA_KEY_ALBUM_ARTIST = "android.media.metadata.ALBUM_ARTIST"; + public static readonly METADATA_KEY_ART = "android.media.metadata.ART"; + public static readonly METADATA_KEY_ART_URI = "android.media.metadata.ART_URI"; + public static readonly METADATA_KEY_ALBUM_ART = "android.media.metadata.ALBUM_ART"; + public static readonly METADATA_KEY_ALBUM_ART_URI = "android.media.metadata.ALBUM_ART_URI"; + public static readonly METADATA_KEY_USER_RATING = "android.media.metadata.USER_RATING"; + public static readonly METADATA_KEY_RATING = "android.media.metadata.RATING"; + public static readonly METADATA_KEY_DISPLAY_TITLE = "android.media.metadata.DISPLAY_TITLE"; + public static readonly METADATA_KEY_DISPLAY_SUBTITLE = "android.media.metadata.DISPLAY_SUBTITLE"; + public static readonly METADATA_KEY_DISPLAY_DESCRIPTION = "android.media.metadata.DISPLAY_DESCRIPTION"; + public static readonly METADATA_KEY_DISPLAY_ICON = "android.media.metadata.DISPLAY_ICON"; + public static readonly METADATA_KEY_DISPLAY_ICON_URI = "android.media.metadata.DISPLAY_ICON_URI"; + public static readonly METADATA_KEY_MEDIA_ID = "android.media.metadata.MEDIA_ID"; + public static readonly METADATA_KEY_MEDIA_URI = "android.media.metadata.MEDIA_URI"; + public static readonly METADATA_KEY_BT_FOLDER_TYPE = "android.media.metadata.BT_FOLDER_TYPE"; + public static readonly METADATA_KEY_ADVERTISEMENT = "android.media.metadata.ADVERTISEMENT"; + public static readonly METADATA_KEY_DOWNLOAD_STATUS = "android.media.metadata.DOWNLOAD_STATUS"; public static CREATOR: android.os.Parcelable.Creator; public containsKey(key: string): boolean; public getText(key: string): string; public getString(key: string): string; public getLong(key: string): number; - public getRating(this_: string): android.support.v4.media.RatingCompat; - public getBitmap(this_: string): android.graphics.Bitmap; + public getRating(key: string): android.support.v4.media.RatingCompat; + public getBitmap(key: string): android.graphics.Bitmap; public getDescription(): android.support.v4.media.MediaDescriptionCompat; public describeContents(): number; public writeToParcel(dest: android.os.Parcel, flags: number): void; public size(): number; public keySet(): java.util.Set; public getBundle(): android.os.Bundle; - public static fromMediaMetadata(p: any): android.support.v4.media.MediaMetadataCompat; + public static fromMediaMetadata(metadataObj: any): android.support.v4.media.MediaMetadataCompat; public getMediaMetadata(): any; } - export module MediaMetadataCompat { + export namespace MediaMetadataCompat { export class BitmapKey { public static class: java.lang.Class; /** @@ -741,7 +743,7 @@ declare module android { public static class: java.lang.Class; public constructor(); public constructor(source: android.support.v4.media.MediaMetadataCompat); - public constructor(value: android.support.v4.media.MediaMetadataCompat, key: number); + public constructor(source: android.support.v4.media.MediaMetadataCompat, maxBitmapSize: number); public putText(key: string, value: string): android.support.v4.media.MediaMetadataCompat.Builder; public putString(key: string, value: string): android.support.v4.media.MediaMetadataCompat.Builder; public putLong(key: string, value: number): android.support.v4.media.MediaMetadataCompat.Builder; @@ -782,10 +784,10 @@ declare module android { } } -declare module android { - export module support { - export module v4 { - export module media { +declare namespace android { + export namespace support { + export namespace v4 { + export namespace media { export class MediaMetadataCompatApi21 { public static class: java.lang.Class; public static keySet(metadataObj: any): java.util.Set; @@ -796,7 +798,7 @@ declare module android { public static writeToParcel(metadataObj: any, dest: android.os.Parcel, flags: number): void; public static createFromParcel(in_: android.os.Parcel): any; } - export module MediaMetadataCompatApi21 { + export namespace MediaMetadataCompatApi21 { export class Builder { public static class: java.lang.Class; public static newInstance(): any; @@ -813,10 +815,10 @@ declare module android { } } -declare module android { - export module support { - export module v4 { - export module media { +declare namespace android { + export namespace support { + export namespace v4 { + export namespace media { export class ParceledListSliceAdapterApi21 { public static class: java.lang.Class; } @@ -825,19 +827,19 @@ declare module android { } } -declare module android { - export module support { - export module v4 { - export module media { +declare namespace android { + export namespace support { + export namespace v4 { + export namespace media { export class RatingCompat { public static class: java.lang.Class; - public static RATING_NONE: number = 0; - public static RATING_HEART: number = 1; - public static RATING_THUMB_UP_DOWN: number = 2; - public static RATING_3_STARS: number = 3; - public static RATING_4_STARS: number = 4; - public static RATING_5_STARS: number = 5; - public static RATING_PERCENTAGE: number = 6; + public static readonly RATING_NONE = 0; + public static readonly RATING_HEART = 1; + public static readonly RATING_THUMB_UP_DOWN = 2; + public static readonly RATING_3_STARS = 3; + public static readonly RATING_4_STARS = 4; + public static readonly RATING_5_STARS = 5; + public static readonly RATING_PERCENTAGE = 6; public static CREATOR: android.os.Parcelable.Creator; public toString(): string; public describeContents(): number; @@ -853,10 +855,10 @@ declare module android { public isThumbUp(): boolean; public getStarRating(): number; public getPercentRating(): number; - public static fromRating(ratingStyle: any): android.support.v4.media.RatingCompat; + public static fromRating(ratingObj: any): android.support.v4.media.RatingCompat; public getRating(): any; } - export module RatingCompat { + export namespace RatingCompat { export class StarStyle { public static class: java.lang.Class; /** @@ -881,11 +883,11 @@ declare module android { } } -declare module android { - export module support { - export module v4 { - export module media { - export module session { +declare namespace android { + export namespace support { + export namespace v4 { + export namespace media { + export namespace session { export class IMediaControllerCallback { public static class: java.lang.Class; /** @@ -921,13 +923,13 @@ declare module android { public onShuffleModeChanged(param0: number): void; public onSessionReady(): void; } - export module IMediaControllerCallback { + export namespace IMediaControllerCallback { export abstract class Stub implements android.support.v4.media.session.IMediaControllerCallback { public static class: java.lang.Class; public constructor(); public static asInterface(obj: android.os.IBinder): android.support.v4.media.session.IMediaControllerCallback; public asBinder(): android.os.IBinder; - public onTransact(_arg0: number, _arg1: android.os.Parcel, _arg0: android.os.Parcel, _arg0: number): boolean; + public onTransact(code: number, data: android.os.Parcel, reply: android.os.Parcel, flags: number): boolean; public onEvent(param0: string, param1: android.os.Bundle): void; public onSessionDestroyed(): void; public onPlaybackStateChanged(param0: android.support.v4.media.session.PlaybackStateCompat): void; @@ -942,7 +944,7 @@ declare module android { public onShuffleModeChanged(param0: number): void; public onSessionReady(): void; } - export module Stub { + export namespace Stub { export class Proxy extends android.support.v4.media.session.IMediaControllerCallback { public static class: java.lang.Class; public asBinder(): android.os.IBinder; @@ -980,11 +982,11 @@ declare module android { } } -declare module android { - export module support { - export module v4 { - export module media { - export module session { +declare namespace android { + export namespace support { + export namespace v4 { + export namespace media { + export namespace session { export class IMediaSession { public static class: java.lang.Class; /** @@ -1092,13 +1094,13 @@ declare module android { public setShuffleMode(param0: number): void; public sendCustomAction(param0: string, param1: android.os.Bundle): void; } - export module IMediaSession { + export namespace IMediaSession { export abstract class Stub implements android.support.v4.media.session.IMediaSession { public static class: java.lang.Class; public constructor(); public static asInterface(obj: android.os.IBinder): android.support.v4.media.session.IMediaSession; public asBinder(): android.os.IBinder; - public onTransact(_arg2: number, _arg0: android.os.Parcel, _arg1: android.os.Parcel, _arg2: number): boolean; + public onTransact(code: number, data: android.os.Parcel, reply: android.os.Parcel, flags: number): boolean; public sendCommand(param0: string, param1: android.os.Bundle, param2: android.support.v4.media.session.MediaSessionCompat.ResultReceiverWrapper): void; public sendMediaButton(param0: android.view.KeyEvent): boolean; public registerCallbackListener(param0: android.support.v4.media.session.IMediaControllerCallback): void; @@ -1149,7 +1151,7 @@ declare module android { public setShuffleMode(param0: number): void; public sendCustomAction(param0: string, param1: android.os.Bundle): void; } - export module Stub { + export namespace Stub { export class Proxy extends android.support.v4.media.session.IMediaSession { public static class: java.lang.Class; public asBinder(): android.os.IBinder; @@ -1237,23 +1239,23 @@ declare module android { } } -declare module android { - export module support { - export module v4 { - export module media { - export module session { +declare namespace android { + export namespace support { + export namespace v4 { + export namespace media { + export namespace session { export class MediaControllerCompat { public static class: java.lang.Class; - public static COMMAND_GET_EXTRA_BINDER: string = "android.support.v4.media.session.command.GET_EXTRA_BINDER"; - public static COMMAND_ADD_QUEUE_ITEM: string = "android.support.v4.media.session.command.ADD_QUEUE_ITEM"; - public static COMMAND_ADD_QUEUE_ITEM_AT: string = "android.support.v4.media.session.command.ADD_QUEUE_ITEM_AT"; - public static COMMAND_REMOVE_QUEUE_ITEM: string = "android.support.v4.media.session.command.REMOVE_QUEUE_ITEM"; - public static COMMAND_REMOVE_QUEUE_ITEM_AT: string = "android.support.v4.media.session.command.REMOVE_QUEUE_ITEM_AT"; - public static COMMAND_ARGUMENT_MEDIA_DESCRIPTION: string = "android.support.v4.media.session.command.ARGUMENT_MEDIA_DESCRIPTION"; - public static COMMAND_ARGUMENT_INDEX: string = "android.support.v4.media.session.command.ARGUMENT_INDEX"; - public static setMediaController(sessionTokenObj: android.app.Activity, controllerObj: android.support.v4.media.session.MediaControllerCompat): void; - public static getMediaController(extraData: android.app.Activity): android.support.v4.media.session.MediaControllerCompat; - public constructor(this_: android.content.Context, context: android.support.v4.media.session.MediaSessionCompat); + public static readonly COMMAND_GET_EXTRA_BINDER = "android.support.v4.media.session.command.GET_EXTRA_BINDER"; + public static readonly COMMAND_ADD_QUEUE_ITEM = "android.support.v4.media.session.command.ADD_QUEUE_ITEM"; + public static readonly COMMAND_ADD_QUEUE_ITEM_AT = "android.support.v4.media.session.command.ADD_QUEUE_ITEM_AT"; + public static readonly COMMAND_REMOVE_QUEUE_ITEM = "android.support.v4.media.session.command.REMOVE_QUEUE_ITEM"; + public static readonly COMMAND_REMOVE_QUEUE_ITEM_AT = "android.support.v4.media.session.command.REMOVE_QUEUE_ITEM_AT"; + public static readonly COMMAND_ARGUMENT_MEDIA_DESCRIPTION = "android.support.v4.media.session.command.ARGUMENT_MEDIA_DESCRIPTION"; + public static readonly COMMAND_ARGUMENT_INDEX = "android.support.v4.media.session.command.ARGUMENT_INDEX"; + public static setMediaController(activity: android.app.Activity, mediaController: android.support.v4.media.session.MediaControllerCompat): void; + public static getMediaController(activity: android.app.Activity): android.support.v4.media.session.MediaControllerCompat; + public constructor(context: android.content.Context, session: android.support.v4.media.session.MediaSessionCompat); public constructor(context: android.content.Context, sessionToken: android.support.v4.media.session.MediaSessionCompat.Token); public getTransportControls(): android.support.v4.media.session.MediaControllerCompat.TransportControls; public dispatchMediaButtonEvent(keyEvent: android.view.KeyEvent): boolean; @@ -1264,7 +1266,7 @@ declare module android { public addQueueItem(description: android.support.v4.media.MediaDescriptionCompat, index: number): void; public removeQueueItem(description: android.support.v4.media.MediaDescriptionCompat): void; /** @deprecated */ - public removeQueueItemAt(this_: number): void; + public removeQueueItemAt(index: number): void; public getQueueTitle(): string; public getExtras(): android.os.Bundle; public getRatingType(): number; @@ -1286,7 +1288,7 @@ declare module android { public getPackageName(): string; public getMediaController(): any; } - export module MediaControllerCompat { + export namespace MediaControllerCompat { export abstract class Callback { public static class: java.lang.Class; public constructor(); @@ -1305,10 +1307,10 @@ declare module android { public getIControllerCallback(): android.support.v4.media.session.IMediaControllerCallback; public binderDied(): void; } - export module Callback { + export namespace Callback { export class MessageHandler { public static class: java.lang.Class; - public handleMessage(extras: android.os.Message): void; + public handleMessage(msg: android.os.Message): void; } export class StubApi21 extends android.support.v4.media.session.MediaControllerCompatApi21.Callback { public static class: java.lang.Class; @@ -1341,7 +1343,7 @@ declare module android { public onShuffleModeChangedRemoved(enabled: boolean): void; public onShuffleModeChanged(shuffleMode: number): void; public onExtrasChanged(extras: android.os.Bundle): void; - public onVolumeInfoChanged(this_: android.support.v4.media.session.ParcelableVolumeInfo): void; + public onVolumeInfoChanged(info: android.support.v4.media.session.ParcelableVolumeInfo): void; public onSessionReady(): void; public onEvent(param0: string, param1: android.os.Bundle): void; public onPlaybackStateChanged(param0: android.support.v4.media.session.PlaybackStateCompat): void; @@ -1422,8 +1424,8 @@ declare module android { public static class: java.lang.Class; public mControllerObj: any; public constructor(context: android.content.Context, sessionToken: android.support.v4.media.session.MediaSessionCompat.Token); - public registerCallback(extraCallback: android.support.v4.media.session.MediaControllerCompat.Callback, this_: android.os.Handler): void; - public unregisterCallback(e: android.support.v4.media.session.MediaControllerCompat.Callback): void; + public registerCallback(callback: android.support.v4.media.session.MediaControllerCompat.Callback, handler: android.os.Handler): void; + public unregisterCallback(callback: android.support.v4.media.session.MediaControllerCompat.Callback): void; public dispatchMediaButtonEvent(event: android.view.KeyEvent): boolean; public getTransportControls(): android.support.v4.media.session.MediaControllerCompat.TransportControls; public getPlaybackState(): android.support.v4.media.session.PlaybackStateCompat; @@ -1457,7 +1459,7 @@ declare module android { public adjustVolume(param0: number, param1: number): void; public sendCommand(param0: string, param1: android.os.Bundle, param2: android.os.ResultReceiver): void; } - export module MediaControllerImplApi21 { + export namespace MediaControllerImplApi21 { export class ExtraBinderRequestResultReceiver { public static class: java.lang.Class; public onReceiveResult(resultCode: number, resultData: android.os.Bundle): void; @@ -1547,16 +1549,16 @@ declare module android { export class MediaControllerImplBase extends android.support.v4.media.session.MediaControllerCompat.MediaControllerImpl { public static class: java.lang.Class; public constructor(token: android.support.v4.media.session.MediaSessionCompat.Token); - public registerCallback(this_: android.support.v4.media.session.MediaControllerCompat.Callback, callback: android.os.Handler): void; - public unregisterCallback(this_: android.support.v4.media.session.MediaControllerCompat.Callback): void; - public dispatchMediaButtonEvent(this_: android.view.KeyEvent): boolean; + public registerCallback(callback: android.support.v4.media.session.MediaControllerCompat.Callback, handler: android.os.Handler): void; + public unregisterCallback(callback: android.support.v4.media.session.MediaControllerCompat.Callback): void; + public dispatchMediaButtonEvent(event: android.view.KeyEvent): boolean; public getTransportControls(): android.support.v4.media.session.MediaControllerCompat.TransportControls; public getPlaybackState(): android.support.v4.media.session.PlaybackStateCompat; public getMetadata(): android.support.v4.media.MediaMetadataCompat; public getQueue(): java.util.List; - public addQueueItem(e: android.support.v4.media.MediaDescriptionCompat): void; - public addQueueItem(e: android.support.v4.media.MediaDescriptionCompat, this_: number): void; - public removeQueueItem(e: android.support.v4.media.MediaDescriptionCompat): void; + public addQueueItem(description: android.support.v4.media.MediaDescriptionCompat): void; + public addQueueItem(description: android.support.v4.media.MediaDescriptionCompat, index: number): void; + public removeQueueItem(description: android.support.v4.media.MediaDescriptionCompat): void; public getQueueTitle(): string; public getExtras(): android.os.Bundle; public getRatingType(): number; @@ -1566,9 +1568,9 @@ declare module android { public getFlags(): number; public getPlaybackInfo(): android.support.v4.media.session.MediaControllerCompat.PlaybackInfo; public getSessionActivity(): android.app.PendingIntent; - public setVolumeTo(this_: number, value: number): void; - public adjustVolume(this_: number, direction: number): void; - public sendCommand(this_: string, command: android.os.Bundle, params: android.os.ResultReceiver): void; + public setVolumeTo(value: number, flags: number): void; + public adjustVolume(direction: number, flags: number): void; + public sendCommand(command: string, params: android.os.Bundle, cb: android.os.ResultReceiver): void; public isSessionReady(): boolean; public getPackageName(): string; public getMediaController(): any; @@ -1584,8 +1586,8 @@ declare module android { } export class PlaybackInfo { public static class: java.lang.Class; - public static PLAYBACK_TYPE_LOCAL: number = 1; - public static PLAYBACK_TYPE_REMOTE: number = 2; + public static readonly PLAYBACK_TYPE_LOCAL = 1; + public static readonly PLAYBACK_TYPE_REMOTE = 2; public getPlaybackType(): number; public getAudioStream(): number; public getVolumeControl(): number; @@ -1594,7 +1596,7 @@ declare module android { } export abstract class TransportControls { public static class: java.lang.Class; - public static EXTRA_LEGACY_STREAM_TYPE: string = "any_STREAM_TYPE"; + public static readonly EXTRA_LEGACY_STREAM_TYPE = "android.media.session.extra.LEGACY_STREAM_TYPE"; public prepare(): void; public prepareFromMediaId(param0: string, param1: android.os.Bundle): void; public prepareFromSearch(param0: string, param1: android.os.Bundle): void; @@ -1666,30 +1668,30 @@ declare module android { public static class: java.lang.Class; public constructor(binder: android.support.v4.media.session.IMediaSession); public prepare(): void; - public prepareFromMediaId(this_: string, mediaId: android.os.Bundle): void; - public prepareFromSearch(this_: string, query: android.os.Bundle): void; - public prepareFromUri(this_: android.net.Uri, uri: android.os.Bundle): void; + public prepareFromMediaId(mediaId: string, extras: android.os.Bundle): void; + public prepareFromSearch(query: string, extras: android.os.Bundle): void; + public prepareFromUri(uri: android.net.Uri, extras: android.os.Bundle): void; public play(): void; - public playFromMediaId(this_: string, mediaId: android.os.Bundle): void; - public playFromSearch(this_: string, query: android.os.Bundle): void; - public playFromUri(this_: android.net.Uri, uri: android.os.Bundle): void; - public skipToQueueItem(this_: number): void; + public playFromMediaId(mediaId: string, extras: android.os.Bundle): void; + public playFromSearch(query: string, extras: android.os.Bundle): void; + public playFromUri(uri: android.net.Uri, extras: android.os.Bundle): void; + public skipToQueueItem(id: number): void; public pause(): void; public stop(): void; - public seekTo(this_: number): void; + public seekTo(pos: number): void; public fastForward(): void; public skipToNext(): void; public rewind(): void; public skipToPrevious(): void; public setRating(param0: android.support.v4.media.RatingCompat, param1: android.os.Bundle): void; - public setRating(this_: android.support.v4.media.RatingCompat): void; - public setRating(this_: android.support.v4.media.RatingCompat, rating: android.os.Bundle): void; - public setCaptioningEnabled(this_: boolean): void; - public setRepeatMode(this_: number): void; - public setShuffleMode(this_: number): void; + public setRating(rating: android.support.v4.media.RatingCompat): void; + public setRating(rating: android.support.v4.media.RatingCompat, extras: android.os.Bundle): void; + public setCaptioningEnabled(enabled: boolean): void; + public setRepeatMode(repeatMode: number): void; + public setShuffleMode(shuffleMode: number): void; public sendCustomAction(param0: string, param1: android.os.Bundle): void; public sendCustomAction(customAction: android.support.v4.media.session.PlaybackStateCompat.CustomAction, args: android.os.Bundle): void; - public sendCustomAction(this_: string, action: android.os.Bundle): void; + public sendCustomAction(action: string, args: android.os.Bundle): void; } } } @@ -1698,11 +1700,11 @@ declare module android { } } -declare module android { - export module support { - export module v4 { - export module media { - export module session { +declare namespace android { + export namespace support { + export namespace v4 { + export namespace media { + export namespace session { export class MediaControllerCompatApi21 { public static class: java.lang.Class; public static fromToken(context: android.content.Context, sessionToken: any): any; @@ -1728,7 +1730,7 @@ declare module android { public static sendCommand(controllerObj: any, command: string, params: android.os.Bundle, cb: android.os.ResultReceiver): void; public static getPackageName(controllerObj: any): string; } - export module MediaControllerCompatApi21 { + export namespace MediaControllerCompatApi21 { export class Callback { public static class: java.lang.Class; /** @@ -1799,15 +1801,15 @@ declare module android { } } -declare module android { - export module support { - export module v4 { - export module media { - export module session { +declare namespace android { + export namespace support { + export namespace v4 { + export namespace media { + export namespace session { export class MediaControllerCompatApi23 { public static class: java.lang.Class; } - export module MediaControllerCompatApi23 { + export namespace MediaControllerCompatApi23 { export class TransportControls { public static class: java.lang.Class; public static playFromUri(controlsObj: any, uri: android.net.Uri, extras: android.os.Bundle): void; @@ -1819,15 +1821,15 @@ declare module android { } } -declare module android { - export module support { - export module v4 { - export module media { - export module session { +declare namespace android { + export namespace support { + export namespace v4 { + export namespace media { + export namespace session { export class MediaControllerCompatApi24 { public static class: java.lang.Class; } - export module MediaControllerCompatApi24 { + export namespace MediaControllerCompatApi24 { export class TransportControls { public static class: java.lang.Class; public static prepare(controlsObj: any): void; @@ -1842,45 +1844,45 @@ declare module android { } } -declare module android { - export module support { - export module v4 { - export module media { - export module session { +declare namespace android { + export namespace support { + export namespace v4 { + export namespace media { + export namespace session { export class MediaSessionCompat { public static class: java.lang.Class; - public static FLAG_HANDLES_MEDIA_BUTTONS: number = 1; - public static FLAG_HANDLES_TRANSPORT_CONTROLS: number = 2; - public static FLAG_HANDLES_QUEUE_COMMANDS: number = 4; - public static ACTION_FLAG_AS_INAPPROPRIATE: string = "android.support.v4.media.session.action.FLAG_AS_INAPPROPRIATE"; - public static ACTION_SKIP_AD: string = "android.support.v4.media.session.action.SKIP_AD"; - public static ACTION_FOLLOW: string = "android.support.v4.media.session.action.FOLLOW"; - public static ACTION_UNFOLLOW: string = "android.support.v4.media.session.action.UNFOLLOW"; - public static ARGUMENT_MEDIA_ATTRIBUTE: string = "android.support.v4.media.session.ARGUMENT_MEDIA_ATTRIBUTE"; - public static ARGUMENT_MEDIA_ATTRIBUTE_VALUE: string = "android.support.v4.media.session.ARGUMENT_MEDIA_ATTRIBUTE_VALUE"; - public static MEDIA_ATTRIBUTE_ARTIST: number = 0; - public static MEDIA_ATTRIBUTE_ALBUM: number = 1; - public static MEDIA_ATTRIBUTE_PLAYLIST: number = 2; - public static ACTION_PLAY_FROM_URI: string = "android.support.v4.media.session.action.PLAY_FROM_URI"; - public static ACTION_PREPARE: string = "android.support.v4.media.session.action.PREPARE"; - public static ACTION_PREPARE_FROM_MEDIA_ID: string = "android.support.v4.media.session.action.PREPARE_FROM_MEDIA_ID"; - public static ACTION_PREPARE_FROM_SEARCH: string = "android.support.v4.media.session.action.PREPARE_FROM_SEARCH"; - public static ACTION_PREPARE_FROM_URI: string = "android.support.v4.media.session.action.PREPARE_FROM_URI"; - public static ACTION_SET_CAPTIONING_ENABLED: string = "android.support.v4.media.session.action.SET_CAPTIONING_ENABLED"; - public static ACTION_SET_REPEAT_MODE: string = "android.support.v4.media.session.action.SET_REPEAT_MODE"; - public static ACTION_SET_SHUFFLE_MODE: string = "android.support.v4.media.session.action.SET_SHUFFLE_MODE"; - public static ACTION_SET_RATING: string = "android.support.v4.media.session.action.SET_RATING"; - public static ACTION_ARGUMENT_MEDIA_ID: string = "android.support.v4.media.session.action.ARGUMENT_MEDIA_ID"; - public static ACTION_ARGUMENT_QUERY: string = "android.support.v4.media.session.action.ARGUMENT_QUERY"; - public static ACTION_ARGUMENT_URI: string = "android.support.v4.media.session.action.ARGUMENT_URI"; - public static ACTION_ARGUMENT_RATING: string = "android.support.v4.media.session.action.ARGUMENT_RATING"; - public static ACTION_ARGUMENT_EXTRAS: string = "android.support.v4.media.session.action.ARGUMENT_EXTRAS"; - public static ACTION_ARGUMENT_CAPTIONING_ENABLED: string = "android.support.v4.media.session.action.ARGUMENT_CAPTIONING_ENABLED"; - public static ACTION_ARGUMENT_REPEAT_MODE: string = "android.support.v4.media.session.action.ARGUMENT_REPEAT_MODE"; - public static ACTION_ARGUMENT_SHUFFLE_MODE: string = "android.support.v4.media.session.action.ARGUMENT_SHUFFLE_MODE"; - public static KEY_TOKEN: string = "android.support.v4.media.session.TOKEN"; - public static KEY_EXTRA_BINDER: string = "android.support.v4.media.session.EXTRA_BINDER"; - public static KEY_SESSION_TOKEN2_BUNDLE: string = "android.support.v4.media.session.SESSION_TOKEN2_BUNDLE"; + public static readonly FLAG_HANDLES_MEDIA_BUTTONS = 1; + public static readonly FLAG_HANDLES_TRANSPORT_CONTROLS = 2; + public static readonly FLAG_HANDLES_QUEUE_COMMANDS = 4; + public static readonly ACTION_FLAG_AS_INAPPROPRIATE = "android.support.v4.media.session.action.FLAG_AS_INAPPROPRIATE"; + public static readonly ACTION_SKIP_AD = "android.support.v4.media.session.action.SKIP_AD"; + public static readonly ACTION_FOLLOW = "android.support.v4.media.session.action.FOLLOW"; + public static readonly ACTION_UNFOLLOW = "android.support.v4.media.session.action.UNFOLLOW"; + public static readonly ARGUMENT_MEDIA_ATTRIBUTE = "android.support.v4.media.session.ARGUMENT_MEDIA_ATTRIBUTE"; + public static readonly ARGUMENT_MEDIA_ATTRIBUTE_VALUE = "android.support.v4.media.session.ARGUMENT_MEDIA_ATTRIBUTE_VALUE"; + public static readonly MEDIA_ATTRIBUTE_ARTIST = 0; + public static readonly MEDIA_ATTRIBUTE_ALBUM = 1; + public static readonly MEDIA_ATTRIBUTE_PLAYLIST = 2; + public static readonly ACTION_PLAY_FROM_URI = "android.support.v4.media.session.action.PLAY_FROM_URI"; + public static readonly ACTION_PREPARE = "android.support.v4.media.session.action.PREPARE"; + public static readonly ACTION_PREPARE_FROM_MEDIA_ID = "android.support.v4.media.session.action.PREPARE_FROM_MEDIA_ID"; + public static readonly ACTION_PREPARE_FROM_SEARCH = "android.support.v4.media.session.action.PREPARE_FROM_SEARCH"; + public static readonly ACTION_PREPARE_FROM_URI = "android.support.v4.media.session.action.PREPARE_FROM_URI"; + public static readonly ACTION_SET_CAPTIONING_ENABLED = "android.support.v4.media.session.action.SET_CAPTIONING_ENABLED"; + public static readonly ACTION_SET_REPEAT_MODE = "android.support.v4.media.session.action.SET_REPEAT_MODE"; + public static readonly ACTION_SET_SHUFFLE_MODE = "android.support.v4.media.session.action.SET_SHUFFLE_MODE"; + public static readonly ACTION_SET_RATING = "android.support.v4.media.session.action.SET_RATING"; + public static readonly ACTION_ARGUMENT_MEDIA_ID = "android.support.v4.media.session.action.ARGUMENT_MEDIA_ID"; + public static readonly ACTION_ARGUMENT_QUERY = "android.support.v4.media.session.action.ARGUMENT_QUERY"; + public static readonly ACTION_ARGUMENT_URI = "android.support.v4.media.session.action.ARGUMENT_URI"; + public static readonly ACTION_ARGUMENT_RATING = "android.support.v4.media.session.action.ARGUMENT_RATING"; + public static readonly ACTION_ARGUMENT_EXTRAS = "android.support.v4.media.session.action.ARGUMENT_EXTRAS"; + public static readonly ACTION_ARGUMENT_CAPTIONING_ENABLED = "android.support.v4.media.session.action.ARGUMENT_CAPTIONING_ENABLED"; + public static readonly ACTION_ARGUMENT_REPEAT_MODE = "android.support.v4.media.session.action.ARGUMENT_REPEAT_MODE"; + public static readonly ACTION_ARGUMENT_SHUFFLE_MODE = "android.support.v4.media.session.action.ARGUMENT_SHUFFLE_MODE"; + public static readonly KEY_TOKEN = "android.support.v4.media.session.TOKEN"; + public static readonly KEY_EXTRA_BINDER = "android.support.v4.media.session.EXTRA_BINDER"; + public static readonly KEY_SESSION_TOKEN2_BUNDLE = "android.support.v4.media.session.SESSION_TOKEN2_BUNDLE"; public constructor(context: android.content.Context, tag: string); public constructor(context: android.content.Context, tag: string, mbrComponent: android.content.ComponentName, mbrIntent: android.app.PendingIntent); public constructor(context: android.content.Context, tag: string, token2Bundle: android.os.Bundle); @@ -1891,7 +1893,7 @@ declare module android { public setFlags(flags: number): void; public setPlaybackToLocal(stream: number): void; public setPlaybackToRemote(volumeProvider: androidx.media.VolumeProviderCompat): void; - public setActive(this_: boolean): void; + public setActive(active: boolean): void; public isActive(): boolean; public sendSessionEvent(event: string, extras: android.os.Bundle): void; public release(): void; @@ -1915,12 +1917,12 @@ declare module android { public static fromMediaSession(context: android.content.Context, mediaSession: any): android.support.v4.media.session.MediaSessionCompat; public static ensureClassLoader(bundle: android.os.Bundle | null): void; } - export module MediaSessionCompat { + export namespace MediaSessionCompat { export abstract class Callback { public static class: java.lang.Class; public constructor(); public onCommand(command: string, extras: android.os.Bundle, cb: android.os.ResultReceiver): void; - public onMediaButtonEvent(validActions: android.content.Intent): boolean; + public onMediaButtonEvent(mediaButtonEvent: android.content.Intent): boolean; public onPrepare(): void; public onPrepareFromMediaId(mediaId: string, extras: android.os.Bundle): void; public onPrepareFromSearch(query: string, extras: android.os.Bundle): void; @@ -1949,14 +1951,14 @@ declare module android { /** @deprecated */ public onRemoveQueueItemAt(index: number): void; } - export module Callback { + export namespace Callback { export class CallbackHandler { public static class: java.lang.Class; public handleMessage(msg: android.os.Message): void; } export class StubApi21 extends android.support.v4.media.session.MediaSessionCompatApi21.Callback { public static class: java.lang.Class; - public onCommand(token: string, extraBinder: android.os.Bundle, token2Bundle: android.os.ResultReceiver): void; + public onCommand(command: string, extras: android.os.Bundle, cb: android.os.ResultReceiver): void; public onMediaButtonEvent(mediaButtonIntent: android.content.Intent): boolean; public onPlay(): void; public onPlayFromMediaId(mediaId: string, extras: android.os.Bundle): void; @@ -1971,7 +1973,7 @@ declare module android { public onSeekTo(pos: number): void; public onSetRating(ratingObj: any): void; public onSetRating(ratingObj: any, extras: android.os.Bundle): void; - public onCustomAction(mediaId: string, query: android.os.Bundle): void; + public onCustomAction(action: string, extras: android.os.Bundle): void; public onCommand(param0: string, param1: android.os.Bundle, param2: android.os.ResultReceiver): void; public onMediaButtonEvent(param0: android.content.Intent): boolean; public onPlayFromMediaId(param0: string, param1: android.os.Bundle): void; @@ -2096,7 +2098,7 @@ declare module android { } export class MediaSessionImplApi18 extends android.support.v4.media.session.MediaSessionCompat.MediaSessionImplBase { public static class: java.lang.Class; - public setCallback(this_: android.support.v4.media.session.MediaSessionCompat.Callback, callback: android.os.Handler): void; + public setCallback(callback: android.support.v4.media.session.MediaSessionCompat.Callback, handler: android.os.Handler): void; public setCallback(param0: android.support.v4.media.session.MediaSessionCompat.Callback, param1: android.os.Handler): void; public setFlags(param0: number): void; public setPlaybackToLocal(param0: number): void; @@ -2126,7 +2128,7 @@ declare module android { } export class MediaSessionImplApi19 extends android.support.v4.media.session.MediaSessionCompat.MediaSessionImplApi18 { public static class: java.lang.Class; - public setCallback(this_: android.support.v4.media.session.MediaSessionCompat.Callback, callback: android.os.Handler): void; + public setCallback(callback: android.support.v4.media.session.MediaSessionCompat.Callback, handler: android.os.Handler): void; public setCallback(param0: android.support.v4.media.session.MediaSessionCompat.Callback, param1: android.os.Handler): void; public setFlags(param0: number): void; public setPlaybackToLocal(param0: number): void; @@ -2162,20 +2164,20 @@ declare module android { public setPlaybackToRemote(volumeProvider: androidx.media.VolumeProviderCompat): void; public setActive(active: boolean): void; public isActive(): boolean; - public sendSessionEvent(i: string, size: android.os.Bundle): void; + public sendSessionEvent(event: string, extras: android.os.Bundle): void; public release(): void; public getSessionToken(): android.support.v4.media.session.MediaSessionCompat.Token; - public setPlaybackState(i: android.support.v4.media.session.PlaybackStateCompat): void; + public setPlaybackState(state: android.support.v4.media.session.PlaybackStateCompat): void; public getPlaybackState(): android.support.v4.media.session.PlaybackStateCompat; public setMetadata(metadata: android.support.v4.media.MediaMetadataCompat): void; public setSessionActivity(pi: android.app.PendingIntent): void; public setMediaButtonReceiver(mbr: android.app.PendingIntent): void; - public setQueue(this_: java.util.List): void; + public setQueue(queue: java.util.List): void; public setQueueTitle(title: string): void; public setRatingType(type: number): void; - public setCaptioningEnabled(i: boolean): void; - public setRepeatMode(i: number): void; - public setShuffleMode(i: number): void; + public setCaptioningEnabled(enabled: boolean): void; + public setRepeatMode(repeatMode: number): void; + public setShuffleMode(shuffleMode: number): void; public setExtras(extras: android.os.Bundle): void; public getMediaSession(): any; public getRemoteControlClient(): any; @@ -2201,12 +2203,12 @@ declare module android { public setExtras(param0: android.os.Bundle): void; public setCurrentControllerInfo(param0: androidx.media.MediaSessionManager.RemoteUserInfo): void; } - export module MediaSessionImplApi21 { + export namespace MediaSessionImplApi21 { export class ExtraSession extends android.support.v4.media.session.IMediaSession.Stub { public static class: java.lang.Class; public sendCommand(command: string, args: android.os.Bundle, cb: android.support.v4.media.session.MediaSessionCompat.ResultReceiverWrapper): void; public sendMediaButton(mediaButton: android.view.KeyEvent): boolean; - public registerCallbackListener(info: android.support.v4.media.session.IMediaControllerCallback): void; + public registerCallbackListener(cb: android.support.v4.media.session.IMediaControllerCallback): void; public unregisterCallbackListener(cb: android.support.v4.media.session.IMediaControllerCallback): void; public getPackageName(): string; public getTag(): string; @@ -2358,7 +2360,7 @@ declare module android { public setExtras(param0: android.os.Bundle): void; public setCurrentControllerInfo(param0: androidx.media.MediaSessionManager.RemoteUserInfo): void; } - export module MediaSessionImplBase { + export namespace MediaSessionImplBase { export class Command { public static class: java.lang.Class; public command: string; @@ -2445,8 +2447,8 @@ declare module android { } export class MessageHandler { public static class: java.lang.Class; - public constructor(this$0: android.support.v4.media.session.MediaSessionCompat.MediaSessionImplBase, looper: android.os.Looper); - public handleMessage(cmd: android.os.Message): void; + public constructor(outer: android.support.v4.media.session.MediaSessionCompat.MediaSessionImplBase, looper: android.os.Looper); + public handleMessage(msg: android.os.Message): void; } } export class OnActiveChangeListener { @@ -2462,7 +2464,7 @@ declare module android { } export class QueueItem { public static class: java.lang.Class; - public static UNKNOWN_ID: number = -1; + public static readonly UNKNOWN_ID = -1; public static CREATOR: android.os.Parcelable.Creator; public constructor(description: android.support.v4.media.MediaDescriptionCompat, id: number); public getDescription(): android.support.v4.media.MediaDescriptionCompat; @@ -2471,7 +2473,7 @@ declare module android { public describeContents(): number; public getQueueItem(): any; public static fromQueueItem(queueItem: any): android.support.v4.media.session.MediaSessionCompat.QueueItem; - public static fromQueueItemList(itemObj: java.util.List): java.util.List; + public static fromQueueItemList(itemList: java.util.List): java.util.List; public toString(): string; } export class ResultReceiverWrapper { @@ -2514,11 +2516,11 @@ declare module android { } } -declare module android { - export module support { - export module v4 { - export module media { - export module session { +declare namespace android { + export namespace support { + export namespace v4 { + export namespace media { + export namespace session { export class MediaSessionCompatApi21 { public static class: java.lang.Class; public static createSession(context: android.content.Context, tag: string): any; @@ -2538,12 +2540,12 @@ declare module android { public static setMetadata(sessionObj: any, metadataObj: any): void; public static setSessionActivity(sessionObj: any, pi: android.app.PendingIntent): void; public static setMediaButtonReceiver(sessionObj: any, pi: android.app.PendingIntent): void; - public static setQueue(itemObj: any, sessionObj: java.util.List): void; + public static setQueue(sessionObj: any, queueObjs: java.util.List): void; public static setQueueTitle(sessionObj: any, title: string): void; public static setExtras(sessionObj: any, extras: android.os.Bundle): void; - public static hasCallback(e: any): boolean; + public static hasCallback(sessionObj: any): boolean; } - export module MediaSessionCompatApi21 { + export namespace MediaSessionCompatApi21 { export class Callback { public static class: java.lang.Class; /** @@ -2618,11 +2620,11 @@ declare module android { } } -declare module android { - export module support { - export module v4 { - export module media { - export module session { +declare namespace android { + export namespace support { + export namespace v4 { + export namespace media { + export namespace session { export class MediaSessionCompatApi22 { public static class: java.lang.Class; public static setRatingType(sessionObj: any, type: number): void; @@ -2633,16 +2635,16 @@ declare module android { } } -declare module android { - export module support { - export module v4 { - export module media { - export module session { +declare namespace android { + export namespace support { + export namespace v4 { + export namespace media { + export namespace session { export class MediaSessionCompatApi23 { public static class: java.lang.Class; public static createCallback(callback: android.support.v4.media.session.MediaSessionCompatApi23.Callback): any; } - export module MediaSessionCompatApi23 { + export namespace MediaSessionCompatApi23 { export class Callback extends android.support.v4.media.session.MediaSessionCompatApi21.Callback { public static class: java.lang.Class; /** @@ -2698,17 +2700,17 @@ declare module android { } } -declare module android { - export module support { - export module v4 { - export module media { - export module session { +declare namespace android { + export namespace support { + export namespace v4 { + export namespace media { + export namespace session { export class MediaSessionCompatApi24 { public static class: java.lang.Class; public static createCallback(callback: android.support.v4.media.session.MediaSessionCompatApi24.Callback): any; - public static getCallingPackage(getCallingPackageMethod: any): string; + public static getCallingPackage(sessionObj: any): string; } - export module MediaSessionCompatApi24 { + export namespace MediaSessionCompatApi24 { export class Callback extends android.support.v4.media.session.MediaSessionCompatApi23.Callback { public static class: java.lang.Class; /** @@ -2775,11 +2777,11 @@ declare module android { } } -declare module android { - export module support { - export module v4 { - export module media { - export module session { +declare namespace android { + export namespace support { + export namespace v4 { + export namespace media { + export namespace session { export class ParcelableVolumeInfo { public static class: java.lang.Class; public volumeType: number; @@ -2799,69 +2801,69 @@ declare module android { } } -declare module android { - export module support { - export module v4 { - export module media { - export module session { +declare namespace android { + export namespace support { + export namespace v4 { + export namespace media { + export namespace session { export class PlaybackStateCompat { public static class: java.lang.Class; - public static ACTION_STOP: number = 1; - public static ACTION_PAUSE: number = 2; - public static ACTION_PLAY: number = 4; - public static ACTION_REWIND: number = 8; - public static ACTION_SKIP_TO_PREVIOUS: number = 16; - public static ACTION_SKIP_TO_NEXT: number = 32; - public static ACTION_FAST_FORWARD: number = 64; - public static ACTION_SET_RATING: number = 128; - public static ACTION_SEEK_TO: number = 256; - public static ACTION_PLAY_PAUSE: number = 512; - public static ACTION_PLAY_FROM_MEDIA_ID: number = 1024; - public static ACTION_PLAY_FROM_SEARCH: number = 2048; - public static ACTION_SKIP_TO_QUEUE_ITEM: number = 4096; - public static ACTION_PLAY_FROM_URI: number = 8192; - public static ACTION_PREPARE: number = 16384; - public static ACTION_PREPARE_FROM_MEDIA_ID: number = 32768; - public static ACTION_PREPARE_FROM_SEARCH: number = 65536; - public static ACTION_PREPARE_FROM_URI: number = 131072; - public static ACTION_SET_REPEAT_MODE: number = 262144; - public static ACTION_SET_SHUFFLE_MODE_ENABLED: number = 524288; - public static ACTION_SET_CAPTIONING_ENABLED: number = 1048576; - public static ACTION_SET_SHUFFLE_MODE: number = 2097152; - public static STATE_NONE: number = 0; - public static STATE_STOPPED: number = 1; - public static STATE_PAUSED: number = 2; - public static STATE_PLAYING: number = 3; - public static STATE_FAST_FORWARDING: number = 4; - public static STATE_REWINDING: number = 5; - public static STATE_BUFFERING: number = 6; - public static STATE_ERROR: number = 7; - public static STATE_CONNECTING: number = 8; - public static STATE_SKIPPING_TO_PREVIOUS: number = 9; - public static STATE_SKIPPING_TO_NEXT: number = 10; - public static STATE_SKIPPING_TO_QUEUE_ITEM: number = 11; - public static PLAYBACK_POSITION_UNKNOWN: number = -1; - public static REPEAT_MODE_INVALID: number = -1; - public static REPEAT_MODE_NONE: number = 0; - public static REPEAT_MODE_ONE: number = 1; - public static REPEAT_MODE_ALL: number = 2; - public static REPEAT_MODE_GROUP: number = 3; - public static SHUFFLE_MODE_INVALID: number = -1; - public static SHUFFLE_MODE_NONE: number = 0; - public static SHUFFLE_MODE_ALL: number = 1; - public static SHUFFLE_MODE_GROUP: number = 2; - public static ERROR_CODE_UNKNOWN_ERROR: number = 0; - public static ERROR_CODE_APP_ERROR: number = 1; - public static ERROR_CODE_NOT_SUPPORTED: number = 2; - public static ERROR_CODE_AUTHENTICATION_EXPIRED: number = 3; - public static ERROR_CODE_PREMIUM_ACCOUNT_REQUIRED: number = 4; - public static ERROR_CODE_CONCURRENT_STREAM_LIMIT: number = 5; - public static ERROR_CODE_PARENTAL_CONTROL_RESTRICTED: number = 6; - public static ERROR_CODE_NOT_AVAILABLE_IN_REGION: number = 7; - public static ERROR_CODE_CONTENT_ALREADY_PLAYING: number = 8; - public static ERROR_CODE_SKIP_LIMIT_REACHED: number = 9; - public static ERROR_CODE_ACTION_ABORTED: number = 10; - public static ERROR_CODE_END_OF_QUEUE: number = 11; + public static readonly ACTION_STOP = 1; + public static readonly ACTION_PAUSE = 2; + public static readonly ACTION_PLAY = 4; + public static readonly ACTION_REWIND = 8; + public static readonly ACTION_SKIP_TO_PREVIOUS = 16; + public static readonly ACTION_SKIP_TO_NEXT = 32; + public static readonly ACTION_FAST_FORWARD = 64; + public static readonly ACTION_SET_RATING = 128; + public static readonly ACTION_SEEK_TO = 256; + public static readonly ACTION_PLAY_PAUSE = 512; + public static readonly ACTION_PLAY_FROM_MEDIA_ID = 1024; + public static readonly ACTION_PLAY_FROM_SEARCH = 2048; + public static readonly ACTION_SKIP_TO_QUEUE_ITEM = 4096; + public static readonly ACTION_PLAY_FROM_URI = 8192; + public static readonly ACTION_PREPARE = 16384; + public static readonly ACTION_PREPARE_FROM_MEDIA_ID = 32768; + public static readonly ACTION_PREPARE_FROM_SEARCH = 65536; + public static readonly ACTION_PREPARE_FROM_URI = 131072; + public static readonly ACTION_SET_REPEAT_MODE = 262144; + public static readonly ACTION_SET_SHUFFLE_MODE_ENABLED = 524288; + public static readonly ACTION_SET_CAPTIONING_ENABLED = 1048576; + public static readonly ACTION_SET_SHUFFLE_MODE = 2097152; + public static readonly STATE_NONE = 0; + public static readonly STATE_STOPPED = 1; + public static readonly STATE_PAUSED = 2; + public static readonly STATE_PLAYING = 3; + public static readonly STATE_FAST_FORWARDING = 4; + public static readonly STATE_REWINDING = 5; + public static readonly STATE_BUFFERING = 6; + public static readonly STATE_ERROR = 7; + public static readonly STATE_CONNECTING = 8; + public static readonly STATE_SKIPPING_TO_PREVIOUS = 9; + public static readonly STATE_SKIPPING_TO_NEXT = 10; + public static readonly STATE_SKIPPING_TO_QUEUE_ITEM = 11; + public static readonly PLAYBACK_POSITION_UNKNOWN = -1; + public static readonly REPEAT_MODE_INVALID = -1; + public static readonly REPEAT_MODE_NONE = 0; + public static readonly REPEAT_MODE_ONE = 1; + public static readonly REPEAT_MODE_ALL = 2; + public static readonly REPEAT_MODE_GROUP = 3; + public static readonly SHUFFLE_MODE_INVALID = -1; + public static readonly SHUFFLE_MODE_NONE = 0; + public static readonly SHUFFLE_MODE_ALL = 1; + public static readonly SHUFFLE_MODE_GROUP = 2; + public static readonly ERROR_CODE_UNKNOWN_ERROR = 0; + public static readonly ERROR_CODE_APP_ERROR = 1; + public static readonly ERROR_CODE_NOT_SUPPORTED = 2; + public static readonly ERROR_CODE_AUTHENTICATION_EXPIRED = 3; + public static readonly ERROR_CODE_PREMIUM_ACCOUNT_REQUIRED = 4; + public static readonly ERROR_CODE_CONCURRENT_STREAM_LIMIT = 5; + public static readonly ERROR_CODE_PARENTAL_CONTROL_RESTRICTED = 6; + public static readonly ERROR_CODE_NOT_AVAILABLE_IN_REGION = 7; + public static readonly ERROR_CODE_CONTENT_ALREADY_PLAYING = 8; + public static readonly ERROR_CODE_SKIP_LIMIT_REACHED = 9; + public static readonly ERROR_CODE_ACTION_ABORTED = 10; + public static readonly ERROR_CODE_END_OF_QUEUE = 11; public static CREATOR: android.os.Parcelable.Creator; public static toKeyCode(action: number): number; public toString(): string; @@ -2879,10 +2881,10 @@ declare module android { public getErrorMessage(): string; public getActiveQueueItemId(): number; public getExtras(): android.os.Bundle | null; - public static fromPlaybackState(customActionObj: any): android.support.v4.media.session.PlaybackStateCompat; + public static fromPlaybackState(stateObj: any): android.support.v4.media.session.PlaybackStateCompat; public getPlaybackState(): any; } - export module PlaybackStateCompat { + export namespace PlaybackStateCompat { export class Actions { public static class: java.lang.Class; /** @@ -2922,7 +2924,7 @@ declare module android { public getExtras(): android.os.Bundle; public toString(): string; } - export module CustomAction { + export namespace CustomAction { export class Builder { public static class: java.lang.Class; public constructor(action: string, name: string, icon: number); @@ -2982,11 +2984,11 @@ declare module android { } } -declare module android { - export module support { - export module v4 { - export module media { - export module session { +declare namespace android { + export namespace support { + export namespace v4 { + export namespace media { + export namespace session { export class PlaybackStateCompatApi21 { public static class: java.lang.Class; public static getState(stateObj: any): number; @@ -2998,9 +3000,9 @@ declare module android { public static getLastPositionUpdateTime(stateObj: any): number; public static getCustomActions(stateObj: any): java.util.List; public static getActiveQueueItemId(stateObj: any): number; - public static newInstance(customAction: number, state: number, position: number, bufferedPosition: number, speed: number, actions: string, errorMessage: number, updateTime: java.util.List, customActions: number): any; + public static newInstance(state: number, position: number, bufferedPosition: number, speed: number, actions: number, errorMessage: string, updateTime: number, customActions: java.util.List, activeItemId: number): any; } - export module PlaybackStateCompatApi21 { + export namespace PlaybackStateCompatApi21 { export class CustomAction { public static class: java.lang.Class; public static getAction(customActionObj: any): string; @@ -3016,15 +3018,15 @@ declare module android { } } -declare module android { - export module support { - export module v4 { - export module media { - export module session { +declare namespace android { + export namespace support { + export namespace v4 { + export namespace media { + export namespace session { export class PlaybackStateCompatApi22 { public static class: java.lang.Class; public static getExtras(stateObj: any): android.os.Bundle; - public static newInstance(customAction: number, state: number, position: number, bufferedPosition: number, speed: number, actions: string, errorMessage: number, updateTime: java.util.List, customActions: number, activeItemId: android.os.Bundle): any; + public static newInstance(state: number, position: number, bufferedPosition: number, speed: number, actions: number, errorMessage: string, updateTime: number, customActions: java.util.List, activeItemId: number, extras: android.os.Bundle): any; } } } @@ -3032,10 +3034,10 @@ declare module android { } } -declare module android { - export module support { - export module v4 { - export module os { +declare namespace android { + export namespace support { + export namespace v4 { + export namespace os { export class IResultReceiver { public static class: java.lang.Class; /** @@ -3047,16 +3049,16 @@ declare module android { public constructor(); public send(param0: number, param1: android.os.Bundle): void; } - export module IResultReceiver { + export namespace IResultReceiver { export abstract class Stub implements android.support.v4.os.IResultReceiver { public static class: java.lang.Class; public constructor(); public static asInterface(obj: android.os.IBinder): android.support.v4.os.IResultReceiver; public asBinder(): android.os.IBinder; - public onTransact(_arg0: number, _arg1: android.os.Parcel, this_: android.os.Parcel, code: number): boolean; + public onTransact(code: number, data: android.os.Parcel, reply: android.os.Parcel, flags: number): boolean; public send(param0: number, param1: android.os.Bundle): void; } - export module Stub { + export namespace Stub { export class Proxy extends android.support.v4.os.IResultReceiver { public static class: java.lang.Class; public asBinder(): android.os.IBinder; @@ -3071,10 +3073,10 @@ declare module android { } } -declare module android { - export module support { - export module v4 { - export module os { +declare namespace android { + export namespace support { + export namespace v4 { + export namespace os { export class ResultReceiver { public static class: java.lang.Class; public static CREATOR: android.os.Parcelable.Creator; @@ -3084,7 +3086,7 @@ declare module android { public describeContents(): number; public writeToParcel(out: android.os.Parcel, flags: number): void; } - export module ResultReceiver { + export namespace ResultReceiver { export class MyResultReceiver extends android.support.v4.os.IResultReceiver.Stub { public static class: java.lang.Class; public send(resultCode: number, resultData: android.os.Bundle): void; @@ -3100,8 +3102,8 @@ declare module android { } } -declare module androidx { - export module activity { +declare namespace androidx { + export namespace activity { export class ComponentActivity extends androidx.core.app.ComponentActivity implements androidx.lifecycle.LifecycleOwner, androidx.lifecycle.ViewModelStoreOwner { public static class: java.lang.Class; public constructor(); @@ -3117,10 +3119,10 @@ declare module androidx { public onBackPressed(): void; public addOnBackPressedCallback(onBackPressedCallback: androidx.activity.OnBackPressedCallback): void; public addOnBackPressedCallback(owner: androidx.lifecycle.LifecycleOwner, onBackPressedCallback: androidx.activity.OnBackPressedCallback): void; - public removeOnBackPressedCallback(this_: androidx.activity.OnBackPressedCallback): void; + public removeOnBackPressedCallback(onBackPressedCallback: androidx.activity.OnBackPressedCallback): void; public superDispatchKeyEvent(param0: globalAndroid.view.KeyEvent): boolean; } - export module ComponentActivity { + export namespace ComponentActivity { export class LifecycleAwareOnBackPressedCallback implements androidx.activity.OnBackPressedCallback, androidx.lifecycle.GenericLifecycleObserver { public static class: java.lang.Class; public handleOnBackPressed(): boolean; @@ -3135,8 +3137,8 @@ declare module androidx { } } -declare module androidx { - export module activity { +declare namespace androidx { + export namespace activity { export class OnBackPressedCallback { public static class: java.lang.Class; /** @@ -3151,8 +3153,8 @@ declare module androidx { } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class AnimRes { public static class: java.lang.Class; /** @@ -3165,8 +3167,8 @@ declare module androidx { } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class AnimatorRes { public static class: java.lang.Class; /** @@ -3179,8 +3181,8 @@ declare module androidx { } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class AnyRes { public static class: java.lang.Class; /** @@ -3193,8 +3195,8 @@ declare module androidx { } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class AnyThread { public static class: java.lang.Class; /** @@ -3207,8 +3209,8 @@ declare module androidx { } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class ArrayRes { public static class: java.lang.Class; /** @@ -3221,8 +3223,8 @@ declare module androidx { } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class AttrRes { public static class: java.lang.Class; /** @@ -3235,8 +3237,8 @@ declare module androidx { } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class BinderThread { public static class: java.lang.Class; /** @@ -3249,8 +3251,8 @@ declare module androidx { } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class BoolRes { public static class: java.lang.Class; /** @@ -3263,8 +3265,8 @@ declare module androidx { } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class CallSuper { public static class: java.lang.Class; /** @@ -3277,8 +3279,8 @@ declare module androidx { } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class CheckResult { public static class: java.lang.Class; /** @@ -3293,8 +3295,8 @@ declare module androidx { } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class ColorInt { public static class: java.lang.Class; /** @@ -3307,8 +3309,8 @@ declare module androidx { } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class ColorLong { public static class: java.lang.Class; /** @@ -3321,8 +3323,8 @@ declare module androidx { } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class ColorRes { public static class: java.lang.Class; /** @@ -3335,8 +3337,8 @@ declare module androidx { } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class DimenRes { public static class: java.lang.Class; /** @@ -3349,8 +3351,8 @@ declare module androidx { } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class Dimension { public static class: java.lang.Class; /** @@ -3360,16 +3362,16 @@ declare module androidx { unit(): number; }); public constructor(); - public static PX: number = 1; - public static DP: number = 0; - public static SP: number = 2; + public static readonly PX = 1; + public static readonly DP = 0; + public static readonly SP = 2; public unit(): number; } } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class DrawableRes { public static class: java.lang.Class; /** @@ -3382,8 +3384,8 @@ declare module androidx { } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class FloatRange { public static class: java.lang.Class; /** @@ -3404,8 +3406,8 @@ declare module androidx { } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class FontRes { public static class: java.lang.Class; /** @@ -3418,8 +3420,8 @@ declare module androidx { } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class FractionRes { public static class: java.lang.Class; /** @@ -3432,8 +3434,8 @@ declare module androidx { } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class GuardedBy { public static class: java.lang.Class; /** @@ -3448,8 +3450,8 @@ declare module androidx { } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class HalfFloat { public static class: java.lang.Class; /** @@ -3462,8 +3464,8 @@ declare module androidx { } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class IdRes { public static class: java.lang.Class; /** @@ -3476,8 +3478,8 @@ declare module androidx { } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class IntDef { public static class: java.lang.Class; /** @@ -3494,8 +3496,8 @@ declare module androidx { } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class IntRange { public static class: java.lang.Class; /** @@ -3512,8 +3514,8 @@ declare module androidx { } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class IntegerRes { public static class: java.lang.Class; /** @@ -3526,8 +3528,8 @@ declare module androidx { } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class InterpolatorRes { public static class: java.lang.Class; /** @@ -3540,8 +3542,8 @@ declare module androidx { } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class Keep { public static class: java.lang.Class; /** @@ -3554,8 +3556,8 @@ declare module androidx { } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class LayoutRes { public static class: java.lang.Class; /** @@ -3568,8 +3570,8 @@ declare module androidx { } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class LongDef { public static class: java.lang.Class; /** @@ -3586,8 +3588,8 @@ declare module androidx { } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class MainThread { public static class: java.lang.Class; /** @@ -3600,8 +3602,8 @@ declare module androidx { } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class MenuRes { public static class: java.lang.Class; /** @@ -3614,8 +3616,8 @@ declare module androidx { } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class NavigationRes { public static class: java.lang.Class; /** @@ -3628,8 +3630,8 @@ declare module androidx { } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class NonNull { public static class: java.lang.Class; /** @@ -3642,8 +3644,8 @@ declare module androidx { } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class Nullable { public static class: java.lang.Class; /** @@ -3656,8 +3658,8 @@ declare module androidx { } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class PluralsRes { public static class: java.lang.Class; /** @@ -3670,8 +3672,8 @@ declare module androidx { } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class Px { public static class: java.lang.Class; /** @@ -3684,8 +3686,8 @@ declare module androidx { } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class RawRes { public static class: java.lang.Class; /** @@ -3698,8 +3700,8 @@ declare module androidx { } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class RequiresApi { public static class: java.lang.Class; /** @@ -3716,8 +3718,8 @@ declare module androidx { } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class RequiresFeature { public static class: java.lang.Class; /** @@ -3734,8 +3736,8 @@ declare module androidx { } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class RequiresPermission { public static class: java.lang.Class; /** @@ -3753,7 +3755,7 @@ declare module androidx { public anyOf(): androidNative.Array; public conditional(): boolean; } - export module RequiresPermission { + export namespace RequiresPermission { export class Read { public static class: java.lang.Class; /** @@ -3780,8 +3782,8 @@ declare module androidx { } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class RestrictTo { public static class: java.lang.Class; /** @@ -3793,7 +3795,7 @@ declare module androidx { public constructor(); public value(): androidNative.Array; } - export module RestrictTo { + export namespace RestrictTo { export class Scope { public static class: java.lang.Class; public static LIBRARY: androidx.annotation.RestrictTo.Scope; @@ -3808,8 +3810,8 @@ declare module androidx { } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class Size { public static class: java.lang.Class; /** @@ -3830,8 +3832,8 @@ declare module androidx { } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class StringDef { public static class: java.lang.Class; /** @@ -3846,8 +3848,8 @@ declare module androidx { } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class StringRes { public static class: java.lang.Class; /** @@ -3860,8 +3862,8 @@ declare module androidx { } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class StyleRes { public static class: java.lang.Class; /** @@ -3874,8 +3876,8 @@ declare module androidx { } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class StyleableRes { public static class: java.lang.Class; /** @@ -3888,8 +3890,8 @@ declare module androidx { } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class TransitionRes { public static class: java.lang.Class; /** @@ -3902,8 +3904,8 @@ declare module androidx { } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class UiThread { public static class: java.lang.Class; /** @@ -3916,8 +3918,8 @@ declare module androidx { } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class VisibleForTesting { public static class: java.lang.Class; /** @@ -3927,17 +3929,17 @@ declare module androidx { otherwise(): number; }); public constructor(); - public static PROTECTED: number = 4; - public static NONE: number = 5; - public static PRIVATE: number = 2; - public static PACKAGE_PRIVATE: number = 3; + public static readonly PROTECTED = 4; + public static readonly NONE = 5; + public static readonly PRIVATE = 2; + public static readonly PACKAGE_PRIVATE = 3; public otherwise(): number; } } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class WorkerThread { public static class: java.lang.Class; /** @@ -3950,8 +3952,8 @@ declare module androidx { } } -declare module androidx { - export module annotation { +declare namespace androidx { + export namespace annotation { export class XmlRes { public static class: java.lang.Class; /** @@ -3964,19 +3966,19 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module app { +declare namespace androidx { + export namespace appcompat { + export namespace app { export abstract class ActionBar { public static class: java.lang.Class; - public static NAVIGATION_MODE_STANDARD: number = 0; - public static NAVIGATION_MODE_LIST: number = 1; - public static NAVIGATION_MODE_TABS: number = 2; - public static DISPLAY_USE_LOGO: number = 1; - public static DISPLAY_SHOW_HOME: number = 2; - public static DISPLAY_HOME_AS_UP: number = 4; - public static DISPLAY_SHOW_TITLE: number = 8; - public static DISPLAY_SHOW_CUSTOM: number = 16; + public static readonly NAVIGATION_MODE_STANDARD = 0; + public static readonly NAVIGATION_MODE_LIST = 1; + public static readonly NAVIGATION_MODE_TABS = 2; + public static readonly DISPLAY_USE_LOGO = 1; + public static readonly DISPLAY_SHOW_HOME = 2; + public static readonly DISPLAY_HOME_AS_UP = 4; + public static readonly DISPLAY_SHOW_TITLE = 8; + public static readonly DISPLAY_SHOW_CUSTOM = 16; public constructor(); public setCustomView(param0: globalAndroid.view.View): void; public setCustomView(param0: globalAndroid.view.View, param1: androidx.appcompat.app.ActionBar.LayoutParams): void; @@ -4071,7 +4073,7 @@ declare module androidx { public collapseActionView(): boolean; public setWindowTitle(title: string): void; } - export module ActionBar { + export namespace ActionBar { export class DisplayOptions { public static class: java.lang.Class; /** @@ -4124,7 +4126,7 @@ declare module androidx { } export abstract class Tab { public static class: java.lang.Class; - public static INVALID_POSITION: number = -1; + public static readonly INVALID_POSITION = -1; public constructor(); public getPosition(): number; public getIcon(): globalAndroid.graphics.drawable.Drawable; @@ -4164,9 +4166,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module app { +declare namespace androidx { + export namespace appcompat { + export namespace app { export class ActionBarDrawerToggle extends androidx.drawerlayout.widget.DrawerLayout.DrawerListener { public static class: java.lang.Class; public constructor(activity: globalAndroid.app.Activity, drawerLayout: androidx.drawerlayout.widget.DrawerLayout, openDrawerContentDescRes: number, closeDrawerContentDescRes: number); @@ -4193,7 +4195,7 @@ declare module androidx { public onDrawerClosed(param0: globalAndroid.view.View): void; public onDrawerStateChanged(param0: number): void; } - export module ActionBarDrawerToggle { + export namespace ActionBarDrawerToggle { export class Delegate { public static class: java.lang.Class; /** @@ -4230,7 +4232,7 @@ declare module androidx { public getActionBarThemedContext(): globalAndroid.content.Context; public isNavigationVisible(): boolean; public setActionBarUpIndicator(themeImage: globalAndroid.graphics.drawable.Drawable, contentDescRes: number): void; - public setActionBarDescription(this_: number): void; + public setActionBarDescription(contentDescRes: number): void; public setActionBarUpIndicator(param0: globalAndroid.graphics.drawable.Drawable, param1: number): void; public setActionBarDescription(param0: number): void; } @@ -4249,16 +4251,16 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module app { +declare namespace androidx { + export namespace appcompat { + export namespace app { export class ActionBarDrawerToggleHoneycomb { public static class: java.lang.Class; - public static setActionBarUpIndicator(actionBar: globalAndroid.app.Activity, e: globalAndroid.graphics.drawable.Drawable, activity: number): androidx.appcompat.app.ActionBarDrawerToggleHoneycomb.SetIndicatorInfo; - public static setActionBarDescription(actionBar: androidx.appcompat.app.ActionBarDrawerToggleHoneycomb.SetIndicatorInfo, e: globalAndroid.app.Activity, info: number): androidx.appcompat.app.ActionBarDrawerToggleHoneycomb.SetIndicatorInfo; + public static setActionBarUpIndicator(activity: globalAndroid.app.Activity, drawable: globalAndroid.graphics.drawable.Drawable, contentDescRes: number): androidx.appcompat.app.ActionBarDrawerToggleHoneycomb.SetIndicatorInfo; + public static setActionBarDescription(info: androidx.appcompat.app.ActionBarDrawerToggleHoneycomb.SetIndicatorInfo, activity: globalAndroid.app.Activity, contentDescRes: number): androidx.appcompat.app.ActionBarDrawerToggleHoneycomb.SetIndicatorInfo; public static getThemeUpIndicator(activity: globalAndroid.app.Activity): globalAndroid.graphics.drawable.Drawable; } - export module ActionBarDrawerToggleHoneycomb { + export namespace ActionBarDrawerToggleHoneycomb { export class SetIndicatorInfo { public static class: java.lang.Class; public setHomeAsUpIndicator: java.lang.reflect.Method; @@ -4270,9 +4272,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module app { +declare namespace androidx { + export namespace appcompat { + export namespace app { export class AlertController { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, di: androidx.appcompat.app.AppCompatDialog, window: globalAndroid.view.Window); @@ -4293,7 +4295,7 @@ declare module androidx { public onKeyDown(keyCode: number, event: globalAndroid.view.KeyEvent): boolean; public onKeyUp(keyCode: number, event: globalAndroid.view.KeyEvent): boolean; } - export module AlertController { + export namespace AlertController { export class AlertParams { public static class: java.lang.Class; public mContext: globalAndroid.content.Context; @@ -4342,7 +4344,7 @@ declare module androidx { public constructor(context: globalAndroid.content.Context); public apply(dialog: androidx.appcompat.app.AlertController): void; } - export module AlertParams { + export namespace AlertParams { export class OnPrepareListViewListener { public static class: java.lang.Class; /** @@ -4370,16 +4372,16 @@ declare module androidx { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); - public setHasDecor(paddingTop: boolean, paddingRight: boolean): void; + public setHasDecor(hasTitle: boolean, hasButtons: boolean): void; } } } } } -declare module androidx { - export module appcompat { - export module app { +declare namespace androidx { + export namespace appcompat { + export namespace app { export class AlertDialog extends androidx.appcompat.app.AppCompatDialog { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, theme: number); @@ -4408,7 +4410,7 @@ declare module androidx { public onSupportActionModeFinished(param0: androidx.appcompat.view.ActionMode): void; public onWindowStartingSupportActionMode(param0: androidx.appcompat.view.ActionMode.Callback): androidx.appcompat.view.ActionMode | null; } - export module AlertDialog { + export namespace AlertDialog { export class Builder { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); @@ -4462,9 +4464,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module app { +declare namespace androidx { + export namespace appcompat { + export namespace app { export class AppCompatActivity extends androidx.fragment.app.FragmentActivity implements androidx.appcompat.app.AppCompatCallback, androidx.core.app.TaskStackBuilder.SupportParentable, androidx.appcompat.app.ActionBarDrawerToggle.DelegateProvider { public static class: java.lang.Class; public constructor(); @@ -4478,7 +4480,7 @@ declare module androidx { public setContentView(view: globalAndroid.view.View): void; public setContentView(view: globalAndroid.view.View, params: globalAndroid.view.ViewGroup.LayoutParams): void; public addContentView(view: globalAndroid.view.View, params: globalAndroid.view.ViewGroup.LayoutParams): void; - public onConfigurationChanged(this_: globalAndroid.content.res.Configuration): void; + public onConfigurationChanged(newConfig: globalAndroid.content.res.Configuration): void; public onPostResume(): void; public onStart(): void; public onStop(): void; @@ -4533,9 +4535,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module app { +declare namespace androidx { + export namespace appcompat { + export namespace app { export class AppCompatCallback { public static class: java.lang.Class; /** @@ -4555,18 +4557,18 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module app { +declare namespace androidx { + export namespace appcompat { + export namespace app { export abstract class AppCompatDelegate { public static class: java.lang.Class; - public static MODE_NIGHT_NO: number = 1; - public static MODE_NIGHT_YES: number = 2; - public static MODE_NIGHT_AUTO: number = 0; - public static MODE_NIGHT_FOLLOW_SYSTEM: number = -1; - public static FEATURE_SUPPORT_ACTION_BAR: number = 108; - public static FEATURE_SUPPORT_ACTION_BAR_OVERLAY: number = 109; - public static FEATURE_ACTION_MODE_OVERLAY: number = 10; + public static readonly MODE_NIGHT_NO = 1; + public static readonly MODE_NIGHT_YES = 2; + public static readonly MODE_NIGHT_AUTO = 0; + public static readonly MODE_NIGHT_FOLLOW_SYSTEM = -1; + public static readonly FEATURE_SUPPORT_ACTION_BAR = 108; + public static readonly FEATURE_SUPPORT_ACTION_BAR_OVERLAY = 109; + public static readonly FEATURE_ACTION_MODE_OVERLAY = 10; public static create(activity: globalAndroid.app.Activity, callback: androidx.appcompat.app.AppCompatCallback): androidx.appcompat.app.AppCompatDelegate; public static create(dialog: globalAndroid.app.Dialog, callback: androidx.appcompat.app.AppCompatCallback): androidx.appcompat.app.AppCompatDelegate; public static create(context: globalAndroid.content.Context, window: globalAndroid.view.Window, callback: androidx.appcompat.app.AppCompatCallback): androidx.appcompat.app.AppCompatDelegate; @@ -4603,7 +4605,7 @@ declare module androidx { public static setCompatVectorFromResourcesEnabled(enabled: boolean): void; public static isCompatVectorFromResourcesEnabled(): boolean; } - export module AppCompatDelegate { + export namespace AppCompatDelegate { export class NightMode { public static class: java.lang.Class; /** @@ -4618,18 +4620,18 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module app { +declare namespace androidx { + export namespace appcompat { + export namespace app { export class AppCompatDelegateImpl extends androidx.appcompat.app.AppCompatDelegate implements androidx.appcompat.view.menu.MenuBuilder.Callback { public static class: java.lang.Class; - public onCreate(parentActivityName: globalAndroid.os.Bundle): void; + public onCreate(savedInstanceState: globalAndroid.os.Bundle): void; public onPostCreate(savedInstanceState: globalAndroid.os.Bundle): void; public getSupportActionBar(): androidx.appcompat.app.ActionBar; - public setSupportActionBar(this_: androidx.appcompat.widget.Toolbar): void; + public setSupportActionBar(toolbar: androidx.appcompat.widget.Toolbar): void; public getMenuInflater(): globalAndroid.view.MenuInflater; public findViewById(id: number): globalAndroid.view.View | null; - public onConfigurationChanged(this_: globalAndroid.content.res.Configuration): void; + public onConfigurationChanged(newConfig: globalAndroid.content.res.Configuration): void; public onStart(): void; public onStop(): void; public onPostResume(): void; @@ -4644,24 +4646,24 @@ declare module androidx { public requestWindowFeature(featureId: number): boolean; public hasWindowFeature(featureId: number): boolean; public setTitle(title: string): void; - public onMenuItemSelected(this_: androidx.appcompat.view.menu.MenuBuilder, menu: globalAndroid.view.MenuItem): boolean; + public onMenuItemSelected(menu: androidx.appcompat.view.menu.MenuBuilder, item: globalAndroid.view.MenuItem): boolean; public onMenuModeChange(menu: androidx.appcompat.view.menu.MenuBuilder): void; public startSupportActionMode(callback: androidx.appcompat.view.ActionMode.Callback): androidx.appcompat.view.ActionMode; public invalidateOptionsMenu(): void; public setHandleNativeActionModesEnabled(enabled: boolean): void; public isHandleNativeActionModesEnabled(): boolean; - public createView(t: globalAndroid.view.View, a: string, viewInflaterClassName: globalAndroid.content.Context, this_: globalAndroid.util.AttributeSet): globalAndroid.view.View; + public createView(parent: globalAndroid.view.View, name: string, context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet): globalAndroid.view.View; public installViewFactory(): void; public onCreateView(parent: globalAndroid.view.View, name: string, context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet): globalAndroid.view.View; public onCreateView(name: string, context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet): globalAndroid.view.View; - public getPanelState(this_: number, featureId: boolean): androidx.appcompat.app.AppCompatDelegateImpl.PanelFeatureState; + public getPanelState(featureId: number, required: boolean): androidx.appcompat.app.AppCompatDelegateImpl.PanelFeatureState; public applyDayNight(): boolean; public setLocalNightMode(mode: number): void; public getDrawerToggleDelegate(): androidx.appcompat.app.ActionBarDrawerToggle.Delegate; public onMenuItemSelected(param0: androidx.appcompat.view.menu.MenuBuilder, param1: globalAndroid.view.MenuItem): boolean; public onMenuModeChange(param0: androidx.appcompat.view.menu.MenuBuilder): void; } - export module AppCompatDelegateImpl { + export namespace AppCompatDelegateImpl { export class ActionBarDrawableToggleImpl extends androidx.appcompat.app.ActionBarDrawerToggle.Delegate { public static class: java.lang.Class; public getThemeUpIndicator(): globalAndroid.graphics.drawable.Drawable; @@ -4681,7 +4683,7 @@ declare module androidx { } export class ActionModeCallbackWrapperV9 extends androidx.appcompat.view.ActionMode.Callback { public static class: java.lang.Class; - public constructor(this$0: androidx.appcompat.app.AppCompatDelegateImpl, wrapped: androidx.appcompat.view.ActionMode.Callback); + public constructor(outer: androidx.appcompat.app.AppCompatDelegateImpl, wrapped: androidx.appcompat.view.ActionMode.Callback); public onCreateActionMode(mode: androidx.appcompat.view.ActionMode, menu: globalAndroid.view.Menu): boolean; public onPrepareActionMode(mode: androidx.appcompat.view.ActionMode, menu: globalAndroid.view.Menu): boolean; public onActionItemClicked(mode: androidx.appcompat.view.ActionMode, item: globalAndroid.view.MenuItem): boolean; @@ -4712,9 +4714,9 @@ declare module androidx { public constructor(context: globalAndroid.content.Context); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet, defStyleAttr: number); - public constructor(context: androidx.appcompat.app.AppCompatDelegateImpl, param1: globalAndroid.content.Context); + public constructor(param0: androidx.appcompat.app.AppCompatDelegateImpl, context: globalAndroid.content.Context); public dispatchKeyEvent(event: globalAndroid.view.KeyEvent): boolean; - public onInterceptTouchEvent(y: globalAndroid.view.MotionEvent): boolean; + public onInterceptTouchEvent(event: globalAndroid.view.MotionEvent): boolean; public setBackgroundResource(resid: number): void; } export class PanelFeatureState { @@ -4723,7 +4725,7 @@ declare module androidx { public hasPanelItems(): boolean; public clearMenuPresenters(): void; } - export module PanelFeatureState { + export namespace PanelFeatureState { export class SavedState { public static class: java.lang.Class; public static CREATOR: globalAndroid.os.Parcelable.Creator; @@ -4734,7 +4736,7 @@ declare module androidx { export class PanelMenuPresenterCallback extends androidx.appcompat.view.menu.MenuPresenter.Callback { public static class: java.lang.Class; public onCloseMenu(menu: androidx.appcompat.view.menu.MenuBuilder, allMenusAreClosing: boolean): void; - public onOpenSubMenu(this_: androidx.appcompat.view.menu.MenuBuilder): boolean; + public onOpenSubMenu(subMenu: androidx.appcompat.view.menu.MenuBuilder): boolean; public onCloseMenu(param0: androidx.appcompat.view.menu.MenuBuilder, param1: boolean): void; public onOpenSubMenu(param0: androidx.appcompat.view.menu.MenuBuilder): boolean; } @@ -4743,9 +4745,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module app { +declare namespace androidx { + export namespace appcompat { + export namespace app { export class AppCompatDialog implements androidx.appcompat.app.AppCompatCallback { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); @@ -4776,14 +4778,14 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module app { +declare namespace androidx { + export namespace appcompat { + export namespace app { export class AppCompatDialogFragment extends androidx.fragment.app.DialogFragment { public static class: java.lang.Class; public constructor(); public onCreateDialog(savedInstanceState: globalAndroid.os.Bundle | null): globalAndroid.app.Dialog; - public setupDialog(this_: globalAndroid.app.Dialog, dialog: number): void; + public setupDialog(dialog: globalAndroid.app.Dialog, style: number): void; public getLifecycle(): androidx.lifecycle.Lifecycle; public getViewModelStore(): androidx.lifecycle.ViewModelStore; } @@ -4791,9 +4793,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module app { +declare namespace androidx { + export namespace appcompat { + export namespace app { export class AppCompatViewInflater { public static class: java.lang.Class; public constructor(); @@ -4813,20 +4815,20 @@ declare module androidx { public createToggleButton(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet): androidx.appcompat.widget.AppCompatToggleButton; public createView(context: globalAndroid.content.Context, name: string, attrs: globalAndroid.util.AttributeSet): globalAndroid.view.View | null; } - export module AppCompatViewInflater { + export namespace AppCompatViewInflater { export class DeclaredOnClickListener { public static class: java.lang.Class; public constructor(hostView: globalAndroid.view.View, methodName: string); - public onClick(e: globalAndroid.view.View): void; + public onClick(v: globalAndroid.view.View): void; } } } } } -declare module androidx { - export module appcompat { - export module app { +declare namespace androidx { + export namespace appcompat { + export namespace app { export class NavItemSelectedListener { public static class: java.lang.Class; public constructor(listener: androidx.appcompat.app.ActionBar.OnNavigationListener); @@ -4837,9 +4839,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module app { +declare namespace androidx { + export namespace appcompat { + export namespace app { export class ResourcesFlusher { public static class: java.lang.Class; } @@ -4847,9 +4849,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module app { +declare namespace androidx { + export namespace appcompat { + export namespace app { export class ToolbarActionBar extends androidx.appcompat.app.ActionBar { public static class: java.lang.Class; public getWrappedWindowCallback(): globalAndroid.view.Window.Callback; @@ -4932,12 +4934,12 @@ declare module androidx { public invalidateOptionsMenu(): boolean; public collapseActionView(): boolean; public onMenuKeyEvent(event: globalAndroid.view.KeyEvent): boolean; - public onKeyShortcut(this_: number, keyCode: globalAndroid.view.KeyEvent): boolean; + public onKeyShortcut(keyCode: number, ev: globalAndroid.view.KeyEvent): boolean; public addOnMenuVisibilityListener(listener: androidx.appcompat.app.ActionBar.OnMenuVisibilityListener): void; public removeOnMenuVisibilityListener(listener: androidx.appcompat.app.ActionBar.OnMenuVisibilityListener): void; - public dispatchMenuVisibilityChanged(this_: boolean): void; + public dispatchMenuVisibilityChanged(isVisible: boolean): void; } - export module ToolbarActionBar { + export namespace ToolbarActionBar { export class ActionMenuPresenterCallback extends androidx.appcompat.view.menu.MenuPresenter.Callback { public static class: java.lang.Class; public onOpenSubMenu(subMenu: androidx.appcompat.view.menu.MenuBuilder): boolean; @@ -4955,7 +4957,7 @@ declare module androidx { export class ToolbarCallbackWrapper extends androidx.appcompat.view.WindowCallbackWrapper { public static class: java.lang.Class; public constructor(wrapped: globalAndroid.view.Window.Callback); - public constructor(wrapped: androidx.appcompat.app.ToolbarActionBar, param1: globalAndroid.view.Window.Callback); + public constructor(param0: androidx.appcompat.app.ToolbarActionBar, wrapped: globalAndroid.view.Window.Callback); public onPreparePanel(featureId: number, view: globalAndroid.view.View, menu: globalAndroid.view.Menu): boolean; public onCreatePanelView(featureId: number): globalAndroid.view.View; } @@ -4964,13 +4966,13 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module app { +declare namespace androidx { + export namespace appcompat { + export namespace app { export class TwilightCalculator { public static class: java.lang.Class; - public static DAY: number = 0; - public static NIGHT: number = 1; + public static readonly DAY = 0; + public static readonly NIGHT = 1; public sunset: number; public sunrise: number; public state: number; @@ -4980,13 +4982,13 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module app { +declare namespace androidx { + export namespace appcompat { + export namespace app { export class TwilightManager { public static class: java.lang.Class; } - export module TwilightManager { + export namespace TwilightManager { export class TwilightState { public static class: java.lang.Class; } @@ -4995,9 +4997,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module app { +declare namespace androidx { + export namespace appcompat { + export namespace app { export class WindowDecorActionBar extends androidx.appcompat.app.ActionBar implements androidx.appcompat.widget.ActionBarOverlayLayout.ActionBarVisibilityCallback { public static class: java.lang.Class; public constructor(); @@ -5011,7 +5013,7 @@ declare module androidx { public setShowHideAnimationEnabled(enabled: boolean): void; public addOnMenuVisibilityListener(listener: androidx.appcompat.app.ActionBar.OnMenuVisibilityListener): void; public removeOnMenuVisibilityListener(listener: androidx.appcompat.app.ActionBar.OnMenuVisibilityListener): void; - public dispatchMenuVisibilityChanged(this_: boolean): void; + public dispatchMenuVisibilityChanged(isVisible: boolean): void; public setCustomView(param0: globalAndroid.view.View): void; public setCustomView(param0: globalAndroid.view.View, param1: androidx.appcompat.app.ActionBar.LayoutParams): void; public setCustomView(resId: number): void; @@ -5055,8 +5057,8 @@ declare module androidx { public addTab(tab: androidx.appcompat.app.ActionBar.Tab, position: number, setSelected: boolean): void; public newTab(): androidx.appcompat.app.ActionBar.Tab; public removeTab(tab: androidx.appcompat.app.ActionBar.Tab): void; - public removeTabAt(this_: number): void; - public selectTab(this_: androidx.appcompat.app.ActionBar.Tab): void; + public removeTabAt(position: number): void; + public selectTab(tab: androidx.appcompat.app.ActionBar.Tab): void; public getSelectedTab(): androidx.appcompat.app.ActionBar.Tab; public getHeight(): number; public enableContentAnimations(enabled: boolean): void; @@ -5068,10 +5070,10 @@ declare module androidx { public isHideOnContentScrollEnabled(): boolean; public getHideOffset(): number; public setHideOffset(offset: number): void; - public doShow(startingY: boolean): void; - public doHide(anim: boolean): void; + public doShow(fromSystem: boolean): void; + public doHide(fromSystem: boolean): void; public isShowing(): boolean; - public animateToMode(fadeOut: boolean): void; + public animateToMode(toActionMode: boolean): void; public getThemedContext(): globalAndroid.content.Context; public isTitleTruncated(): boolean; public setHomeAsUpIndicator(resId: number): void; @@ -5098,15 +5100,15 @@ declare module androidx { public setLogo(logo: globalAndroid.graphics.drawable.Drawable): void; public hasLogo(): boolean; public setDefaultDisplayHomeAsUpEnabled(enable: boolean): void; - public onKeyShortcut(this_: number, keyCode: globalAndroid.view.KeyEvent): boolean; + public onKeyShortcut(keyCode: number, event: globalAndroid.view.KeyEvent): boolean; public onWindowVisibilityChanged(param0: number): void; public enableContentAnimations(param0: boolean): void; } - export module WindowDecorActionBar { + export namespace WindowDecorActionBar { export class ActionModeImpl extends androidx.appcompat.view.ActionMode implements androidx.appcompat.view.menu.MenuBuilder.Callback { public static class: java.lang.Class; public constructor(); - public constructor(this$0: androidx.appcompat.app.WindowDecorActionBar, context: globalAndroid.content.Context, callback: androidx.appcompat.view.ActionMode.Callback); + public constructor(outer: androidx.appcompat.app.WindowDecorActionBar, context: globalAndroid.content.Context, callback: androidx.appcompat.view.ActionMode.Callback); public getMenuInflater(): globalAndroid.view.MenuInflater; public getMenu(): globalAndroid.view.Menu; public finish(): void; @@ -5135,7 +5137,7 @@ declare module androidx { export class TabImpl extends androidx.appcompat.app.ActionBar.Tab { public static class: java.lang.Class; public constructor(); - public constructor(this$0: androidx.appcompat.app.WindowDecorActionBar); + public constructor(outer: androidx.appcompat.app.WindowDecorActionBar); public getTag(): any; public setTag(tag: any): androidx.appcompat.app.ActionBar.Tab; public getCallback(): androidx.appcompat.app.ActionBar.TabListener; @@ -5165,16 +5167,16 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module content { - export module res { +declare namespace androidx { + export namespace appcompat { + export namespace content { + export namespace res { export class AppCompatResources { public static class: java.lang.Class; public static getColorStateList(context: globalAndroid.content.Context, resId: number): globalAndroid.content.res.ColorStateList; public static getDrawable(context: globalAndroid.content.Context, resId: number): globalAndroid.graphics.drawable.Drawable | null; } - export module AppCompatResources { + export namespace AppCompatResources { export class ColorStateListCacheEntry { public static class: java.lang.Class; } @@ -5184,14 +5186,14 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module graphics { - export module drawable { +declare namespace androidx { + export namespace appcompat { + export namespace graphics { + export namespace drawable { export class AnimatedStateListDrawableCompat extends androidx.appcompat.graphics.drawable.StateListDrawable implements androidx.core.graphics.drawable.TintAwareDrawable { public static class: java.lang.Class; public constructor(); - public static create(res: globalAndroid.content.Context, parser: number, attrs: globalAndroid.content.res.Resources.Theme | null): androidx.appcompat.graphics.drawable.AnimatedStateListDrawableCompat | null; + public static create(context: globalAndroid.content.Context, resId: number, theme: globalAndroid.content.res.Resources.Theme | null): androidx.appcompat.graphics.drawable.AnimatedStateListDrawableCompat | null; public static createFromXmlInner(context: globalAndroid.content.Context, resources: globalAndroid.content.res.Resources, parser: org.xmlpull.v1.XmlPullParser, attrs: globalAndroid.util.AttributeSet, theme: globalAndroid.content.res.Resources.Theme | null): androidx.appcompat.graphics.drawable.AnimatedStateListDrawableCompat; public inflate(context: globalAndroid.content.Context, resources: globalAndroid.content.res.Resources, parser: org.xmlpull.v1.XmlPullParser, attrs: globalAndroid.util.AttributeSet, theme: globalAndroid.content.res.Resources.Theme | null): void; public setVisible(visible: boolean, restart: boolean): boolean; @@ -5206,7 +5208,7 @@ declare module androidx { public setTintList(param0: globalAndroid.content.res.ColorStateList): void; public setTintMode(param0: globalAndroid.graphics.PorterDuff.Mode): void; } - export module AnimatedStateListDrawableCompat { + export namespace AnimatedStateListDrawableCompat { export class AnimatableTransition extends androidx.appcompat.graphics.drawable.AnimatedStateListDrawableCompat.Transition { public static class: java.lang.Class; public start(): void; @@ -5231,7 +5233,7 @@ declare module androidx { } export class FrameInterpolator { public static class: java.lang.Class; - public getInterpolation(this_: number): number; + public getInterpolation(input: number): number; } export abstract class Transition { public static class: java.lang.Class; @@ -5246,15 +5248,15 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module graphics { - export module drawable { +declare namespace androidx { + export namespace appcompat { + export namespace graphics { + export namespace drawable { export class DrawableContainer { public static class: java.lang.Class; public draw(canvas: globalAndroid.graphics.Canvas): void; public getChangingConfigurations(): number; - public getPadding(result: globalAndroid.graphics.Rect): boolean; + public getPadding(padding: globalAndroid.graphics.Rect): boolean; public getOutline(outline: any): void; public setAlpha(alpha: number): void; public getAlpha(): number; @@ -5290,7 +5292,7 @@ declare module androidx { public getConstantState(): globalAndroid.graphics.drawable.Drawable.ConstantState; public mutate(): globalAndroid.graphics.drawable.Drawable; } - export module DrawableContainer { + export namespace DrawableContainer { export class BlockInvalidateCallback { public static class: java.lang.Class; public wrap(callback: globalAndroid.graphics.drawable.Drawable.Callback): androidx.appcompat.graphics.drawable.DrawableContainer.BlockInvalidateCallback; @@ -5304,7 +5306,7 @@ declare module androidx { public getChangingConfigurations(): number; public addChild(dr: globalAndroid.graphics.drawable.Drawable): number; public getChildCount(): number; - public getChild(prepared: number): globalAndroid.graphics.drawable.Drawable; + public getChild(index: number): globalAndroid.graphics.drawable.Drawable; public canApplyTheme(): boolean; public setVariablePadding(variable: boolean): void; public getConstantPadding(): globalAndroid.graphics.Rect; @@ -5330,10 +5332,10 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module graphics { - export module drawable { +declare namespace androidx { + export namespace appcompat { + export namespace graphics { + export namespace drawable { export class DrawableWrapper { public static class: java.lang.Class; public constructor(drawable: globalAndroid.graphics.drawable.Drawable); @@ -5377,16 +5379,16 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module graphics { - export module drawable { +declare namespace androidx { + export namespace appcompat { + export namespace graphics { + export namespace drawable { export class DrawerArrowDrawable { public static class: java.lang.Class; - public static ARROW_DIRECTION_LEFT: number = 0; - public static ARROW_DIRECTION_RIGHT: number = 1; - public static ARROW_DIRECTION_START: number = 2; - public static ARROW_DIRECTION_END: number = 3; + public static readonly ARROW_DIRECTION_LEFT = 0; + public static readonly ARROW_DIRECTION_RIGHT = 1; + public static readonly ARROW_DIRECTION_START = 2; + public static readonly ARROW_DIRECTION_END = 3; public constructor(context: globalAndroid.content.Context); public setArrowHeadLength(length: number): void; public getArrowHeadLength(): number; @@ -5415,7 +5417,7 @@ declare module androidx { public setProgress(progress: number): void; public getPaint(): globalAndroid.graphics.Paint; } - export module DrawerArrowDrawable { + export namespace DrawerArrowDrawable { export class ArrowDirection { public static class: java.lang.Class; /** @@ -5431,10 +5433,10 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module graphics { - export module drawable { +declare namespace androidx { + export namespace appcompat { + export namespace graphics { + export namespace drawable { export class StateListDrawable extends androidx.appcompat.graphics.drawable.DrawableContainer { public static class: java.lang.Class; public addState(stateSet: androidNative.Array, drawable: globalAndroid.graphics.drawable.Drawable): void; @@ -5444,7 +5446,7 @@ declare module androidx { public mutate(): globalAndroid.graphics.drawable.Drawable; public applyTheme(theme: globalAndroid.content.res.Resources.Theme): void; } - export module StateListDrawable { + export namespace StateListDrawable { export class StateListState extends androidx.appcompat.graphics.drawable.DrawableContainer.DrawableContainerState { public static class: java.lang.Class; public newDrawable(): globalAndroid.graphics.drawable.Drawable; @@ -5457,9 +5459,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module text { +declare namespace androidx { + export namespace appcompat { + export namespace text { export class AllCapsTransformationMethod { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); @@ -5470,9 +5472,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module view { +declare namespace androidx { + export namespace appcompat { + export namespace view { export class ActionBarPolicy { public static class: java.lang.Class; public static get(context: globalAndroid.content.Context): androidx.appcompat.view.ActionBarPolicy; @@ -5488,9 +5490,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module view { +declare namespace androidx { + export namespace appcompat { + export namespace view { export abstract class ActionMode { public static class: java.lang.Class; public constructor(); @@ -5513,7 +5515,7 @@ declare module androidx { public getMenuInflater(): globalAndroid.view.MenuInflater; public isUiFocusable(): boolean; } - export module ActionMode { + export namespace ActionMode { export class Callback { public static class: java.lang.Class; /** @@ -5536,9 +5538,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module view { +declare namespace androidx { + export namespace appcompat { + export namespace view { export class CollapsibleActionView { public static class: java.lang.Class; /** @@ -5556,9 +5558,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module view { +declare namespace androidx { + export namespace appcompat { + export namespace view { export class ContextThemeWrapper { public static class: java.lang.Class; public constructor(); @@ -5578,9 +5580,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module view { +declare namespace androidx { + export namespace appcompat { + export namespace view { export class StandaloneActionMode extends androidx.appcompat.view.ActionMode implements androidx.appcompat.view.menu.MenuBuilder.Callback { public static class: java.lang.Class; public constructor(); @@ -5614,9 +5616,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module view { +declare namespace androidx { + export namespace appcompat { + export namespace view { export class SupportActionModeWrapper { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, supportActionMode: androidx.appcompat.view.ActionMode); @@ -5638,7 +5640,7 @@ declare module androidx { public setTitleOptionalHint(titleOptional: boolean): void; public isTitleOptional(): boolean; } - export module SupportActionModeWrapper { + export namespace SupportActionModeWrapper { export class CallbackWrapper extends androidx.appcompat.view.ActionMode.Callback { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, supportCallback: globalAndroid.view.ActionMode.Callback); @@ -5646,7 +5648,7 @@ declare module androidx { public onPrepareActionMode(mode: androidx.appcompat.view.ActionMode, menu: globalAndroid.view.Menu): boolean; public onActionItemClicked(mode: androidx.appcompat.view.ActionMode, item: globalAndroid.view.MenuItem): boolean; public onDestroyActionMode(mode: androidx.appcompat.view.ActionMode): void; - public getActionModeWrapper(i: androidx.appcompat.view.ActionMode): globalAndroid.view.ActionMode; + public getActionModeWrapper(mode: androidx.appcompat.view.ActionMode): globalAndroid.view.ActionMode; public onCreateActionMode(param0: androidx.appcompat.view.ActionMode, param1: globalAndroid.view.Menu): boolean; public onPrepareActionMode(param0: androidx.appcompat.view.ActionMode, param1: globalAndroid.view.Menu): boolean; public onActionItemClicked(param0: androidx.appcompat.view.ActionMode, param1: globalAndroid.view.MenuItem): boolean; @@ -5657,23 +5659,23 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module view { +declare namespace androidx { + export namespace appcompat { + export namespace view { export class SupportMenuInflater { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); - public inflate(e: number, e: globalAndroid.view.Menu): void; + public inflate(menuRes: number, menu: globalAndroid.view.Menu): void; } - export module SupportMenuInflater { + export namespace SupportMenuInflater { export class InflatedOnMenuItemClickListener { public static class: java.lang.Class; - public constructor(e: any, this_: string); - public onMenuItemClick(this_: globalAndroid.view.MenuItem): boolean; + public constructor(realOwner: any, methodName: string); + public onMenuItemClick(item: globalAndroid.view.MenuItem): boolean; } export class MenuState { public static class: java.lang.Class; - public constructor(menu: androidx.appcompat.view.SupportMenuInflater, param1: globalAndroid.view.Menu); + public constructor(param0: androidx.appcompat.view.SupportMenuInflater, menu: globalAndroid.view.Menu); public resetGroup(): void; public readGroup(attrs: globalAndroid.util.AttributeSet): void; public readItem(attrs: globalAndroid.util.AttributeSet): void; @@ -5686,9 +5688,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module view { +declare namespace androidx { + export namespace appcompat { + export namespace view { export class ViewPropertyAnimatorCompatSet { public static class: java.lang.Class; public constructor(); @@ -5704,9 +5706,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module view { +declare namespace androidx { + export namespace appcompat { + export namespace view { export class WindowCallbackWrapper { public static class: java.lang.Class; public constructor(wrapped: globalAndroid.view.Window.Callback); @@ -5740,10 +5742,10 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module view { - export module menu { +declare namespace androidx { + export namespace appcompat { + export namespace view { + export namespace menu { export class ActionMenuItem extends androidx.core.internal.view.SupportMenuItem { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, group: number, id: number, categoryOrder: number, ordering: number, title: string); @@ -5825,10 +5827,10 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module view { - export module menu { +declare namespace androidx { + export namespace appcompat { + export namespace view { + export namespace menu { export class ActionMenuItemView extends androidx.appcompat.widget.AppCompatTextView implements androidx.appcompat.view.menu.MenuView.ItemView, androidx.appcompat.widget.ActionMenuView.ActionMenuChildView { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); @@ -5847,14 +5849,14 @@ declare module androidx { public setCheckable(checkable: boolean): void; public setChecked(checked: boolean): void; public setExpandedFormat(expandedFormat: boolean): void; - public setIcon(scale: globalAndroid.graphics.drawable.Drawable): void; + public setIcon(icon: globalAndroid.graphics.drawable.Drawable): void; public hasText(): boolean; public setShortcut(showShortcut: boolean, shortcutKey: string): void; public setTitle(title: string): void; public showsIcon(): boolean; public needsDividerBefore(): boolean; public needsDividerAfter(): boolean; - public onMeasure(dw: number, this_: number): void; + public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; public onRestoreInstanceState(state: globalAndroid.os.Parcelable): void; public initialize(param0: androidx.appcompat.view.menu.MenuItemImpl, param1: number): void; public setTitle(param0: string): void; @@ -5876,7 +5878,7 @@ declare module androidx { public getAutoSizeMaxTextSize(): number; public getAutoSizeTextAvailableSizes(): androidNative.Array; } - export module ActionMenuItemView { + export namespace ActionMenuItemView { export class ActionMenuItemForwardingListener extends androidx.appcompat.widget.ForwardingListener { public static class: java.lang.Class; public constructor(src: globalAndroid.view.View); @@ -5895,10 +5897,10 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module view { - export module menu { +declare namespace androidx { + export namespace appcompat { + export namespace view { + export namespace menu { export abstract class BaseMenuPresenter extends androidx.appcompat.view.menu.MenuPresenter { public static class: java.lang.Class; public mSystemContext: globalAndroid.content.Context; @@ -5910,13 +5912,13 @@ declare module androidx { public constructor(context: globalAndroid.content.Context, menuLayoutRes: number, itemLayoutRes: number); public initForMenu(context: globalAndroid.content.Context, menu: androidx.appcompat.view.menu.MenuBuilder): void; public getMenuView(root: globalAndroid.view.ViewGroup): androidx.appcompat.view.menu.MenuView; - public updateMenuView(oldItem: boolean): void; + public updateMenuView(cleared: boolean): void; public addItemView(itemView: globalAndroid.view.View, childIndex: number): void; public filterLeftoverView(parent: globalAndroid.view.ViewGroup, childIndex: number): boolean; public setCallback(cb: androidx.appcompat.view.menu.MenuPresenter.Callback): void; public getCallback(): androidx.appcompat.view.menu.MenuPresenter.Callback; public createItemView(parent: globalAndroid.view.ViewGroup): androidx.appcompat.view.menu.MenuView.ItemView; - public getItemView(this_: androidx.appcompat.view.menu.MenuItemImpl, item: globalAndroid.view.View, convertView: globalAndroid.view.ViewGroup): globalAndroid.view.View; + public getItemView(item: androidx.appcompat.view.menu.MenuItemImpl, convertView: globalAndroid.view.View, parent: globalAndroid.view.ViewGroup): globalAndroid.view.View; public bindItemView(param0: androidx.appcompat.view.menu.MenuItemImpl, param1: androidx.appcompat.view.menu.MenuView.ItemView): void; public shouldIncludeItem(childIndex: number, item: androidx.appcompat.view.menu.MenuItemImpl): boolean; public onCloseMenu(menu: androidx.appcompat.view.menu.MenuBuilder, allMenusAreClosing: boolean): void; @@ -5942,10 +5944,10 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module view { - export module menu { +declare namespace androidx { + export namespace appcompat { + export namespace view { + export namespace menu { export abstract class BaseMenuWrapper { public static class: java.lang.Class; } @@ -5954,10 +5956,10 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module view { - export module menu { +declare namespace androidx { + export namespace appcompat { + export namespace view { + export namespace menu { export class CascadingMenuPopup extends androidx.appcompat.view.menu.MenuPopup implements androidx.appcompat.view.menu.MenuPresenter { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, anchor: globalAndroid.view.View, popupStyleAttr: number, popupStyleRes: number, overflowOnly: boolean); @@ -5968,10 +5970,10 @@ declare module androidx { public addMenu(menu: androidx.appcompat.view.menu.MenuBuilder): void; public isShowing(): boolean; public onDismiss(): void; - public updateMenuView(this_: boolean): void; + public updateMenuView(cleared: boolean): void; public setCallback(cb: androidx.appcompat.view.menu.MenuPresenter.Callback): void; - public onSubMenuSelected(this_: androidx.appcompat.view.menu.SubMenuBuilder): boolean; - public onCloseMenu(rootInfo: androidx.appcompat.view.menu.MenuBuilder, this_: boolean): void; + public onSubMenuSelected(subMenu: androidx.appcompat.view.menu.SubMenuBuilder): boolean; + public onCloseMenu(menu: androidx.appcompat.view.menu.MenuBuilder, allMenusAreClosing: boolean): void; public flagActionItems(): boolean; public onSaveInstanceState(): globalAndroid.os.Parcelable; public onRestoreInstanceState(state: globalAndroid.os.Parcelable): void; @@ -5994,7 +5996,7 @@ declare module androidx { public getId(): number; public onRestoreInstanceState(param0: globalAndroid.os.Parcelable): void; } - export module CascadingMenuPopup { + export namespace CascadingMenuPopup { export class CascadingMenuInfo { public static class: java.lang.Class; public window: androidx.appcompat.widget.MenuPopupWindow; @@ -6018,10 +6020,10 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module view { - export module menu { +declare namespace androidx { + export namespace appcompat { + export namespace view { + export namespace menu { export class ExpandedMenuView implements androidx.appcompat.view.menu.MenuBuilder.ItemInvoker, androidx.appcompat.view.menu.MenuView { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); @@ -6039,10 +6041,10 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module view { - export module menu { +declare namespace androidx { + export namespace appcompat { + export namespace view { + export namespace menu { export class ListMenuItemView implements androidx.appcompat.view.menu.MenuView.ItemView { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); @@ -6052,15 +6054,15 @@ declare module androidx { public setForceShowIcon(forceShow: boolean): void; public setTitle(title: string): void; public getItemData(): androidx.appcompat.view.menu.MenuItemImpl; - public setCheckable(otherCompoundButton: boolean): void; - public setChecked(this_: boolean): void; + public setCheckable(checkable: boolean): void; + public setChecked(checked: boolean): void; public setShortcut(showShortcut: boolean, shortcutKey: string): void; public setIcon(icon: globalAndroid.graphics.drawable.Drawable): void; - public onMeasure(iconLp: number, this_: number): void; + public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; public prefersCondensedTitle(): boolean; public showsIcon(): boolean; public setGroupDividerEnabled(groupDividerEnabled: boolean): void; - public adjustListItemSelectionBounds(this_: globalAndroid.graphics.Rect): void; + public adjustListItemSelectionBounds(rect: globalAndroid.graphics.Rect): void; public initialize(param0: androidx.appcompat.view.menu.MenuItemImpl, param1: number): void; public setTitle(param0: string): void; public setEnabled(param0: boolean): void; @@ -6074,13 +6076,13 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module view { - export module menu { +declare namespace androidx { + export namespace appcompat { + export namespace view { + export namespace menu { export class ListMenuPresenter extends androidx.appcompat.view.menu.MenuPresenter { public static class: java.lang.Class; - public static VIEWS_TAG: string = "android:menu:list"; + public static readonly VIEWS_TAG = "android:menu:list"; public constructor(context: globalAndroid.content.Context, itemLayoutRes: number); public constructor(itemLayoutRes: number, themeRes: number); public initForMenu(context: globalAndroid.content.Context, menu: androidx.appcompat.view.menu.MenuBuilder): void; @@ -6111,7 +6113,7 @@ declare module androidx { public collapseItemActionView(param0: androidx.appcompat.view.menu.MenuBuilder, param1: androidx.appcompat.view.menu.MenuItemImpl): boolean; public onRestoreInstanceState(param0: globalAndroid.os.Parcelable): void; } - export module ListMenuPresenter { + export namespace ListMenuPresenter { export class MenuAdapter { public static class: java.lang.Class; public constructor(param0: androidx.appcompat.view.menu.ListMenuPresenter); @@ -6127,10 +6129,10 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module view { - export module menu { +declare namespace androidx { + export namespace appcompat { + export namespace view { + export namespace menu { export class MenuAdapter { public static class: java.lang.Class; public constructor(menu: androidx.appcompat.view.menu.MenuBuilder, inflater: globalAndroid.view.LayoutInflater, overflowOnly: boolean, itemLayoutRes: number); @@ -6148,21 +6150,21 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module view { - export module menu { +declare namespace androidx { + export namespace appcompat { + export namespace view { + export namespace menu { export class MenuBuilder extends androidx.core.internal.view.SupportMenu { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); public setDefaultShowAsAction(defaultShowAsAction: number): androidx.appcompat.view.menu.MenuBuilder; public addMenuPresenter(presenter: androidx.appcompat.view.menu.MenuPresenter): void; public addMenuPresenter(presenter: androidx.appcompat.view.menu.MenuPresenter, menuContext: globalAndroid.content.Context): void; - public removeMenuPresenter(ref: androidx.appcompat.view.menu.MenuPresenter): void; + public removeMenuPresenter(presenter: androidx.appcompat.view.menu.MenuPresenter): void; public savePresenterStates(outState: globalAndroid.os.Bundle): void; public restorePresenterStates(state: globalAndroid.os.Bundle): void; - public saveActionViewStates(item: globalAndroid.os.Bundle): void; - public restoreActionViewStates(item: globalAndroid.os.Bundle): void; + public saveActionViewStates(outStates: globalAndroid.os.Bundle): void; + public restoreActionViewStates(states: globalAndroid.os.Bundle): void; public getActionViewStatesKey(): string; public setCallback(cb: androidx.appcompat.view.menu.MenuBuilder.Callback): void; public addInternal(group: number, id: number, categoryOrder: number, title: string): globalAndroid.view.MenuItem; @@ -6176,20 +6178,20 @@ declare module androidx { public addSubMenu(group: number, id: number, categoryOrder: number, title: number): globalAndroid.view.SubMenu; public setGroupDividerEnabled(enabled: boolean): void; public isGroupDividerEnabled(): boolean; - public addIntentOptions(rintent: number, item: number, i: number, this_: globalAndroid.content.ComponentName, group: androidNative.Array, id: globalAndroid.content.Intent, categoryOrder: number, caller: androidNative.Array): number; + public addIntentOptions(group: number, id: number, categoryOrder: number, caller: globalAndroid.content.ComponentName, specifics: androidNative.Array, intent: globalAndroid.content.Intent, flags: number, outSpecificItems: androidNative.Array): number; public removeItem(id: number): void; - public removeGroup(numRemoved: number): void; + public removeGroup(group: number): void; public removeItemAt(index: number): void; public clearAll(): void; public clear(): void; - public setGroupCheckable(i: number, this_: boolean, group: boolean): void; - public setGroupVisible(i: number, this_: boolean): void; - public setGroupEnabled(i: number, this_: boolean): void; + public setGroupCheckable(group: number, checkable: boolean, exclusive: boolean): void; + public setGroupVisible(group: number, visible: boolean): void; + public setGroupEnabled(group: number, enabled: boolean): void; public hasVisibleItems(): boolean; - public findItem(item: number): globalAndroid.view.MenuItem; - public findItemIndex(i: number): number; + public findItem(id: number): globalAndroid.view.MenuItem; + public findItemIndex(id: number): number; public findGroupIndex(group: number): number; - public findGroupIndex(i: number, this_: number): number; + public findGroupIndex(group: number, start: number): number; public size(): number; public getItem(index: number): globalAndroid.view.MenuItem; public isShortcutKey(keyCode: number, event: globalAndroid.view.KeyEvent): boolean; @@ -6201,8 +6203,8 @@ declare module androidx { public performShortcut(keyCode: number, event: globalAndroid.view.KeyEvent, flags: number): boolean; public performIdentifierAction(id: number, flags: number): boolean; public performItemAction(item: globalAndroid.view.MenuItem, flags: number): boolean; - public performItemAction(this_: globalAndroid.view.MenuItem, item: androidx.appcompat.view.menu.MenuPresenter, preferredPresenter: number): boolean; - public close(ref: boolean): void; + public performItemAction(item: globalAndroid.view.MenuItem, preferredPresenter: androidx.appcompat.view.menu.MenuPresenter, flags: number): boolean; + public close(closeAllMenus: boolean): void; public close(): void; public onItemsChanged(structureChanged: boolean): void; public stopDispatchingItemsChanged(): void; @@ -6223,13 +6225,13 @@ declare module androidx { public getRootMenu(): androidx.appcompat.view.menu.MenuBuilder; public setCurrentMenuInfo(menuInfo: globalAndroid.view.ContextMenu.ContextMenuInfo): void; public setOptionalIconsVisible(visible: boolean): void; - public expandItemActionView(ref: androidx.appcompat.view.menu.MenuItemImpl): boolean; - public collapseItemActionView(ref: androidx.appcompat.view.menu.MenuItemImpl): boolean; + public expandItemActionView(item: androidx.appcompat.view.menu.MenuItemImpl): boolean; + public collapseItemActionView(item: androidx.appcompat.view.menu.MenuItemImpl): boolean; public getExpandedItem(): androidx.appcompat.view.menu.MenuItemImpl; public setOverrideVisibleItems(override: boolean): void; public setGroupDividerEnabled(param0: boolean): void; } - export module MenuBuilder { + export namespace MenuBuilder { export class Callback { public static class: java.lang.Class; /** @@ -6260,15 +6262,15 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module view { - export module menu { +declare namespace androidx { + export namespace appcompat { + export namespace view { + export namespace menu { export class MenuDialogHelper extends androidx.appcompat.view.menu.MenuPresenter.Callback { public static class: java.lang.Class; public constructor(menu: androidx.appcompat.view.menu.MenuBuilder); public show(windowToken: globalAndroid.os.IBinder): void; - public onKey(decor: globalAndroid.content.DialogInterface, win: number, ds: globalAndroid.view.KeyEvent): boolean; + public onKey(dialog: globalAndroid.content.DialogInterface, keyCode: number, event: globalAndroid.view.KeyEvent): boolean; public setPresenterCallback(cb: androidx.appcompat.view.menu.MenuPresenter.Callback): void; public dismiss(): void; public onDismiss(dialog: globalAndroid.content.DialogInterface): void; @@ -6283,10 +6285,10 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module view { - export module menu { +declare namespace androidx { + export namespace appcompat { + export namespace view { + export namespace menu { export class MenuHelper { public static class: java.lang.Class; /** @@ -6305,10 +6307,10 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module view { - export module menu { +declare namespace androidx { + export namespace appcompat { + export namespace view { + export namespace menu { export class MenuItemImpl extends androidx.core.internal.view.SupportMenuItem { public static class: java.lang.Class; public invoke(): boolean; @@ -6402,10 +6404,10 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module view { - export module menu { +declare namespace androidx { + export namespace appcompat { + export namespace view { + export namespace menu { export class MenuItemWrapperICS extends androidx.appcompat.view.menu.BaseMenuWrapper { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, object: androidx.core.internal.view.SupportMenuItem); @@ -6449,7 +6451,7 @@ declare module androidx { public setActionView(view: globalAndroid.view.View): globalAndroid.view.MenuItem; public setActionView(resId: number): globalAndroid.view.MenuItem; public getActionView(): globalAndroid.view.View; - public setActionProvider(this_: globalAndroid.view.ActionProvider): globalAndroid.view.MenuItem; + public setActionProvider(provider: globalAndroid.view.ActionProvider): globalAndroid.view.MenuItem; public getActionProvider(): globalAndroid.view.ActionProvider; public expandActionView(): boolean; public collapseActionView(): boolean; @@ -6463,9 +6465,9 @@ declare module androidx { public getIconTintList(): globalAndroid.content.res.ColorStateList; public setIconTintMode(tintMode: globalAndroid.graphics.PorterDuff.Mode): globalAndroid.view.MenuItem; public getIconTintMode(): globalAndroid.graphics.PorterDuff.Mode; - public setExclusiveCheckable(this_: boolean): void; + public setExclusiveCheckable(checkable: boolean): void; } - export module MenuItemWrapperICS { + export namespace MenuItemWrapperICS { export class ActionProviderWrapper extends androidx.core.view.ActionProvider { public static class: java.lang.Class; public onCreateActionView(forItem: globalAndroid.view.MenuItem): globalAndroid.view.View; @@ -6504,10 +6506,10 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module view { - export module menu { +declare namespace androidx { + export namespace appcompat { + export namespace view { + export namespace menu { export abstract class MenuPopup implements androidx.appcompat.view.menu.ShowableListMenu, androidx.appcompat.view.menu.MenuPresenter { public static class: java.lang.Class; public setForceShowIcon(param0: boolean): void; @@ -6526,9 +6528,9 @@ declare module androidx { public collapseItemActionView(menu: androidx.appcompat.view.menu.MenuBuilder, item: androidx.appcompat.view.menu.MenuItemImpl): boolean; public getId(): number; public onItemClick(parent: globalAndroid.widget.AdapterView, view: globalAndroid.view.View, position: number, id: number): void; - public static measureIndividualMenuWidth(positionType: globalAndroid.widget.ListAdapter, itemWidth: globalAndroid.view.ViewGroup, i: globalAndroid.content.Context, adapter: number): number; + public static measureIndividualMenuWidth(adapter: globalAndroid.widget.ListAdapter, parent: globalAndroid.view.ViewGroup, context: globalAndroid.content.Context, maxAllowedWidth: number): number; public static toMenuAdapter(adapter: globalAndroid.widget.ListAdapter): androidx.appcompat.view.menu.MenuAdapter; - public static shouldPreserveIconSpacing(childItem: androidx.appcompat.view.menu.MenuBuilder): boolean; + public static shouldPreserveIconSpacing(menu: androidx.appcompat.view.menu.MenuBuilder): boolean; public closeMenuOnSubMenuOpened(): boolean; public show(): void; public dismiss(): void; @@ -6551,10 +6553,10 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module view { - export module menu { +declare namespace androidx { + export namespace appcompat { + export namespace view { + export namespace menu { export class MenuPopupHelper extends androidx.appcompat.view.menu.MenuHelper { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, menu: androidx.appcompat.view.menu.MenuBuilder); @@ -6583,10 +6585,10 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module view { - export module menu { +declare namespace androidx { + export namespace appcompat { + export namespace view { + export namespace menu { export class MenuPresenter { public static class: java.lang.Class; /** @@ -6620,7 +6622,7 @@ declare module androidx { public onSaveInstanceState(): globalAndroid.os.Parcelable; public onRestoreInstanceState(param0: globalAndroid.os.Parcelable): void; } - export module MenuPresenter { + export namespace MenuPresenter { export class Callback { public static class: java.lang.Class; /** @@ -6640,10 +6642,10 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module view { - export module menu { +declare namespace androidx { + export namespace appcompat { + export namespace view { + export namespace menu { export class MenuView { public static class: java.lang.Class; /** @@ -6657,7 +6659,7 @@ declare module androidx { public initialize(param0: androidx.appcompat.view.menu.MenuBuilder): void; public getWindowAnimations(): number; } - export module MenuView { + export namespace MenuView { export class ItemView { public static class: java.lang.Class; /** @@ -6693,10 +6695,10 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module view { - export module menu { +declare namespace androidx { + export namespace appcompat { + export namespace view { + export namespace menu { export class MenuWrapperICS extends androidx.appcompat.view.menu.BaseMenuWrapper { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, object: androidx.core.internal.view.SupportMenu); @@ -6708,7 +6710,7 @@ declare module androidx { public addSubMenu(titleRes: number): globalAndroid.view.SubMenu; public addSubMenu(groupId: number, itemId: number, order: number, title: string): globalAndroid.view.SubMenu; public addSubMenu(groupId: number, itemId: number, order: number, titleRes: number): globalAndroid.view.SubMenu; - public addIntentOptions(z: number, this_: number, groupId: number, itemId: globalAndroid.content.ComponentName, order: androidNative.Array, caller: globalAndroid.content.Intent, specifics: number, intent: androidNative.Array): number; + public addIntentOptions(groupId: number, itemId: number, order: number, caller: globalAndroid.content.ComponentName, specifics: androidNative.Array, intent: globalAndroid.content.Intent, flags: number, outSpecificItems: androidNative.Array): number; public removeItem(id: number): void; public removeGroup(groupId: number): void; public clear(): void; @@ -6730,10 +6732,10 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module view { - export module menu { +declare namespace androidx { + export namespace appcompat { + export namespace view { + export namespace menu { export class ShowableListMenu { public static class: java.lang.Class; /** @@ -6756,10 +6758,10 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module view { - export module menu { +declare namespace androidx { + export namespace appcompat { + export namespace view { + export namespace menu { export class StandardMenuPopup extends androidx.appcompat.view.menu.MenuPopup implements androidx.appcompat.view.menu.MenuPresenter { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, menu: androidx.appcompat.view.menu.MenuBuilder, anchorView: globalAndroid.view.View, popupStyleAttr: number, popupStyleRes: number, overflowOnly: boolean); @@ -6772,7 +6774,7 @@ declare module androidx { public onDismiss(): void; public updateMenuView(cleared: boolean): void; public setCallback(cb: androidx.appcompat.view.menu.MenuPresenter.Callback): void; - public onSubMenuSelected(horizontalOffset: androidx.appcompat.view.menu.SubMenuBuilder): boolean; + public onSubMenuSelected(subMenu: androidx.appcompat.view.menu.SubMenuBuilder): boolean; public onCloseMenu(menu: androidx.appcompat.view.menu.MenuBuilder, allMenusAreClosing: boolean): void; public flagActionItems(): boolean; public onSaveInstanceState(): globalAndroid.os.Parcelable; @@ -6800,10 +6802,10 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module view { - export module menu { +declare namespace androidx { + export namespace appcompat { + export namespace view { + export namespace menu { export class SubMenuBuilder extends androidx.appcompat.view.menu.MenuBuilder { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); @@ -6836,10 +6838,10 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module view { - export module menu { +declare namespace androidx { + export namespace appcompat { + export namespace view { + export namespace menu { export class SubMenuWrapperICS extends androidx.appcompat.view.menu.MenuWrapperICS { public static class: java.lang.Class; public setHeaderTitle(titleRes: number): globalAndroid.view.SubMenu; @@ -6858,9 +6860,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export abstract class AbsActionBarView { public static class: java.lang.Class; public mVisAnimListener: androidx.appcompat.widget.AbsActionBarView.VisibilityAnimListener; @@ -6870,12 +6872,12 @@ declare module androidx { public mContentHeight: number; public mVisibilityAnim: androidx.core.view.ViewPropertyAnimatorCompat; public onConfigurationChanged(newConfig: globalAndroid.content.res.Configuration): void; - public onTouchEvent(this_: globalAndroid.view.MotionEvent): boolean; - public onHoverEvent(this_: globalAndroid.view.MotionEvent): boolean; + public onTouchEvent(ev: globalAndroid.view.MotionEvent): boolean; + public onHoverEvent(ev: globalAndroid.view.MotionEvent): boolean; public setContentHeight(height: number): void; public getContentHeight(): number; public getAnimatedVisibility(): number; - public setupAnimatorToVisibility(anim: number, this_: number): androidx.core.view.ViewPropertyAnimatorCompat; + public setupAnimatorToVisibility(visibility: number, duration: number): androidx.core.view.ViewPropertyAnimatorCompat; public animateToVisibility(visibility: number): void; public setVisibility(visibility: number): void; public showOverflowMenu(): boolean; @@ -6890,10 +6892,10 @@ declare module androidx { public static next(x: number, val: number, isRtl: boolean): number; public positionChild(child: globalAndroid.view.View, x: number, y: number, contentHeight: number, reverse: boolean): number; } - export module AbsActionBarView { + export namespace AbsActionBarView { export class VisibilityAnimListener extends androidx.core.view.ViewPropertyAnimatorListener { public static class: java.lang.Class; - public constructor(this$0: androidx.appcompat.widget.AbsActionBarView); + public constructor(outer: androidx.appcompat.widget.AbsActionBarView); public withFinalVisibility(animation: androidx.core.view.ViewPropertyAnimatorCompat, visibility: number): androidx.appcompat.widget.AbsActionBarView.VisibilityAnimListener; public onAnimationStart(view: globalAndroid.view.View): void; public onAnimationEnd(view: globalAndroid.view.View): void; @@ -6907,9 +6909,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class ActionBarBackgroundDrawable { public static class: java.lang.Class; public constructor(container: androidx.appcompat.widget.ActionBarContainer); @@ -6923,9 +6925,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class ActionBarContainer { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); @@ -6942,20 +6944,20 @@ declare module androidx { public onInterceptTouchEvent(ev: globalAndroid.view.MotionEvent): boolean; public onTouchEvent(ev: globalAndroid.view.MotionEvent): boolean; public onHoverEvent(ev: globalAndroid.view.MotionEvent): boolean; - public setTabContainer(this_: androidx.appcompat.widget.ScrollingTabContainerView): void; + public setTabContainer(tabView: androidx.appcompat.widget.ScrollingTabContainerView): void; public getTabContainer(): globalAndroid.view.View; public startActionModeForChild(child: globalAndroid.view.View, callback: globalAndroid.view.ActionMode.Callback): globalAndroid.view.ActionMode; public startActionModeForChild(child: globalAndroid.view.View, callback: globalAndroid.view.ActionMode.Callback, type: number): globalAndroid.view.ActionMode; - public onMeasure(topMarginForTabs: number, topMarginForTabs: number): void; - public onLayout(lp: boolean, tabHeight: number, this_: number, changed: number, l: number): void; + public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; + public onLayout(changed: boolean, l: number, t: number, r: number, b: number): void; } } } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class ActionBarContextView extends androidx.appcompat.widget.AbsActionBarView { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); @@ -6968,7 +6970,7 @@ declare module androidx { public setSubtitle(subtitle: string): void; public getTitle(): string; public getSubtitle(): string; - public initForMode(this_: androidx.appcompat.view.ActionMode): void; + public initForMode(mode: androidx.appcompat.view.ActionMode): void; public closeMode(): void; public killMode(): void; public showOverflowMenu(): boolean; @@ -6976,8 +6978,8 @@ declare module androidx { public isOverflowMenuShowing(): boolean; public generateDefaultLayoutParams(): globalAndroid.view.ViewGroup.LayoutParams; public generateLayoutParams(attrs: globalAndroid.util.AttributeSet): globalAndroid.view.ViewGroup.LayoutParams; - public onMeasure(titleWidthSpec: number, titleWidth: number): void; - public onLayout(startMargin: boolean, endMargin: number, this_: number, changed: number, l: number): void; + public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; + public onLayout(changed: boolean, l: number, t: number, r: number, b: number): void; public shouldDelayChildPressedState(): boolean; public onInitializeAccessibilityEvent(event: globalAndroid.view.accessibility.AccessibilityEvent): void; public setTitleOptional(titleOptional: boolean): void; @@ -6987,15 +6989,15 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class ActionBarOverlayLayout implements androidx.appcompat.widget.DecorContentParent, androidx.core.view.NestedScrollingParent, androidx.core.view.NestedScrollingParent2, androidx.core.view.NestedScrollingParent3 { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); public onDetachedFromWindow(): void; - public setActionBarVisibilityCallback(this_: androidx.appcompat.widget.ActionBarOverlayLayout.ActionBarVisibilityCallback): void; + public setActionBarVisibilityCallback(cb: androidx.appcompat.widget.ActionBarOverlayLayout.ActionBarVisibilityCallback): void; public setOverlayMode(overlayMode: boolean): void; public isInOverlayMode(): boolean; public setHasNonEmbeddedTabs(hasNonEmbeddedTabs: boolean): void; @@ -7008,9 +7010,9 @@ declare module androidx { public generateLayoutParams(attrs: globalAndroid.util.AttributeSet): androidx.appcompat.widget.ActionBarOverlayLayout.LayoutParams; public generateLayoutParams(p: globalAndroid.view.ViewGroup.LayoutParams): globalAndroid.view.ViewGroup.LayoutParams; public checkLayoutParams(p: globalAndroid.view.ViewGroup.LayoutParams): boolean; - public onMeasure(this_: number, widthMeasureSpec: number): void; - public onLayout(width: boolean, height: number, childLeft: number, childTop: number, child: number): void; - public draw(this_: globalAndroid.graphics.Canvas): void; + public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; + public onLayout(changed: boolean, left: number, top: number, right: number, bottom: number): void; + public draw(c: globalAndroid.graphics.Canvas): void; public shouldDelayChildPressedState(): boolean; public onNestedScroll(target: globalAndroid.view.View, dxConsumed: number, dyConsumed: number, dxUnconsumed: number, dyUnconsumed: number, type: number, consumed: androidNative.Array): void; public onStartNestedScroll(child: globalAndroid.view.View, target: globalAndroid.view.View, axes: number, type: number): boolean; @@ -7074,7 +7076,7 @@ declare module androidx { public onNestedPreScroll(param0: globalAndroid.view.View, param1: number, param2: number, param3: androidNative.Array, param4: number): void; public onNestedScroll(param0: globalAndroid.view.View, param1: number, param2: number, param3: number, param4: number, param5: number, param6: androidNative.Array): void; } - export module ActionBarOverlayLayout { + export namespace ActionBarOverlayLayout { export class ActionBarVisibilityCallback { public static class: java.lang.Class; /** @@ -7108,14 +7110,14 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class ActionMenuPresenter extends androidx.appcompat.view.menu.BaseMenuPresenter implements androidx.core.view.ActionProvider.SubUiVisibilityListener { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, menuLayoutRes: number, itemLayoutRes: number); public constructor(context: globalAndroid.content.Context); - public initForMenu(this_: globalAndroid.content.Context, context: androidx.appcompat.view.menu.MenuBuilder | null): void; + public initForMenu(context: globalAndroid.content.Context, menu: androidx.appcompat.view.menu.MenuBuilder | null): void; public onConfigurationChanged(newConfig: globalAndroid.content.res.Configuration): void; public setWidthLimit(width: number, strict: boolean): void; public setReserveOverflow(reserveOverflow: boolean): void; @@ -7127,9 +7129,9 @@ declare module androidx { public getItemView(item: androidx.appcompat.view.menu.MenuItemImpl, convertView: globalAndroid.view.View, parent: globalAndroid.view.ViewGroup): globalAndroid.view.View; public bindItemView(item: androidx.appcompat.view.menu.MenuItemImpl, itemView: androidx.appcompat.view.menu.MenuView.ItemView): void; public shouldIncludeItem(childIndex: number, item: androidx.appcompat.view.menu.MenuItemImpl): boolean; - public updateMenuView(i: boolean): void; + public updateMenuView(cleared: boolean): void; public filterLeftoverView(parent: globalAndroid.view.ViewGroup, childIndex: number): boolean; - public onSubMenuSelected(i: androidx.appcompat.view.menu.SubMenuBuilder): boolean; + public onSubMenuSelected(subMenu: androidx.appcompat.view.menu.SubMenuBuilder): boolean; public showOverflowMenu(): boolean; public hideOverflowMenu(): boolean; public dismissPopupMenus(): boolean; @@ -7140,7 +7142,7 @@ declare module androidx { public flagActionItems(): boolean; public onCloseMenu(menu: androidx.appcompat.view.menu.MenuBuilder, allMenusAreClosing: boolean): void; public onSaveInstanceState(): globalAndroid.os.Parcelable; - public onRestoreInstanceState(item: globalAndroid.os.Parcelable): void; + public onRestoreInstanceState(state: globalAndroid.os.Parcelable): void; public onSubUiVisibilityChanged(isVisible: boolean): void; public setMenuView(menuView: androidx.appcompat.widget.ActionMenuView): void; public onSubUiVisibilityChanged(param0: boolean): void; @@ -7155,14 +7157,14 @@ declare module androidx { public getId(): number; public onRestoreInstanceState(param0: globalAndroid.os.Parcelable): void; } - export module ActionMenuPresenter { + export namespace ActionMenuPresenter { export class ActionButtonSubmenu extends androidx.appcompat.view.menu.MenuPopupHelper { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, menu: androidx.appcompat.view.menu.MenuBuilder); public constructor(context: globalAndroid.content.Context, menu: androidx.appcompat.view.menu.MenuBuilder, anchorView: globalAndroid.view.View); public constructor(context: globalAndroid.content.Context, menu: androidx.appcompat.view.menu.MenuBuilder, anchorView: globalAndroid.view.View, overflowOnly: boolean, popupStyleAttr: number); public constructor(context: globalAndroid.content.Context, menu: androidx.appcompat.view.menu.MenuBuilder, anchorView: globalAndroid.view.View, overflowOnly: boolean, popupStyleAttr: number, popupStyleRes: number); - public constructor(context: androidx.appcompat.widget.ActionMenuPresenter, subMenu: globalAndroid.content.Context, anchorView: androidx.appcompat.view.menu.SubMenuBuilder, item: globalAndroid.view.View); + public constructor(param0: androidx.appcompat.widget.ActionMenuPresenter, context: globalAndroid.content.Context, subMenu: androidx.appcompat.view.menu.SubMenuBuilder, anchorView: globalAndroid.view.View); public onDismiss(): void; public setPresenterCallback(param0: androidx.appcompat.view.menu.MenuPresenter.Callback): void; public dismiss(): void; @@ -7173,7 +7175,7 @@ declare module androidx { } export class OpenOverflowRunnable { public static class: java.lang.Class; - public constructor(popup: androidx.appcompat.widget.ActionMenuPresenter, param1: androidx.appcompat.widget.ActionMenuPresenter.OverflowPopup); + public constructor(param0: androidx.appcompat.widget.ActionMenuPresenter, popup: androidx.appcompat.widget.ActionMenuPresenter.OverflowPopup); public run(): void; } export class OverflowMenuButton extends androidx.appcompat.widget.AppCompatImageView implements androidx.appcompat.widget.ActionMenuView.ActionMenuChildView { @@ -7181,11 +7183,11 @@ declare module androidx { public constructor(context: globalAndroid.content.Context); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet, defStyleAttr: number); - public constructor(context: androidx.appcompat.widget.ActionMenuPresenter, param1: globalAndroid.content.Context); + public constructor(param0: androidx.appcompat.widget.ActionMenuPresenter, context: globalAndroid.content.Context); public performClick(): boolean; public needsDividerBefore(): boolean; public needsDividerAfter(): boolean; - public setFrame(height: number, halfEdge: number, offsetX: number, offsetY: number): boolean; + public setFrame(l: number, t: number, r: number, b: number): boolean; public setSupportBackgroundTintList(param0: globalAndroid.content.res.ColorStateList | null): void; public getSupportBackgroundTintList(): globalAndroid.content.res.ColorStateList | null; public setSupportBackgroundTintMode(param0: globalAndroid.graphics.PorterDuff.Mode | null): void; @@ -7201,7 +7203,7 @@ declare module androidx { public constructor(context: globalAndroid.content.Context, menu: androidx.appcompat.view.menu.MenuBuilder, anchorView: globalAndroid.view.View); public constructor(context: globalAndroid.content.Context, menu: androidx.appcompat.view.menu.MenuBuilder, anchorView: globalAndroid.view.View, overflowOnly: boolean, popupStyleAttr: number); public constructor(context: globalAndroid.content.Context, menu: androidx.appcompat.view.menu.MenuBuilder, anchorView: globalAndroid.view.View, overflowOnly: boolean, popupStyleAttr: number, popupStyleRes: number); - public constructor(context: androidx.appcompat.widget.ActionMenuPresenter, menu: globalAndroid.content.Context, anchorView: androidx.appcompat.view.menu.MenuBuilder, overflowOnly: globalAndroid.view.View, param4: boolean); + public constructor(param0: androidx.appcompat.widget.ActionMenuPresenter, context: globalAndroid.content.Context, menu: androidx.appcompat.view.menu.MenuBuilder, anchorView: globalAndroid.view.View, overflowOnly: boolean); public onDismiss(): void; public setPresenterCallback(param0: androidx.appcompat.view.menu.MenuPresenter.Callback): void; public dismiss(): void; @@ -7225,9 +7227,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class ActionMenuView extends androidx.appcompat.widget.LinearLayoutCompat implements androidx.appcompat.view.menu.MenuBuilder.ItemInvoker, androidx.appcompat.view.menu.MenuView { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); @@ -7238,8 +7240,8 @@ declare module androidx { public setPresenter(presenter: androidx.appcompat.widget.ActionMenuPresenter): void; public onConfigurationChanged(newConfig: globalAndroid.content.res.Configuration): void; public setOnMenuItemClickListener(listener: androidx.appcompat.widget.ActionMenuView.OnMenuItemClickListener): void; - public onMeasure(lp: number, i: number): void; - public onLayout(l: boolean, height: number, r: number, l: number, t: number): void; + public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; + public onLayout(changed: boolean, left: number, top: number, right: number, bottom: number): void; public onDetachedFromWindow(): void; public setOverflowIcon(icon: globalAndroid.graphics.drawable.Drawable | null): void; public getOverflowIcon(): globalAndroid.graphics.drawable.Drawable | null; @@ -7250,7 +7252,7 @@ declare module androidx { public generateLayoutParams(attrs: globalAndroid.util.AttributeSet): androidx.appcompat.widget.LinearLayoutCompat.LayoutParams; public generateLayoutParams(p: globalAndroid.view.ViewGroup.LayoutParams): androidx.appcompat.widget.LinearLayoutCompat.LayoutParams; public generateLayoutParams(attrs: globalAndroid.util.AttributeSet): androidx.appcompat.widget.ActionMenuView.LayoutParams; - public generateLayoutParams(this_: globalAndroid.view.ViewGroup.LayoutParams): androidx.appcompat.widget.ActionMenuView.LayoutParams; + public generateLayoutParams(p: globalAndroid.view.ViewGroup.LayoutParams): androidx.appcompat.widget.ActionMenuView.LayoutParams; public checkLayoutParams(p: globalAndroid.view.ViewGroup.LayoutParams): boolean; public generateOverflowButtonLayoutParams(): androidx.appcompat.widget.ActionMenuView.LayoutParams; public invokeItem(item: androidx.appcompat.view.menu.MenuItemImpl): boolean; @@ -7270,7 +7272,7 @@ declare module androidx { public invokeItem(param0: androidx.appcompat.view.menu.MenuItemImpl): boolean; public initialize(param0: androidx.appcompat.view.menu.MenuBuilder): void; } - export module ActionMenuView { + export namespace ActionMenuView { export class ActionMenuChildView { public static class: java.lang.Class; /** @@ -7330,29 +7332,29 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class ActivityChooserModel { public static class: java.lang.Class; - public static DEFAULT_HISTORY_FILE_NAME: string = "activity_choser_model_history.xml"; - public static DEFAULT_HISTORY_MAX_LENGTH: number = 50; - public static get(dataModel: globalAndroid.content.Context, context: string): androidx.appcompat.widget.ActivityChooserModel; + public static readonly DEFAULT_HISTORY_FILE_NAME = "activity_choser_model_history.xml"; + public static readonly DEFAULT_HISTORY_MAX_LENGTH = 50; + public static get(context: globalAndroid.content.Context, historyFileName: string): androidx.appcompat.widget.ActivityChooserModel; public setIntent(intent: globalAndroid.content.Intent): void; public getIntent(): globalAndroid.content.Intent; public getActivityCount(): number; public getActivity(index: number): globalAndroid.content.pm.ResolveInfo; - public getActivityIndex(i: globalAndroid.content.pm.ResolveInfo): number; - public chooseActivity(handled: number): globalAndroid.content.Intent; + public getActivityIndex(activity: globalAndroid.content.pm.ResolveInfo): number; + public chooseActivity(index: number): globalAndroid.content.Intent; public setOnChooseActivityListener(listener: androidx.appcompat.widget.ActivityChooserModel.OnChooseActivityListener): void; public getDefaultActivity(): globalAndroid.content.pm.ResolveInfo; - public setDefaultActivity(newDefaultActivity: number): void; + public setDefaultActivity(index: number): void; public setActivitySorter(activitySorter: androidx.appcompat.widget.ActivityChooserModel.ActivitySorter): void; public setHistoryMaxSize(historyMaxSize: number): void; public getHistoryMaxSize(): number; public getHistorySize(): number; } - export module ActivityChooserModel { + export namespace ActivityChooserModel { export class ActivityChooserModelClient { public static class: java.lang.Class; /** @@ -7387,7 +7389,7 @@ declare module androidx { } export class DefaultSorter extends androidx.appcompat.widget.ActivityChooserModel.ActivitySorter { public static class: java.lang.Class; - public sort(componentName: globalAndroid.content.Intent, i: java.util.List, historicalRecord: java.util.List): void; + public sort(intent: globalAndroid.content.Intent, activities: java.util.List, historicalRecords: java.util.List): void; public sort(param0: globalAndroid.content.Intent, param1: java.util.List, param2: java.util.List): void; } export class HistoricalRecord { @@ -7414,16 +7416,16 @@ declare module androidx { } export class PersistHistoryAsyncTask extends globalAndroid.os.AsyncTask { public static class: java.lang.Class; - public doInBackground(record: androidNative.Array): java.lang.Void; + public doInBackground(args: androidNative.Array): java.lang.Void; } } } } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class ActivityChooserView implements androidx.appcompat.widget.ActivityChooserModel.ActivityChooserModelClient { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); @@ -7446,18 +7448,18 @@ declare module androidx { public setDefaultActionButtonContentDescription(resourceId: number): void; public setActivityChooserModel(param0: androidx.appcompat.widget.ActivityChooserModel): void; } - export module ActivityChooserView { + export namespace ActivityChooserView { export class ActivityChooserViewAdapter { public static class: java.lang.Class; - public static MAX_ACTIVITY_COUNT_UNLIMITED: number = 2147483647; - public static MAX_ACTIVITY_COUNT_DEFAULT: number = 4; + public static readonly MAX_ACTIVITY_COUNT_UNLIMITED = 2147483647; + public static readonly MAX_ACTIVITY_COUNT_DEFAULT = 4; public setDataModel(dataModel: androidx.appcompat.widget.ActivityChooserModel): void; public getItemViewType(position: number): number; public getViewTypeCount(): number; public getCount(): number; public getItem(position: number): any; public getItemId(position: number): number; - public getView(packageManager: number, iconView: globalAndroid.view.View, activity: globalAndroid.view.ViewGroup): globalAndroid.view.View; + public getView(position: number, convertView: globalAndroid.view.View, parent: globalAndroid.view.ViewGroup): globalAndroid.view.View; public measureContentWidth(): number; public setMaxActivityCount(maxActivityCount: number): void; public getDefaultActivity(): globalAndroid.content.pm.ResolveInfo; @@ -7470,8 +7472,8 @@ declare module androidx { } export class Callbacks { public static class: java.lang.Class; - public onItemClick(this_: globalAndroid.widget.AdapterView, parent: globalAndroid.view.View, view: number, position: number): void; - public onClick(index: globalAndroid.view.View): void; + public onItemClick(parent: globalAndroid.widget.AdapterView, view: globalAndroid.view.View, position: number, id: number): void; + public onClick(view: globalAndroid.view.View): void; public onLongClick(view: globalAndroid.view.View): boolean; public onDismiss(): void; } @@ -7484,9 +7486,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class AlertDialogLayout extends androidx.appcompat.widget.LinearLayoutCompat { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); @@ -7494,15 +7496,15 @@ declare module androidx { public constructor(context: globalAndroid.content.Context | null); public constructor(context: globalAndroid.content.Context | null, attrs: globalAndroid.util.AttributeSet | null); public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; - public onLayout(childHeight: boolean, lp: number, layoutGravity: number, layoutDirection: number, absoluteGravity: number): void; + public onLayout(changed: boolean, left: number, top: number, right: number, bottom: number): void; } } } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class AppCompatAutoCompleteTextView implements androidx.core.view.TintableBackgroundView { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); @@ -7526,9 +7528,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class AppCompatBackgroundHelper { public static class: java.lang.Class; } @@ -7536,9 +7538,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class AppCompatButton implements androidx.core.view.TintableBackgroundView, androidx.core.widget.AutoSizeableTextView { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); @@ -7577,9 +7579,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class AppCompatCheckBox implements androidx.core.widget.TintableCompoundButton { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); @@ -7599,9 +7601,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class AppCompatCheckedTextView { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); @@ -7617,13 +7619,13 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class AppCompatCompoundButtonHelper { public static class: java.lang.Class; } - export module AppCompatCompoundButtonHelper { + export namespace AppCompatCompoundButtonHelper { export class DirectSetButtonDrawableInterface { public static class: java.lang.Class; /** @@ -7640,9 +7642,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class AppCompatDrawableManager { public static class: java.lang.Class; public constructor(); @@ -7651,15 +7653,15 @@ declare module androidx { public onConfigurationChanged(context: globalAndroid.content.Context): void; public static getPorterDuffColorFilter(color: number, mode: globalAndroid.graphics.PorterDuff.Mode): globalAndroid.graphics.PorterDuffColorFilter; } - export module AppCompatDrawableManager { + export namespace AppCompatDrawableManager { export class AsldcInflateDelegate extends androidx.appcompat.widget.AppCompatDrawableManager.InflateDelegate { public static class: java.lang.Class; - public createFromXmlInner(this_: globalAndroid.content.Context, context: org.xmlpull.v1.XmlPullParser, parser: globalAndroid.util.AttributeSet, attrs: globalAndroid.content.res.Resources.Theme | null): globalAndroid.graphics.drawable.Drawable; + public createFromXmlInner(context: globalAndroid.content.Context, parser: org.xmlpull.v1.XmlPullParser, attrs: globalAndroid.util.AttributeSet, theme: globalAndroid.content.res.Resources.Theme | null): globalAndroid.graphics.drawable.Drawable; public createFromXmlInner(param0: globalAndroid.content.Context, param1: org.xmlpull.v1.XmlPullParser, param2: globalAndroid.util.AttributeSet, param3: globalAndroid.content.res.Resources.Theme | null): globalAndroid.graphics.drawable.Drawable; } export class AvdcInflateDelegate extends androidx.appcompat.widget.AppCompatDrawableManager.InflateDelegate { public static class: java.lang.Class; - public createFromXmlInner(this_: globalAndroid.content.Context, context: org.xmlpull.v1.XmlPullParser, parser: globalAndroid.util.AttributeSet, attrs: globalAndroid.content.res.Resources.Theme | null): globalAndroid.graphics.drawable.Drawable; + public createFromXmlInner(context: globalAndroid.content.Context, parser: org.xmlpull.v1.XmlPullParser, attrs: globalAndroid.util.AttributeSet, theme: globalAndroid.content.res.Resources.Theme | null): globalAndroid.graphics.drawable.Drawable; public createFromXmlInner(param0: globalAndroid.content.Context, param1: org.xmlpull.v1.XmlPullParser, param2: globalAndroid.util.AttributeSet, param3: globalAndroid.content.res.Resources.Theme | null): globalAndroid.graphics.drawable.Drawable; } export class ColorFilterLruCache extends androidx.collection.LruCache { @@ -7679,7 +7681,7 @@ declare module androidx { } export class VdcInflateDelegate extends androidx.appcompat.widget.AppCompatDrawableManager.InflateDelegate { public static class: java.lang.Class; - public createFromXmlInner(this_: globalAndroid.content.Context, context: org.xmlpull.v1.XmlPullParser, parser: globalAndroid.util.AttributeSet, attrs: globalAndroid.content.res.Resources.Theme | null): globalAndroid.graphics.drawable.Drawable; + public createFromXmlInner(context: globalAndroid.content.Context, parser: org.xmlpull.v1.XmlPullParser, attrs: globalAndroid.util.AttributeSet, theme: globalAndroid.content.res.Resources.Theme | null): globalAndroid.graphics.drawable.Drawable; public createFromXmlInner(param0: globalAndroid.content.Context, param1: org.xmlpull.v1.XmlPullParser, param2: globalAndroid.util.AttributeSet, param3: globalAndroid.content.res.Resources.Theme | null): globalAndroid.graphics.drawable.Drawable; } } @@ -7687,9 +7689,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class AppCompatEditText implements androidx.core.view.TintableBackgroundView { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); @@ -7706,7 +7708,7 @@ declare module androidx { public setTextAppearance(context: globalAndroid.content.Context, resId: number): void; public onCreateInputConnection(outAttrs: globalAndroid.view.inputmethod.EditorInfo): globalAndroid.view.inputmethod.InputConnection; public setCustomSelectionActionModeCallback(actionModeCallback: globalAndroid.view.ActionMode.Callback): void; - public setTextClassifier(textClassifier: any | null): void; + public setTextClassifier(textClassifier: any): void; public getTextClassifier(): any; public setSupportBackgroundTintList(param0: globalAndroid.content.res.ColorStateList | null): void; public setSupportBackgroundTintMode(param0: globalAndroid.graphics.PorterDuff.Mode | null): void; @@ -7715,9 +7717,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class AppCompatHintHelper { public static class: java.lang.Class; } @@ -7725,9 +7727,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class AppCompatImageButton implements androidx.core.view.TintableBackgroundView, androidx.core.widget.TintableImageSourceView { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); @@ -7758,22 +7760,22 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class AppCompatImageHelper { public static class: java.lang.Class; public constructor(view: globalAndroid.widget.ImageView); - public loadFromAttributes(drawable: globalAndroid.util.AttributeSet, this_: number): void; - public setImageResource(this_: number): void; + public loadFromAttributes(attrs: globalAndroid.util.AttributeSet, defStyleAttr: number): void; + public setImageResource(resId: number): void; } } } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class AppCompatImageView implements androidx.core.view.TintableBackgroundView, androidx.core.widget.TintableImageSourceView { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); @@ -7804,9 +7806,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class AppCompatMultiAutoCompleteTextView implements androidx.core.view.TintableBackgroundView { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); @@ -7829,9 +7831,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class AppCompatPopupWindow { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet | null, defStyleAttr: number); @@ -7844,9 +7846,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class AppCompatProgressBarHelper { public static class: java.lang.Class; } @@ -7854,9 +7856,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class AppCompatRadioButton implements androidx.core.widget.TintableCompoundButton { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); @@ -7876,23 +7878,23 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class AppCompatRatingBar { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet, defStyleAttr: number); - public onMeasure(this_: number, widthMeasureSpec: number): void; + public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; } } } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class AppCompatSeekBar { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); @@ -7906,9 +7908,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class AppCompatSeekBarHelper extends androidx.appcompat.widget.AppCompatProgressBarHelper { public static class: java.lang.Class; } @@ -7916,9 +7918,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class AppCompatSpinner implements androidx.core.view.TintableBackgroundView { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); @@ -7926,7 +7928,7 @@ declare module androidx { public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet, defStyleAttr: number); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet, defStyleAttr: number, mode: number); - public constructor(e: globalAndroid.content.Context, aa: globalAndroid.util.AttributeSet, popup: number, pa: number, adapter: globalAndroid.content.res.Resources.Theme); + public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet, defStyleAttr: number, mode: number, popupTheme: globalAndroid.content.res.Resources.Theme); public getPopupContext(): globalAndroid.content.Context; public setPopupBackgroundDrawable(background: globalAndroid.graphics.drawable.Drawable): void; public setPopupBackgroundResource(resId: number): void; @@ -7937,10 +7939,10 @@ declare module androidx { public getDropDownHorizontalOffset(): number; public setDropDownWidth(pixels: number): void; public getDropDownWidth(): number; - public setAdapter(this_: globalAndroid.widget.SpinnerAdapter): void; + public setAdapter(adapter: globalAndroid.widget.SpinnerAdapter): void; public onDetachedFromWindow(): void; public onTouchEvent(event: globalAndroid.view.MotionEvent): boolean; - public onMeasure(this_: number, widthMeasureSpec: number): void; + public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; public performClick(): boolean; public setPrompt(prompt: string): void; public getPrompt(): string; @@ -7954,10 +7956,10 @@ declare module androidx { public setSupportBackgroundTintList(param0: globalAndroid.content.res.ColorStateList | null): void; public setSupportBackgroundTintMode(param0: globalAndroid.graphics.PorterDuff.Mode | null): void; } - export module AppCompatSpinner { + export namespace AppCompatSpinner { export class DropDownAdapter { public static class: java.lang.Class; - public constructor(themedAdapter: globalAndroid.widget.SpinnerAdapter | null, this_: globalAndroid.content.res.Resources.Theme | null); + public constructor(adapter: globalAndroid.widget.SpinnerAdapter | null, dropDownTheme: globalAndroid.content.res.Resources.Theme | null); public getCount(): number; public getItem(position: number): any; public getItemId(position: number): number; @@ -7978,7 +7980,7 @@ declare module androidx { public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet | null); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet | null, defStyleAttr: number); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet | null, defStyleAttr: number, defStyleRes: number); - public constructor(context: androidx.appcompat.widget.AppCompatSpinner, attrs: globalAndroid.content.Context, defStyleAttr: globalAndroid.util.AttributeSet, param3: number); + public constructor(param0: androidx.appcompat.widget.AppCompatSpinner, context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet, defStyleAttr: number); public setAdapter(adapter: globalAndroid.widget.ListAdapter): void; public getHintText(): string; public setPromptText(hintText: string): void; @@ -7992,21 +7994,21 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class AppCompatTextClassifierHelper { public static class: java.lang.Class; - public setTextClassifier(textClassifier: any | null): void; + public setTextClassifier(textClassifier: any): void; public getTextClassifier(): any; } } } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class AppCompatTextHelper { public static class: java.lang.Class; } @@ -8014,9 +8016,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class AppCompatTextView implements androidx.core.view.TintableBackgroundView, androidx.core.widget.AutoSizeableTextView { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); @@ -8052,7 +8054,7 @@ declare module androidx { public setTextMetricsParamsCompat(params: androidx.core.text.PrecomputedTextCompat.Params): void; public setPrecomputedText(precomputed: androidx.core.text.PrecomputedTextCompat): void; public getText(): string; - public setTextClassifier(textClassifier: any | null): void; + public setTextClassifier(textClassifier: any): void; public getTextClassifier(): any; public setTextFuture(future: java.util.concurrent.Future | null): void; public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; @@ -8068,9 +8070,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class AppCompatTextViewAutoSizeHelper { public static class: java.lang.Class; } @@ -8078,9 +8080,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class AppCompatToggleButton { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); @@ -8091,23 +8093,23 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class ButtonBarLayout { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); public setAllowStacking(allowStacking: boolean): void; - public onMeasure(stack: number, measuredWidth: number): void; + public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; public getMinimumHeight(): number; } } } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class ContentFrameLayout { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); @@ -8116,7 +8118,7 @@ declare module androidx { public dispatchFitSystemWindows(insets: globalAndroid.graphics.Rect): void; public setAttachListener(attachListener: androidx.appcompat.widget.ContentFrameLayout.OnAttachListener): void; public setDecorPadding(left: number, top: number, right: number, bottom: number): void; - public onMeasure(w: number, tvw: number): void; + public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; public getMinWidthMajor(): globalAndroid.util.TypedValue; public getMinWidthMinor(): globalAndroid.util.TypedValue; public getFixedWidthMajor(): globalAndroid.util.TypedValue; @@ -8126,7 +8128,7 @@ declare module androidx { public onAttachedToWindow(): void; public onDetachedFromWindow(): void; } - export module ContentFrameLayout { + export namespace ContentFrameLayout { export class OnAttachListener { public static class: java.lang.Class; /** @@ -8145,9 +8147,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class DecorContentParent { public static class: java.lang.Class; /** @@ -8201,9 +8203,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class DecorToolbar { public static class: java.lang.Class; /** @@ -8331,15 +8333,15 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class DialogTitle extends androidx.appcompat.widget.AppCompatTextView { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet, defStyleAttr: number); - public onMeasure(textSize: number, ellipsisCount: number): void; + public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; public setSupportBackgroundTintList(param0: globalAndroid.content.res.ColorStateList | null): void; public getSupportBackgroundTintList(): globalAndroid.content.res.ColorStateList | null; public setSupportBackgroundTintMode(param0: globalAndroid.graphics.PorterDuff.Mode | null): void; @@ -8357,27 +8359,27 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class DrawableUtils { public static class: java.lang.Class; public static INSETS_NONE: globalAndroid.graphics.Rect; - public static getOpticalBounds(field: globalAndroid.graphics.drawable.Drawable): globalAndroid.graphics.Rect; - public static canSafelyMutateDrawable(child: globalAndroid.graphics.drawable.Drawable): boolean; + public static getOpticalBounds(drawable: globalAndroid.graphics.drawable.Drawable): globalAndroid.graphics.Rect; + public static canSafelyMutateDrawable(drawable: globalAndroid.graphics.drawable.Drawable): boolean; public static parseTintMode(value: number, defaultMode: globalAndroid.graphics.PorterDuff.Mode): globalAndroid.graphics.PorterDuff.Mode; } } } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class DropDownListView { public static class: java.lang.Class; - public static INVALID_POSITION: number = -1; - public static NO_POSITION: number = -1; + public static readonly INVALID_POSITION = -1; + public static readonly NO_POSITION = -1; public isInTouchMode(): boolean; public hasWindowFocus(): boolean; public isFocused(): boolean; @@ -8387,12 +8389,12 @@ declare module androidx { public dispatchDraw(canvas: globalAndroid.graphics.Canvas): void; public onTouchEvent(ev: globalAndroid.view.MotionEvent): boolean; public lookForSelectablePosition(position: number, lookDown: boolean): number; - public measureHeightOfChildrenCompat(newType: number, heightMeasureSpec: number, childLp: number, i: number, this_: number): number; - public onHoverEvent(position: globalAndroid.view.MotionEvent): boolean; + public measureHeightOfChildrenCompat(widthMeasureSpec: number, startPosition: number, endPosition: number, maxHeight: number, disallowPartialChildPosition: number): number; + public onHoverEvent(ev: globalAndroid.view.MotionEvent): boolean; public onDetachedFromWindow(): void; - public onForwardedEvent(x: globalAndroid.view.MotionEvent, y: number): boolean; + public onForwardedEvent(event: globalAndroid.view.MotionEvent, activePointerId: number): boolean; } - export module DropDownListView { + export namespace DropDownListView { export class GateKeeperDrawable extends androidx.appcompat.graphics.drawable.DrawableWrapper { public static class: java.lang.Class; public setState(stateSet: androidNative.Array): boolean; @@ -8412,9 +8414,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class FitWindowsFrameLayout implements androidx.appcompat.widget.FitWindowsViewGroup { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); @@ -8427,9 +8429,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class FitWindowsLinearLayout implements androidx.appcompat.widget.FitWindowsViewGroup { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); @@ -8442,9 +8444,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class FitWindowsViewGroup { public static class: java.lang.Class; /** @@ -8456,7 +8458,7 @@ declare module androidx { public constructor(); public setOnFitSystemWindowsListener(param0: androidx.appcompat.widget.FitWindowsViewGroup.OnFitSystemWindowsListener): void; } - export module FitWindowsViewGroup { + export namespace FitWindowsViewGroup { export class OnFitSystemWindowsListener { public static class: java.lang.Class; /** @@ -8473,20 +8475,20 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export abstract class ForwardingListener { public static class: java.lang.Class; public constructor(src: globalAndroid.view.View); public getPopup(): androidx.appcompat.view.menu.ShowableListMenu; - public onTouch(now: globalAndroid.view.View, e: globalAndroid.view.MotionEvent): boolean; + public onTouch(v: globalAndroid.view.View, event: globalAndroid.view.MotionEvent): boolean; public onViewAttachedToWindow(v: globalAndroid.view.View): void; public onViewDetachedFromWindow(v: globalAndroid.view.View): void; public onForwardingStarted(): boolean; public onForwardingStopped(): boolean; } - export module ForwardingListener { + export namespace ForwardingListener { export class DisallowIntercept { public static class: java.lang.Class; public run(): void; @@ -8500,17 +8502,17 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class LinearLayoutCompat { public static class: java.lang.Class; - public static HORIZONTAL: number = 0; - public static VERTICAL: number = 1; - public static SHOW_DIVIDER_NONE: number = 0; - public static SHOW_DIVIDER_BEGINNING: number = 1; - public static SHOW_DIVIDER_MIDDLE: number = 2; - public static SHOW_DIVIDER_END: number = 4; + public static readonly HORIZONTAL = 0; + public static readonly VERTICAL = 1; + public static readonly SHOW_DIVIDER_NONE = 0; + public static readonly SHOW_DIVIDER_BEGINNING = 1; + public static readonly SHOW_DIVIDER_MIDDLE = 2; + public static readonly SHOW_DIVIDER_END = 4; public constructor(context: globalAndroid.content.Context); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet, defStyleAttr: number); @@ -8533,7 +8535,7 @@ declare module androidx { public getWeightSum(): number; public setWeightSum(weightSum: number): void; public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; - public hasDividerBeforeChildAt(hasVisibleViewBefore: number): boolean; + public hasDividerBeforeChildAt(childIndex: number): boolean; public onLayout(changed: boolean, l: number, t: number, r: number, b: number): void; public setOrientation(orientation: number): void; public getOrientation(): number; @@ -8548,7 +8550,7 @@ declare module androidx { public onInitializeAccessibilityEvent(event: globalAndroid.view.accessibility.AccessibilityEvent): void; public onInitializeAccessibilityNodeInfo(info: globalAndroid.view.accessibility.AccessibilityNodeInfo): void; } - export module LinearLayoutCompat { + export namespace LinearLayoutCompat { export class DividerMode { public static class: java.lang.Class; /** @@ -8583,18 +8585,18 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class ListPopupWindow extends androidx.appcompat.view.menu.ShowableListMenu { public static class: java.lang.Class; - public static POSITION_PROMPT_ABOVE: number = 0; - public static POSITION_PROMPT_BELOW: number = 1; - public static MATCH_PARENT: number = -1; - public static WRAP_CONTENT: number = -2; - public static INPUT_METHOD_FROM_FOCUSABLE: number = 0; - public static INPUT_METHOD_NEEDED: number = 1; - public static INPUT_METHOD_NOT_NEEDED: number = 2; + public static readonly POSITION_PROMPT_ABOVE = 0; + public static readonly POSITION_PROMPT_BELOW = 1; + public static readonly MATCH_PARENT = -1; + public static readonly WRAP_CONTENT = -2; + public static readonly INPUT_METHOD_FROM_FOCUSABLE = 0; + public static readonly INPUT_METHOD_NEEDED = 1; + public static readonly INPUT_METHOD_NOT_NEEDED = 2; public constructor(context: globalAndroid.content.Context); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet | null); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet | null, defStyleAttr: number); @@ -8641,20 +8643,20 @@ declare module androidx { public clearListSelection(): void; public isShowing(): boolean; public isInputMethodNotNeeded(): boolean; - public performItemClick(child: number): boolean; + public performItemClick(position: number): boolean; public getSelectedItem(): any; public getSelectedItemPosition(): number; public getSelectedItemId(): number; public getSelectedView(): globalAndroid.view.View | null; public getListView(): globalAndroid.widget.ListView | null; - public onKeyDown(curIndex: number, consumed: globalAndroid.view.KeyEvent): boolean; - public onKeyUp(this_: number, keyCode: globalAndroid.view.KeyEvent): boolean; - public onKeyPreIme(state: number, anchorView: globalAndroid.view.KeyEvent): boolean; + public onKeyDown(keyCode: number, event: globalAndroid.view.KeyEvent): boolean; + public onKeyUp(keyCode: number, event: globalAndroid.view.KeyEvent): boolean; + public onKeyPreIme(keyCode: number, event: globalAndroid.view.KeyEvent): boolean; public createDragToOpenListener(src: globalAndroid.view.View): globalAndroid.view.View.OnTouchListener; public setOverlapAnchor(overlapAnchor: boolean): void; public getListView(): globalAndroid.widget.ListView; } - export module ListPopupWindow { + export namespace ListPopupWindow { export class ListSelectorHider { public static class: java.lang.Class; public run(): void; @@ -8682,9 +8684,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class MenuItemHoverListener { public static class: java.lang.Class; /** @@ -8702,9 +8704,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class MenuPopupWindow extends androidx.appcompat.widget.ListPopupWindow implements androidx.appcompat.widget.MenuItemHoverListener { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); @@ -8714,7 +8716,7 @@ declare module androidx { public setEnterTransition(enterTransition: any): void; public setExitTransition(exitTransition: any): void; public setHoverListener(hoverListener: androidx.appcompat.widget.MenuItemHoverListener): void; - public setTouchModal(this_: boolean): void; + public setTouchModal(touchModal: boolean): void; public onItemHoverEnter(menu: androidx.appcompat.view.menu.MenuBuilder, item: globalAndroid.view.MenuItem): void; public onItemHoverExit(menu: androidx.appcompat.view.menu.MenuBuilder, item: globalAndroid.view.MenuItem): void; public onItemHoverExit(param0: androidx.appcompat.view.menu.MenuBuilder, param1: globalAndroid.view.MenuItem): void; @@ -8724,23 +8726,23 @@ declare module androidx { public isShowing(): boolean; public getListView(): globalAndroid.widget.ListView; } - export module MenuPopupWindow { + export namespace MenuPopupWindow { export class MenuDropDownListView extends androidx.appcompat.widget.DropDownListView { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, hijackFocus: boolean); public setHoverListener(hoverListener: androidx.appcompat.widget.MenuItemHoverListener): void; public clearSelection(): void; public onKeyDown(keyCode: number, event: globalAndroid.view.KeyEvent): boolean; - public onHoverEvent(headersCount: globalAndroid.view.MotionEvent): boolean; + public onHoverEvent(ev: globalAndroid.view.MotionEvent): boolean; } } } } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class PopupMenu { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, anchor: globalAndroid.view.View); @@ -8757,7 +8759,7 @@ declare module androidx { public setOnMenuItemClickListener(listener: androidx.appcompat.widget.PopupMenu.OnMenuItemClickListener | null): void; public setOnDismissListener(listener: androidx.appcompat.widget.PopupMenu.OnDismissListener | null): void; } - export module PopupMenu { + export namespace PopupMenu { export class OnDismissListener { public static class: java.lang.Class; /** @@ -8785,9 +8787,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class ResourcesWrapper { public static class: java.lang.Class; public constructor(resources: globalAndroid.content.res.Resources); @@ -8840,12 +8842,12 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class RtlSpacingHelper { public static class: java.lang.Class; - public static UNDEFINED: number = -2147483648; + public static readonly UNDEFINED = -2147483648; public getLeft(): number; public getRight(): number; public getStart(): number; @@ -8858,9 +8860,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class ScrollingTabContainerView { public static class: java.lang.Class; public mVisibilityAnim: globalAndroid.view.ViewPropertyAnimator; @@ -8868,10 +8870,10 @@ declare module androidx { public constructor(context: globalAndroid.content.Context); public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; public setAllowCollapse(allowCollapse: boolean): void; - public setTabSelected(isSelected: number): void; + public setTabSelected(position: number): void; public setContentHeight(contentHeight: number): void; public onConfigurationChanged(newConfig: globalAndroid.content.res.Configuration): void; - public animateToVisibility(anim: number): void; + public animateToVisibility(visibility: number): void; public animateToTab(position: number): void; public onAttachedToWindow(): void; public onDetachedFromWindow(): void; @@ -8883,7 +8885,7 @@ declare module androidx { public onItemSelected(adapterView: globalAndroid.widget.AdapterView, view: globalAndroid.view.View, position: number, id: number): void; public onNothingSelected(adapterView: globalAndroid.widget.AdapterView): void; } - export module ScrollingTabContainerView { + export namespace ScrollingTabContainerView { export class TabAdapter { public static class: java.lang.Class; public getCount(): number; @@ -8893,11 +8895,11 @@ declare module androidx { } export class TabClickListener { public static class: java.lang.Class; - public onClick(i: globalAndroid.view.View): void; + public onClick(view: globalAndroid.view.View): void; } export class TabView { public static class: java.lang.Class; - public constructor(context: androidx.appcompat.widget.ScrollingTabContainerView, tab: globalAndroid.content.Context, forList: androidx.appcompat.app.ActionBar.Tab, a: boolean); + public constructor(param0: androidx.appcompat.widget.ScrollingTabContainerView, context: globalAndroid.content.Context, tab: androidx.appcompat.app.ActionBar.Tab, forList: boolean); public bindTab(tab: androidx.appcompat.app.ActionBar.Tab): void; public setSelected(selected: boolean): void; public onInitializeAccessibilityEvent(event: globalAndroid.view.accessibility.AccessibilityEvent): void; @@ -8908,7 +8910,7 @@ declare module androidx { } export class VisibilityAnimListener { public static class: java.lang.Class; - public constructor(this$0: androidx.appcompat.widget.ScrollingTabContainerView); + public constructor(outer: androidx.appcompat.widget.ScrollingTabContainerView); public withFinalVisibility(animation: globalAndroid.view.ViewPropertyAnimator, visibility: number): androidx.appcompat.widget.ScrollingTabContainerView.VisibilityAnimListener; public onAnimationStart(animator: globalAndroid.animation.Animator): void; public onAnimationEnd(animator: globalAndroid.animation.Animator): void; @@ -8919,9 +8921,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class SearchView extends androidx.appcompat.widget.LinearLayoutCompat implements androidx.appcompat.view.CollapsibleActionView { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); @@ -8933,7 +8935,7 @@ declare module androidx { public getImeOptions(): number; public setInputType(inputType: number): void; public getInputType(): number; - public requestFocus(this_: number, direction: globalAndroid.graphics.Rect): boolean; + public requestFocus(direction: number, previouslyFocusedRect: globalAndroid.graphics.Rect): boolean; public clearFocus(): void; public setOnQueryTextListener(listener: androidx.appcompat.widget.SearchView.OnQueryTextListener): void; public setOnCloseListener(listener: androidx.appcompat.widget.SearchView.OnCloseListener): void; @@ -8965,7 +8967,7 @@ declare module androidx { public onSaveInstanceState(): globalAndroid.os.Parcelable; public onRestoreInstanceState(state: globalAndroid.os.Parcelable): void; } - export module SearchView { + export namespace SearchView { export class AutoCompleteTextViewReflector { public static class: java.lang.Class; } @@ -9028,7 +9030,7 @@ declare module androidx { public onWindowFocusChanged(hasWindowFocus: boolean): void; public onFocusChanged(focused: boolean, direction: number, previouslyFocusedRect: globalAndroid.graphics.Rect): void; public enoughToFilter(): boolean; - public onKeyPreIme(state: number, this_: globalAndroid.view.KeyEvent): boolean; + public onKeyPreIme(keyCode: number, event: globalAndroid.view.KeyEvent): boolean; public onCreateInputConnection(editorInfo: globalAndroid.view.inputmethod.EditorInfo): globalAndroid.view.inputmethod.InputConnection; public setSupportBackgroundTintList(param0: globalAndroid.content.res.ColorStateList | null): void; public getSupportBackgroundTintList(): globalAndroid.content.res.ColorStateList | null; @@ -9046,22 +9048,22 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class ShareActionProvider extends androidx.core.view.ActionProvider { public static class: java.lang.Class; - public static DEFAULT_SHARE_HISTORY_FILE_NAME: string = "share_history.xml"; + public static readonly DEFAULT_SHARE_HISTORY_FILE_NAME = "share_history.xml"; public constructor(context: globalAndroid.content.Context); public setOnShareTargetSelectedListener(listener: androidx.appcompat.widget.ShareActionProvider.OnShareTargetSelectedListener): void; public onCreateActionView(forItem: globalAndroid.view.MenuItem): globalAndroid.view.View; public onCreateActionView(): globalAndroid.view.View; public hasSubMenu(): boolean; - public onPrepareSubMenu(i: globalAndroid.view.SubMenu): void; + public onPrepareSubMenu(subMenu: globalAndroid.view.SubMenu): void; public setShareHistoryFileName(shareHistoryFile: string): void; - public setShareIntent(this_: globalAndroid.content.Intent): void; + public setShareIntent(shareIntent: globalAndroid.content.Intent): void; } - export module ShareActionProvider { + export namespace ShareActionProvider { export class OnShareTargetSelectedListener { public static class: java.lang.Class; /** @@ -9080,16 +9082,16 @@ declare module androidx { } export class ShareMenuItemOnMenuItemClickListener { public static class: java.lang.Class; - public onMenuItemClick(this_: globalAndroid.view.MenuItem): boolean; + public onMenuItemClick(item: globalAndroid.view.MenuItem): boolean; } } } } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class SuggestionsAdapter extends androidx.cursoradapter.widget.ResourceCursorAdapter { public static class: java.lang.Class; /** @deprecated */ @@ -9105,24 +9107,24 @@ declare module androidx { public setQueryRefinement(refineWhat: number): void; public getQueryRefinement(): number; public hasStableIds(): boolean; - public runQueryOnBackgroundThread(this_: string): globalAndroid.database.Cursor; + public runQueryOnBackgroundThread(constraint: string): globalAndroid.database.Cursor; public close(): void; public notifyDataSetChanged(): void; public notifyDataSetInvalidated(): void; - public changeCursor(this_: globalAndroid.database.Cursor): void; + public changeCursor(c: globalAndroid.database.Cursor): void; public newView(context: globalAndroid.content.Context, cursor: globalAndroid.database.Cursor, parent: globalAndroid.view.ViewGroup): globalAndroid.view.View; - public bindView(text2: globalAndroid.view.View, this_: globalAndroid.content.Context, view: globalAndroid.database.Cursor): void; + public bindView(view: globalAndroid.view.View, context: globalAndroid.content.Context, cursor: globalAndroid.database.Cursor): void; public onClick(v: globalAndroid.view.View): void; - public convertToString(text1: globalAndroid.database.Cursor): string; - public getView(tv: number, v: globalAndroid.view.View, e: globalAndroid.view.ViewGroup): globalAndroid.view.View; - public getDropDownView(tv: number, v: globalAndroid.view.View, e: globalAndroid.view.ViewGroup): globalAndroid.view.View; + public convertToString(cursor: globalAndroid.database.Cursor): string; + public getView(position: number, convertView: globalAndroid.view.View, parent: globalAndroid.view.ViewGroup): globalAndroid.view.View; + public getDropDownView(position: number, convertView: globalAndroid.view.View, parent: globalAndroid.view.ViewGroup): globalAndroid.view.View; public static getColumnString(cursor: globalAndroid.database.Cursor, columnName: string): string; public convertToString(param0: globalAndroid.database.Cursor): string; public runQueryOnBackgroundThread(param0: string): globalAndroid.database.Cursor; public getCursor(): globalAndroid.database.Cursor; public changeCursor(param0: globalAndroid.database.Cursor): void; } - export module SuggestionsAdapter { + export namespace SuggestionsAdapter { export class ChildViewCache { public static class: java.lang.Class; public mText1: globalAndroid.widget.TextView; @@ -9137,16 +9139,16 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class SwitchCompat { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet, defStyleAttr: number); public setSwitchTextAppearance(context: globalAndroid.content.Context, resid: number): void; - public setSwitchTypeface(need: globalAndroid.graphics.Typeface, this_: number): void; + public setSwitchTypeface(tf: globalAndroid.graphics.Typeface, style: number): void; public setSwitchTypeface(typeface: globalAndroid.graphics.Typeface): void; public setSwitchPadding(pixels: number): void; public getSwitchPadding(): number; @@ -9176,14 +9178,14 @@ declare module androidx { public setTextOff(textOff: string): void; public setShowText(showText: boolean): void; public getShowText(): boolean; - public onMeasure(thumbHeight: number, maxTextWidth: number): void; + public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; public onPopulateAccessibilityEvent(event: globalAndroid.view.accessibility.AccessibilityEvent): void; - public onTouchEvent(y: globalAndroid.view.MotionEvent): boolean; + public onTouchEvent(ev: globalAndroid.view.MotionEvent): boolean; public toggle(): void; public setChecked(checked: boolean): void; - public onLayout(insets: boolean, switchRight: number, switchLeft: number, this_: number, changed: number): void; - public draw(trackLeft: globalAndroid.graphics.Canvas): void; - public onDraw(saveCount: globalAndroid.graphics.Canvas): void; + public onLayout(changed: boolean, left: number, top: number, right: number, bottom: number): void; + public draw(c: globalAndroid.graphics.Canvas): void; + public onDraw(canvas: globalAndroid.graphics.Canvas): void; public getCompoundPaddingLeft(): number; public getCompoundPaddingRight(): number; public onCreateDrawableState(extraSpace: number): androidNative.Array; @@ -9192,30 +9194,30 @@ declare module androidx { public verifyDrawable(who: globalAndroid.graphics.drawable.Drawable): boolean; public jumpDrawablesToCurrentState(): void; public onInitializeAccessibilityEvent(event: globalAndroid.view.accessibility.AccessibilityEvent): void; - public onInitializeAccessibilityNodeInfo(oldText: globalAndroid.view.accessibility.AccessibilityNodeInfo): void; + public onInitializeAccessibilityNodeInfo(info: globalAndroid.view.accessibility.AccessibilityNodeInfo): void; public setCustomSelectionActionModeCallback(actionModeCallback: globalAndroid.view.ActionMode.Callback): void; } } } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class ThemeUtils { public static class: java.lang.Class; public static createDisabledStateList(textColor: number, disabledTextColor: number): globalAndroid.content.res.ColorStateList; public static getThemeAttrColor(context: globalAndroid.content.Context, attr: number): number; public static getThemeAttrColorStateList(context: globalAndroid.content.Context, attr: number): globalAndroid.content.res.ColorStateList; - public static getDisabledThemeAttrColor(tv: globalAndroid.content.Context, disabledAlpha: number): number; + public static getDisabledThemeAttrColor(context: globalAndroid.content.Context, attr: number): number; } } } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class ThemedSpinnerAdapter { public static class: java.lang.Class; /** @@ -9229,11 +9231,11 @@ declare module androidx { public setDropDownViewTheme(param0: globalAndroid.content.res.Resources.Theme | null): void; public getDropDownViewTheme(): globalAndroid.content.res.Resources.Theme | null; } - export module ThemedSpinnerAdapter { + export namespace ThemedSpinnerAdapter { export class Helper { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); - public setDropDownViewTheme(this_: globalAndroid.content.res.Resources.Theme | null): void; + public setDropDownViewTheme(theme: globalAndroid.content.res.Resources.Theme | null): void; public getDropDownViewTheme(): globalAndroid.content.res.Resources.Theme | null; public getDropDownViewInflater(): globalAndroid.view.LayoutInflater; } @@ -9242,12 +9244,12 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class TintContextWrapper { public static class: java.lang.Class; - public static wrap(ref: globalAndroid.content.Context): globalAndroid.content.Context; + public static wrap(context: globalAndroid.content.Context): globalAndroid.content.Context; public getTheme(): globalAndroid.content.res.Resources.Theme; public setTheme(resid: number): void; public getResources(): globalAndroid.content.res.Resources; @@ -9257,9 +9259,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class TintInfo { public static class: java.lang.Class; public mTintList: globalAndroid.content.res.ColorStateList; @@ -9271,9 +9273,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class TintResources extends androidx.appcompat.widget.ResourcesWrapper { public static class: java.lang.Class; public constructor(resources: globalAndroid.content.res.Resources); @@ -9285,16 +9287,16 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class TintTypedArray { public static class: java.lang.Class; public static obtainStyledAttributes(context: globalAndroid.content.Context, set: globalAndroid.util.AttributeSet, attrs: androidNative.Array): androidx.appcompat.widget.TintTypedArray; public static obtainStyledAttributes(context: globalAndroid.content.Context, set: globalAndroid.util.AttributeSet, attrs: androidNative.Array, defStyleAttr: number, defStyleRes: number): androidx.appcompat.widget.TintTypedArray; public static obtainStyledAttributes(context: globalAndroid.content.Context, resid: number, attrs: androidNative.Array): androidx.appcompat.widget.TintTypedArray; - public getDrawable(this_: number): globalAndroid.graphics.drawable.Drawable; - public getDrawableIfKnown(this_: number): globalAndroid.graphics.drawable.Drawable; + public getDrawable(index: number): globalAndroid.graphics.drawable.Drawable; + public getDrawableIfKnown(index: number): globalAndroid.graphics.drawable.Drawable; public getFont(index: number, style: number, fontCallback: androidx.core.content.res.ResourcesCompat.FontCallback | null): globalAndroid.graphics.Typeface | null; public length(): number; public getIndexCount(): number; @@ -9307,7 +9309,7 @@ declare module androidx { public getInt(index: number, defValue: number): number; public getFloat(index: number, defValue: number): number; public getColor(index: number, defValue: number): number; - public getColorStateList(resourceId: number): globalAndroid.content.res.ColorStateList; + public getColorStateList(index: number): globalAndroid.content.res.ColorStateList; public getInteger(index: number, defValue: number): number; public getDimension(index: number, defValue: number): number; public getDimensionPixelOffset(index: number, defValue: number): number; @@ -9329,9 +9331,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class Toolbar { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); @@ -9367,10 +9369,10 @@ declare module androidx { public collapseActionView(): void; public getTitle(): string; public setTitle(resId: number): void; - public setTitle(this_: string): void; + public setTitle(title: string): void; public getSubtitle(): string; public setSubtitle(resId: number): void; - public setSubtitle(this_: string): void; + public setSubtitle(subtitle: string): void; public setTitleTextAppearance(context: globalAndroid.content.Context, resId: number): void; public setSubtitleTextAppearance(context: globalAndroid.content.Context, resId: number): void; public setTitleTextColor(color: number): void; @@ -9408,12 +9410,12 @@ declare module androidx { public getCurrentContentInsetLeft(): number; public getCurrentContentInsetRight(): number; public onSaveInstanceState(): globalAndroid.os.Parcelable; - public onRestoreInstanceState(this_: globalAndroid.os.Parcelable): void; + public onRestoreInstanceState(state: globalAndroid.os.Parcelable): void; public onDetachedFromWindow(): void; - public onTouchEvent(this_: globalAndroid.view.MotionEvent): boolean; - public onHoverEvent(this_: globalAndroid.view.MotionEvent): boolean; - public onMeasure(marginEndIndex: number, child: number): void; - public onLayout(lp: boolean, spaceBelow: number, space: number, spaceAbove: number, lp: number): void; + public onTouchEvent(ev: globalAndroid.view.MotionEvent): boolean; + public onHoverEvent(ev: globalAndroid.view.MotionEvent): boolean; + public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; + public onLayout(changed: boolean, l: number, t: number, r: number, b: number): void; public generateLayoutParams(attrs: globalAndroid.util.AttributeSet): androidx.appcompat.widget.Toolbar.LayoutParams; public generateLayoutParams(p: globalAndroid.view.ViewGroup.LayoutParams): androidx.appcompat.widget.Toolbar.LayoutParams; public generateDefaultLayoutParams(): androidx.appcompat.widget.Toolbar.LayoutParams; @@ -9422,17 +9424,17 @@ declare module androidx { public setCollapsible(collapsible: boolean): void; public setMenuCallbacks(pcb: androidx.appcompat.view.menu.MenuPresenter.Callback, mcb: androidx.appcompat.view.menu.MenuBuilder.Callback): void; } - export module Toolbar { + export namespace Toolbar { export class ExpandedActionViewMenuPresenter extends androidx.appcompat.view.menu.MenuPresenter { public static class: java.lang.Class; public initForMenu(context: globalAndroid.content.Context, menu: androidx.appcompat.view.menu.MenuBuilder): void; public getMenuView(root: globalAndroid.view.ViewGroup): androidx.appcompat.view.menu.MenuView; - public updateMenuView(i: boolean): void; + public updateMenuView(cleared: boolean): void; public setCallback(cb: androidx.appcompat.view.menu.MenuPresenter.Callback): void; public onSubMenuSelected(subMenu: androidx.appcompat.view.menu.SubMenuBuilder): boolean; public onCloseMenu(menu: androidx.appcompat.view.menu.MenuBuilder, allMenusAreClosing: boolean): void; public flagActionItems(): boolean; - public expandItemActionView(this_: androidx.appcompat.view.menu.MenuBuilder, menu: androidx.appcompat.view.menu.MenuItemImpl): boolean; + public expandItemActionView(menu: androidx.appcompat.view.menu.MenuBuilder, item: androidx.appcompat.view.menu.MenuItemImpl): boolean; public collapseItemActionView(menu: androidx.appcompat.view.menu.MenuBuilder, item: androidx.appcompat.view.menu.MenuItemImpl): boolean; public getId(): number; public onSaveInstanceState(): globalAndroid.os.Parcelable; @@ -9483,13 +9485,13 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class ToolbarWidgetWrapper extends androidx.appcompat.widget.DecorToolbar { public static class: java.lang.Class; public constructor(toolbar: androidx.appcompat.widget.Toolbar, style: boolean); - public constructor(title: androidx.appcompat.widget.Toolbar, subtitle: boolean, logo: number, icon: number); + public constructor(toolbar: androidx.appcompat.widget.Toolbar, style: boolean, defaultNavigationContentDescription: number, defaultNavigationIcon: number); public setDefaultNavigationContentDescription(defaultNavigationContentDescription: number): void; public getViewGroup(): globalAndroid.view.ViewGroup; public getContext(): globalAndroid.content.Context; @@ -9519,13 +9521,13 @@ declare module androidx { public dismissPopupMenus(): void; public getDisplayOptions(): number; public setDisplayOptions(newOpts: number): void; - public setEmbeddedTabView(this_: androidx.appcompat.widget.ScrollingTabContainerView): void; + public setEmbeddedTabView(tabView: androidx.appcompat.widget.ScrollingTabContainerView): void; public hasEmbeddedTabs(): boolean; public isTitleTruncated(): boolean; public setCollapsible(collapsible: boolean): void; public setHomeButtonEnabled(enable: boolean): void; public getNavigationMode(): number; - public setNavigationMode(this_: number): void; + public setNavigationMode(mode: number): void; public setDropdownParams(adapter: globalAndroid.widget.SpinnerAdapter, listener: globalAndroid.widget.AdapterView.OnItemSelectedListener): void; public setDropdownSelectedPosition(position: number): void; public getDropdownSelectedPosition(): number; @@ -9582,9 +9584,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class TooltipCompat { public static class: java.lang.Class; public static setTooltipText(view: globalAndroid.view.View, tooltipText: string | null): void; @@ -9593,9 +9595,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class TooltipCompatHandler { public static class: java.lang.Class; public static setTooltipText(view: globalAndroid.view.View, tooltipText: string): void; @@ -9608,9 +9610,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class TooltipPopup { public static class: java.lang.Class; } @@ -9618,12 +9620,12 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class VectorEnabledTintResources { public static class: java.lang.Class; - public static MAX_SDK_WHERE_REQUIRED: number = 20; + public static readonly MAX_SDK_WHERE_REQUIRED = 20; public static shouldBeUsed(): boolean; public constructor(context: globalAndroid.content.Context, res: globalAndroid.content.res.Resources); public getDrawable(id: number): globalAndroid.graphics.drawable.Drawable; @@ -9634,9 +9636,9 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class ViewStubCompat { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); @@ -9650,11 +9652,11 @@ declare module androidx { public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; public draw(canvas: globalAndroid.graphics.Canvas): void; public dispatchDraw(canvas: globalAndroid.graphics.Canvas): void; - public setVisibility(this_: number): void; + public setVisibility(visibility: number): void; public inflate(): globalAndroid.view.View; public setOnInflateListener(inflateListener: androidx.appcompat.widget.ViewStubCompat.OnInflateListener): void; } - export module ViewStubCompat { + export namespace ViewStubCompat { export class OnInflateListener { public static class: java.lang.Class; /** @@ -9671,22 +9673,22 @@ declare module androidx { } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class ViewUtils { public static class: java.lang.Class; public static isLayoutRtl(view: globalAndroid.view.View): boolean; - public static computeFitSystemWindows(e: globalAndroid.view.View, view: globalAndroid.graphics.Rect, inoutInsets: globalAndroid.graphics.Rect): void; - public static makeOptionalFitsSystemWindows(method: globalAndroid.view.View): void; + public static computeFitSystemWindows(view: globalAndroid.view.View, inoutInsets: globalAndroid.graphics.Rect, outLocalInsets: globalAndroid.graphics.Rect): void; + public static makeOptionalFitsSystemWindows(view: globalAndroid.view.View): void; } } } } -declare module androidx { - export module appcompat { - export module widget { +declare namespace androidx { + export namespace appcompat { + export namespace widget { export class WithHint { public static class: java.lang.Class; /** @@ -9702,10 +9704,10 @@ declare module androidx { } } -declare module androidx { - export module arch { - export module core { - export module executor { +declare namespace androidx { + export namespace arch { + export namespace core { + export namespace executor { export class ArchTaskExecutor extends androidx.arch.core.executor.TaskExecutor { public static class: java.lang.Class; public static getInstance(): androidx.arch.core.executor.ArchTaskExecutor; @@ -9721,10 +9723,10 @@ declare module androidx { } } -declare module androidx { - export module arch { - export module core { - export module executor { +declare namespace androidx { + export namespace arch { + export namespace core { + export namespace executor { export class DefaultTaskExecutor extends androidx.arch.core.executor.TaskExecutor { public static class: java.lang.Class; public constructor(); @@ -9737,10 +9739,10 @@ declare module androidx { } } -declare module androidx { - export module arch { - export module core { - export module executor { +declare namespace androidx { + export namespace arch { + export namespace core { + export namespace executor { export abstract class TaskExecutor { public static class: java.lang.Class; public constructor(); @@ -9754,10 +9756,10 @@ declare module androidx { } } -declare module androidx { - export module arch { - export module core { - export module internal { +declare namespace androidx { + export namespace arch { + export namespace core { + export namespace internal { export class FastSafeIterableMap extends androidx.arch.core.internal.SafeIterableMap { public static class: java.lang.Class>; public constructor(); @@ -9772,28 +9774,28 @@ declare module androidx { } } -declare module androidx { - export module arch { - export module core { - export module internal { +declare namespace androidx { + export namespace arch { + export namespace core { + export namespace internal { export class SafeIterableMap extends java.lang.Iterable> { public static class: java.lang.Class>; public constructor(); public get(k: any): androidx.arch.core.internal.SafeIterableMap.Entry; public putIfAbsent(key: any, v: any): any; public put(key: any, v: any): androidx.arch.core.internal.SafeIterableMap.Entry; - public remove(this_: any): any; + public remove(key: any): any; public size(): number; public iterator(): java.util.Iterator>; public descendingIterator(): java.util.Iterator>; public iteratorWithAdditions(): androidx.arch.core.internal.SafeIterableMap.IteratorWithAdditions; public eldest(): java.util.Map.Entry; public newest(): java.util.Map.Entry; - public equals(next2: any): boolean; + public equals(obj: any): boolean; public hashCode(): number; public toString(): string; } - export module SafeIterableMap { + export namespace SafeIterableMap { export class AscendingIterator extends androidx.arch.core.internal.SafeIterableMap.ListIterator { public static class: java.lang.Class>; public supportRemove(param0: androidx.arch.core.internal.SafeIterableMap.Entry): void; @@ -9842,10 +9844,10 @@ declare module androidx { } } -declare module androidx { - export module arch { - export module core { - export module util { +declare namespace androidx { + export namespace arch { + export namespace core { + export namespace util { export class Function extends java.lang.Object { public static class: java.lang.Class>; /** @@ -9862,19 +9864,19 @@ declare module androidx { } } -declare module androidx { - export module asynclayoutinflater { - export module view { +declare namespace androidx { + export namespace asynclayoutinflater { + export namespace view { export class AsyncLayoutInflater { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); public inflate(resid: number, parent: globalAndroid.view.ViewGroup | null, callback: androidx.asynclayoutinflater.view.AsyncLayoutInflater.OnInflateFinishedListener): void; } - export module AsyncLayoutInflater { + export namespace AsyncLayoutInflater { export class BasicInflater { public static class: java.lang.Class; public cloneInContext(newContext: globalAndroid.content.Context): globalAndroid.view.LayoutInflater; - public onCreateView(prefix: string, this_: globalAndroid.util.AttributeSet): globalAndroid.view.View; + public onCreateView(name: string, attrs: globalAndroid.util.AttributeSet): globalAndroid.view.View; } export class InflateRequest { public static class: java.lang.Class; @@ -9886,7 +9888,7 @@ declare module androidx { public run(): void; public obtainRequest(): androidx.asynclayoutinflater.view.AsyncLayoutInflater.InflateRequest; public releaseRequest(obj: androidx.asynclayoutinflater.view.AsyncLayoutInflater.InflateRequest): void; - public enqueue(this_: androidx.asynclayoutinflater.view.AsyncLayoutInflater.InflateRequest): void; + public enqueue(request: androidx.asynclayoutinflater.view.AsyncLayoutInflater.InflateRequest): void; } export class OnInflateFinishedListener { public static class: java.lang.Class; @@ -9904,20 +9906,20 @@ declare module androidx { } } -declare module androidx { - export module cardview { - export module widget { +declare namespace androidx { + export namespace cardview { + export namespace widget { export class CardView { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet | null); - public constructor(aa: globalAndroid.content.Context, themeColorBackground: globalAndroid.util.AttributeSet | null, hsv: number); + public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet | null, defStyleAttr: number); public setPadding(left: number, top: number, right: number, bottom: number): void; public setPaddingRelative(start: number, top: number, end: number, bottom: number): void; public getUseCompatPadding(): boolean; public setUseCompatPadding(useCompatPadding: boolean): void; public setContentPadding(left: number, top: number, right: number, bottom: number): void; - public onMeasure(minHeight: number, widthMode: number): void; + public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; public setMinimumWidth(minWidth: number): void; public setMinimumHeight(minHeight: number): void; public setCardBackgroundColor(color: number): void; @@ -9940,9 +9942,9 @@ declare module androidx { } } -declare module androidx { - export module cardview { - export module widget { +declare namespace androidx { + export namespace cardview { + export namespace widget { export class CardViewApi17Impl extends androidx.cardview.widget.CardViewBaseImpl { public static class: java.lang.Class; public initStatic(): void; @@ -9965,9 +9967,9 @@ declare module androidx { } } -declare module androidx { - export module cardview { - export module widget { +declare namespace androidx { + export namespace cardview { + export namespace widget { export class CardViewApi21Impl extends androidx.cardview.widget.CardViewImpl { public static class: java.lang.Class; public initialize(cardView: androidx.cardview.widget.CardViewDelegate, context: globalAndroid.content.Context, backgroundColor: globalAndroid.content.res.ColorStateList, radius: number, elevation: number, maxElevation: number): void; @@ -10004,9 +10006,9 @@ declare module androidx { } } -declare module androidx { - export module cardview { - export module widget { +declare namespace androidx { + export namespace cardview { + export namespace widget { export class CardViewBaseImpl extends androidx.cardview.widget.CardViewImpl { public static class: java.lang.Class; public initStatic(): void; @@ -10043,9 +10045,9 @@ declare module androidx { } } -declare module androidx { - export module cardview { - export module widget { +declare namespace androidx { + export namespace cardview { + export namespace widget { export class CardViewDelegate { public static class: java.lang.Class; /** @@ -10073,9 +10075,9 @@ declare module androidx { } } -declare module androidx { - export module cardview { - export module widget { +declare namespace androidx { + export namespace cardview { + export namespace widget { export class CardViewImpl { public static class: java.lang.Class; /** @@ -10119,12 +10121,12 @@ declare module androidx { } } -declare module androidx { - export module cardview { - export module widget { +declare namespace androidx { + export namespace cardview { + export namespace widget { export class RoundRectDrawable { public static class: java.lang.Class; - public draw(this_: globalAndroid.graphics.Canvas): void; + public draw(canvas: globalAndroid.graphics.Canvas): void; public onBoundsChange(bounds: globalAndroid.graphics.Rect): void; public getOutline(outline: any): void; public setAlpha(alpha: number): void; @@ -10142,9 +10144,9 @@ declare module androidx { } } -declare module androidx { - export module cardview { - export module widget { +declare namespace androidx { + export namespace cardview { + export namespace widget { export class RoundRectDrawableWithShadow { public static class: java.lang.Class; public setAlpha(alpha: number): void; @@ -10156,7 +10158,7 @@ declare module androidx { public getOpacity(): number; public draw(canvas: globalAndroid.graphics.Canvas): void; } - export module RoundRectDrawableWithShadow { + export namespace RoundRectDrawableWithShadow { export class RoundRectHelper { public static class: java.lang.Class; /** @@ -10173,8 +10175,8 @@ declare module androidx { } } -declare module androidx { - export module collection { +declare namespace androidx { + export namespace collection { export class ArrayMap extends java.util.Map { public static class: java.lang.Class>; public constructor(capacity: number); @@ -10182,8 +10184,8 @@ declare module androidx { public constructor(); public constructor(map: androidx.collection.SimpleArrayMap); public containsAll(collection: java.util.Collection): boolean; - public putAll(this_: androidx.collection.SimpleArrayMap): void; - public putAll(this_: java.util.Map): void; + public putAll(array: androidx.collection.SimpleArrayMap): void; + public putAll(map: java.util.Map): void; public removeAll(collection: java.util.Collection): boolean; public retainAll(collection: java.util.Collection): boolean; public entrySet(): java.util.Set>; @@ -10193,8 +10195,8 @@ declare module androidx { } } -declare module androidx { - export module collection { +declare namespace androidx { + export namespace collection { export class ArraySet extends java.lang.Object { public static class: java.lang.Class>; public constructor(); @@ -10202,45 +10204,45 @@ declare module androidx { public constructor(set: androidx.collection.ArraySet | null); public constructor(set: java.util.Collection | null); public clear(): void; - public ensureCapacity(oarray: number): void; + public ensureCapacity(minimumCapacity: number): void; public contains(key: any): boolean; public indexOf(key: any): number; public valueAt(index: number): E | null; public isEmpty(): boolean; - public add(index: E | null): boolean; + public add(value: E | null): boolean; public append(value: E): void; - public addAll(this_: androidx.collection.ArraySet): void; + public addAll(array: androidx.collection.ArraySet): void; public remove(object: any): boolean; - public removeAt(ohashes: number): E; - public removeAll(this_: androidx.collection.ArraySet): boolean; + public removeAt(index: number): E; + public removeAll(array: androidx.collection.ArraySet): boolean; public size(): number; public toArray(): androidNative.Array; - public toArray(this_: androidNative.Array): androidNative.Array; - public equals(i: any): boolean; + public toArray(array: androidNative.Array): androidNative.Array; + public equals(object: any): boolean; public hashCode(): number; public toString(): string; public iterator(): java.util.Iterator; - public containsAll(this_: java.util.Collection): boolean; - public addAll(this_: java.util.Collection): boolean; - public removeAll(this_: java.util.Collection): boolean; - public retainAll(this_: java.util.Collection): boolean; + public containsAll(collection: java.util.Collection): boolean; + public addAll(collection: java.util.Collection): boolean; + public removeAll(collection: java.util.Collection): boolean; + public retainAll(collection: java.util.Collection): boolean; } } } -declare module androidx { - export module collection { +declare namespace androidx { + export namespace collection { export class CircularArray extends java.lang.Object { public static class: java.lang.Class>; public constructor(); - public constructor(this_: number); + public constructor(minCapacity: number); public addFirst(e: E): void; public addLast(e: E): void; public popFirst(): E; public popLast(): E; public clear(): void; - public removeFromStart(i: number): void; - public removeFromEnd(i: number): void; + public removeFromStart(numOfElements: number): void; + public removeFromEnd(numOfElements: number): void; public getFirst(): E; public getLast(): E; public get(n: number): E; @@ -10250,12 +10252,12 @@ declare module androidx { } } -declare module androidx { - export module collection { +declare namespace androidx { + export namespace collection { export class CircularIntArray { public static class: java.lang.Class; public constructor(); - public constructor(this_: number); + public constructor(minCapacity: number); public addFirst(e: number): void; public addLast(e: number): void; public popFirst(): number; @@ -10272,20 +10274,20 @@ declare module androidx { } } -declare module androidx { - export module collection { +declare namespace androidx { + export namespace collection { export class ContainerHelpers { public static class: java.lang.Class; public static idealIntArraySize(need: number): number; public static idealLongArraySize(need: number): number; - public static idealByteArraySize(i: number): number; + public static idealByteArraySize(need: number): number; public static equal(a: any, b: any): boolean; } } } -declare module androidx { - export module collection { +declare namespace androidx { + export namespace collection { export class LongSparseArray extends java.lang.Cloneable { public static class: java.lang.Class>; public constructor(); @@ -10295,12 +10297,12 @@ declare module androidx { public get(key: number, valueIfKeyNotFound: any): any; public delete(key: number): void; public remove(key: number): void; - public remove(this_: number, key: any): boolean; + public remove(key: number, value: any): boolean; public removeAt(index: number): void; - public replace(this_: number, key: any): any; - public replace(this_: number, key: any, oldValue: any): boolean; - public put(nkeys: number, nvalues: any): void; - public putAll(size: androidx.collection.LongSparseArray): void; + public replace(key: number, value: any): any; + public replace(key: number, oldValue: any, newValue: any): boolean; + public put(key: number, value: any): void; + public putAll(other: androidx.collection.LongSparseArray): void; public putIfAbsent(key: number, value: any): any; public size(): number; public isEmpty(): boolean; @@ -10308,25 +10310,25 @@ declare module androidx { public valueAt(index: number): any; public setValueAt(index: number, value: any): void; public indexOfKey(key: number): number; - public indexOfValue(this_: any): number; + public indexOfValue(value: any): number; public containsKey(key: number): boolean; public containsValue(value: any): boolean; public clear(): void; - public append(nkeys: number, nvalues: any): void; + public append(key: number, value: any): void; public toString(): string; } } } -declare module androidx { - export module collection { +declare namespace androidx { + export namespace collection { export class LruCache extends java.lang.Object { public static class: java.lang.Class>; public constructor(maxSize: number); public resize(maxSize: number): void; public get(key: K): V | null; public put(key: K, value: V): V | null; - public trimToSize(key: number): void; + public trimToSize(maxSize: number): void; public remove(key: K): V | null; public entryRemoved(evicted: boolean, key: K, oldValue: V, newValue: V | null): void; public create(key: K): V | null; @@ -10345,16 +10347,16 @@ declare module androidx { } } -declare module androidx { - export module collection { +declare namespace androidx { + export namespace collection { export abstract class MapCollections extends java.lang.Object { public static class: java.lang.Class>; public static containsAllHelper(map: java.util.Map, collection: java.util.Collection): boolean; public static removeAllHelper(map: java.util.Map, collection: java.util.Collection): boolean; public static retainAllHelper(map: java.util.Map, collection: java.util.Collection): boolean; - public toArrayHelper(this_: number): androidNative.Array; - public toArrayHelper(i: androidNative.Array, this_: number): androidNative.Array; - public static equalsSetHelper(ignored: java.util.Set, ignored: any): boolean; + public toArrayHelper(offset: number): androidNative.Array; + public toArrayHelper(array: androidNative.Array, offset: number): androidNative.Array; + public static equalsSetHelper(set: java.util.Set, object: any): boolean; public getEntrySet(): java.util.Set>; public getKeySet(): java.util.Set; public getValues(): java.util.Collection; @@ -10368,7 +10370,7 @@ declare module androidx { public colRemoveAt(param0: number): void; public colClear(): void; } - export module MapCollections { + export namespace MapCollections { export class ArrayIterator extends java.util.Iterator { public static class: java.lang.Class>; public hasNext(): boolean; @@ -10378,7 +10380,7 @@ declare module androidx { export class EntrySet extends java.util.Set> { public static class: java.lang.Class; public add(object: java.util.Map.Entry): boolean; - public addAll(this_: java.util.Collection): boolean; + public addAll(collection: java.util.Collection): boolean; public clear(): void; public contains(o: any): boolean; public containsAll(collection: java.util.Collection): boolean; @@ -10433,8 +10435,8 @@ declare module androidx { public isEmpty(): boolean; public iterator(): java.util.Iterator; public remove(object: any): boolean; - public removeAll(i: java.util.Collection): boolean; - public retainAll(i: java.util.Collection): boolean; + public removeAll(collection: java.util.Collection): boolean; + public retainAll(collection: java.util.Collection): boolean; public size(): number; public toArray(): androidNative.Array; public toArray(array: androidNative.Array): androidNative.Array; @@ -10443,15 +10445,15 @@ declare module androidx { } } -declare module androidx { - export module collection { +declare namespace androidx { + export namespace collection { export class SimpleArrayMap extends java.lang.Object { public static class: java.lang.Class>; public constructor(); public constructor(capacity: number); public constructor(map: androidx.collection.SimpleArrayMap); public clear(): void; - public ensureCapacity(oarray: number): void; + public ensureCapacity(minimumCapacity: number): void; public containsKey(key: any): boolean; public indexOfKey(key: any): number; public containsValue(value: any): boolean; @@ -10461,24 +10463,24 @@ declare module androidx { public valueAt(index: number): V; public setValueAt(index: number, value: V): V; public isEmpty(): boolean; - public put(index: K, old: V): V | null; - public putAll(this_: androidx.collection.SimpleArrayMap): void; + public put(key: K, value: V): V | null; + public putAll(array: androidx.collection.SimpleArrayMap): void; public putIfAbsent(key: K, value: V): V | null; public remove(key: any): V | null; - public remove(this_: any, key: any): boolean; - public removeAt(n: number): V; + public remove(key: any, value: any): boolean; + public removeAt(index: number): V; public replace(key: K, value: V): V | null; - public replace(this_: K, key: V, oldValue: V): boolean; + public replace(key: K, oldValue: V, newValue: V): boolean; public size(): number; - public equals(mine: any): boolean; + public equals(object: any): boolean; public hashCode(): number; public toString(): string; } } } -declare module androidx { - export module collection { +declare namespace androidx { + export namespace collection { export class SparseArrayCompat extends java.lang.Cloneable { public static class: java.lang.Class>; public constructor(); @@ -10488,13 +10490,13 @@ declare module androidx { public get(key: number, valueIfKeyNotFound: any): any; public delete(key: number): void; public remove(key: number): void; - public remove(this_: number, key: any): boolean; + public remove(key: number, value: any): boolean; public removeAt(index: number): void; - public removeAtRange(this_: number, index: number): void; - public replace(this_: number, key: any): any; - public replace(this_: number, key: any, oldValue: any): boolean; - public put(nkeys: number, nvalues: any): void; - public putAll(size: androidx.collection.SparseArrayCompat): void; + public removeAtRange(index: number, size: number): void; + public replace(key: number, value: any): any; + public replace(key: number, oldValue: any, newValue: any): boolean; + public put(key: number, value: any): void; + public putAll(other: androidx.collection.SparseArrayCompat): void; public putIfAbsent(key: number, value: any): any; public size(): number; public isEmpty(): boolean; @@ -10502,24 +10504,24 @@ declare module androidx { public valueAt(index: number): any; public setValueAt(index: number, value: any): void; public indexOfKey(key: number): number; - public indexOfValue(this_: any): number; + public indexOfValue(value: any): number; public containsKey(key: number): boolean; public containsValue(value: any): boolean; public clear(): void; - public append(nkeys: number, nvalues: any): void; + public append(key: number, value: any): void; public toString(): string; } } } -declare module androidx { - export module coordinatorlayout { - export module widget { +declare namespace androidx { + export namespace coordinatorlayout { + export namespace widget { export class CoordinatorLayout implements androidx.core.view.NestedScrollingParent2 { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet | null); - public constructor(res: globalAndroid.content.Context, density: globalAndroid.util.AttributeSet | null, count: number); + public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet | null, defStyleAttr: number); public setOnHierarchyChangeListener(onHierarchyChangeListener: globalAndroid.view.ViewGroup.OnHierarchyChangeListener): void; public onAttachedToWindow(): void; public onDetachedFromWindow(): void; @@ -10532,40 +10534,40 @@ declare module androidx { public setStatusBarBackgroundColor(color: number): void; public getLastWindowInsets(): androidx.core.view.WindowInsetsCompat; public onInterceptTouchEvent(ev: globalAndroid.view.MotionEvent): boolean; - public onTouchEvent(b: globalAndroid.view.MotionEvent): boolean; + public onTouchEvent(ev: globalAndroid.view.MotionEvent): boolean; public requestDisallowInterceptTouchEvent(disallowIntercept: boolean): void; public getSuggestedMinimumWidth(): number; public getSuggestedMinimumHeight(): number; public onMeasureChild(child: globalAndroid.view.View, parentWidthMeasureSpec: number, widthUsed: number, parentHeightMeasureSpec: number, heightUsed: number): void; - public onMeasure(keylineGravity: number, horizInsets: number): void; + public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; public onLayoutChild(child: globalAndroid.view.View, layoutDirection: number): void; - public onLayout(lp: boolean, behavior: number, i: number, this_: number, changed: number): void; - public onDraw(this_: globalAndroid.graphics.Canvas): void; + public onLayout(changed: boolean, l: number, t: number, r: number, b: number): void; + public onDraw(c: globalAndroid.graphics.Canvas): void; public setFitsSystemWindows(fitSystemWindows: boolean): void; - public drawChild(scrimAlpha: globalAndroid.graphics.Canvas, this_: globalAndroid.view.View, canvas: number): boolean; - public dispatchDependentViewsChanged(lp: globalAndroid.view.View): void; + public drawChild(canvas: globalAndroid.graphics.Canvas, child: globalAndroid.view.View, drawingTime: number): boolean; + public dispatchDependentViewsChanged(view: globalAndroid.view.View): void; public getDependencies(child: globalAndroid.view.View): java.util.List; public getDependents(child: globalAndroid.view.View): java.util.List; public isPointInChildBounds(child: globalAndroid.view.View, x: number, y: number): boolean; - public doViewsOverlap(secondRect: globalAndroid.view.View, this_: globalAndroid.view.View): boolean; + public doViewsOverlap(first: globalAndroid.view.View, second: globalAndroid.view.View): boolean; public generateLayoutParams(attrs: globalAndroid.util.AttributeSet): androidx.coordinatorlayout.widget.CoordinatorLayout.LayoutParams; public generateLayoutParams(p: globalAndroid.view.ViewGroup.LayoutParams): androidx.coordinatorlayout.widget.CoordinatorLayout.LayoutParams; public generateDefaultLayoutParams(): androidx.coordinatorlayout.widget.CoordinatorLayout.LayoutParams; public checkLayoutParams(p: globalAndroid.view.ViewGroup.LayoutParams): boolean; public onStartNestedScroll(child: globalAndroid.view.View, target: globalAndroid.view.View, nestedScrollAxes: number): boolean; - public onStartNestedScroll(view: globalAndroid.view.View, lp: globalAndroid.view.View, viewBehavior: number, i: number): boolean; + public onStartNestedScroll(child: globalAndroid.view.View, target: globalAndroid.view.View, axes: number, type: number): boolean; public onNestedScrollAccepted(child: globalAndroid.view.View, target: globalAndroid.view.View, nestedScrollAxes: number): void; - public onNestedScrollAccepted(lp: globalAndroid.view.View, viewBehavior: globalAndroid.view.View, i: number, this_: number): void; + public onNestedScrollAccepted(child: globalAndroid.view.View, target: globalAndroid.view.View, nestedScrollAxes: number, type: number): void; public onStopNestedScroll(target: globalAndroid.view.View): void; - public onStopNestedScroll(lp: globalAndroid.view.View, viewBehavior: number): void; + public onStopNestedScroll(target: globalAndroid.view.View, type: number): void; public onNestedScroll(target: globalAndroid.view.View, dxConsumed: number, dyConsumed: number, dxUnconsumed: number, dyUnconsumed: number): void; - public onNestedScroll(lp: globalAndroid.view.View, viewBehavior: number, i: number, this_: number, target: number, dxConsumed: number): void; + public onNestedScroll(target: globalAndroid.view.View, dxConsumed: number, dyConsumed: number, dxUnconsumed: number, dyUnconsumed: number, type: number): void; public onNestedPreScroll(target: globalAndroid.view.View, dx: number, dy: number, consumed: androidNative.Array): void; - public onNestedPreScroll(lp: globalAndroid.view.View, viewBehavior: number, i: number, this_: androidNative.Array, target: number): void; - public onNestedFling(lp: globalAndroid.view.View, viewBehavior: number, i: number, this_: boolean): boolean; - public onNestedPreFling(lp: globalAndroid.view.View, viewBehavior: number, i: number): boolean; + public onNestedPreScroll(target: globalAndroid.view.View, dx: number, dy: number, consumed: androidNative.Array, type: number): void; + public onNestedFling(target: globalAndroid.view.View, velocityX: number, velocityY: number, consumed: boolean): boolean; + public onNestedPreFling(target: globalAndroid.view.View, velocityX: number, velocityY: number): boolean; public getNestedScrollAxes(): number; - public onRestoreInstanceState(child: globalAndroid.os.Parcelable): void; + public onRestoreInstanceState(state: globalAndroid.os.Parcelable): void; public onSaveInstanceState(): globalAndroid.os.Parcelable; public requestChildRectangleOnScreen(child: globalAndroid.view.View, rectangle: globalAndroid.graphics.Rect, immediate: boolean): boolean; public onStartNestedScroll(param0: globalAndroid.view.View, param1: globalAndroid.view.View, param2: number, param3: number): boolean; @@ -10581,7 +10583,7 @@ declare module androidx { public onNestedFling(param0: globalAndroid.view.View, param1: number, param2: number, param3: boolean): boolean; public onNestedPreFling(param0: globalAndroid.view.View, param1: number, param2: number): boolean; } - export module CoordinatorLayout { + export namespace CoordinatorLayout { export class AttachedBehavior { public static class: java.lang.Class; /** @@ -10684,8 +10686,8 @@ declare module androidx { public static CREATOR: globalAndroid.os.Parcelable.Creator; public constructor(superState: globalAndroid.os.Parcelable); public constructor(source: globalAndroid.os.Parcel); - public constructor(this_: globalAndroid.os.Parcel, source: java.lang.ClassLoader); - public writeToParcel(this_: globalAndroid.os.Parcel, dest: number): void; + public constructor(source: globalAndroid.os.Parcel, loader: java.lang.ClassLoader); + public writeToParcel(dest: globalAndroid.os.Parcel, flags: number): void; } export class ViewElevationComparator extends java.util.Comparator { public static class: java.lang.Class; @@ -10696,9 +10698,9 @@ declare module androidx { } } -declare module androidx { - export module coordinatorlayout { - export module widget { +declare namespace androidx { + export namespace coordinatorlayout { + export namespace widget { export class DirectedAcyclicGraph extends java.lang.Object { public static class: java.lang.Class>; public constructor(); @@ -10706,8 +10708,8 @@ declare module androidx { public contains(node: T): boolean; public addEdge(node: T, incomingEdge: T): void; public getIncomingEdges(node: T): java.util.List | null; - public getOutgoingEdges(i: T): java.util.List | null; - public hasOutgoingEdges(i: T): boolean; + public getOutgoingEdges(node: T): java.util.List | null; + public hasOutgoingEdges(node: T): boolean; public clear(): void; public getSortedList(): java.util.ArrayList; } @@ -10715,9 +10717,9 @@ declare module androidx { } } -declare module androidx { - export module coordinatorlayout { - export module widget { +declare namespace androidx { + export namespace coordinatorlayout { + export namespace widget { export class ViewGroupUtils { public static class: java.lang.Class; public static getDescendantRect(parent: globalAndroid.view.ViewGroup, descendant: globalAndroid.view.View, out: globalAndroid.graphics.Rect): void; @@ -10726,24 +10728,24 @@ declare module androidx { } } -declare module androidx { - export module core { - export module accessibilityservice { +declare namespace androidx { + export namespace core { + export namespace accessibilityservice { export class AccessibilityServiceInfoCompat { public static class: java.lang.Class; - public static CAPABILITY_CAN_RETRIEVE_WINDOW_CONTENT: number = 1; - public static CAPABILITY_CAN_REQUEST_TOUCH_EXPLORATION: number = 2; - public static CAPABILITY_CAN_REQUEST_ENHANCED_WEB_ACCESSIBILITY: number = 4; - public static CAPABILITY_CAN_FILTER_KEY_EVENTS: number = 8; - public static FEEDBACK_BRAILLE: number = 32; - public static FEEDBACK_ALL_MASK: number = -1; - public static FLAG_INCLUDE_NOT_IMPORTANT_VIEWS: number = 2; - public static FLAG_REQUEST_TOUCH_EXPLORATION_MODE: number = 4; - public static FLAG_REQUEST_ENHANCED_WEB_ACCESSIBILITY: number = 8; - public static FLAG_REPORT_VIEW_IDS: number = 16; - public static FLAG_REQUEST_FILTER_KEY_EVENTS: number = 32; + public static readonly CAPABILITY_CAN_RETRIEVE_WINDOW_CONTENT = 1; + public static readonly CAPABILITY_CAN_REQUEST_TOUCH_EXPLORATION = 2; + public static readonly CAPABILITY_CAN_REQUEST_ENHANCED_WEB_ACCESSIBILITY = 4; + public static readonly CAPABILITY_CAN_FILTER_KEY_EVENTS = 8; + public static readonly FEEDBACK_BRAILLE = 32; + public static readonly FEEDBACK_ALL_MASK = -1; + public static readonly FLAG_INCLUDE_NOT_IMPORTANT_VIEWS = 2; + public static readonly FLAG_REQUEST_TOUCH_EXPLORATION_MODE = 4; + public static readonly FLAG_REQUEST_ENHANCED_WEB_ACCESSIBILITY = 8; + public static readonly FLAG_REPORT_VIEW_IDS = 16; + public static readonly FLAG_REQUEST_FILTER_KEY_EVENTS = 32; public static loadDescription(info: globalAndroid.accessibilityservice.AccessibilityServiceInfo, packageManager: globalAndroid.content.pm.PackageManager): string | null; - public static feedbackTypeToString(feedbackTypeFlag: number): string; + public static feedbackTypeToString(feedbackType: number): string; public static flagToString(flag: number): string | null; public static getCapabilities(info: globalAndroid.accessibilityservice.AccessibilityServiceInfo): number; public static capabilityToString(capability: number): string; @@ -10752,9 +10754,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module app { +declare namespace androidx { + export namespace core { + export namespace app { export class ActivityCompat extends androidx.core.content.ContextCompat { public static class: java.lang.Class; public constructor(); @@ -10768,15 +10770,15 @@ declare module androidx { public static finishAfterTransition(activity: globalAndroid.app.Activity): void; public static getReferrer(activity: globalAndroid.app.Activity): globalAndroid.net.Uri | null; public static requireViewById(activity: globalAndroid.app.Activity, id: number): globalAndroid.view.View; - public static setEnterSharedElementCallback(frameworkCallback: globalAndroid.app.Activity, activity: androidx.core.app.SharedElementCallback | null): void; - public static setExitSharedElementCallback(frameworkCallback: globalAndroid.app.Activity, activity: androidx.core.app.SharedElementCallback | null): void; + public static setEnterSharedElementCallback(activity: globalAndroid.app.Activity, callback: androidx.core.app.SharedElementCallback | null): void; + public static setExitSharedElementCallback(activity: globalAndroid.app.Activity, callback: androidx.core.app.SharedElementCallback | null): void; public static postponeEnterTransition(activity: globalAndroid.app.Activity): void; public static startPostponedEnterTransition(activity: globalAndroid.app.Activity): void; - public static requestPermissions(handler: globalAndroid.app.Activity, activity: androidNative.Array, permissions: number): void; + public static requestPermissions(activity: globalAndroid.app.Activity, permissions: androidNative.Array, requestCode: number): void; public static shouldShowRequestPermissionRationale(activity: globalAndroid.app.Activity, permission: string): boolean; public static requestDragAndDropPermissions(activity: globalAndroid.app.Activity, dragEvent: globalAndroid.view.DragEvent): androidx.core.view.DragAndDropPermissionsCompat | null; } - export module ActivityCompat { + export namespace ActivityCompat { export class OnRequestPermissionsResultCallback { public static class: java.lang.Class; /** @@ -10827,9 +10829,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module app { +declare namespace androidx { + export namespace core { + export namespace app { export class ActivityManagerCompat { public static class: java.lang.Class; public static isLowRamDevice(activityManager: globalAndroid.app.ActivityManager): boolean; @@ -10838,19 +10840,19 @@ declare module androidx { } } -declare module androidx { - export module core { - export module app { +declare namespace androidx { + export namespace core { + export namespace app { export class ActivityOptionsCompat { public static class: java.lang.Class; - public static EXTRA_USAGE_TIME_REPORT: string = "android.activity.usage_time"; - public static EXTRA_USAGE_TIME_REPORT_PACKAGES: string = "android.usage_time_packages"; + public static readonly EXTRA_USAGE_TIME_REPORT = "android.activity.usage_time"; + public static readonly EXTRA_USAGE_TIME_REPORT_PACKAGES = "android.usage_time_packages"; public static makeCustomAnimation(context: globalAndroid.content.Context, enterResId: number, exitResId: number): androidx.core.app.ActivityOptionsCompat; public static makeScaleUpAnimation(source: globalAndroid.view.View, startX: number, startY: number, startWidth: number, startHeight: number): androidx.core.app.ActivityOptionsCompat; public static makeClipRevealAnimation(source: globalAndroid.view.View, startX: number, startY: number, width: number, height: number): androidx.core.app.ActivityOptionsCompat; public static makeThumbnailScaleUpAnimation(source: globalAndroid.view.View, thumbnail: globalAndroid.graphics.Bitmap, startX: number, startY: number): androidx.core.app.ActivityOptionsCompat; public static makeSceneTransitionAnimation(activity: globalAndroid.app.Activity, sharedElement: globalAndroid.view.View, sharedElementName: string): androidx.core.app.ActivityOptionsCompat; - public static makeSceneTransitionAnimation(i: globalAndroid.app.Activity, pairs: androidNative.Array>): androidx.core.app.ActivityOptionsCompat; + public static makeSceneTransitionAnimation(activity: globalAndroid.app.Activity, sharedElements: androidNative.Array>): androidx.core.app.ActivityOptionsCompat; public static makeTaskLaunchBehind(): androidx.core.app.ActivityOptionsCompat; public static makeBasic(): androidx.core.app.ActivityOptionsCompat; public constructor(); @@ -10860,11 +10862,11 @@ declare module androidx { public update(otherOptions: androidx.core.app.ActivityOptionsCompat): void; public requestUsageTimeReport(receiver: globalAndroid.app.PendingIntent): void; } - export module ActivityOptionsCompat { + export namespace ActivityOptionsCompat { export class ActivityOptionsCompatImpl extends androidx.core.app.ActivityOptionsCompat { public static class: java.lang.Class; public toBundle(): globalAndroid.os.Bundle; - public update(this_: androidx.core.app.ActivityOptionsCompat): void; + public update(otherOptions: androidx.core.app.ActivityOptionsCompat): void; public requestUsageTimeReport(receiver: globalAndroid.app.PendingIntent): void; public setLaunchBounds(screenSpacePixelRect: globalAndroid.graphics.Rect | null): androidx.core.app.ActivityOptionsCompat; public getLaunchBounds(): globalAndroid.graphics.Rect; @@ -10874,9 +10876,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module app { +declare namespace androidx { + export namespace core { + export namespace app { export class AlarmManagerCompat { public static class: java.lang.Class; public static setAlarmClock(alarmManager: globalAndroid.app.AlarmManager, triggerTime: number, showIntent: globalAndroid.app.PendingIntent, operation: globalAndroid.app.PendingIntent): void; @@ -10888,9 +10890,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module app { +declare namespace androidx { + export namespace core { + export namespace app { export class AppComponentFactory { public static class: java.lang.Class; public constructor(); @@ -10899,19 +10901,19 @@ declare module androidx { public instantiateReceiver(cl: java.lang.ClassLoader, className: string, intent: globalAndroid.content.Intent): globalAndroid.content.BroadcastReceiver; public instantiateProvider(cl: java.lang.ClassLoader, className: string): globalAndroid.content.ContentProvider; public instantiateService(cl: java.lang.ClassLoader, className: string, intent: globalAndroid.content.Intent): globalAndroid.app.Service; - public instantiateApplicationCompat(this_: java.lang.ClassLoader, cl: string): globalAndroid.app.Application; - public instantiateActivityCompat(this_: java.lang.ClassLoader, cl: string, className: globalAndroid.content.Intent | null): globalAndroid.app.Activity; - public instantiateReceiverCompat(this_: java.lang.ClassLoader, cl: string, className: globalAndroid.content.Intent | null): globalAndroid.content.BroadcastReceiver; - public instantiateServiceCompat(this_: java.lang.ClassLoader, cl: string, className: globalAndroid.content.Intent | null): globalAndroid.app.Service; - public instantiateProviderCompat(this_: java.lang.ClassLoader, cl: string): globalAndroid.content.ContentProvider; + public instantiateApplicationCompat(cl: java.lang.ClassLoader, className: string): globalAndroid.app.Application; + public instantiateActivityCompat(cl: java.lang.ClassLoader, className: string, intent: globalAndroid.content.Intent | null): globalAndroid.app.Activity; + public instantiateReceiverCompat(cl: java.lang.ClassLoader, className: string, intent: globalAndroid.content.Intent | null): globalAndroid.content.BroadcastReceiver; + public instantiateServiceCompat(cl: java.lang.ClassLoader, className: string, intent: globalAndroid.content.Intent | null): globalAndroid.app.Service; + public instantiateProviderCompat(cl: java.lang.ClassLoader, className: string): globalAndroid.content.ContentProvider; } } } } -declare module androidx { - export module core { - export module app { +declare namespace androidx { + export namespace core { + export namespace app { export class AppLaunchChecker { public static class: java.lang.Class; public static hasStartedFromLauncher(context: globalAndroid.content.Context): boolean; @@ -10923,47 +10925,47 @@ declare module androidx { } } -declare module androidx { - export module core { - export module app { +declare namespace androidx { + export namespace core { + export namespace app { export class AppOpsManagerCompat { public static class: java.lang.Class; - public static MODE_ALLOWED: number = 0; - public static MODE_IGNORED: number = 1; - public static MODE_ERRORED: number = 2; - public static MODE_DEFAULT: number = 3; + public static readonly MODE_ALLOWED = 0; + public static readonly MODE_IGNORED = 1; + public static readonly MODE_ERRORED = 2; + public static readonly MODE_DEFAULT = 3; public static permissionToOp(permission: string): string | null; - public static noteOp(appOpsManager: globalAndroid.content.Context, context: string, op: number, uid: string): number; - public static noteOpNoThrow(appOpsManager: globalAndroid.content.Context, context: string, op: number, uid: string): number; - public static noteProxyOp(appOpsManager: globalAndroid.content.Context, context: string, op: string): number; - public static noteProxyOpNoThrow(appOpsManager: globalAndroid.content.Context, context: string, op: string): number; + public static noteOp(context: globalAndroid.content.Context, op: string, uid: number, packageName: string): number; + public static noteOpNoThrow(context: globalAndroid.content.Context, op: string, uid: number, packageName: string): number; + public static noteProxyOp(context: globalAndroid.content.Context, op: string, proxiedPackageName: string): number; + public static noteProxyOpNoThrow(context: globalAndroid.content.Context, op: string, proxiedPackageName: string): number; } } } } -declare module androidx { - export module core { - export module app { +declare namespace androidx { + export namespace core { + export namespace app { export class BundleCompat { public static class: java.lang.Class; public static getBinder(bundle: globalAndroid.os.Bundle, key: string | null): globalAndroid.os.IBinder | null; public static putBinder(bundle: globalAndroid.os.Bundle, key: string | null, binder: globalAndroid.os.IBinder | null): void; } - export module BundleCompat { + export namespace BundleCompat { export class BundleCompatBaseImpl { public static class: java.lang.Class; - public static getBinder(e: globalAndroid.os.Bundle, e: string): globalAndroid.os.IBinder; - public static putBinder(e: globalAndroid.os.Bundle, e: string, bundle: globalAndroid.os.IBinder): void; + public static getBinder(bundle: globalAndroid.os.Bundle, key: string): globalAndroid.os.IBinder; + public static putBinder(bundle: globalAndroid.os.Bundle, key: string, binder: globalAndroid.os.IBinder): void; } } } } } -declare module androidx { - export module core { - export module app { +declare namespace androidx { + export namespace core { + export namespace app { export class ComponentActivity implements androidx.core.view.KeyEventDispatcher.Component { public static class: java.lang.Class; public constructor(); @@ -10974,7 +10976,7 @@ declare module androidx { public dispatchKeyEvent(event: globalAndroid.view.KeyEvent): boolean; public superDispatchKeyEvent(param0: globalAndroid.view.KeyEvent): boolean; } - export module ComponentActivity { + export namespace ComponentActivity { export class ExtraData { public static class: java.lang.Class; public constructor(); @@ -10984,9 +10986,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module app { +declare namespace androidx { + export namespace core { + export namespace app { export class CoreComponentFactory { public static class: java.lang.Class; public constructor(); @@ -10996,7 +10998,7 @@ declare module androidx { public instantiateProvider(cl: java.lang.ClassLoader, className: string): globalAndroid.content.ContentProvider; public instantiateService(cl: java.lang.ClassLoader, className: string, intent: globalAndroid.content.Intent): globalAndroid.app.Service; } - export module CoreComponentFactory { + export namespace CoreComponentFactory { export class CompatWrapped { public static class: java.lang.Class; /** @@ -11013,41 +11015,41 @@ declare module androidx { } } -declare module androidx { - export module core { - export module app { +declare namespace androidx { + export namespace core { + export namespace app { export class DialogCompat { public static class: java.lang.Class; - public static requireViewById(view: globalAndroid.app.Dialog, dialog: number): globalAndroid.view.View; + public static requireViewById(dialog: globalAndroid.app.Dialog, id: number): globalAndroid.view.View; } } } } -declare module androidx { - export module core { - export module app { +declare namespace androidx { + export namespace core { + export namespace app { export class FrameMetricsAggregator { public static class: java.lang.Class; - public static TOTAL_INDEX: number = 0; - public static INPUT_INDEX: number = 1; - public static LAYOUT_MEASURE_INDEX: number = 2; - public static DRAW_INDEX: number = 3; - public static SYNC_INDEX: number = 4; - public static COMMAND_INDEX: number = 5; - public static SWAP_INDEX: number = 6; - public static DELAY_INDEX: number = 7; - public static ANIMATION_INDEX: number = 8; - public static TOTAL_DURATION: number = 1; - public static INPUT_DURATION: number = 2; - public static LAYOUT_MEASURE_DURATION: number = 4; - public static DRAW_DURATION: number = 8; - public static SYNC_DURATION: number = 16; - public static COMMAND_DURATION: number = 32; - public static SWAP_DURATION: number = 64; - public static DELAY_DURATION: number = 128; - public static ANIMATION_DURATION: number = 256; - public static EVERY_DURATION: number = 511; + public static readonly TOTAL_INDEX = 0; + public static readonly INPUT_INDEX = 1; + public static readonly LAYOUT_MEASURE_INDEX = 2; + public static readonly DRAW_INDEX = 3; + public static readonly SYNC_INDEX = 4; + public static readonly COMMAND_INDEX = 5; + public static readonly SWAP_INDEX = 6; + public static readonly DELAY_INDEX = 7; + public static readonly ANIMATION_INDEX = 8; + public static readonly TOTAL_DURATION = 1; + public static readonly INPUT_DURATION = 2; + public static readonly LAYOUT_MEASURE_DURATION = 4; + public static readonly DRAW_DURATION = 8; + public static readonly SYNC_DURATION = 16; + public static readonly COMMAND_DURATION = 32; + public static readonly SWAP_DURATION = 64; + public static readonly DELAY_DURATION = 128; + public static readonly ANIMATION_DURATION = 256; + public static readonly EVERY_DURATION = 511; public constructor(); public constructor(metricTypeFlags: number); public add(activity: globalAndroid.app.Activity): void; @@ -11056,11 +11058,11 @@ declare module androidx { public reset(): androidNative.Array | null; public getMetrics(): androidNative.Array | null; } - export module FrameMetricsAggregator { + export namespace FrameMetricsAggregator { export class FrameMetricsApi24Impl extends androidx.core.app.FrameMetricsAggregator.FrameMetricsBaseImpl { public static class: java.lang.Class; - public add(this_: globalAndroid.app.Activity): void; - public remove(this_: globalAndroid.app.Activity): androidNative.Array; + public add(activity: globalAndroid.app.Activity): void; + public remove(activity: globalAndroid.app.Activity): androidNative.Array; public stop(): androidNative.Array; public getMetrics(): androidNative.Array; public reset(): androidNative.Array; @@ -11087,24 +11089,24 @@ declare module androidx { } } -declare module androidx { - export module core { - export module app { +declare namespace androidx { + export namespace core { + export namespace app { export abstract class JobIntentService { public static class: java.lang.Class; public constructor(); public onCreate(): void; public onStartCommand(intent: globalAndroid.content.Intent | null, flags: number, startId: number): number; - public onBind(this_: globalAndroid.content.Intent): globalAndroid.os.IBinder; + public onBind(intent: globalAndroid.content.Intent): globalAndroid.os.IBinder; public onDestroy(): void; public static enqueueWork(context: globalAndroid.content.Context, cls: java.lang.Class, jobId: number, work: globalAndroid.content.Intent): void; - public static enqueueWork(we: globalAndroid.content.Context, context: globalAndroid.content.ComponentName, component: number, jobId: globalAndroid.content.Intent): void; + public static enqueueWork(context: globalAndroid.content.Context, component: globalAndroid.content.ComponentName, jobId: number, work: globalAndroid.content.Intent): void; public onHandleWork(param0: globalAndroid.content.Intent): void; public setInterruptIfStopped(interruptIfStopped: boolean): void; public isStopped(): boolean; public onStopCurrentWork(): boolean; } - export module JobIntentService { + export namespace JobIntentService { export class CommandProcessor extends globalAndroid.os.AsyncTask { public static class: java.lang.Class; public doInBackground(params: androidNative.Array): java.lang.Void; @@ -11155,7 +11157,7 @@ declare module androidx { public onStopJob(params: any): boolean; public dequeueWork(): androidx.core.app.JobIntentService.GenericWorkItem; } - export module JobServiceEngineImpl { + export namespace JobServiceEngineImpl { export class WrapperWorkItem extends androidx.core.app.JobIntentService.GenericWorkItem { public static class: java.lang.Class; public getIntent(): globalAndroid.content.Intent; @@ -11176,28 +11178,28 @@ declare module androidx { } } -declare module androidx { - export module core { - export module app { +declare namespace androidx { + export namespace core { + export namespace app { export class NavUtils { public static class: java.lang.Class; - public static PARENT_ACTIVITY: string = "android.support.PARENT_ACTIVITY"; - public static shouldUpRecreateTask(action: globalAndroid.app.Activity, sourceActivity: globalAndroid.content.Intent): boolean; + public static readonly PARENT_ACTIVITY = "android.support.PARENT_ACTIVITY"; + public static shouldUpRecreateTask(sourceActivity: globalAndroid.app.Activity, targetIntent: globalAndroid.content.Intent): boolean; public static navigateUpFromSameTask(sourceActivity: globalAndroid.app.Activity): void; public static navigateUpTo(sourceActivity: globalAndroid.app.Activity, upIntent: globalAndroid.content.Intent): void; - public static getParentActivityIntent(result: globalAndroid.app.Activity): globalAndroid.content.Intent | null; + public static getParentActivityIntent(sourceActivity: globalAndroid.app.Activity): globalAndroid.content.Intent | null; public static getParentActivityIntent(context: globalAndroid.content.Context, sourceActivityClass: java.lang.Class): globalAndroid.content.Intent | null; public static getParentActivityIntent(context: globalAndroid.content.Context, componentName: globalAndroid.content.ComponentName): globalAndroid.content.Intent | null; - public static getParentActivityName(e: globalAndroid.app.Activity): string | null; - public static getParentActivityName(result: globalAndroid.content.Context, context: globalAndroid.content.ComponentName): string | null; + public static getParentActivityName(sourceActivity: globalAndroid.app.Activity): string | null; + public static getParentActivityName(context: globalAndroid.content.Context, componentName: globalAndroid.content.ComponentName): string | null; } } } } -declare module androidx { - export module core { - export module app { +declare namespace androidx { + export namespace core { + export namespace app { export class NotificationBuilderWithBuilderAccessor { public static class: java.lang.Class; /** @@ -11213,90 +11215,90 @@ declare module androidx { } } -declare module androidx { - export module core { - export module app { +declare namespace androidx { + export namespace core { + export namespace app { export class NotificationCompat { public static class: java.lang.Class; - public static DEFAULT_ALL: number = -1; - public static DEFAULT_SOUND: number = 1; - public static DEFAULT_VIBRATE: number = 2; - public static DEFAULT_LIGHTS: number = 4; - public static STREAM_DEFAULT: number = -1; - public static FLAG_SHOW_LIGHTS: number = 1; - public static FLAG_ONGOING_EVENT: number = 2; - public static FLAG_INSISTENT: number = 4; - public static FLAG_ONLY_ALERT_ONCE: number = 8; - public static FLAG_AUTO_CANCEL: number = 16; - public static FLAG_NO_CLEAR: number = 32; - public static FLAG_FOREGROUND_SERVICE: number = 64; - public static FLAG_HIGH_PRIORITY: number = 128; - public static FLAG_LOCAL_ONLY: number = 256; - public static FLAG_GROUP_SUMMARY: number = 512; - public static PRIORITY_DEFAULT: number = 0; - public static PRIORITY_LOW: number = -1; - public static PRIORITY_MIN: number = -2; - public static PRIORITY_HIGH: number = 1; - public static PRIORITY_MAX: number = 2; - public static EXTRA_TITLE: string = "android.title"; - public static EXTRA_TITLE_BIG: string = "android.title.big"; - public static EXTRA_TEXT: string = "android.text"; - public static EXTRA_SUB_TEXT: string = "android.subText"; - public static EXTRA_REMOTE_INPUT_HISTORY: string = "android.remoteInputHistory"; - public static EXTRA_INFO_TEXT: string = "android.infoText"; - public static EXTRA_SUMMARY_TEXT: string = "android.summaryText"; - public static EXTRA_BIG_TEXT: string = "android.bigText"; - public static EXTRA_SMALL_ICON: string = "android.icon"; - public static EXTRA_LARGE_ICON: string = "android.largeIcon"; - public static EXTRA_LARGE_ICON_BIG: string = "android.largeIcon.big"; - public static EXTRA_PROGRESS: string = "android.progress"; - public static EXTRA_PROGRESS_MAX: string = "android.progressMax"; - public static EXTRA_PROGRESS_INDETERMINATE: string = "android.progressIndeterminate"; - public static EXTRA_SHOW_CHRONOMETER: string = "android.showChronometer"; - public static EXTRA_SHOW_WHEN: string = "android.showWhen"; - public static EXTRA_PICTURE: string = "android.picture"; - public static EXTRA_TEXT_LINES: string = "android.textLines"; - public static EXTRA_TEMPLATE: string = "android.template"; - public static EXTRA_PEOPLE: string = "android.people"; - public static EXTRA_BACKGROUND_IMAGE_URI: string = "android.backgroundImageUri"; - public static EXTRA_MEDIA_SESSION: string = "android.mediaSession"; - public static EXTRA_COMPACT_ACTIONS: string = "android.compactActions"; - public static EXTRA_SELF_DISPLAY_NAME: string = "android.selfDisplayName"; - public static EXTRA_MESSAGING_STYLE_USER: string = "android.messagingStyleUser"; - public static EXTRA_CONVERSATION_TITLE: string = "android.conversationTitle"; - public static EXTRA_MESSAGES: string = "android.messages"; - public static EXTRA_IS_GROUP_CONVERSATION: string = "android.isGroupConversation"; - public static EXTRA_HIDDEN_CONVERSATION_TITLE: string = "android.hiddenConversationTitle"; - public static EXTRA_AUDIO_CONTENTS_URI: string = "android.audioContents"; - public static COLOR_DEFAULT: number = 0; - public static VISIBILITY_PUBLIC: number = 1; - public static VISIBILITY_PRIVATE: number = 0; - public static VISIBILITY_SECRET: number = -1; - public static CATEGORY_CALL: string = "call"; - public static CATEGORY_MESSAGE: string = "msg"; - public static CATEGORY_EMAIL: string = "email"; - public static CATEGORY_EVENT: string = "event"; - public static CATEGORY_PROMO: string = "promo"; - public static CATEGORY_ALARM: string = "alarm"; - public static CATEGORY_PROGRESS: string = "progress"; - public static CATEGORY_SOCIAL: string = "social"; - public static CATEGORY_ERROR: string = "err"; - public static CATEGORY_TRANSPORT: string = "transport"; - public static CATEGORY_SYSTEM: string = "sys"; - public static CATEGORY_SERVICE: string = "service"; - public static CATEGORY_REMINDER: string = "reminder"; - public static CATEGORY_RECOMMENDATION: string = "recommendation"; - public static CATEGORY_STATUS: string = "status"; - public static BADGE_ICON_NONE: number = 0; - public static BADGE_ICON_SMALL: number = 1; - public static BADGE_ICON_LARGE: number = 2; - public static GROUP_ALERT_ALL: number = 0; - public static GROUP_ALERT_SUMMARY: number = 1; - public static GROUP_ALERT_CHILDREN: number = 2; + public static readonly DEFAULT_ALL = -1; + public static readonly DEFAULT_SOUND = 1; + public static readonly DEFAULT_VIBRATE = 2; + public static readonly DEFAULT_LIGHTS = 4; + public static readonly STREAM_DEFAULT = -1; + public static readonly FLAG_SHOW_LIGHTS = 1; + public static readonly FLAG_ONGOING_EVENT = 2; + public static readonly FLAG_INSISTENT = 4; + public static readonly FLAG_ONLY_ALERT_ONCE = 8; + public static readonly FLAG_AUTO_CANCEL = 16; + public static readonly FLAG_NO_CLEAR = 32; + public static readonly FLAG_FOREGROUND_SERVICE = 64; + public static readonly FLAG_HIGH_PRIORITY = 128; + public static readonly FLAG_LOCAL_ONLY = 256; + public static readonly FLAG_GROUP_SUMMARY = 512; + public static readonly PRIORITY_DEFAULT = 0; + public static readonly PRIORITY_LOW = -1; + public static readonly PRIORITY_MIN = -2; + public static readonly PRIORITY_HIGH = 1; + public static readonly PRIORITY_MAX = 2; + public static readonly EXTRA_TITLE = "android.title"; + public static readonly EXTRA_TITLE_BIG = "android.title.big"; + public static readonly EXTRA_TEXT = "android.text"; + public static readonly EXTRA_SUB_TEXT = "android.subText"; + public static readonly EXTRA_REMOTE_INPUT_HISTORY = "android.remoteInputHistory"; + public static readonly EXTRA_INFO_TEXT = "android.infoText"; + public static readonly EXTRA_SUMMARY_TEXT = "android.summaryText"; + public static readonly EXTRA_BIG_TEXT = "android.bigText"; + public static readonly EXTRA_SMALL_ICON = "android.icon"; + public static readonly EXTRA_LARGE_ICON = "android.largeIcon"; + public static readonly EXTRA_LARGE_ICON_BIG = "android.largeIcon.big"; + public static readonly EXTRA_PROGRESS = "android.progress"; + public static readonly EXTRA_PROGRESS_MAX = "android.progressMax"; + public static readonly EXTRA_PROGRESS_INDETERMINATE = "android.progressIndeterminate"; + public static readonly EXTRA_SHOW_CHRONOMETER = "android.showChronometer"; + public static readonly EXTRA_SHOW_WHEN = "android.showWhen"; + public static readonly EXTRA_PICTURE = "android.picture"; + public static readonly EXTRA_TEXT_LINES = "android.textLines"; + public static readonly EXTRA_TEMPLATE = "android.template"; + public static readonly EXTRA_PEOPLE = "android.people"; + public static readonly EXTRA_BACKGROUND_IMAGE_URI = "android.backgroundImageUri"; + public static readonly EXTRA_MEDIA_SESSION = "android.mediaSession"; + public static readonly EXTRA_COMPACT_ACTIONS = "android.compactActions"; + public static readonly EXTRA_SELF_DISPLAY_NAME = "android.selfDisplayName"; + public static readonly EXTRA_MESSAGING_STYLE_USER = "android.messagingStyleUser"; + public static readonly EXTRA_CONVERSATION_TITLE = "android.conversationTitle"; + public static readonly EXTRA_MESSAGES = "android.messages"; + public static readonly EXTRA_IS_GROUP_CONVERSATION = "android.isGroupConversation"; + public static readonly EXTRA_HIDDEN_CONVERSATION_TITLE = "android.hiddenConversationTitle"; + public static readonly EXTRA_AUDIO_CONTENTS_URI = "android.audioContents"; + public static readonly COLOR_DEFAULT = 0; + public static readonly VISIBILITY_PUBLIC = 1; + public static readonly VISIBILITY_PRIVATE = 0; + public static readonly VISIBILITY_SECRET = -1; + public static readonly CATEGORY_CALL = "call"; + public static readonly CATEGORY_MESSAGE = "msg"; + public static readonly CATEGORY_EMAIL = "email"; + public static readonly CATEGORY_EVENT = "event"; + public static readonly CATEGORY_PROMO = "promo"; + public static readonly CATEGORY_ALARM = "alarm"; + public static readonly CATEGORY_PROGRESS = "progress"; + public static readonly CATEGORY_SOCIAL = "social"; + public static readonly CATEGORY_ERROR = "err"; + public static readonly CATEGORY_TRANSPORT = "transport"; + public static readonly CATEGORY_SYSTEM = "sys"; + public static readonly CATEGORY_SERVICE = "service"; + public static readonly CATEGORY_REMINDER = "reminder"; + public static readonly CATEGORY_RECOMMENDATION = "recommendation"; + public static readonly CATEGORY_STATUS = "status"; + public static readonly BADGE_ICON_NONE = 0; + public static readonly BADGE_ICON_SMALL = 1; + public static readonly BADGE_ICON_LARGE = 2; + public static readonly GROUP_ALERT_ALL = 0; + public static readonly GROUP_ALERT_SUMMARY = 1; + public static readonly GROUP_ALERT_CHILDREN = 2; public static getExtras(notification: globalAndroid.app.Notification): globalAndroid.os.Bundle | null; public static getActionCount(notification: globalAndroid.app.Notification): number; - public static getAction(action: globalAndroid.app.Notification, actionExtras: number): androidx.core.app.NotificationCompat.Action; - public static getInvisibleActions(i: globalAndroid.app.Notification): java.util.List; + public static getAction(notification: globalAndroid.app.Notification, actionIndex: number): androidx.core.app.NotificationCompat.Action; + public static getInvisibleActions(notification: globalAndroid.app.Notification): java.util.List; public static getContentTitle(notification: globalAndroid.app.Notification): string; public static getCategory(notification: globalAndroid.app.Notification): string; public static getLocalOnly(notification: globalAndroid.app.Notification): boolean; @@ -11311,20 +11313,20 @@ declare module androidx { /** @deprecated */ public constructor(); } - export module NotificationCompat { + export namespace NotificationCompat { export class Action { public static class: java.lang.Class; - public static SEMANTIC_ACTION_NONE: number = 0; - public static SEMANTIC_ACTION_REPLY: number = 1; - public static SEMANTIC_ACTION_MARK_AS_READ: number = 2; - public static SEMANTIC_ACTION_MARK_AS_UNREAD: number = 3; - public static SEMANTIC_ACTION_DELETE: number = 4; - public static SEMANTIC_ACTION_ARCHIVE: number = 5; - public static SEMANTIC_ACTION_MUTE: number = 6; - public static SEMANTIC_ACTION_UNMUTE: number = 7; - public static SEMANTIC_ACTION_THUMBS_UP: number = 8; - public static SEMANTIC_ACTION_THUMBS_DOWN: number = 9; - public static SEMANTIC_ACTION_CALL: number = 10; + public static readonly SEMANTIC_ACTION_NONE = 0; + public static readonly SEMANTIC_ACTION_REPLY = 1; + public static readonly SEMANTIC_ACTION_MARK_AS_READ = 2; + public static readonly SEMANTIC_ACTION_MARK_AS_UNREAD = 3; + public static readonly SEMANTIC_ACTION_DELETE = 4; + public static readonly SEMANTIC_ACTION_ARCHIVE = 5; + public static readonly SEMANTIC_ACTION_MUTE = 6; + public static readonly SEMANTIC_ACTION_UNMUTE = 7; + public static readonly SEMANTIC_ACTION_THUMBS_UP = 8; + public static readonly SEMANTIC_ACTION_THUMBS_DOWN = 9; + public static readonly SEMANTIC_ACTION_CALL = 10; public icon: number; public title: string; public actionIntent: globalAndroid.app.PendingIntent; @@ -11339,7 +11341,7 @@ declare module androidx { public getDataOnlyRemoteInputs(): androidNative.Array; public getShowsUserInterface(): boolean; } - export module Action { + export namespace Action { export class Builder { public static class: java.lang.Class; public constructor(icon: number, title: string, intent: globalAndroid.app.PendingIntent); @@ -11417,7 +11419,7 @@ declare module androidx { public setSummaryText(cs: string): androidx.core.app.NotificationCompat.BigPictureStyle; public bigPicture(b: globalAndroid.graphics.Bitmap): androidx.core.app.NotificationCompat.BigPictureStyle; public bigLargeIcon(b: globalAndroid.graphics.Bitmap): androidx.core.app.NotificationCompat.BigPictureStyle; - public apply(this_: androidx.core.app.NotificationBuilderWithBuilderAccessor): void; + public apply(builder: androidx.core.app.NotificationBuilderWithBuilderAccessor): void; } export class BigTextStyle extends androidx.core.app.NotificationCompat.Style { public static class: java.lang.Class; @@ -11426,7 +11428,7 @@ declare module androidx { public setBigContentTitle(title: string): androidx.core.app.NotificationCompat.BigTextStyle; public setSummaryText(cs: string): androidx.core.app.NotificationCompat.BigTextStyle; public bigText(cs: string): androidx.core.app.NotificationCompat.BigTextStyle; - public apply(this_: androidx.core.app.NotificationBuilderWithBuilderAccessor): void; + public apply(builder: androidx.core.app.NotificationBuilderWithBuilderAccessor): void; } export class Builder { public static class: java.lang.Class; @@ -11505,8 +11507,8 @@ declare module androidx { export class CarExtender extends androidx.core.app.NotificationCompat.Extender { public static class: java.lang.Class; public constructor(); - public constructor(this_: globalAndroid.app.Notification); - public extend(this_: androidx.core.app.NotificationCompat.Builder): androidx.core.app.NotificationCompat.Builder; + public constructor(notification: globalAndroid.app.Notification); + public extend(builder: androidx.core.app.NotificationCompat.Builder): androidx.core.app.NotificationCompat.Builder; public setColor(color: number): androidx.core.app.NotificationCompat.CarExtender; public getColor(): number; public setLargeIcon(largeIcon: globalAndroid.graphics.Bitmap): androidx.core.app.NotificationCompat.CarExtender; @@ -11515,7 +11517,7 @@ declare module androidx { public getUnreadConversation(): androidx.core.app.NotificationCompat.CarExtender.UnreadConversation; public extend(param0: androidx.core.app.NotificationCompat.Builder): androidx.core.app.NotificationCompat.Builder; } - export module CarExtender { + export namespace CarExtender { export class UnreadConversation { public static class: java.lang.Class; public getMessages(): androidNative.Array; @@ -11526,7 +11528,7 @@ declare module androidx { public getParticipant(): string; public getLatestTimestamp(): number; } - export module UnreadConversation { + export namespace UnreadConversation { export class Builder { public static class: java.lang.Class; public constructor(name: string); @@ -11573,11 +11575,11 @@ declare module androidx { public setBigContentTitle(title: string): androidx.core.app.NotificationCompat.InboxStyle; public setSummaryText(cs: string): androidx.core.app.NotificationCompat.InboxStyle; public addLine(cs: string): androidx.core.app.NotificationCompat.InboxStyle; - public apply(style: androidx.core.app.NotificationBuilderWithBuilderAccessor): void; + public apply(builder: androidx.core.app.NotificationBuilderWithBuilderAccessor): void; } export class MessagingStyle extends androidx.core.app.NotificationCompat.Style { public static class: java.lang.Class; - public static MAXIMUM_RETAINED_MESSAGES: number = 25; + public static readonly MAXIMUM_RETAINED_MESSAGES = 25; public constructor(); /** @deprecated */ public constructor(userDisplayName: string); @@ -11594,12 +11596,12 @@ declare module androidx { public getMessages(): java.util.List; public setGroupConversation(isGroupConversation: boolean): androidx.core.app.NotificationCompat.MessagingStyle; public isGroupConversation(): boolean; - public static extractMessagingStyleFromNotification(style: globalAndroid.app.Notification): androidx.core.app.NotificationCompat.MessagingStyle | null; - public apply(compatMessagePerson: androidx.core.app.NotificationBuilderWithBuilderAccessor): void; + public static extractMessagingStyleFromNotification(notification: globalAndroid.app.Notification): androidx.core.app.NotificationCompat.MessagingStyle | null; + public apply(builder: androidx.core.app.NotificationBuilderWithBuilderAccessor): void; public addCompatExtras(extras: globalAndroid.os.Bundle): void; public restoreFromCompatExtras(extras: globalAndroid.os.Bundle): void; } - export module MessagingStyle { + export namespace MessagingStyle { export class Message { public static class: java.lang.Class; public constructor(text: string, timestamp: number, person: androidx.core.app.Person | null); @@ -11646,24 +11648,24 @@ declare module androidx { public makeHeadsUpContentView(builder: androidx.core.app.NotificationBuilderWithBuilderAccessor): globalAndroid.widget.RemoteViews; public addCompatExtras(extras: globalAndroid.os.Bundle): void; public restoreFromCompatExtras(extras: globalAndroid.os.Bundle): void; - public applyStandardTemplate(backgroundSize: boolean, iconSize: number, backgroundSize: boolean): globalAndroid.widget.RemoteViews; + public applyStandardTemplate(showSmallIcon: boolean, resId: number, fitIn1U: boolean): globalAndroid.widget.RemoteViews; public createColoredBitmap(iconId: number, color: number): globalAndroid.graphics.Bitmap; public buildIntoRemoteViews(outerView: globalAndroid.widget.RemoteViews, innerView: globalAndroid.widget.RemoteViews): void; } export class WearableExtender extends androidx.core.app.NotificationCompat.Extender { public static class: java.lang.Class; - public static UNSET_ACTION_INDEX: number = -1; - public static SIZE_DEFAULT: number = 0; - public static SIZE_XSMALL: number = 1; - public static SIZE_SMALL: number = 2; - public static SIZE_MEDIUM: number = 3; - public static SIZE_LARGE: number = 4; - public static SIZE_FULL_SCREEN: number = 5; - public static SCREEN_TIMEOUT_SHORT: number = 0; - public static SCREEN_TIMEOUT_LONG: number = -1; + public static readonly UNSET_ACTION_INDEX = -1; + public static readonly SIZE_DEFAULT = 0; + public static readonly SIZE_XSMALL = 1; + public static readonly SIZE_SMALL = 2; + public static readonly SIZE_MEDIUM = 3; + public static readonly SIZE_LARGE = 4; + public static readonly SIZE_FULL_SCREEN = 5; + public static readonly SCREEN_TIMEOUT_SHORT = 0; + public static readonly SCREEN_TIMEOUT_LONG = -1; public constructor(); - public constructor(actions: globalAndroid.app.Notification); - public extend(parcelables: androidx.core.app.NotificationCompat.Builder): androidx.core.app.NotificationCompat.Builder; + public constructor(notification: globalAndroid.app.Notification); + public extend(builder: androidx.core.app.NotificationCompat.Builder): androidx.core.app.NotificationCompat.Builder; public clone(): androidx.core.app.NotificationCompat.WearableExtender; public addAction(action: androidx.core.app.NotificationCompat.Action): androidx.core.app.NotificationCompat.WearableExtender; public addActions(actions: java.util.List): androidx.core.app.NotificationCompat.WearableExtender; @@ -11744,9 +11746,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module app { +declare namespace androidx { + export namespace core { + export namespace app { export class NotificationCompatBuilder extends androidx.core.app.NotificationBuilderWithBuilderAccessor { public static class: java.lang.Class; public getBuilder(): globalAndroid.app.Notification.Builder; @@ -11757,42 +11759,42 @@ declare module androidx { } } -declare module androidx { - export module core { - export module app { +declare namespace androidx { + export namespace core { + export namespace app { export class NotificationCompatExtras { public static class: java.lang.Class; - public static EXTRA_LOCAL_ONLY: string = "android.support.localOnly"; - public static EXTRA_GROUP_KEY: string = "android.support.groupKey"; - public static EXTRA_GROUP_SUMMARY: string = "android.support.isGroupSummary"; - public static EXTRA_SORT_KEY: string = "android.support.sortKey"; - public static EXTRA_ACTION_EXTRAS: string = "android.support.actionExtras"; - public static EXTRA_REMOTE_INPUTS: string = "android.support.remoteInputs"; + public static readonly EXTRA_LOCAL_ONLY = "android.support.localOnly"; + public static readonly EXTRA_GROUP_KEY = "android.support.groupKey"; + public static readonly EXTRA_GROUP_SUMMARY = "android.support.isGroupSummary"; + public static readonly EXTRA_SORT_KEY = "android.support.sortKey"; + public static readonly EXTRA_ACTION_EXTRAS = "android.support.actionExtras"; + public static readonly EXTRA_REMOTE_INPUTS = "android.support.remoteInputs"; } } } } -declare module androidx { - export module core { - export module app { +declare namespace androidx { + export namespace core { + export namespace app { export class NotificationCompatJellybean { public static class: java.lang.Class; - public static TAG: string = "NotificationCompat"; - public static buildActionExtrasMap(actionExtras: java.util.List): globalAndroid.util.SparseArray; - public static getExtras(extrasField: globalAndroid.app.Notification): globalAndroid.os.Bundle; + public static readonly TAG = "NotificationCompat"; + public static buildActionExtrasMap(actionExtrasList: java.util.List): globalAndroid.util.SparseArray; + public static getExtras(notif: globalAndroid.app.Notification): globalAndroid.os.Bundle; public static readAction(icon: number, title: string, actionIntent: globalAndroid.app.PendingIntent, extras: globalAndroid.os.Bundle): androidx.core.app.NotificationCompat.Action; public static writeActionAndGetExtras(builder: globalAndroid.app.Notification.Builder, action: androidx.core.app.NotificationCompat.Action): globalAndroid.os.Bundle; - public static getActionCount(actionObjects: globalAndroid.app.Notification): number; - public static getAction(actionExtrasMap: globalAndroid.app.Notification, actionObject: number): androidx.core.app.NotificationCompat.Action; + public static getActionCount(notif: globalAndroid.app.Notification): number; + public static getAction(notif: globalAndroid.app.Notification, actionIndex: number): androidx.core.app.NotificationCompat.Action; } } } } -declare module androidx { - export module core { - export module app { +declare namespace androidx { + export namespace core { + export namespace app { export abstract class NotificationCompatSideChannelService { public static class: java.lang.Class; public constructor(); @@ -11801,7 +11803,7 @@ declare module androidx { public cancel(param0: string, param1: number, param2: string): void; public cancelAll(param0: string): void; } - export module NotificationCompatSideChannelService { + export namespace NotificationCompatSideChannelService { export class NotificationSideChannelStub extends globalAndroid.support.v4.app.INotificationSideChannel.Stub { public static class: java.lang.Class; public notify(packageName: string, id: number, tag: string, notification: globalAndroid.app.Notification): void; @@ -11816,20 +11818,20 @@ declare module androidx { } } -declare module androidx { - export module core { - export module app { +declare namespace androidx { + export namespace core { + export namespace app { export class NotificationManagerCompat { public static class: java.lang.Class; - public static EXTRA_USE_SIDE_CHANNEL: string = "android.support.useSideChannel"; - public static ACTION_BIND_SIDE_CHANNEL: string = "android.support.BIND_NOTIFICATION_SIDE_CHANNEL"; - public static IMPORTANCE_UNSPECIFIED: number = -1000; - public static IMPORTANCE_NONE: number = 0; - public static IMPORTANCE_MIN: number = 1; - public static IMPORTANCE_LOW: number = 2; - public static IMPORTANCE_DEFAULT: number = 3; - public static IMPORTANCE_HIGH: number = 4; - public static IMPORTANCE_MAX: number = 5; + public static readonly EXTRA_USE_SIDE_CHANNEL = "android.support.useSideChannel"; + public static readonly ACTION_BIND_SIDE_CHANNEL = "android.support.BIND_NOTIFICATION_SIDE_CHANNEL"; + public static readonly IMPORTANCE_UNSPECIFIED = -1000; + public static readonly IMPORTANCE_NONE = 0; + public static readonly IMPORTANCE_MIN = 1; + public static readonly IMPORTANCE_LOW = 2; + public static readonly IMPORTANCE_DEFAULT = 3; + public static readonly IMPORTANCE_HIGH = 4; + public static readonly IMPORTANCE_MAX = 5; public static from(context: globalAndroid.content.Context): androidx.core.app.NotificationManagerCompat; public cancel(id: number): void; public cancel(tag: string | null, id: number): void; @@ -11838,9 +11840,9 @@ declare module androidx { public notify(tag: string | null, id: number, notification: globalAndroid.app.Notification): void; public areNotificationsEnabled(): boolean; public getImportance(): number; - public static getEnabledListenerPackages(componentName: globalAndroid.content.Context): java.util.Set; + public static getEnabledListenerPackages(context: globalAndroid.content.Context): java.util.Set; } - export module NotificationManagerCompat { + export namespace NotificationManagerCompat { export class CancelTask extends androidx.core.app.NotificationManagerCompat.Task { public static class: java.lang.Class; public send(service: globalAndroid.support.v4.app.INotificationSideChannel): void; @@ -11859,11 +11861,11 @@ declare module androidx { export class SideChannelManager { public static class: java.lang.Class; public queueTask(task: androidx.core.app.NotificationManagerCompat.Task): void; - public handleMessage(this_: globalAndroid.os.Message): boolean; + public handleMessage(msg: globalAndroid.os.Message): boolean; public onServiceConnected(componentName: globalAndroid.content.ComponentName, iBinder: globalAndroid.os.IBinder): void; public onServiceDisconnected(componentName: globalAndroid.content.ComponentName): void; } - export module SideChannelManager { + export namespace SideChannelManager { export class ListenerRecord { public static class: java.lang.Class; } @@ -11884,9 +11886,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module app { +declare namespace androidx { + export namespace core { + export namespace app { export class Person { public static class: java.lang.Class; public static fromBundle(bundle: globalAndroid.os.Bundle): androidx.core.app.Person; @@ -11903,7 +11905,7 @@ declare module androidx { public isBot(): boolean; public isImportant(): boolean; } - export module Person { + export namespace Person { export class Builder { public static class: java.lang.Class; public constructor(); @@ -11920,9 +11922,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module app { +declare namespace androidx { + export namespace core { + export namespace app { export class RemoteActionCompat { public static class: java.lang.Class; public constructor(icon: androidx.core.graphics.drawable.IconCompat, title: string, contentDescription: string, intent: globalAndroid.app.PendingIntent); @@ -11944,15 +11946,15 @@ declare module androidx { } } -declare module androidx { - export module core { - export module app { +declare namespace androidx { + export namespace core { + export namespace app { export class RemoteInput { public static class: java.lang.Class; - public static RESULTS_CLIP_LABEL: string = "android.remoteinput.results"; - public static EXTRA_RESULTS_DATA: string = "android.remoteinput.resultsData"; - public static SOURCE_FREE_FORM_INPUT: number = 0; - public static SOURCE_CHOICE: number = 1; + public static readonly RESULTS_CLIP_LABEL = "android.remoteinput.results"; + public static readonly EXTRA_RESULTS_DATA = "android.remoteinput.resultsData"; + public static readonly SOURCE_FREE_FORM_INPUT = 0; + public static readonly SOURCE_CHOICE = 1; public getResultKey(): string; public getLabel(): string; public getChoices(): androidNative.Array; @@ -11960,14 +11962,14 @@ declare module androidx { public isDataOnly(): boolean; public getAllowFreeFormInput(): boolean; public getExtras(): globalAndroid.os.Bundle; - public static getDataResultsFromIntent(mimeType: globalAndroid.content.Intent, bundle: string): java.util.Map; - public static getResultsFromIntent(clipDataIntent: globalAndroid.content.Intent): globalAndroid.os.Bundle; - public static addResultsToIntent(existingDataResults: androidNative.Array, arr: globalAndroid.content.Intent, input: globalAndroid.os.Bundle): void; - public static addDataResultToIntent(mimeType: androidx.core.app.RemoteInput, uri: globalAndroid.content.Intent, resultsBundle: java.util.Map): void; - public static setResultsSource(clipDataIntent: globalAndroid.content.Intent, intent: number): void; - public static getResultsSource(clipDataIntent: globalAndroid.content.Intent): number; - } - export module RemoteInput { + public static getDataResultsFromIntent(intent: globalAndroid.content.Intent, remoteInputResultKey: string): java.util.Map; + public static getResultsFromIntent(intent: globalAndroid.content.Intent): globalAndroid.os.Bundle; + public static addResultsToIntent(remoteInputs: androidNative.Array, intent: globalAndroid.content.Intent, results: globalAndroid.os.Bundle): void; + public static addDataResultToIntent(remoteInput: androidx.core.app.RemoteInput, intent: globalAndroid.content.Intent, results: java.util.Map): void; + public static setResultsSource(intent: globalAndroid.content.Intent, source: number): void; + public static getResultsSource(intent: globalAndroid.content.Intent): number; + } + export namespace RemoteInput { export class Builder { public static class: java.lang.Class; public constructor(resultKey: string); @@ -11993,17 +11995,17 @@ declare module androidx { } } -declare module androidx { - export module core { - export module app { +declare namespace androidx { + export namespace core { + export namespace app { export class ServiceCompat { public static class: java.lang.Class; - public static START_STICKY: number = 1; - public static STOP_FOREGROUND_REMOVE: number = 1; - public static STOP_FOREGROUND_DETACH: number = 2; + public static readonly START_STICKY = 1; + public static readonly STOP_FOREGROUND_REMOVE = 1; + public static readonly STOP_FOREGROUND_DETACH = 2; public static stopForeground(service: globalAndroid.app.Service, flags: number): void; } - export module ServiceCompat { + export namespace ServiceCompat { export class StopForegroundFlags { public static class: java.lang.Class; /** @@ -12018,19 +12020,19 @@ declare module androidx { } } -declare module androidx { - export module core { - export module app { +declare namespace androidx { + export namespace core { + export namespace app { export class ShareCompat { public static class: java.lang.Class; - public static EXTRA_CALLING_PACKAGE: string = "androidx.core.app.EXTRA_CALLING_PACKAGE"; - public static EXTRA_CALLING_ACTIVITY: string = "androidx.core.app.EXTRA_CALLING_ACTIVITY"; + public static readonly EXTRA_CALLING_PACKAGE = "androidx.core.app.EXTRA_CALLING_PACKAGE"; + public static readonly EXTRA_CALLING_ACTIVITY = "androidx.core.app.EXTRA_CALLING_ACTIVITY"; public static getCallingPackage(calledActivity: globalAndroid.app.Activity): string; public static getCallingActivity(calledActivity: globalAndroid.app.Activity): globalAndroid.content.ComponentName; - public static configureMenuItem(provider: globalAndroid.view.MenuItem, item: androidx.core.app.ShareCompat.IntentBuilder): void; + public static configureMenuItem(item: globalAndroid.view.MenuItem, shareIntent: androidx.core.app.ShareCompat.IntentBuilder): void; public static configureMenuItem(menu: globalAndroid.view.Menu, menuItemId: number, shareIntent: androidx.core.app.ShareCompat.IntentBuilder): void; } - export module ShareCompat { + export namespace ShareCompat { export class IntentBuilder { public static class: java.lang.Class; public static from(launchingActivity: globalAndroid.app.Activity): androidx.core.app.ShareCompat.IntentBuilder; @@ -12082,9 +12084,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module app { +declare namespace androidx { + export namespace core { + export namespace app { export abstract class SharedElementCallback { public static class: java.lang.Class; public constructor(); @@ -12092,11 +12094,11 @@ declare module androidx { public onSharedElementEnd(sharedElementNames: java.util.List, sharedElements: java.util.List, sharedElementSnapshots: java.util.List): void; public onRejectSharedElements(rejectedSharedElements: java.util.List): void; public onMapSharedElements(names: java.util.List, sharedElements: java.util.Map): void; - public onCaptureSharedElementSnapshot(values: globalAndroid.view.View, bundle: globalAndroid.graphics.Matrix, bitmap: globalAndroid.graphics.RectF): globalAndroid.os.Parcelable; - public onCreateSnapshotView(matrix: globalAndroid.content.Context, bundle: globalAndroid.os.Parcelable): globalAndroid.view.View; + public onCaptureSharedElementSnapshot(sharedElement: globalAndroid.view.View, viewToGlobalMatrix: globalAndroid.graphics.Matrix, screenBounds: globalAndroid.graphics.RectF): globalAndroid.os.Parcelable; + public onCreateSnapshotView(context: globalAndroid.content.Context, snapshot: globalAndroid.os.Parcelable): globalAndroid.view.View; public onSharedElementsArrived(sharedElementNames: java.util.List, sharedElements: java.util.List, listener: androidx.core.app.SharedElementCallback.OnSharedElementsReadyListener): void; } - export module SharedElementCallback { + export namespace SharedElementCallback { export class OnSharedElementsReadyListener { public static class: java.lang.Class; /** @@ -12113,9 +12115,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module app { +declare namespace androidx { + export namespace core { + export namespace app { export class TaskStackBuilder extends java.lang.Iterable { public static class: java.lang.Class; public static create(context: globalAndroid.content.Context): androidx.core.app.TaskStackBuilder; @@ -12123,9 +12125,9 @@ declare module androidx { public static from(context: globalAndroid.content.Context): androidx.core.app.TaskStackBuilder; public addNextIntent(nextIntent: globalAndroid.content.Intent): androidx.core.app.TaskStackBuilder; public addNextIntentWithParentStack(nextIntent: globalAndroid.content.Intent): androidx.core.app.TaskStackBuilder; - public addParentStack(this_: globalAndroid.app.Activity): androidx.core.app.TaskStackBuilder; + public addParentStack(sourceActivity: globalAndroid.app.Activity): androidx.core.app.TaskStackBuilder; public addParentStack(sourceActivityClass: java.lang.Class): androidx.core.app.TaskStackBuilder; - public addParentStack(e: globalAndroid.content.ComponentName): androidx.core.app.TaskStackBuilder; + public addParentStack(sourceActivityName: globalAndroid.content.ComponentName): androidx.core.app.TaskStackBuilder; public getIntentCount(): number; /** @deprecated */ public getIntent(index: number): globalAndroid.content.Intent; @@ -12133,12 +12135,12 @@ declare module androidx { /** @deprecated */ public iterator(): java.util.Iterator; public startActivities(): void; - public startActivities(this_: globalAndroid.os.Bundle | null): void; + public startActivities(options: globalAndroid.os.Bundle | null): void; public getPendingIntent(requestCode: number, flags: number): globalAndroid.app.PendingIntent | null; public getPendingIntent(requestCode: number, flags: number, options: globalAndroid.os.Bundle | null): globalAndroid.app.PendingIntent | null; public getIntents(): androidNative.Array; } - export module TaskStackBuilder { + export namespace TaskStackBuilder { export class SupportParentable { public static class: java.lang.Class; /** @@ -12155,36 +12157,36 @@ declare module androidx { } } -declare module androidx { - export module core { - export module content { +declare namespace androidx { + export namespace core { + export namespace content { export class ContentResolverCompat { public static class: java.lang.Class; - public static query(cancellationSignalObj: globalAndroid.content.ContentResolver, e: globalAndroid.net.Uri, resolver: androidNative.Array, uri: string, projection: androidNative.Array, selection: string, selectionArgs: androidx.core.os.CancellationSignal): globalAndroid.database.Cursor; + public static query(resolver: globalAndroid.content.ContentResolver, uri: globalAndroid.net.Uri, projection: androidNative.Array, selection: string, selectionArgs: androidNative.Array, sortOrder: string, cancellationSignal: androidx.core.os.CancellationSignal): globalAndroid.database.Cursor; } } } } -declare module androidx { - export module core { - export module content { +declare namespace androidx { + export namespace core { + export namespace content { export class ContextCompat { public static class: java.lang.Class; public constructor(); public static startActivities(context: globalAndroid.content.Context, intents: androidNative.Array): boolean; public static startActivities(context: globalAndroid.content.Context, intents: androidNative.Array, options: globalAndroid.os.Bundle | null): boolean; public static startActivity(context: globalAndroid.content.Context, intent: globalAndroid.content.Intent, options: globalAndroid.os.Bundle | null): void; - public static getDataDir(dataDir: globalAndroid.content.Context): java.io.File | null; + public static getDataDir(context: globalAndroid.content.Context): java.io.File | null; public static getObbDirs(context: globalAndroid.content.Context): androidNative.Array; public static getExternalFilesDirs(context: globalAndroid.content.Context, type: string | null): androidNative.Array; public static getExternalCacheDirs(context: globalAndroid.content.Context): androidNative.Array; - public static getDrawable(resolvedId: globalAndroid.content.Context, context: number): globalAndroid.graphics.drawable.Drawable | null; + public static getDrawable(context: globalAndroid.content.Context, id: number): globalAndroid.graphics.drawable.Drawable | null; public static getColorStateList(context: globalAndroid.content.Context, id: number): globalAndroid.content.res.ColorStateList | null; public static getColor(context: globalAndroid.content.Context, id: number): number; public static checkSelfPermission(context: globalAndroid.content.Context, permission: string): number; - public static getNoBackupFilesDir(appInfo: globalAndroid.content.Context): java.io.File | null; - public static getCodeCacheDir(appInfo: globalAndroid.content.Context): java.io.File; + public static getNoBackupFilesDir(context: globalAndroid.content.Context): java.io.File | null; + public static getCodeCacheDir(context: globalAndroid.content.Context): java.io.File; public static createDeviceProtectedStorageContext(context: globalAndroid.content.Context): globalAndroid.content.Context | null; public static isDeviceProtectedStorage(context: globalAndroid.content.Context): boolean; public static getMainExecutor(context: globalAndroid.content.Context): java.util.concurrent.Executor; @@ -12192,7 +12194,7 @@ declare module androidx { public static getSystemService(context: globalAndroid.content.Context, serviceClass: java.lang.Class): any; public static getSystemServiceName(context: globalAndroid.content.Context, serviceClass: java.lang.Class): string | null; } - export module ContextCompat { + export namespace ContextCompat { export class LegacyServiceMapHolder { public static class: java.lang.Class; } @@ -12205,23 +12207,23 @@ declare module androidx { } } -declare module androidx { - export module core { - export module content { +declare namespace androidx { + export namespace core { + export namespace content { export class FileProvider { public static class: java.lang.Class; public constructor(); public onCreate(): boolean; public attachInfo(context: globalAndroid.content.Context, info: globalAndroid.content.pm.ProviderInfo): void; public static getUriForFile(context: globalAndroid.content.Context, authority: string, file: java.io.File): globalAndroid.net.Uri; - public query(this_: globalAndroid.net.Uri, uri: androidNative.Array | null, projection: string | null, selection: androidNative.Array | null, selectionArgs: string | null): globalAndroid.database.Cursor; - public getType(mime: globalAndroid.net.Uri): string; + public query(uri: globalAndroid.net.Uri, projection: androidNative.Array | null, selection: string | null, selectionArgs: androidNative.Array | null, sortOrder: string | null): globalAndroid.database.Cursor; + public getType(uri: globalAndroid.net.Uri): string; public insert(uri: globalAndroid.net.Uri, values: globalAndroid.content.ContentValues): globalAndroid.net.Uri; public update(uri: globalAndroid.net.Uri, values: globalAndroid.content.ContentValues, selection: string | null, selectionArgs: androidNative.Array | null): number; public delete(uri: globalAndroid.net.Uri, selection: string | null, selectionArgs: androidNative.Array | null): number; public openFile(uri: globalAndroid.net.Uri, mode: string): globalAndroid.os.ParcelFileDescriptor; } - export module FileProvider { + export namespace FileProvider { export class PathStrategy { public static class: java.lang.Class; /** @@ -12237,8 +12239,8 @@ declare module androidx { } export class SimplePathStrategy extends androidx.core.content.FileProvider.PathStrategy { public static class: java.lang.Class; - public getUriForFile(rootPath: java.io.File): globalAndroid.net.Uri; - public getFileForUri(this_: globalAndroid.net.Uri): java.io.File; + public getUriForFile(file: java.io.File): globalAndroid.net.Uri; + public getFileForUri(uri: globalAndroid.net.Uri): java.io.File; public getUriForFile(param0: java.io.File): globalAndroid.net.Uri; public getFileForUri(param0: globalAndroid.net.Uri): java.io.File; } @@ -12247,48 +12249,48 @@ declare module androidx { } } -declare module androidx { - export module core { - export module content { +declare namespace androidx { + export namespace core { + export namespace content { export class IntentCompat { public static class: java.lang.Class; - public static EXTRA_HTML_TEXT: string = "android.intent.extra.HTML_TEXT"; - public static EXTRA_START_PLAYBACK: string = "android.intent.extra.START_PLAYBACK"; - public static CATEGORY_LEANBACK_LAUNCHER: string = "android.intent.category.LEANBACK_LAUNCHER"; - public static makeMainSelectorActivity(intent: string, selectorAction: string): globalAndroid.content.Intent; + public static readonly EXTRA_HTML_TEXT = "android.intent.extra.HTML_TEXT"; + public static readonly EXTRA_START_PLAYBACK = "android.intent.extra.START_PLAYBACK"; + public static readonly CATEGORY_LEANBACK_LAUNCHER = "android.intent.category.LEANBACK_LAUNCHER"; + public static makeMainSelectorActivity(selectorAction: string, selectorCategory: string): globalAndroid.content.Intent; } } } } -declare module androidx { - export module core { - export module content { +declare namespace androidx { + export namespace core { + export namespace content { export class MimeTypeFilter { public static class: java.lang.Class; public static matches(mimeType: string | null, filter: string): boolean; - public static matches(filterParts: string | null, filter: androidNative.Array): string | null; - public static matches(mimeTypeParts: androidNative.Array | null, mimeType: string): string | null; - public static matchesMany(mimeTypeParts: androidNative.Array | null, mimeType: string): androidNative.Array; + public static matches(mimeType: string | null, filters: androidNative.Array): string | null; + public static matches(mimeTypes: androidNative.Array | null, filter: string): string | null; + public static matchesMany(mimeTypes: androidNative.Array | null, filter: string): androidNative.Array; } } } } -declare module androidx { - export module core { - export module content { +declare namespace androidx { + export namespace core { + export namespace content { export class PermissionChecker { public static class: java.lang.Class; - public static PERMISSION_GRANTED: number = 0; - public static PERMISSION_DENIED: number = -1; - public static PERMISSION_DENIED_APP_OP: number = -2; - public static checkPermission(packageNames: globalAndroid.content.Context, context: string, permission: number, pid: number, uid: string | null): number; + public static readonly PERMISSION_GRANTED = 0; + public static readonly PERMISSION_DENIED = -1; + public static readonly PERMISSION_DENIED_APP_OP = -2; + public static checkPermission(context: globalAndroid.content.Context, permission: string, pid: number, uid: number, packageName: string | null): number; public static checkSelfPermission(context: globalAndroid.content.Context, permission: string): number; public static checkCallingPermission(context: globalAndroid.content.Context, permission: string, packageName: string | null): number; public static checkCallingOrSelfPermission(context: globalAndroid.content.Context, permission: string): number; } - export module PermissionChecker { + export namespace PermissionChecker { export class PermissionResult { public static class: java.lang.Class; /** @@ -12303,13 +12305,13 @@ declare module androidx { } } -declare module androidx { - export module core { - export module content { +declare namespace androidx { + export namespace core { + export namespace content { export class SharedPreferencesCompat { public static class: java.lang.Class; } - export module SharedPreferencesCompat { + export namespace SharedPreferencesCompat { export class EditorCompat { public static class: java.lang.Class; /** @deprecated */ @@ -12317,10 +12319,10 @@ declare module androidx { /** @deprecated */ public apply(editor: globalAndroid.content.SharedPreferences.Editor): void; } - export module EditorCompat { + export namespace EditorCompat { export class Helper { public static class: java.lang.Class; - public apply(this_: globalAndroid.content.SharedPreferences.Editor): void; + public apply(editor: globalAndroid.content.SharedPreferences.Editor): void; } } } @@ -12328,23 +12330,23 @@ declare module androidx { } } -declare module androidx { - export module core { - export module content { - export module pm { +declare namespace androidx { + export namespace core { + export namespace content { + export namespace pm { export class ActivityInfoCompat { public static class: java.lang.Class; - public static CONFIG_UI_MODE: number = 512; + public static readonly CONFIG_UI_MODE = 512; } } } } } -declare module androidx { - export module core { - export module content { - export module pm { +declare namespace androidx { + export namespace core { + export namespace content { + export namespace pm { export class PackageInfoCompat { public static class: java.lang.Class; public static getLongVersionCode(info: globalAndroid.content.pm.PackageInfo): number; @@ -12354,16 +12356,16 @@ declare module androidx { } } -declare module androidx { - export module core { - export module content { - export module pm { +declare namespace androidx { + export namespace core { + export namespace content { + export namespace pm { export class PermissionInfoCompat { public static class: java.lang.Class; public static getProtection(permissionInfo: globalAndroid.content.pm.PermissionInfo): number; public static getProtectionFlags(permissionInfo: globalAndroid.content.pm.PermissionInfo): number; } - export module PermissionInfoCompat { + export namespace PermissionInfoCompat { export class Protection { public static class: java.lang.Class; /** @@ -12388,10 +12390,10 @@ declare module androidx { } } -declare module androidx { - export module core { - export module content { - export module pm { +declare namespace androidx { + export namespace core { + export namespace content { + export namespace pm { export class ShortcutInfoCompat { public static class: java.lang.Class; public toShortcutInfo(): any; @@ -12404,7 +12406,7 @@ declare module androidx { public getIntents(): androidNative.Array; public getCategories(): java.util.Set | null; } - export module ShortcutInfoCompat { + export namespace ShortcutInfoCompat { export class Builder { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, id: string); @@ -12428,13 +12430,13 @@ declare module androidx { } } -declare module androidx { - export module core { - export module content { - export module pm { +declare namespace androidx { + export namespace core { + export namespace content { + export namespace pm { export class ShortcutManagerCompat { public static class: java.lang.Class; - public static isRequestPinShortcutSupported(permission: globalAndroid.content.Context): boolean; + public static isRequestPinShortcutSupported(context: globalAndroid.content.Context): boolean; public static requestPinShortcut(context: globalAndroid.content.Context, shortcut: androidx.core.content.pm.ShortcutInfoCompat, callback: globalAndroid.content.IntentSender | null): boolean; public static createShortcutResultIntent(context: globalAndroid.content.Context, shortcut: androidx.core.content.pm.ShortcutInfoCompat): globalAndroid.content.Intent; } @@ -12443,13 +12445,13 @@ declare module androidx { } } -declare module androidx { - export module core { - export module content { - export module res { +declare namespace androidx { + export namespace core { + export namespace content { + export namespace res { export class ColorStateListInflaterCompat { public static class: java.lang.Class; - public static inflate(parser: globalAndroid.content.res.Resources, e: number, resources: globalAndroid.content.res.Resources.Theme | null): globalAndroid.content.res.ColorStateList | null; + public static inflate(resources: globalAndroid.content.res.Resources, resId: number, theme: globalAndroid.content.res.Resources.Theme | null): globalAndroid.content.res.ColorStateList | null; public static createFromXml(r: globalAndroid.content.res.Resources, parser: org.xmlpull.v1.XmlPullParser, theme: globalAndroid.content.res.Resources.Theme | null): globalAndroid.content.res.ColorStateList; public static createFromXmlInner(r: globalAndroid.content.res.Resources, parser: org.xmlpull.v1.XmlPullParser, attrs: globalAndroid.util.AttributeSet, theme: globalAndroid.content.res.Resources.Theme | null): globalAndroid.content.res.ColorStateList; } @@ -12458,10 +12460,10 @@ declare module androidx { } } -declare module androidx { - export module core { - export module content { - export module res { +declare namespace androidx { + export namespace core { + export namespace content { + export namespace res { export class ComplexColorCompat { public static class: java.lang.Class; public getShader(): globalAndroid.graphics.Shader | null; @@ -12469,19 +12471,19 @@ declare module androidx { public setColor(color: number): void; public isGradient(): boolean; public isStateful(): boolean; - public onStateChanged(this_: androidNative.Array): boolean; + public onStateChanged(stateSet: androidNative.Array): boolean; public willDraw(): boolean; - public static inflate(e: globalAndroid.content.res.Resources, resources: number, resId: globalAndroid.content.res.Resources.Theme | null): androidx.core.content.res.ComplexColorCompat | null; + public static inflate(resources: globalAndroid.content.res.Resources, resId: number, theme: globalAndroid.content.res.Resources.Theme | null): androidx.core.content.res.ComplexColorCompat | null; } } } } } -declare module androidx { - export module core { - export module content { - export module res { +declare namespace androidx { + export namespace core { + export namespace content { + export namespace res { export class ConfigurationHelper { public static class: java.lang.Class; public static getDensityDpi(resources: globalAndroid.content.res.Resources): number; @@ -12491,19 +12493,19 @@ declare module androidx { } } -declare module androidx { - export module core { - export module content { - export module res { +declare namespace androidx { + export namespace core { + export namespace content { + export namespace res { export class FontResourcesParserCompat { public static class: java.lang.Class; - public static FETCH_STRATEGY_BLOCKING: number = 0; - public static FETCH_STRATEGY_ASYNC: number = 1; - public static INFINITE_TIMEOUT_VALUE: number = -1; + public static readonly FETCH_STRATEGY_BLOCKING = 0; + public static readonly FETCH_STRATEGY_ASYNC = 1; + public static readonly INFINITE_TIMEOUT_VALUE = -1; public static parse(parser: org.xmlpull.v1.XmlPullParser, resources: globalAndroid.content.res.Resources): androidx.core.content.res.FontResourcesParserCompat.FamilyResourceEntry | null; - public static readCerts(certId: globalAndroid.content.res.Resources, i: number): java.util.List>>; + public static readCerts(resources: globalAndroid.content.res.Resources, certsId: number): java.util.List>>; } - export module FontResourcesParserCompat { + export namespace FontResourcesParserCompat { export class FamilyResourceEntry { public static class: java.lang.Class; /** @@ -12550,14 +12552,14 @@ declare module androidx { } } -declare module androidx { - export module core { - export module content { - export module res { +declare namespace androidx { + export namespace core { + export namespace content { + export namespace res { export class GradientColorInflaterCompat { public static class: java.lang.Class; } - export module GradientColorInflaterCompat { + export namespace GradientColorInflaterCompat { export class ColorStops { public static class: java.lang.Class; } @@ -12567,15 +12569,15 @@ declare module androidx { } } -declare module androidx { - export module core { - export module content { - export module res { +declare namespace androidx { + export namespace core { + export namespace content { + export namespace res { export class GrowingArrayUtils { public static class: java.lang.Class; - public static append(newArray: androidNative.Array, array: number, currentSize: any): androidNative.Array; - public static append(newArray: androidNative.Array, array: number, currentSize: number): androidNative.Array; - public static append(newArray: androidNative.Array, array: number, currentSize: boolean): androidNative.Array; + public static append(array: androidNative.Array, currentSize: number, element: any): androidNative.Array; + public static append(array: androidNative.Array, currentSize: number, element: number): androidNative.Array; + public static append(array: androidNative.Array, currentSize: number, element: boolean): androidNative.Array; public static insert(array: androidNative.Array, currentSize: number, index: number, element: any): androidNative.Array; public static insert(array: androidNative.Array, currentSize: number, index: number, element: number): androidNative.Array; public static insert(array: androidNative.Array, currentSize: number, index: number, element: boolean): androidNative.Array; @@ -12586,10 +12588,10 @@ declare module androidx { } } -declare module androidx { - export module core { - export module content { - export module res { +declare namespace androidx { + export namespace core { + export namespace content { + export namespace res { export class ResourcesCompat { public static class: java.lang.Class; public static getDrawable(res: globalAndroid.content.res.Resources, id: number, theme: globalAndroid.content.res.Resources.Theme | null): globalAndroid.graphics.drawable.Drawable | null; @@ -12601,7 +12603,7 @@ declare module androidx { public static getFont(context: globalAndroid.content.Context, id: number, fontCallback: androidx.core.content.res.ResourcesCompat.FontCallback, handler: globalAndroid.os.Handler | null): void; public static getFont(context: globalAndroid.content.Context, id: number, value: globalAndroid.util.TypedValue, style: number, fontCallback: androidx.core.content.res.ResourcesCompat.FontCallback | null): globalAndroid.graphics.Typeface; } - export module ResourcesCompat { + export namespace ResourcesCompat { export abstract class FontCallback { public static class: java.lang.Class; public constructor(); @@ -12616,10 +12618,10 @@ declare module androidx { } } -declare module androidx { - export module core { - export module content { - export module res { +declare namespace androidx { + export namespace core { + export namespace content { + export namespace res { export class TypedArrayUtils { public static class: java.lang.Class; public static hasAttribute(parser: org.xmlpull.v1.XmlPullParser, attrName: string): boolean; @@ -12627,8 +12629,8 @@ declare module androidx { public static getNamedBoolean(a: globalAndroid.content.res.TypedArray, parser: org.xmlpull.v1.XmlPullParser, attrName: string, resId: number, defaultValue: boolean): boolean; public static getNamedInt(a: globalAndroid.content.res.TypedArray, parser: org.xmlpull.v1.XmlPullParser, attrName: string, resId: number, defaultValue: number): number; public static getNamedColor(a: globalAndroid.content.res.TypedArray, parser: org.xmlpull.v1.XmlPullParser, attrName: string, resId: number, defaultValue: number): number; - public static getNamedComplexColor(value: globalAndroid.content.res.TypedArray, complexColor: org.xmlpull.v1.XmlPullParser, a: globalAndroid.content.res.Resources.Theme | null, parser: string, theme: number, attrName: number): androidx.core.content.res.ComplexColorCompat; - public static getNamedColorStateList(value: globalAndroid.content.res.TypedArray, a: org.xmlpull.v1.XmlPullParser, parser: globalAndroid.content.res.Resources.Theme | null, theme: string, attrName: number): globalAndroid.content.res.ColorStateList | null; + public static getNamedComplexColor(a: globalAndroid.content.res.TypedArray, parser: org.xmlpull.v1.XmlPullParser, theme: globalAndroid.content.res.Resources.Theme | null, attrName: string, resId: number, defaultValue: number): androidx.core.content.res.ComplexColorCompat; + public static getNamedColorStateList(a: globalAndroid.content.res.TypedArray, parser: org.xmlpull.v1.XmlPullParser, theme: globalAndroid.content.res.Resources.Theme | null, attrName: string, resId: number): globalAndroid.content.res.ColorStateList | null; public static getNamedResourceId(a: globalAndroid.content.res.TypedArray, parser: org.xmlpull.v1.XmlPullParser, attrName: string, resId: number, defaultValue: number): number; public static getNamedString(a: globalAndroid.content.res.TypedArray, parser: org.xmlpull.v1.XmlPullParser, attrName: string, resId: number): string | null; public static peekNamedValue(a: globalAndroid.content.res.TypedArray, parser: org.xmlpull.v1.XmlPullParser, attrName: string, resId: number): globalAndroid.util.TypedValue | null; @@ -12647,9 +12649,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module database { +declare namespace androidx { + export namespace core { + export namespace database { export class CursorWindowCompat { public static class: java.lang.Class; public static create(name: string | null, windowSizeBytes: number): globalAndroid.database.CursorWindow; @@ -12658,9 +12660,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module database { +declare namespace androidx { + export namespace core { + export namespace database { export class DatabaseUtilsCompat { public static class: java.lang.Class; /** @deprecated */ @@ -12672,10 +12674,10 @@ declare module androidx { } } -declare module androidx { - export module core { - export module database { - export module sqlite { +declare namespace androidx { + export namespace core { + export namespace database { + export namespace sqlite { export class SQLiteCursorCompat { public static class: java.lang.Class; public static setFillWindowForwardOnly(cursor: globalAndroid.database.sqlite.SQLiteCursor, fillWindowForwardOnly: boolean): void; @@ -12685,9 +12687,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module graphics { +declare namespace androidx { + export namespace core { + export namespace graphics { export class BitmapCompat { public static class: java.lang.Class; public static hasMipMap(bitmap: globalAndroid.graphics.Bitmap): boolean; @@ -12698,17 +12700,17 @@ declare module androidx { } } -declare module androidx { - export module core { - export module graphics { +declare namespace androidx { + export namespace core { + export namespace graphics { export class ColorUtils { public static class: java.lang.Class; public static compositeColors(foreground: number, background: number): number; - public static compositeColors(i: globalAndroid.graphics.Color, foreground: globalAndroid.graphics.Color): globalAndroid.graphics.Color; + public static compositeColors(foreground: globalAndroid.graphics.Color, background: globalAndroid.graphics.Color): globalAndroid.graphics.Color; public static calculateLuminance(color: number): number; public static calculateContrast(foreground: number, background: number): number; - public static calculateMinimumAlpha(testAlpha: number, foreground: number, background: number): number; - public static RGBToHSL(h: number, s: number, h: number, h: androidNative.Array): void; + public static calculateMinimumAlpha(foreground: number, background: number, minContrastRatio: number): number; + public static RGBToHSL(r: number, g: number, b: number, outHsl: androidNative.Array): void; public static colorToHSL(color: number, outHsl: androidNative.Array): void; public static HSLToColor(hsl: androidNative.Array): number; public static setAlphaComponent(color: number, alpha: number): number; @@ -12729,30 +12731,30 @@ declare module androidx { } } -declare module androidx { - export module core { - export module graphics { +declare namespace androidx { + export namespace core { + export namespace graphics { export class PaintCompat { public static class: java.lang.Class; - public static hasGlyph(charCount: globalAndroid.graphics.Paint, sumWidth: string): boolean; + public static hasGlyph(paint: globalAndroid.graphics.Paint, string: string): boolean; } } } } -declare module androidx { - export module core { - export module graphics { +declare namespace androidx { + export namespace core { + export namespace graphics { export class PathParser { public static class: java.lang.Class; - public static createPathFromPathData(e: string): globalAndroid.graphics.Path; - public static createNodesFromPathData(val: string): androidNative.Array; - public static deepCopyNodes(i: androidNative.Array): androidNative.Array; - public static canMorph(i: androidNative.Array | null, nodesFrom: androidNative.Array | null): boolean; - public static updateNodes(j: androidNative.Array, i: androidNative.Array): void; - public static interpolatePathDataNodes(i: androidNative.Array, target: androidNative.Array, from: androidNative.Array, to: number): boolean; - } - export module PathParser { + public static createPathFromPathData(pathData: string): globalAndroid.graphics.Path; + public static createNodesFromPathData(pathData: string): androidNative.Array; + public static deepCopyNodes(source: androidNative.Array): androidNative.Array; + public static canMorph(nodesFrom: androidNative.Array | null, nodesTo: androidNative.Array | null): boolean; + public static updateNodes(target: androidNative.Array, source: androidNative.Array): void; + public static interpolatePathDataNodes(target: androidNative.Array, from: androidNative.Array, to: androidNative.Array, fraction: number): boolean; + } + export namespace PathParser { export class ExtractFloatResult { public static class: java.lang.Class; } @@ -12760,17 +12762,17 @@ declare module androidx { public static class: java.lang.Class; public mType: string; public mParams: androidNative.Array; - public static nodesToPath(i: androidNative.Array, node: globalAndroid.graphics.Path): void; - public interpolatePathDataNode(this_: androidx.core.graphics.PathParser.PathDataNode, nodeFrom: androidx.core.graphics.PathParser.PathDataNode, nodeTo: number): void; + public static nodesToPath(node: androidNative.Array, path: globalAndroid.graphics.Path): void; + public interpolatePathDataNode(nodeFrom: androidx.core.graphics.PathParser.PathDataNode, nodeTo: androidx.core.graphics.PathParser.PathDataNode, fraction: number): void; } } } } } -declare module androidx { - export module core { - export module graphics { +declare namespace androidx { + export namespace core { + export namespace graphics { export class PathSegment { public static class: java.lang.Class; public constructor(start: globalAndroid.graphics.PointF, startFraction: number, end: globalAndroid.graphics.PointF, endFraction: number); @@ -12786,59 +12788,59 @@ declare module androidx { } } -declare module androidx { - export module core { - export module graphics { +declare namespace androidx { + export namespace core { + export namespace graphics { export class PathUtils { public static class: java.lang.Class; public static flatten(path: globalAndroid.graphics.Path): java.util.Collection; - public static flatten(index: globalAndroid.graphics.Path, prevIndex: number): java.util.Collection; + public static flatten(path: globalAndroid.graphics.Path, error: number): java.util.Collection; } } } } -declare module androidx { - export module core { - export module graphics { +declare namespace androidx { + export namespace core { + export namespace graphics { export class TypefaceCompat { public static class: java.lang.Class; public static findFromCache(resources: globalAndroid.content.res.Resources, id: number, style: number): globalAndroid.graphics.Typeface | null; - public static createFromResourcesFamilyXml(providerEntry: globalAndroid.content.Context, isBlocking: androidx.core.content.res.FontResourcesParserCompat.FamilyResourceEntry, timeout: globalAndroid.content.res.Resources, typeface: number, context: number, entry: androidx.core.content.res.ResourcesCompat.FontCallback | null, resources: globalAndroid.os.Handler | null, id: boolean): globalAndroid.graphics.Typeface | null; - public static createFromResourcesFontFile(resourceUid: globalAndroid.content.Context, context: globalAndroid.content.res.Resources, resources: number, id: string, path: number): globalAndroid.graphics.Typeface | null; + public static createFromResourcesFamilyXml(context: globalAndroid.content.Context, entry: androidx.core.content.res.FontResourcesParserCompat.FamilyResourceEntry, resources: globalAndroid.content.res.Resources, id: number, style: number, fontCallback: androidx.core.content.res.ResourcesCompat.FontCallback | null, handler: globalAndroid.os.Handler | null, isRequestFromLayoutInflator: boolean): globalAndroid.graphics.Typeface | null; + public static createFromResourcesFontFile(context: globalAndroid.content.Context, resources: globalAndroid.content.res.Resources, id: number, path: string, style: number): globalAndroid.graphics.Typeface | null; public static createFromFontInfo(context: globalAndroid.content.Context, cancellationSignal: globalAndroid.os.CancellationSignal | null, fonts: androidNative.Array, style: number): globalAndroid.graphics.Typeface | null; } } } } -declare module androidx { - export module core { - export module graphics { +declare namespace androidx { + export namespace core { + export namespace graphics { export class TypefaceCompatApi21Impl extends androidx.core.graphics.TypefaceCompatBaseImpl { public static class: java.lang.Class; - public createFromFontInfo(file: globalAndroid.content.Context, pfd: globalAndroid.os.CancellationSignal, e: androidNative.Array, this_: number): globalAndroid.graphics.Typeface; + public createFromFontInfo(context: globalAndroid.content.Context, cancellationSignal: globalAndroid.os.CancellationSignal, fonts: androidNative.Array, style: number): globalAndroid.graphics.Typeface; } } } } -declare module androidx { - export module core { - export module graphics { +declare namespace androidx { + export namespace core { + export namespace graphics { export class TypefaceCompatApi24Impl extends androidx.core.graphics.TypefaceCompatBaseImpl { public static class: java.lang.Class; public static isUsable(): boolean; - public createFromFontInfo(buffer: globalAndroid.content.Context, font: globalAndroid.os.CancellationSignal | null, this_: androidNative.Array, context: number): globalAndroid.graphics.Typeface; - public createFromFontFamilyFilesResourceEntry(e: globalAndroid.content.Context, this_: androidx.core.content.res.FontResourcesParserCompat.FontFamilyFilesResourceEntry, context: globalAndroid.content.res.Resources, entry: number): globalAndroid.graphics.Typeface; + public createFromFontInfo(context: globalAndroid.content.Context, cancellationSignal: globalAndroid.os.CancellationSignal | null, fonts: androidNative.Array, style: number): globalAndroid.graphics.Typeface; + public createFromFontFamilyFilesResourceEntry(context: globalAndroid.content.Context, entry: androidx.core.content.res.FontResourcesParserCompat.FontFamilyFilesResourceEntry, resources: globalAndroid.content.res.Resources, style: number): globalAndroid.graphics.Typeface; } } } } -declare module androidx { - export module core { - export module graphics { +declare namespace androidx { + export namespace core { + export namespace graphics { export class TypefaceCompatApi26Impl extends androidx.core.graphics.TypefaceCompatApi21Impl { public static class: java.lang.Class; public mFontFamily: java.lang.Class; @@ -12849,9 +12851,9 @@ declare module androidx { public mAbortCreation: java.lang.reflect.Method; public mCreateFromFamiliesWithDefault: java.lang.reflect.Method; public constructor(); - public createFromFamiliesWithDefault(e: any): globalAndroid.graphics.Typeface; - public createFromFontFamilyFilesResourceEntry(this_: globalAndroid.content.Context, context: androidx.core.content.res.FontResourcesParserCompat.FontFamilyFilesResourceEntry, entry: globalAndroid.content.res.Resources, resources: number): globalAndroid.graphics.Typeface; - public createFromFontInfo(e: globalAndroid.content.Context, bestFont: globalAndroid.os.CancellationSignal | null, resolver: androidNative.Array, fontBuffer: number): globalAndroid.graphics.Typeface; + public createFromFamiliesWithDefault(family: any): globalAndroid.graphics.Typeface; + public createFromFontFamilyFilesResourceEntry(context: globalAndroid.content.Context, entry: androidx.core.content.res.FontResourcesParserCompat.FontFamilyFilesResourceEntry, resources: globalAndroid.content.res.Resources, style: number): globalAndroid.graphics.Typeface; + public createFromFontInfo(context: globalAndroid.content.Context, cancellationSignal: globalAndroid.os.CancellationSignal | null, fonts: androidNative.Array, style: number): globalAndroid.graphics.Typeface; public createFromResourcesFontFile(context: globalAndroid.content.Context, resources: globalAndroid.content.res.Resources, id: number, path: string, style: number): globalAndroid.graphics.Typeface | null; public obtainFontFamily(): java.lang.Class; public obtainFontFamilyCtor(fontFamily: java.lang.Class): java.lang.reflect.Constructor; @@ -12865,31 +12867,31 @@ declare module androidx { } } -declare module androidx { - export module core { - export module graphics { +declare namespace androidx { + export namespace core { + export namespace graphics { export class TypefaceCompatApi28Impl extends androidx.core.graphics.TypefaceCompatApi26Impl { public static class: java.lang.Class; public constructor(); - public createFromFamiliesWithDefault(e: any): globalAndroid.graphics.Typeface; + public createFromFamiliesWithDefault(family: any): globalAndroid.graphics.Typeface; public obtainCreateFromFamiliesWithDefaultMethod(fontFamily: java.lang.Class): java.lang.reflect.Method; } } } } -declare module androidx { - export module core { - export module graphics { +declare namespace androidx { + export namespace core { + export namespace graphics { export class TypefaceCompatBaseImpl { public static class: java.lang.Class; public findBestInfo(fonts: androidNative.Array, style: number): androidx.core.provider.FontsContractCompat.FontInfo; - public createFromInputStream(this_: globalAndroid.content.Context, context: java.io.InputStream): globalAndroid.graphics.Typeface; - public createFromFontInfo(this_: globalAndroid.content.Context, context: globalAndroid.os.CancellationSignal | null, cancellationSignal: androidNative.Array, fonts: number): globalAndroid.graphics.Typeface; + public createFromInputStream(context: globalAndroid.content.Context, is: java.io.InputStream): globalAndroid.graphics.Typeface; + public createFromFontInfo(context: globalAndroid.content.Context, cancellationSignal: globalAndroid.os.CancellationSignal | null, fonts: androidNative.Array, style: number): globalAndroid.graphics.Typeface; public createFromFontFamilyFilesResourceEntry(context: globalAndroid.content.Context, entry: androidx.core.content.res.FontResourcesParserCompat.FontFamilyFilesResourceEntry, resources: globalAndroid.content.res.Resources, style: number): globalAndroid.graphics.Typeface | null; - public createFromResourcesFontFile(this_: globalAndroid.content.Context, context: globalAndroid.content.res.Resources, resources: number, id: string, path: number): globalAndroid.graphics.Typeface | null; + public createFromResourcesFontFile(context: globalAndroid.content.Context, resources: globalAndroid.content.res.Resources, id: number, path: string, style: number): globalAndroid.graphics.Typeface | null; } - export module TypefaceCompatBaseImpl { + export namespace TypefaceCompatBaseImpl { export class StyleExtractor extends java.lang.Object { public static class: java.lang.Class>; /** @@ -12908,15 +12910,15 @@ declare module androidx { } } -declare module androidx { - export module core { - export module graphics { +declare namespace androidx { + export namespace core { + export namespace graphics { export class TypefaceCompatUtil { public static class: java.lang.Class; - public static getTempFile(file: globalAndroid.content.Context): java.io.File | null; - public static mmap(channel: globalAndroid.content.Context, size: globalAndroid.os.CancellationSignal, fis: globalAndroid.net.Uri): java.nio.ByteBuffer | null; + public static getTempFile(context: globalAndroid.content.Context): java.io.File | null; + public static mmap(context: globalAndroid.content.Context, cancellationSignal: globalAndroid.os.CancellationSignal, uri: globalAndroid.net.Uri): java.nio.ByteBuffer | null; public static copyToDirectBuffer(context: globalAndroid.content.Context, res: globalAndroid.content.res.Resources, id: number): java.nio.ByteBuffer | null; - public static copyToFile(buffer: java.io.File, readLen: java.io.InputStream): boolean; + public static copyToFile(file: java.io.File, is: java.io.InputStream): boolean; public static copyToFile(file: java.io.File, res: globalAndroid.content.res.Resources, id: number): boolean; public static closeQuietly(c: java.io.Closeable): void; } @@ -12924,10 +12926,10 @@ declare module androidx { } } -declare module androidx { - export module core { - export module graphics { - export module drawable { +declare namespace androidx { + export namespace core { + export namespace graphics { + export namespace drawable { export class DrawableCompat { public static class: java.lang.Class; /** @deprecated */ @@ -12943,25 +12945,25 @@ declare module androidx { public static applyTheme(drawable: globalAndroid.graphics.drawable.Drawable, theme: globalAndroid.content.res.Resources.Theme): void; public static canApplyTheme(drawable: globalAndroid.graphics.drawable.Drawable): boolean; public static getColorFilter(drawable: globalAndroid.graphics.drawable.Drawable): globalAndroid.graphics.ColorFilter; - public static clearColorFilter(child: globalAndroid.graphics.drawable.Drawable): void; + public static clearColorFilter(drawable: globalAndroid.graphics.drawable.Drawable): void; public static inflate(drawable: globalAndroid.graphics.drawable.Drawable, res: globalAndroid.content.res.Resources, parser: org.xmlpull.v1.XmlPullParser, attrs: globalAndroid.util.AttributeSet, theme: globalAndroid.content.res.Resources.Theme | null): void; public static wrap(drawable: globalAndroid.graphics.drawable.Drawable): globalAndroid.graphics.drawable.Drawable; public static unwrap(drawable: globalAndroid.graphics.drawable.Drawable): globalAndroid.graphics.drawable.Drawable; - public static setLayoutDirection(e: globalAndroid.graphics.drawable.Drawable, e: number): boolean; - public static getLayoutDirection(e: globalAndroid.graphics.drawable.Drawable): number; + public static setLayoutDirection(drawable: globalAndroid.graphics.drawable.Drawable, layoutDirection: number): boolean; + public static getLayoutDirection(drawable: globalAndroid.graphics.drawable.Drawable): number; } } } } } -declare module androidx { - export module core { - export module graphics { - export module drawable { +declare namespace androidx { + export namespace core { + export namespace graphics { + export namespace drawable { export class IconCompat extends androidx.versionedparcelable.CustomVersionedParcelable { public static class: java.lang.Class; - public static TYPE_UNKNOWN: number = -1; + public static readonly TYPE_UNKNOWN = -1; public mType: number; public mData: androidNative.Array; public mParcelable: globalAndroid.os.Parcelable; @@ -12970,7 +12972,7 @@ declare module androidx { public mTintList: globalAndroid.content.res.ColorStateList; public mTintModeStr: string; public static createWithResource(context: globalAndroid.content.Context, resId: number): androidx.core.graphics.drawable.IconCompat; - public static createWithResource(e: globalAndroid.content.res.Resources, r: string, pkg: number): androidx.core.graphics.drawable.IconCompat; + public static createWithResource(r: globalAndroid.content.res.Resources, pkg: string, resId: number): androidx.core.graphics.drawable.IconCompat; public static createWithBitmap(bits: globalAndroid.graphics.Bitmap): androidx.core.graphics.drawable.IconCompat; public static createWithAdaptiveBitmap(bits: globalAndroid.graphics.Bitmap): androidx.core.graphics.drawable.IconCompat; public static createWithData(data: androidNative.Array, offset: number, length: number): androidx.core.graphics.drawable.IconCompat; @@ -12986,18 +12988,18 @@ declare module androidx { public setTintList(tintList: globalAndroid.content.res.ColorStateList): androidx.core.graphics.drawable.IconCompat; public setTintMode(mode: globalAndroid.graphics.PorterDuff.Mode): androidx.core.graphics.drawable.IconCompat; public toIcon(): any; - public checkResource(resName: globalAndroid.content.Context): void; + public checkResource(context: globalAndroid.content.Context): void; public loadDrawable(context: globalAndroid.content.Context): globalAndroid.graphics.drawable.Drawable; - public addToShortcutIntent(icon: globalAndroid.content.Intent, icon: globalAndroid.graphics.drawable.Drawable | null, icon: globalAndroid.content.Context): void; + public addToShortcutIntent(outIntent: globalAndroid.content.Intent, badge: globalAndroid.graphics.drawable.Drawable | null, c: globalAndroid.content.Context): void; public toBundle(): globalAndroid.os.Bundle; public toString(): string; - public onPreParceling(data: boolean): void; + public onPreParceling(isStream: boolean): void; public onPostParceling(): void; public static createFromBundle(bundle: globalAndroid.os.Bundle): androidx.core.graphics.drawable.IconCompat | null; - public static createFromIcon(e: globalAndroid.content.Context, resPackage: any): androidx.core.graphics.drawable.IconCompat | null; + public static createFromIcon(context: globalAndroid.content.Context, icon: any): androidx.core.graphics.drawable.IconCompat | null; public static createFromIcon(icon: any): androidx.core.graphics.drawable.IconCompat | null; } - export module IconCompat { + export namespace IconCompat { export class IconType { public static class: java.lang.Class; /** @@ -13013,10 +13015,10 @@ declare module androidx { } } -declare module androidx { - export module core { - export module graphics { - export module drawable { +declare namespace androidx { + export namespace core { + export namespace graphics { + export namespace drawable { export class IconCompatParcelizer { public static class: java.lang.Class; public constructor(); @@ -13028,10 +13030,10 @@ declare module androidx { } } -declare module androidx { - export module core { - export module graphics { - export module drawable { +declare namespace androidx { + export namespace core { + export namespace graphics { + export namespace drawable { export abstract class RoundedBitmapDrawable { public static class: java.lang.Class; public getPaint(): globalAndroid.graphics.Paint; @@ -13066,10 +13068,10 @@ declare module androidx { } } -declare module androidx { - export module core { - export module graphics { - export module drawable { +declare namespace androidx { + export namespace core { + export namespace graphics { + export namespace drawable { export class RoundedBitmapDrawable21 extends androidx.core.graphics.drawable.RoundedBitmapDrawable { public static class: java.lang.Class; public constructor(res: globalAndroid.content.res.Resources, bitmap: globalAndroid.graphics.Bitmap); @@ -13082,17 +13084,17 @@ declare module androidx { } } -declare module androidx { - export module core { - export module graphics { - export module drawable { +declare namespace androidx { + export namespace core { + export namespace graphics { + export namespace drawable { export class RoundedBitmapDrawableFactory { public static class: java.lang.Class; public static create(res: globalAndroid.content.res.Resources, bitmap: globalAndroid.graphics.Bitmap | null): androidx.core.graphics.drawable.RoundedBitmapDrawable; public static create(res: globalAndroid.content.res.Resources, filepath: string): androidx.core.graphics.drawable.RoundedBitmapDrawable; public static create(res: globalAndroid.content.res.Resources, is: java.io.InputStream): androidx.core.graphics.drawable.RoundedBitmapDrawable; } - export module RoundedBitmapDrawableFactory { + export namespace RoundedBitmapDrawableFactory { export class DefaultRoundedBitmapDrawable extends androidx.core.graphics.drawable.RoundedBitmapDrawable { public static class: java.lang.Class; public setMipMap(mipMap: boolean): void; @@ -13104,10 +13106,10 @@ declare module androidx { } } -declare module androidx { - export module core { - export module graphics { - export module drawable { +declare namespace androidx { + export namespace core { + export namespace graphics { + export namespace drawable { export class TintAwareDrawable { public static class: java.lang.Class; /** @@ -13128,10 +13130,10 @@ declare module androidx { } } -declare module androidx { - export module core { - export module graphics { - export module drawable { +declare namespace androidx { + export namespace core { + export namespace graphics { + export namespace drawable { export class WrappedDrawable { public static class: java.lang.Class; /** @@ -13150,10 +13152,10 @@ declare module androidx { } } -declare module androidx { - export module core { - export module graphics { - export module drawable { +declare namespace androidx { + export namespace core { + export namespace graphics { + export namespace drawable { export class WrappedDrawableApi14 implements androidx.core.graphics.drawable.WrappedDrawable, androidx.core.graphics.drawable.TintAwareDrawable { public static class: java.lang.Class; public jumpToCurrentState(): void; @@ -13201,10 +13203,10 @@ declare module androidx { } } -declare module androidx { - export module core { - export module graphics { - export module drawable { +declare namespace androidx { + export namespace core { + export namespace graphics { + export namespace drawable { export class WrappedDrawableApi21 extends androidx.core.graphics.drawable.WrappedDrawableApi14 { public static class: java.lang.Class; public setHotspot(x: number, y: number): void; @@ -13228,10 +13230,10 @@ declare module androidx { } } -declare module androidx { - export module core { - export module graphics { - export module drawable { +declare namespace androidx { + export namespace core { + export namespace graphics { + export namespace drawable { export class WrappedDrawableState { public static class: java.lang.Class; public newDrawable(): globalAndroid.graphics.drawable.Drawable; @@ -13243,14 +13245,14 @@ declare module androidx { } } -declare module androidx { - export module core { - export module hardware { - export module display { +declare namespace androidx { + export namespace core { + export namespace hardware { + export namespace display { export class DisplayManagerCompat { public static class: java.lang.Class; - public static DISPLAY_CATEGORY_PRESENTATION: string = "android.hardware.display.category.PRESENTATION"; - public static getInstance(instance: globalAndroid.content.Context): androidx.core.hardware.display.DisplayManagerCompat; + public static readonly DISPLAY_CATEGORY_PRESENTATION = "android.hardware.display.category.PRESENTATION"; + public static getInstance(context: globalAndroid.content.Context): androidx.core.hardware.display.DisplayManagerCompat; public getDisplay(displayId: number): globalAndroid.view.Display | null; public getDisplays(): androidNative.Array; public getDisplays(category: string | null): androidNative.Array; @@ -13260,18 +13262,18 @@ declare module androidx { } } -declare module androidx { - export module core { - export module hardware { - export module fingerprint { +declare namespace androidx { + export namespace core { + export namespace hardware { + export namespace fingerprint { export class FingerprintManagerCompat { public static class: java.lang.Class; public static from(context: globalAndroid.content.Context): androidx.core.hardware.fingerprint.FingerprintManagerCompat; public hasEnrolledFingerprints(): boolean; public isHardwareDetected(): boolean; - public authenticate(fp: androidx.core.hardware.fingerprint.FingerprintManagerCompat.CryptoObject | null, this_: number, crypto: androidx.core.os.CancellationSignal | null, flags: androidx.core.hardware.fingerprint.FingerprintManagerCompat.AuthenticationCallback, cancel: globalAndroid.os.Handler | null): void; + public authenticate(crypto: androidx.core.hardware.fingerprint.FingerprintManagerCompat.CryptoObject | null, flags: number, cancel: androidx.core.os.CancellationSignal | null, callback: androidx.core.hardware.fingerprint.FingerprintManagerCompat.AuthenticationCallback, handler: globalAndroid.os.Handler | null): void; } - export module FingerprintManagerCompat { + export namespace FingerprintManagerCompat { export abstract class AuthenticationCallback { public static class: java.lang.Class; public constructor(); @@ -13300,10 +13302,10 @@ declare module androidx { } } -declare module androidx { - export module core { - export module internal { - export module view { +declare namespace androidx { + export namespace core { + export namespace internal { + export namespace view { export class SupportMenu { public static class: java.lang.Class; /** @@ -13313,12 +13315,12 @@ declare module androidx { setGroupDividerEnabled(param0: boolean): void; }); public constructor(); - public static FLAG_KEEP_OPEN_ON_SUBMENU_OPENED: number = 4; - public static USER_SHIFT: number = 0; - public static SUPPORTED_MODIFIERS_MASK: number = 69647; - public static CATEGORY_MASK: number = -65536; - public static USER_MASK: number = 65535; - public static CATEGORY_SHIFT: number = 16; + public static readonly FLAG_KEEP_OPEN_ON_SUBMENU_OPENED = 4; + public static readonly USER_SHIFT = 0; + public static readonly SUPPORTED_MODIFIERS_MASK = 69647; + public static readonly CATEGORY_MASK = -65536; + public static readonly USER_MASK = 65535; + public static readonly CATEGORY_SHIFT = 16; public setGroupDividerEnabled(param0: boolean): void; } } @@ -13326,10 +13328,10 @@ declare module androidx { } } -declare module androidx { - export module core { - export module internal { - export module view { +declare namespace androidx { + export namespace core { + export namespace internal { + export namespace view { export class SupportMenuItem { public static class: java.lang.Class; /** @@ -13363,11 +13365,11 @@ declare module androidx { requiresOverflow(): boolean; }); public constructor(); - public static SHOW_AS_ACTION_NEVER: number = 0; - public static SHOW_AS_ACTION_ALWAYS: number = 2; - public static SHOW_AS_ACTION_IF_ROOM: number = 1; - public static SHOW_AS_ACTION_WITH_TEXT: number = 4; - public static SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW: number = 8; + public static readonly SHOW_AS_ACTION_NEVER = 0; + public static readonly SHOW_AS_ACTION_ALWAYS = 2; + public static readonly SHOW_AS_ACTION_IF_ROOM = 1; + public static readonly SHOW_AS_ACTION_WITH_TEXT = 4; + public static readonly SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW = 8; public setShowAsAction(param0: number): void; public setShowAsActionFlags(param0: number): globalAndroid.view.MenuItem; public setActionView(param0: globalAndroid.view.View): globalAndroid.view.MenuItem; @@ -13399,10 +13401,10 @@ declare module androidx { } } -declare module androidx { - export module core { - export module internal { - export module view { +declare namespace androidx { + export namespace core { + export namespace internal { + export namespace view { export class SupportSubMenu extends androidx.core.internal.view.SupportMenu { public static class: java.lang.Class; /** @@ -13412,12 +13414,12 @@ declare module androidx { setGroupDividerEnabled(param0: boolean): void; }); public constructor(); - public static FLAG_KEEP_OPEN_ON_SUBMENU_OPENED: number = 4; - public static USER_SHIFT: number = 0; - public static SUPPORTED_MODIFIERS_MASK: number = 69647; - public static CATEGORY_MASK: number = -65536; - public static USER_MASK: number = 65535; - public static CATEGORY_SHIFT: number = 16; + public static readonly FLAG_KEEP_OPEN_ON_SUBMENU_OPENED = 4; + public static readonly USER_SHIFT = 0; + public static readonly SUPPORTED_MODIFIERS_MASK = 69647; + public static readonly CATEGORY_MASK = -65536; + public static readonly USER_MASK = 65535; + public static readonly CATEGORY_SHIFT = 16; public setGroupDividerEnabled(param0: boolean): void; } } @@ -13425,9 +13427,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module math { +declare namespace androidx { + export namespace core { + export namespace math { export class MathUtils { public static class: java.lang.Class; public static clamp(value: number, min: number, max: number): number; @@ -13436,19 +13438,19 @@ declare module androidx { } } -declare module androidx { - export module core { - export module net { +declare namespace androidx { + export namespace core { + export namespace net { export class ConnectivityManagerCompat { public static class: java.lang.Class; - public static RESTRICT_BACKGROUND_STATUS_DISABLED: number = 1; - public static RESTRICT_BACKGROUND_STATUS_WHITELISTED: number = 2; - public static RESTRICT_BACKGROUND_STATUS_ENABLED: number = 3; - public static isActiveNetworkMetered(info: globalAndroid.net.ConnectivityManager): boolean; + public static readonly RESTRICT_BACKGROUND_STATUS_DISABLED = 1; + public static readonly RESTRICT_BACKGROUND_STATUS_WHITELISTED = 2; + public static readonly RESTRICT_BACKGROUND_STATUS_ENABLED = 3; + public static isActiveNetworkMetered(cm: globalAndroid.net.ConnectivityManager): boolean; public static getNetworkInfoFromBroadcast(cm: globalAndroid.net.ConnectivityManager, intent: globalAndroid.content.Intent): globalAndroid.net.NetworkInfo | null; public static getRestrictBackgroundStatus(cm: globalAndroid.net.ConnectivityManager): number; } - export module ConnectivityManagerCompat { + export namespace ConnectivityManagerCompat { export class RestrictBackgroundStatus { public static class: java.lang.Class; /** @@ -13463,13 +13465,13 @@ declare module androidx { } } -declare module androidx { - export module core { - export module net { +declare namespace androidx { + export namespace core { + export namespace net { export class DatagramSocketWrapper { public static class: java.lang.Class; } - export module DatagramSocketWrapper { + export namespace DatagramSocketWrapper { export class DatagramSocketImplWrapper { public static class: java.lang.Class; public accept(newSocket: java.net.SocketImpl): void; @@ -13492,9 +13494,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module net { +declare namespace androidx { + export namespace core { + export namespace net { export class TrafficStatsCompat { public static class: java.lang.Class; /** @deprecated */ @@ -13511,16 +13513,16 @@ declare module androidx { public static tagSocket(socket: java.net.Socket): void; /** @deprecated */ public static untagSocket(socket: java.net.Socket): void; - public static tagDatagramSocket(pfd: java.net.DatagramSocket): void; - public static untagDatagramSocket(pfd: java.net.DatagramSocket): void; + public static tagDatagramSocket(socket: java.net.DatagramSocket): void; + public static untagDatagramSocket(socket: java.net.DatagramSocket): void; } } } } -declare module androidx { - export module core { - export module os { +declare namespace androidx { + export namespace core { + export namespace os { export class BuildCompat { public static class: java.lang.Class; /** @deprecated */ @@ -13539,9 +13541,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module os { +declare namespace androidx { + export namespace core { + export namespace os { export class CancellationSignal { public static class: java.lang.Class; public constructor(); @@ -13551,7 +13553,7 @@ declare module androidx { public setOnCancelListener(listener: androidx.core.os.CancellationSignal.OnCancelListener | null): void; public getCancellationSignalObject(): any; } - export module CancellationSignal { + export namespace CancellationSignal { export class OnCancelListener { public static class: java.lang.Class; /** @@ -13568,9 +13570,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module os { +declare namespace androidx { + export namespace core { + export namespace os { export class ConfigurationCompat { public static class: java.lang.Class; public static getLocales(configuration: globalAndroid.content.res.Configuration): androidx.core.os.LocaleListCompat; @@ -13579,34 +13581,34 @@ declare module androidx { } } -declare module androidx { - export module core { - export module os { +declare namespace androidx { + export namespace core { + export namespace os { export class EnvironmentCompat { public static class: java.lang.Class; - public static MEDIA_UNKNOWN: string = "unknown"; - public static getStorageState(canonicalPath: java.io.File): string; + public static readonly MEDIA_UNKNOWN = "unknown"; + public static getStorageState(path: java.io.File): string; } } } } -declare module androidx { - export module core { - export module os { +declare namespace androidx { + export namespace core { + export namespace os { export class HandlerCompat { public static class: java.lang.Class; - public static createAsync(cause: globalAndroid.os.Looper): globalAndroid.os.Handler; - public static createAsync(cause: globalAndroid.os.Looper, e: globalAndroid.os.Handler.Callback): globalAndroid.os.Handler; + public static createAsync(looper: globalAndroid.os.Looper): globalAndroid.os.Handler; + public static createAsync(looper: globalAndroid.os.Looper, callback: globalAndroid.os.Handler.Callback): globalAndroid.os.Handler; public static postDelayed(handler: globalAndroid.os.Handler, r: java.lang.Runnable, token: any, delayMillis: number): boolean; } } } } -declare module androidx { - export module core { - export module os { +declare namespace androidx { + export namespace core { + export namespace os { export class LocaleListCompat { public static class: java.lang.Class; public static wrap(localeList: any): androidx.core.os.LocaleListCompat; @@ -13619,7 +13621,7 @@ declare module androidx { public toLanguageTags(): string; public getFirstMatch(supportedLocales: androidNative.Array): java.util.Locale | null; public static getEmptyLocaleList(): androidx.core.os.LocaleListCompat; - public static forLanguageTags(i: string | null): androidx.core.os.LocaleListCompat; + public static forLanguageTags(list: string | null): androidx.core.os.LocaleListCompat; public static getAdjustedDefault(): androidx.core.os.LocaleListCompat; public static getDefault(): androidx.core.os.LocaleListCompat; public equals(other: any): boolean; @@ -13630,17 +13632,17 @@ declare module androidx { } } -declare module androidx { - export module core { - export module os { +declare namespace androidx { + export namespace core { + export namespace os { export class LocaleListCompatWrapper extends androidx.core.os.LocaleListInterface { public static class: java.lang.Class; public getLocaleList(): any; public get(index: number): java.util.Locale; public isEmpty(): boolean; public size(): number; - public indexOf(this_: java.util.Locale): number; - public equals(this_: any): boolean; + public indexOf(locale: java.util.Locale): number; + public equals(other: any): boolean; public hashCode(): number; public toString(): string; public toLanguageTags(): string; @@ -13653,9 +13655,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module os { +declare namespace androidx { + export namespace core { + export namespace os { export class LocaleListInterface { public static class: java.lang.Class; /** @@ -13683,9 +13685,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module os { +declare namespace androidx { + export namespace core { + export namespace os { export class LocaleListPlatformWrapper extends androidx.core.os.LocaleListInterface { public static class: java.lang.Class; public getLocaleList(): any; @@ -13706,21 +13708,21 @@ declare module androidx { } } -declare module androidx { - export module core { - export module os { +declare namespace androidx { + export namespace core { + export namespace os { export class MessageCompat { public static class: java.lang.Class; - public static setAsynchronous(e: globalAndroid.os.Message, message: boolean): void; - public static isAsynchronous(e: globalAndroid.os.Message): boolean; + public static setAsynchronous(message: globalAndroid.os.Message, async: boolean): void; + public static isAsynchronous(message: globalAndroid.os.Message): boolean; } } } } -declare module androidx { - export module core { - export module os { +declare namespace androidx { + export namespace core { + export namespace os { export class OperationCanceledException { public static class: java.lang.Class; public constructor(); @@ -13730,9 +13732,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module os { +declare namespace androidx { + export namespace core { + export namespace os { export class ParcelCompat { public static class: java.lang.Class; public static readBoolean(in_: globalAndroid.os.Parcel): boolean; @@ -13742,15 +13744,15 @@ declare module androidx { } } -declare module androidx { - export module core { - export module os { +declare namespace androidx { + export namespace core { + export namespace os { export class ParcelableCompat { public static class: java.lang.Class; /** @deprecated */ public static newCreator(callbacks: androidx.core.os.ParcelableCompatCreatorCallbacks): globalAndroid.os.Parcelable.Creator; } - export module ParcelableCompat { + export namespace ParcelableCompat { export class ParcelableCompatCreatorHoneycombMR2 extends globalAndroid.os.Parcelable.ClassLoaderCreator { public static class: java.lang.Class>; public createFromParcel(in_: globalAndroid.os.Parcel): any; @@ -13762,9 +13764,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module os { +declare namespace androidx { + export namespace core { + export namespace os { export class ParcelableCompatCreatorCallbacks extends java.lang.Object { public static class: java.lang.Class>; /** @@ -13782,9 +13784,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module os { +declare namespace androidx { + export namespace core { + export namespace os { export class TraceCompat { public static class: java.lang.Class; public static beginSection(sectionName: string): void; @@ -13794,9 +13796,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module os { +declare namespace androidx { + export namespace core { + export namespace os { export class UserManagerCompat { public static class: java.lang.Class; public static isUserUnlocked(context: globalAndroid.content.Context): boolean; @@ -13805,9 +13807,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module provider { +declare namespace androidx { + export namespace core { + export namespace provider { export class FontRequest { public static class: java.lang.Class; public constructor(providerAuthority: string, providerPackage: string, query: string, certificates: java.util.List>>); @@ -13824,40 +13826,40 @@ declare module androidx { } } -declare module androidx { - export module core { - export module provider { +declare namespace androidx { + export namespace core { + export namespace provider { export class FontsContractCompat { public static class: java.lang.Class; - public static PARCEL_FONT_RESULTS: string = "font_results"; + public static readonly PARCEL_FONT_RESULTS = "font_results"; public static resetCache(): void; - public static getFontSync(typefaceResult: globalAndroid.content.Context, e: androidx.core.provider.FontRequest, pendingReplies: androidx.core.content.res.ResourcesCompat.FontCallback | null, reply: globalAndroid.os.Handler | null, context: boolean, request: number, fontCallback: number): globalAndroid.graphics.Typeface; + public static getFontSync(context: globalAndroid.content.Context, request: androidx.core.provider.FontRequest, fontCallback: androidx.core.content.res.ResourcesCompat.FontCallback | null, handler: globalAndroid.os.Handler | null, isBlockingFetch: boolean, timeout: number, style: number): globalAndroid.graphics.Typeface; public static requestFont(context: globalAndroid.content.Context, request: androidx.core.provider.FontRequest, callback: androidx.core.provider.FontsContractCompat.FontRequestCallback, handler: globalAndroid.os.Handler): void; public static buildTypeface(context: globalAndroid.content.Context, cancellationSignal: globalAndroid.os.CancellationSignal | null, fonts: androidNative.Array): globalAndroid.graphics.Typeface | null; - public static prepareFontData(uri: globalAndroid.content.Context, buffer: androidNative.Array, font: globalAndroid.os.CancellationSignal): java.util.Map; + public static prepareFontData(context: globalAndroid.content.Context, fonts: androidNative.Array, cancellationSignal: globalAndroid.os.CancellationSignal): java.util.Map; public static fetchFonts(context: globalAndroid.content.Context, cancellationSignal: globalAndroid.os.CancellationSignal | null, request: androidx.core.provider.FontRequest): androidx.core.provider.FontsContractCompat.FontFamilyResult; - public static getProvider(requestSignatures: globalAndroid.content.pm.PackageManager, i: androidx.core.provider.FontRequest, packageManager: globalAndroid.content.res.Resources | null): globalAndroid.content.pm.ProviderInfo | null; + public static getProvider(packageManager: globalAndroid.content.pm.PackageManager, request: androidx.core.provider.FontRequest, resources: globalAndroid.content.res.Resources | null): globalAndroid.content.pm.ProviderInfo | null; } - export module FontsContractCompat { + export namespace FontsContractCompat { export class Columns { public static class: java.lang.Class; - public static FILE_ID: string = "file_id"; - public static TTC_INDEX: string = "font_ttc_index"; - public static VARIATION_SETTINGS: string = "font_variation_settings"; - public static WEIGHT: string = "font_weight"; - public static ITALIC: string = "font_italic"; - public static RESULT_CODE: string = "result_code"; - public static RESULT_CODE_OK: number = 0; - public static RESULT_CODE_FONT_NOT_FOUND: number = 1; - public static RESULT_CODE_FONT_UNAVAILABLE: number = 2; - public static RESULT_CODE_MALFORMED_QUERY: number = 3; + public static readonly FILE_ID = "file_id"; + public static readonly TTC_INDEX = "font_ttc_index"; + public static readonly VARIATION_SETTINGS = "font_variation_settings"; + public static readonly WEIGHT = "font_weight"; + public static readonly ITALIC = "font_italic"; + public static readonly RESULT_CODE = "result_code"; + public static readonly RESULT_CODE_OK = 0; + public static readonly RESULT_CODE_FONT_NOT_FOUND = 1; + public static readonly RESULT_CODE_FONT_UNAVAILABLE = 2; + public static readonly RESULT_CODE_MALFORMED_QUERY = 3; public constructor(); } export class FontFamilyResult { public static class: java.lang.Class; - public static STATUS_OK: number = 0; - public static STATUS_WRONG_CERTIFICATES: number = 1; - public static STATUS_UNEXPECTED_DATA_PROVIDED: number = 2; + public static readonly STATUS_OK = 0; + public static readonly STATUS_WRONG_CERTIFICATES = 1; + public static readonly STATUS_UNEXPECTED_DATA_PROVIDED = 2; public constructor(statusCode: number, fonts: androidNative.Array | null); public getStatusCode(): number; public getFonts(): androidNative.Array; @@ -13873,19 +13875,19 @@ declare module androidx { } export class FontRequestCallback { public static class: java.lang.Class; - public static RESULT_OK: number = 0; - public static FAIL_REASON_PROVIDER_NOT_FOUND: number = -1; - public static FAIL_REASON_WRONG_CERTIFICATES: number = -2; - public static FAIL_REASON_FONT_LOAD_ERROR: number = -3; - public static FAIL_REASON_SECURITY_VIOLATION: number = -4; - public static FAIL_REASON_FONT_NOT_FOUND: number = 1; - public static FAIL_REASON_FONT_UNAVAILABLE: number = 2; - public static FAIL_REASON_MALFORMED_QUERY: number = 3; + public static readonly RESULT_OK = 0; + public static readonly FAIL_REASON_PROVIDER_NOT_FOUND = -1; + public static readonly FAIL_REASON_WRONG_CERTIFICATES = -2; + public static readonly FAIL_REASON_FONT_LOAD_ERROR = -3; + public static readonly FAIL_REASON_SECURITY_VIOLATION = -4; + public static readonly FAIL_REASON_FONT_NOT_FOUND = 1; + public static readonly FAIL_REASON_FONT_UNAVAILABLE = 2; + public static readonly FAIL_REASON_MALFORMED_QUERY = 3; public constructor(); public onTypefaceRetrieved(typeface: globalAndroid.graphics.Typeface): void; public onTypefaceRequestFailed(reason: number): void; } - export module FontRequestCallback { + export namespace FontRequestCallback { export class FontRequestFailReason { public static class: java.lang.Class; /** @@ -13904,18 +13906,18 @@ declare module androidx { } } -declare module androidx { - export module core { - export module provider { +declare namespace androidx { + export namespace core { + export namespace provider { export class SelfDestructiveThread { public static class: java.lang.Class; public constructor(threadName: string, priority: number, destructAfterMillisec: number); public isRunning(): boolean; public getGeneration(): number; public postAndReply(callable: java.util.concurrent.Callable, reply: androidx.core.provider.SelfDestructiveThread.ReplyCallback): void; - public postAndWait(this_: java.util.concurrent.Callable, callable: number): any; + public postAndWait(callable: java.util.concurrent.Callable, timeoutMillis: number): any; } - export module SelfDestructiveThread { + export namespace SelfDestructiveThread { export class ReplyCallback extends java.lang.Object { public static class: java.lang.Class>; /** @@ -13932,22 +13934,22 @@ declare module androidx { } } -declare module androidx { - export module core { - export module telephony { - export module mbms { +declare namespace androidx { + export namespace core { + export namespace telephony { + export namespace mbms { export class MbmsHelper { public static class: java.lang.Class; - public static getBestNameForService(l: globalAndroid.content.Context, context: any): string | null; + public static getBestNameForService(context: globalAndroid.content.Context, serviceInfo: any): string | null; } } } } } -declare module androidx { - export module core { - export module text { +declare namespace androidx { + export namespace core { + export namespace text { export class BidiFormatter { public static class: java.lang.Class; public static getInstance(): androidx.core.text.BidiFormatter; @@ -13961,7 +13963,7 @@ declare module androidx { public unicodeWrap(str: string, isolate: boolean): string; public unicodeWrap(str: string): string; } - export module BidiFormatter { + export namespace BidiFormatter { export class Builder { public static class: java.lang.Class; public constructor(); @@ -13979,22 +13981,22 @@ declare module androidx { } } -declare module androidx { - export module core { - export module text { +declare namespace androidx { + export namespace core { + export namespace text { export class HtmlCompat { public static class: java.lang.Class; - public static TO_HTML_PARAGRAPH_LINES_CONSECUTIVE: number = 0; - public static TO_HTML_PARAGRAPH_LINES_INDIVIDUAL: number = 1; - public static FROM_HTML_SEPARATOR_LINE_BREAK_PARAGRAPH: number = 1; - public static FROM_HTML_SEPARATOR_LINE_BREAK_HEADING: number = 2; - public static FROM_HTML_SEPARATOR_LINE_BREAK_LIST_ITEM: number = 4; - public static FROM_HTML_SEPARATOR_LINE_BREAK_LIST: number = 8; - public static FROM_HTML_SEPARATOR_LINE_BREAK_DIV: number = 16; - public static FROM_HTML_SEPARATOR_LINE_BREAK_BLOCKQUOTE: number = 32; - public static FROM_HTML_OPTION_USE_CSS_COLORS: number = 256; - public static FROM_HTML_MODE_LEGACY: number = 0; - public static FROM_HTML_MODE_COMPACT: number = 63; + public static readonly TO_HTML_PARAGRAPH_LINES_CONSECUTIVE = 0; + public static readonly TO_HTML_PARAGRAPH_LINES_INDIVIDUAL = 1; + public static readonly FROM_HTML_SEPARATOR_LINE_BREAK_PARAGRAPH = 1; + public static readonly FROM_HTML_SEPARATOR_LINE_BREAK_HEADING = 2; + public static readonly FROM_HTML_SEPARATOR_LINE_BREAK_LIST_ITEM = 4; + public static readonly FROM_HTML_SEPARATOR_LINE_BREAK_LIST = 8; + public static readonly FROM_HTML_SEPARATOR_LINE_BREAK_DIV = 16; + public static readonly FROM_HTML_SEPARATOR_LINE_BREAK_BLOCKQUOTE = 32; + public static readonly FROM_HTML_OPTION_USE_CSS_COLORS = 256; + public static readonly FROM_HTML_MODE_LEGACY = 0; + public static readonly FROM_HTML_MODE_COMPACT = 63; public static fromHtml(source: string, flags: number): globalAndroid.text.Spanned; public static fromHtml(source: string, flags: number, imageGetter: globalAndroid.text.Html.ImageGetter | null, tagHandler: globalAndroid.text.Html.TagHandler | null): globalAndroid.text.Spanned; public static toHtml(text: globalAndroid.text.Spanned, options: number): string; @@ -14003,24 +14005,24 @@ declare module androidx { } } -declare module androidx { - export module core { - export module text { +declare namespace androidx { + export namespace core { + export namespace text { export class ICUCompat { public static class: java.lang.Class; - public static maximizeAndGetScript(args: java.util.Locale): string | null; + public static maximizeAndGetScript(locale: java.util.Locale): string | null; } } } } -declare module androidx { - export module core { - export module text { +declare namespace androidx { + export namespace core { + export namespace text { export class PrecomputedTextCompat extends android.text.Spannable { public static class: java.lang.Class; - public static create(paraStart: string, i: androidx.core.text.PrecomputedTextCompat.Params): androidx.core.text.PrecomputedTextCompat; - public getPrecomputedText(): any | null; + public static create(text: string, params: androidx.core.text.PrecomputedTextCompat.Params): androidx.core.text.PrecomputedTextCompat; + public getPrecomputedText(): any; public getParams(): androidx.core.text.PrecomputedTextCompat.Params; public getParagraphCount(): number; public getParagraphStart(paraIndex: number): number; @@ -14038,7 +14040,7 @@ declare module androidx { public subSequence(start: number, end: number): string; public toString(): string; } - export module PrecomputedTextCompat { + export namespace PrecomputedTextCompat { export class Params { public static class: java.lang.Class; public constructor(wrapped: any); @@ -14050,7 +14052,7 @@ declare module androidx { public hashCode(): number; public toString(): string; } - export module Params { + export namespace Params { export class Builder { public static class: java.lang.Class; public constructor(paint: globalAndroid.text.TextPaint); @@ -14063,7 +14065,7 @@ declare module androidx { export class PrecomputedTextFutureTask extends java.util.concurrent.FutureTask { public static class: java.lang.Class; } - export module PrecomputedTextFutureTask { + export namespace PrecomputedTextFutureTask { export class PrecomputedTextCallback extends java.util.concurrent.Callable { public static class: java.lang.Class; public call(): androidx.core.text.PrecomputedTextCompat; @@ -14074,9 +14076,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module text { +declare namespace androidx { + export namespace core { + export namespace text { export class TextDirectionHeuristicCompat { public static class: java.lang.Class; /** @@ -14094,9 +14096,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module text { +declare namespace androidx { + export namespace core { + export namespace text { export class TextDirectionHeuristicsCompat { public static class: java.lang.Class; public static LTR: androidx.core.text.TextDirectionHeuristicCompat; @@ -14106,15 +14108,15 @@ declare module androidx { public static ANYRTL_LTR: androidx.core.text.TextDirectionHeuristicCompat; public static LOCALE: androidx.core.text.TextDirectionHeuristicCompat; } - export module TextDirectionHeuristicsCompat { + export namespace TextDirectionHeuristicsCompat { export class AnyStrong extends androidx.core.text.TextDirectionHeuristicsCompat.TextDirectionAlgorithm { public static class: java.lang.Class; - public checkRtl(e: string, this_: number, cs: number): number; + public checkRtl(cs: string, start: number, count: number): number; public checkRtl(param0: string, param1: number, param2: number): number; } export class FirstStrong extends androidx.core.text.TextDirectionHeuristicsCompat.TextDirectionAlgorithm { public static class: java.lang.Class; - public checkRtl(e: string, this_: number, cs: number): number; + public checkRtl(cs: string, start: number, count: number): number; public checkRtl(param0: string, param1: number, param2: number): number; } export class TextDirectionAlgorithm { @@ -14155,31 +14157,31 @@ declare module androidx { } } -declare module androidx { - export module core { - export module text { +declare namespace androidx { + export namespace core { + export namespace text { export class TextUtilsCompat { public static class: java.lang.Class; - public static htmlEncode(c: string): string; - public static getLayoutDirectionFromLocale(scriptSubtag: java.util.Locale | null): number; + public static htmlEncode(s: string): string; + public static getLayoutDirectionFromLocale(locale: java.util.Locale | null): number; } } } } -declare module androidx { - export module core { - export module text { - export module util { +declare namespace androidx { + export namespace core { + export namespace text { + export namespace util { export class FindAddress { public static class: java.lang.Class; - public static matchHouseNumber(matchResult: string, content: number): java.util.regex.MatchResult; + public static matchHouseNumber(content: string, offset: number): java.util.regex.MatchResult; public static matchState(content: string, offset: number): java.util.regex.MatchResult; public static isValidZipCode(zipCode: string, state: string): boolean; public static isValidZipCode(zipCode: string): boolean; public static isValidLocationName(location: string): boolean; } - export module FindAddress { + export namespace FindAddress { export class ZipRange { public static class: java.lang.Class; } @@ -14189,22 +14191,22 @@ declare module androidx { } } -declare module androidx { - export module core { - export module text { - export module util { +declare namespace androidx { + export namespace core { + export namespace text { + export namespace util { export class LinkifyCompat { public static class: java.lang.Class; - public static addLinks(i: globalAndroid.text.Spannable, link: number): boolean; - public static addLinks(s: globalAndroid.widget.TextView, text: number): boolean; + public static addLinks(text: globalAndroid.text.Spannable, mask: number): boolean; + public static addLinks(text: globalAndroid.widget.TextView, mask: number): boolean; public static addLinks(text: globalAndroid.widget.TextView, pattern: java.util.regex.Pattern, scheme: string | null): void; public static addLinks(text: globalAndroid.widget.TextView, pattern: java.util.regex.Pattern, scheme: string | null, matchFilter: globalAndroid.text.util.Linkify.MatchFilter | null, transformFilter: globalAndroid.text.util.Linkify.TransformFilter | null): void; public static addLinks(text: globalAndroid.widget.TextView, pattern: java.util.regex.Pattern, defaultScheme: string | null, schemes: androidNative.Array | null, matchFilter: globalAndroid.text.util.Linkify.MatchFilter | null, transformFilter: globalAndroid.text.util.Linkify.TransformFilter | null): void; public static addLinks(text: globalAndroid.text.Spannable, pattern: java.util.regex.Pattern, scheme: string | null): boolean; public static addLinks(spannable: globalAndroid.text.Spannable, pattern: java.util.regex.Pattern, scheme: string | null, matchFilter: globalAndroid.text.util.Linkify.MatchFilter | null, transformFilter: globalAndroid.text.util.Linkify.TransformFilter | null): boolean; - public static addLinks(scheme: globalAndroid.text.Spannable, index: java.util.regex.Pattern, url: string | null, start: androidNative.Array | null, end: globalAndroid.text.util.Linkify.MatchFilter | null, allowed: globalAndroid.text.util.Linkify.TransformFilter | null): boolean; + public static addLinks(spannable: globalAndroid.text.Spannable, pattern: java.util.regex.Pattern, defaultScheme: string | null, schemes: androidNative.Array | null, matchFilter: globalAndroid.text.util.Linkify.MatchFilter | null, transformFilter: globalAndroid.text.util.Linkify.TransformFilter | null): boolean; } - export module LinkifyCompat { + export namespace LinkifyCompat { export class LinkSpec { public static class: java.lang.Class; } @@ -14223,17 +14225,17 @@ declare module androidx { } } -declare module androidx { - export module core { - export module util { +declare namespace androidx { + export namespace core { + export namespace util { export class AtomicFile { public static class: java.lang.Class; public constructor(baseName: java.io.File); public getBaseFile(): java.io.File; public delete(): void; public startWrite(): java.io.FileOutputStream; - public finishWrite(this_: java.io.FileOutputStream | null): void; - public failWrite(this_: java.io.FileOutputStream | null): void; + public finishWrite(str: java.io.FileOutputStream | null): void; + public failWrite(str: java.io.FileOutputStream | null): void; public openRead(): java.io.FileInputStream; public readFully(): androidNative.Array; } @@ -14241,9 +14243,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module util { +declare namespace androidx { + export namespace core { + export namespace util { export class Consumer extends java.lang.Object { public static class: java.lang.Class>; /** @@ -14259,34 +14261,34 @@ declare module androidx { } } -declare module androidx { - export module core { - export module util { +declare namespace androidx { + export namespace core { + export namespace util { export class DebugUtils { public static class: java.lang.Class; - public static buildShortClassTag(end: any, simpleName: java.lang.StringBuilder): void; + public static buildShortClassTag(cls: any, out: java.lang.StringBuilder): void; } } } } -declare module androidx { - export module core { - export module util { +declare namespace androidx { + export namespace core { + export namespace util { export class LogWriter { public static class: java.lang.Class; public constructor(tag: string); public close(): void; public flush(): void; - public write(i: androidNative.Array, this_: number, buf: number): void; + public write(buf: androidNative.Array, offset: number, count: number): void; } } } } -declare module androidx { - export module core { - export module util { +declare namespace androidx { + export namespace core { + export namespace util { export class ObjectsCompat { public static class: java.lang.Class; public static equals(a: any, b: any): boolean; @@ -14297,9 +14299,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module util { +declare namespace androidx { + export namespace core { + export namespace util { export class Pair extends java.lang.Object { public static class: java.lang.Class>; public first: F; @@ -14314,9 +14316,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module util { +declare namespace androidx { + export namespace core { + export namespace util { export class PatternsCompat { public static class: java.lang.Class; public static IP_ADDRESS: java.util.regex.Pattern; @@ -14330,13 +14332,13 @@ declare module androidx { } } -declare module androidx { - export module core { - export module util { +declare namespace androidx { + export namespace core { + export namespace util { export class Pools { public static class: java.lang.Class; } - export module Pools { + export namespace Pools { export class Pool extends java.lang.Object { public static class: java.lang.Class>; /** @@ -14369,9 +14371,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module util { +declare namespace androidx { + export namespace core { + export namespace util { export class Preconditions { public static class: java.lang.Class; public static checkArgument(expression: boolean): void; @@ -14388,9 +14390,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module util { +declare namespace androidx { + export namespace core { + export namespace util { export class Supplier extends java.lang.Object { public static class: java.lang.Class>; /** @@ -14406,14 +14408,14 @@ declare module androidx { } } -declare module androidx { - export module core { - export module util { +declare namespace androidx { + export namespace core { + export namespace util { export class TimeUtils { public static class: java.lang.Class; - public static HUNDRED_DAY_FIELD_LEN: number = 19; - public static formatDuration(len: number, duration: java.lang.StringBuilder): void; - public static formatDuration(len: number, duration: java.io.PrintWriter, pw: number): void; + public static readonly HUNDRED_DAY_FIELD_LEN = 19; + public static formatDuration(duration: number, builder: java.lang.StringBuilder): void; + public static formatDuration(duration: number, pw: java.io.PrintWriter, fieldLen: number): void; public static formatDuration(duration: number, pw: java.io.PrintWriter): void; public static formatDuration(time: number, now: number, pw: java.io.PrintWriter): void; } @@ -14421,9 +14423,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module view { +declare namespace androidx { + export namespace core { + export namespace view { export class AccessibilityDelegateCompat { public static class: java.lang.Class; public constructor(); @@ -14435,10 +14437,10 @@ declare module androidx { public onInitializeAccessibilityEvent(host: globalAndroid.view.View, event: globalAndroid.view.accessibility.AccessibilityEvent): void; public onInitializeAccessibilityNodeInfo(host: globalAndroid.view.View, info: androidx.core.view.accessibility.AccessibilityNodeInfoCompat): void; public onRequestSendAccessibilityEvent(host: globalAndroid.view.ViewGroup, child: globalAndroid.view.View, event: globalAndroid.view.accessibility.AccessibilityEvent): boolean; - public getAccessibilityNodeProvider(this_: globalAndroid.view.View): androidx.core.view.accessibility.AccessibilityNodeProviderCompat; + public getAccessibilityNodeProvider(host: globalAndroid.view.View): androidx.core.view.accessibility.AccessibilityNodeProviderCompat; public performAccessibilityAction(host: globalAndroid.view.View, action: number, args: globalAndroid.os.Bundle): boolean; } - export module AccessibilityDelegateCompat { + export namespace AccessibilityDelegateCompat { export class AccessibilityDelegateAdapter { public static class: java.lang.Class; public dispatchPopulateAccessibilityEvent(host: globalAndroid.view.View, event: globalAndroid.view.accessibility.AccessibilityEvent): boolean; @@ -14456,9 +14458,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module view { +declare namespace androidx { + export namespace core { + export namespace view { export abstract class ActionProvider { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); @@ -14476,7 +14478,7 @@ declare module androidx { public setVisibilityListener(listener: androidx.core.view.ActionProvider.VisibilityListener): void; public reset(): void; } - export module ActionProvider { + export namespace ActionProvider { export class SubUiVisibilityListener { public static class: java.lang.Class; /** @@ -14504,9 +14506,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module view { +declare namespace androidx { + export namespace core { + export namespace view { export class DisplayCutoutCompat { public static class: java.lang.Class; public constructor(safeInsets: globalAndroid.graphics.Rect, boundingRects: java.util.List); @@ -14523,21 +14525,21 @@ declare module androidx { } } -declare module androidx { - export module core { - export module view { +declare namespace androidx { + export namespace core { + export namespace view { export class DragAndDropPermissionsCompat { public static class: java.lang.Class; - public static request(dragAndDropPermissions: globalAndroid.app.Activity, activity: globalAndroid.view.DragEvent): androidx.core.view.DragAndDropPermissionsCompat | null; + public static request(activity: globalAndroid.app.Activity, dragEvent: globalAndroid.view.DragEvent): androidx.core.view.DragAndDropPermissionsCompat | null; public release(): void; } } } } -declare module androidx { - export module core { - export module view { +declare namespace androidx { + export namespace core { + export namespace view { export class DragStartHelper { public static class: java.lang.Class; public constructor(view: globalAndroid.view.View, listener: androidx.core.view.DragStartHelper.OnDragStartListener); @@ -14547,7 +14549,7 @@ declare module androidx { public onLongClick(v: globalAndroid.view.View): boolean; public getTouchPosition(point: globalAndroid.graphics.Point): void; } - export module DragStartHelper { + export namespace DragStartHelper { export class OnDragStartListener { public static class: java.lang.Class; /** @@ -14564,9 +14566,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module view { +declare namespace androidx { + export namespace core { + export namespace view { export class GestureDetectorCompat { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, listener: globalAndroid.view.GestureDetector.OnGestureListener); @@ -14576,7 +14578,7 @@ declare module androidx { public setIsLongpressEnabled(enabled: boolean): void; public setOnDoubleTapListener(listener: globalAndroid.view.GestureDetector.OnDoubleTapListener): void; } - export module GestureDetectorCompat { + export namespace GestureDetectorCompat { export class GestureDetectorCompatImpl { public static class: java.lang.Class; /** @@ -14599,12 +14601,12 @@ declare module androidx { public setOnDoubleTapListener(onDoubleTapListener: globalAndroid.view.GestureDetector.OnDoubleTapListener): void; public setIsLongpressEnabled(isLongpressEnabled: boolean): void; public isLongpressEnabled(): boolean; - public onTouchEvent(id2: globalAndroid.view.MotionEvent): boolean; + public onTouchEvent(ev: globalAndroid.view.MotionEvent): boolean; public onTouchEvent(param0: globalAndroid.view.MotionEvent): boolean; public setIsLongpressEnabled(param0: boolean): void; public setOnDoubleTapListener(param0: globalAndroid.view.GestureDetector.OnDoubleTapListener): void; } - export module GestureDetectorCompatImplBase { + export namespace GestureDetectorCompatImplBase { export class GestureHandler { public static class: java.lang.Class; public handleMessage(msg: globalAndroid.os.Message): void; @@ -14625,15 +14627,15 @@ declare module androidx { } } -declare module androidx { - export module core { - export module view { +declare namespace androidx { + export namespace core { + export namespace view { export class GravityCompat { public static class: java.lang.Class; - public static RELATIVE_LAYOUT_DIRECTION: number = 8388608; - public static START: number = 8388611; - public static END: number = 8388613; - public static RELATIVE_HORIZONTAL_GRAVITY_MASK: number = 8388615; + public static readonly RELATIVE_LAYOUT_DIRECTION = 8388608; + public static readonly START = 8388611; + public static readonly END = 8388613; + public static readonly RELATIVE_HORIZONTAL_GRAVITY_MASK = 8388615; public static apply(gravity: number, w: number, h: number, container: globalAndroid.graphics.Rect, outRect: globalAndroid.graphics.Rect, layoutDirection: number): void; public static apply(gravity: number, w: number, h: number, container: globalAndroid.graphics.Rect, xAdj: number, yAdj: number, outRect: globalAndroid.graphics.Rect, layoutDirection: number): void; public static applyDisplay(gravity: number, display: globalAndroid.graphics.Rect, inoutObj: globalAndroid.graphics.Rect, layoutDirection: number): void; @@ -14643,46 +14645,46 @@ declare module androidx { } } -declare module androidx { - export module core { - export module view { +declare namespace androidx { + export namespace core { + export namespace view { export class InputDeviceCompat { public static class: java.lang.Class; - public static SOURCE_CLASS_MASK: number = 255; - public static SOURCE_CLASS_NONE: number = 0; - public static SOURCE_CLASS_BUTTON: number = 1; - public static SOURCE_CLASS_POINTER: number = 2; - public static SOURCE_CLASS_TRACKBALL: number = 4; - public static SOURCE_CLASS_POSITION: number = 8; - public static SOURCE_CLASS_JOYSTICK: number = 16; - public static SOURCE_UNKNOWN: number = 0; - public static SOURCE_KEYBOARD: number = 257; - public static SOURCE_DPAD: number = 513; - public static SOURCE_GAMEPAD: number = 1025; - public static SOURCE_TOUCHSCREEN: number = 4098; - public static SOURCE_MOUSE: number = 8194; - public static SOURCE_STYLUS: number = 16386; - public static SOURCE_TRACKBALL: number = 65540; - public static SOURCE_TOUCHPAD: number = 1048584; - public static SOURCE_TOUCH_NAVIGATION: number = 2097152; - public static SOURCE_ROTARY_ENCODER: number = 4194304; - public static SOURCE_JOYSTICK: number = 16777232; - public static SOURCE_HDMI: number = 33554433; - public static SOURCE_ANY: number = -256; - } - } - } -} - -declare module androidx { - export module core { - export module view { + public static readonly SOURCE_CLASS_MASK = 255; + public static readonly SOURCE_CLASS_NONE = 0; + public static readonly SOURCE_CLASS_BUTTON = 1; + public static readonly SOURCE_CLASS_POINTER = 2; + public static readonly SOURCE_CLASS_TRACKBALL = 4; + public static readonly SOURCE_CLASS_POSITION = 8; + public static readonly SOURCE_CLASS_JOYSTICK = 16; + public static readonly SOURCE_UNKNOWN = 0; + public static readonly SOURCE_KEYBOARD = 257; + public static readonly SOURCE_DPAD = 513; + public static readonly SOURCE_GAMEPAD = 1025; + public static readonly SOURCE_TOUCHSCREEN = 4098; + public static readonly SOURCE_MOUSE = 8194; + public static readonly SOURCE_STYLUS = 16386; + public static readonly SOURCE_TRACKBALL = 65540; + public static readonly SOURCE_TOUCHPAD = 1048584; + public static readonly SOURCE_TOUCH_NAVIGATION = 2097152; + public static readonly SOURCE_ROTARY_ENCODER = 4194304; + public static readonly SOURCE_JOYSTICK = 16777232; + public static readonly SOURCE_HDMI = 33554433; + public static readonly SOURCE_ANY = -256; + } + } + } +} + +declare namespace androidx { + export namespace core { + export namespace view { export class KeyEventDispatcher { public static class: java.lang.Class; public static dispatchBeforeHierarchy(root: globalAndroid.view.View, event: globalAndroid.view.KeyEvent): boolean; public static dispatchKeyEvent(component: androidx.core.view.KeyEventDispatcher.Component, root: globalAndroid.view.View | null, callback: globalAndroid.view.Window.Callback | null, event: globalAndroid.view.KeyEvent): boolean; } - export module KeyEventDispatcher { + export namespace KeyEventDispatcher { export class Component { public static class: java.lang.Class; /** @@ -14699,18 +14701,18 @@ declare module androidx { } } -declare module androidx { - export module core { - export module view { +declare namespace androidx { + export namespace core { + export namespace view { export class LayoutInflaterCompat { public static class: java.lang.Class; /** @deprecated */ - public static setFactory(factory2: globalAndroid.view.LayoutInflater, f: androidx.core.view.LayoutInflaterFactory): void; - public static setFactory2(f: globalAndroid.view.LayoutInflater, inflater: globalAndroid.view.LayoutInflater.Factory2): void; + public static setFactory(inflater: globalAndroid.view.LayoutInflater, factory: androidx.core.view.LayoutInflaterFactory): void; + public static setFactory2(inflater: globalAndroid.view.LayoutInflater, factory: globalAndroid.view.LayoutInflater.Factory2): void; /** @deprecated */ public static getFactory(inflater: globalAndroid.view.LayoutInflater): androidx.core.view.LayoutInflaterFactory; } - export module LayoutInflaterCompat { + export namespace LayoutInflaterCompat { export class Factory2Wrapper { public static class: java.lang.Class; public onCreateView(name: string, context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet): globalAndroid.view.View; @@ -14722,9 +14724,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module view { +declare namespace androidx { + export namespace core { + export namespace view { export class LayoutInflaterFactory { public static class: java.lang.Class; /** @@ -14740,9 +14742,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module view { +declare namespace androidx { + export namespace core { + export namespace view { export class MarginLayoutParamsCompat { public static class: java.lang.Class; public static getMarginStart(lp: globalAndroid.view.ViewGroup.MarginLayoutParams): number; @@ -14750,7 +14752,7 @@ declare module androidx { public static setMarginStart(lp: globalAndroid.view.ViewGroup.MarginLayoutParams, marginStart: number): void; public static setMarginEnd(lp: globalAndroid.view.ViewGroup.MarginLayoutParams, marginEnd: number): void; public static isMarginRelative(lp: globalAndroid.view.ViewGroup.MarginLayoutParams): boolean; - public static getLayoutDirection(result: globalAndroid.view.ViewGroup.MarginLayoutParams): number; + public static getLayoutDirection(lp: globalAndroid.view.ViewGroup.MarginLayoutParams): number; public static setLayoutDirection(lp: globalAndroid.view.ViewGroup.MarginLayoutParams, layoutDirection: number): void; public static resolveLayoutDirection(lp: globalAndroid.view.ViewGroup.MarginLayoutParams, layoutDirection: number): void; } @@ -14758,9 +14760,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module view { +declare namespace androidx { + export namespace core { + export namespace view { export class MenuCompat { public static class: java.lang.Class; /** @deprecated */ @@ -14771,16 +14773,16 @@ declare module androidx { } } -declare module androidx { - export module core { - export module view { +declare namespace androidx { + export namespace core { + export namespace view { export class MenuItemCompat { public static class: java.lang.Class; - public static SHOW_AS_ACTION_NEVER: number = 0; - public static SHOW_AS_ACTION_IF_ROOM: number = 1; - public static SHOW_AS_ACTION_ALWAYS: number = 2; - public static SHOW_AS_ACTION_WITH_TEXT: number = 4; - public static SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW: number = 8; + public static readonly SHOW_AS_ACTION_NEVER = 0; + public static readonly SHOW_AS_ACTION_IF_ROOM = 1; + public static readonly SHOW_AS_ACTION_ALWAYS = 2; + public static readonly SHOW_AS_ACTION_WITH_TEXT = 4; + public static readonly SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW = 8; /** @deprecated */ public static setShowAsAction(item: globalAndroid.view.MenuItem, actionEnum: number): void; /** @deprecated */ @@ -14813,7 +14815,7 @@ declare module androidx { public static setIconTintMode(item: globalAndroid.view.MenuItem, tintMode: globalAndroid.graphics.PorterDuff.Mode): void; public static getIconTintMode(item: globalAndroid.view.MenuItem): globalAndroid.graphics.PorterDuff.Mode; } - export module MenuItemCompat { + export namespace MenuItemCompat { export class OnActionExpandListener { public static class: java.lang.Class; /** @@ -14832,66 +14834,66 @@ declare module androidx { } } -declare module androidx { - export module core { - export module view { +declare namespace androidx { + export namespace core { + export namespace view { export class MotionEventCompat { public static class: java.lang.Class; - public static ACTION_MASK: number = 255; - public static ACTION_POINTER_DOWN: number = 5; - public static ACTION_POINTER_UP: number = 6; - public static ACTION_HOVER_MOVE: number = 7; - public static ACTION_SCROLL: number = 8; - public static ACTION_POINTER_INDEX_MASK: number = 65280; - public static ACTION_POINTER_INDEX_SHIFT: number = 8; - public static ACTION_HOVER_ENTER: number = 9; - public static ACTION_HOVER_EXIT: number = 10; - public static AXIS_X: number = 0; - public static AXIS_Y: number = 1; - public static AXIS_PRESSURE: number = 2; - public static AXIS_SIZE: number = 3; - public static AXIS_TOUCH_MAJOR: number = 4; - public static AXIS_TOUCH_MINOR: number = 5; - public static AXIS_TOOL_MAJOR: number = 6; - public static AXIS_TOOL_MINOR: number = 7; - public static AXIS_ORIENTATION: number = 8; - public static AXIS_VSCROLL: number = 9; - public static AXIS_HSCROLL: number = 10; - public static AXIS_Z: number = 11; - public static AXIS_RX: number = 12; - public static AXIS_RY: number = 13; - public static AXIS_RZ: number = 14; - public static AXIS_HAT_X: number = 15; - public static AXIS_HAT_Y: number = 16; - public static AXIS_LTRIGGER: number = 17; - public static AXIS_RTRIGGER: number = 18; - public static AXIS_THROTTLE: number = 19; - public static AXIS_RUDDER: number = 20; - public static AXIS_WHEEL: number = 21; - public static AXIS_GAS: number = 22; - public static AXIS_BRAKE: number = 23; - public static AXIS_DISTANCE: number = 24; - public static AXIS_TILT: number = 25; - public static AXIS_SCROLL: number = 26; - public static AXIS_RELATIVE_X: number = 27; - public static AXIS_RELATIVE_Y: number = 28; - public static AXIS_GENERIC_1: number = 32; - public static AXIS_GENERIC_2: number = 33; - public static AXIS_GENERIC_3: number = 34; - public static AXIS_GENERIC_4: number = 35; - public static AXIS_GENERIC_5: number = 36; - public static AXIS_GENERIC_6: number = 37; - public static AXIS_GENERIC_7: number = 38; - public static AXIS_GENERIC_8: number = 39; - public static AXIS_GENERIC_9: number = 40; - public static AXIS_GENERIC_10: number = 41; - public static AXIS_GENERIC_11: number = 42; - public static AXIS_GENERIC_12: number = 43; - public static AXIS_GENERIC_13: number = 44; - public static AXIS_GENERIC_14: number = 45; - public static AXIS_GENERIC_15: number = 46; - public static AXIS_GENERIC_16: number = 47; - public static BUTTON_PRIMARY: number = 1; + public static readonly ACTION_MASK = 255; + public static readonly ACTION_POINTER_DOWN = 5; + public static readonly ACTION_POINTER_UP = 6; + public static readonly ACTION_HOVER_MOVE = 7; + public static readonly ACTION_SCROLL = 8; + public static readonly ACTION_POINTER_INDEX_MASK = 65280; + public static readonly ACTION_POINTER_INDEX_SHIFT = 8; + public static readonly ACTION_HOVER_ENTER = 9; + public static readonly ACTION_HOVER_EXIT = 10; + public static readonly AXIS_X = 0; + public static readonly AXIS_Y = 1; + public static readonly AXIS_PRESSURE = 2; + public static readonly AXIS_SIZE = 3; + public static readonly AXIS_TOUCH_MAJOR = 4; + public static readonly AXIS_TOUCH_MINOR = 5; + public static readonly AXIS_TOOL_MAJOR = 6; + public static readonly AXIS_TOOL_MINOR = 7; + public static readonly AXIS_ORIENTATION = 8; + public static readonly AXIS_VSCROLL = 9; + public static readonly AXIS_HSCROLL = 10; + public static readonly AXIS_Z = 11; + public static readonly AXIS_RX = 12; + public static readonly AXIS_RY = 13; + public static readonly AXIS_RZ = 14; + public static readonly AXIS_HAT_X = 15; + public static readonly AXIS_HAT_Y = 16; + public static readonly AXIS_LTRIGGER = 17; + public static readonly AXIS_RTRIGGER = 18; + public static readonly AXIS_THROTTLE = 19; + public static readonly AXIS_RUDDER = 20; + public static readonly AXIS_WHEEL = 21; + public static readonly AXIS_GAS = 22; + public static readonly AXIS_BRAKE = 23; + public static readonly AXIS_DISTANCE = 24; + public static readonly AXIS_TILT = 25; + public static readonly AXIS_SCROLL = 26; + public static readonly AXIS_RELATIVE_X = 27; + public static readonly AXIS_RELATIVE_Y = 28; + public static readonly AXIS_GENERIC_1 = 32; + public static readonly AXIS_GENERIC_2 = 33; + public static readonly AXIS_GENERIC_3 = 34; + public static readonly AXIS_GENERIC_4 = 35; + public static readonly AXIS_GENERIC_5 = 36; + public static readonly AXIS_GENERIC_6 = 37; + public static readonly AXIS_GENERIC_7 = 38; + public static readonly AXIS_GENERIC_8 = 39; + public static readonly AXIS_GENERIC_9 = 40; + public static readonly AXIS_GENERIC_10 = 41; + public static readonly AXIS_GENERIC_11 = 42; + public static readonly AXIS_GENERIC_12 = 43; + public static readonly AXIS_GENERIC_13 = 44; + public static readonly AXIS_GENERIC_14 = 45; + public static readonly AXIS_GENERIC_15 = 46; + public static readonly AXIS_GENERIC_16 = 47; + public static readonly BUTTON_PRIMARY = 1; /** @deprecated */ public static getActionMasked(event: globalAndroid.view.MotionEvent): number; /** @deprecated */ @@ -14920,9 +14922,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module view { +declare namespace androidx { + export namespace core { + export namespace view { export class NestedScrollingChild { public static class: java.lang.Class; /** @@ -14954,9 +14956,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module view { +declare namespace androidx { + export namespace core { + export namespace view { export class NestedScrollingChild2 extends androidx.core.view.NestedScrollingChild { public static class: java.lang.Class; /** @@ -14998,9 +15000,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module view { +declare namespace androidx { + export namespace core { + export namespace view { export class NestedScrollingChild3 extends androidx.core.view.NestedScrollingChild2 { public static class: java.lang.Class; /** @@ -15044,9 +15046,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module view { +declare namespace androidx { + export namespace core { + export namespace view { export class NestedScrollingChildHelper { public static class: java.lang.Class; public constructor(view: globalAndroid.view.View); @@ -15055,16 +15057,16 @@ declare module androidx { public hasNestedScrollingParent(): boolean; public hasNestedScrollingParent(type: number): boolean; public startNestedScroll(axes: number): boolean; - public startNestedScroll(child: number, this_: number): boolean; + public startNestedScroll(axes: number, type: number): boolean; public stopNestedScroll(): void; public stopNestedScroll(type: number): void; public dispatchNestedScroll(dxConsumed: number, dyConsumed: number, dxUnconsumed: number, dyUnconsumed: number, offsetInWindow: androidNative.Array | null): boolean; public dispatchNestedScroll(dxConsumed: number, dyConsumed: number, dxUnconsumed: number, dyUnconsumed: number, offsetInWindow: androidNative.Array | null, type: number): boolean; public dispatchNestedScroll(dxConsumed: number, dyConsumed: number, dxUnconsumed: number, dyUnconsumed: number, offsetInWindow: androidNative.Array | null, type: number, consumed: androidNative.Array | null): void; public dispatchNestedPreScroll(dx: number, dy: number, consumed: androidNative.Array | null, offsetInWindow: androidNative.Array | null): boolean; - public dispatchNestedPreScroll(startY: number, parent: number, this_: androidNative.Array | null, dx: androidNative.Array | null, dy: number): boolean; - public dispatchNestedFling(this_: number, velocityX: number, velocityY: boolean): boolean; - public dispatchNestedPreFling(this_: number, velocityX: number): boolean; + public dispatchNestedPreScroll(dx: number, dy: number, consumed: androidNative.Array | null, offsetInWindow: androidNative.Array | null, type: number): boolean; + public dispatchNestedFling(velocityX: number, velocityY: number, consumed: boolean): boolean; + public dispatchNestedPreFling(velocityX: number, velocityY: number): boolean; public onDetachedFromWindow(): void; public onStopNestedScroll(child: globalAndroid.view.View): void; } @@ -15072,9 +15074,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module view { +declare namespace androidx { + export namespace core { + export namespace view { export class NestedScrollingParent { public static class: java.lang.Class; /** @@ -15104,9 +15106,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module view { +declare namespace androidx { + export namespace core { + export namespace view { export class NestedScrollingParent2 extends androidx.core.view.NestedScrollingParent { public static class: java.lang.Class; /** @@ -15146,9 +15148,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module view { +declare namespace androidx { + export namespace core { + export namespace view { export class NestedScrollingParent3 extends androidx.core.view.NestedScrollingParent2 { public static class: java.lang.Class; /** @@ -15190,9 +15192,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module view { +declare namespace androidx { + export namespace core { + export namespace view { export class NestedScrollingParentHelper { public static class: java.lang.Class; public constructor(viewGroup: globalAndroid.view.ViewGroup); @@ -15206,9 +15208,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module view { +declare namespace androidx { + export namespace core { + export namespace view { export class OnApplyWindowInsetsListener { public static class: java.lang.Class; /** @@ -15224,9 +15226,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module view { +declare namespace androidx { + export namespace core { + export namespace view { export class OneShotPreDrawListener { public static class: java.lang.Class; public static add(view: globalAndroid.view.View, runnable: java.lang.Runnable): androidx.core.view.OneShotPreDrawListener; @@ -15239,34 +15241,34 @@ declare module androidx { } } -declare module androidx { - export module core { - export module view { +declare namespace androidx { + export namespace core { + export namespace view { export class PointerIconCompat { public static class: java.lang.Class; - public static TYPE_NULL: number = 0; - public static TYPE_ARROW: number = 1000; - public static TYPE_CONTEXT_MENU: number = 1001; - public static TYPE_HAND: number = 1002; - public static TYPE_HELP: number = 1003; - public static TYPE_WAIT: number = 1004; - public static TYPE_CELL: number = 1006; - public static TYPE_CROSSHAIR: number = 1007; - public static TYPE_TEXT: number = 1008; - public static TYPE_VERTICAL_TEXT: number = 1009; - public static TYPE_ALIAS: number = 1010; - public static TYPE_COPY: number = 1011; - public static TYPE_NO_DROP: number = 1012; - public static TYPE_ALL_SCROLL: number = 1013; - public static TYPE_HORIZONTAL_DOUBLE_ARROW: number = 1014; - public static TYPE_VERTICAL_DOUBLE_ARROW: number = 1015; - public static TYPE_TOP_RIGHT_DIAGONAL_DOUBLE_ARROW: number = 1016; - public static TYPE_TOP_LEFT_DIAGONAL_DOUBLE_ARROW: number = 1017; - public static TYPE_ZOOM_IN: number = 1018; - public static TYPE_ZOOM_OUT: number = 1019; - public static TYPE_GRAB: number = 1020; - public static TYPE_GRABBING: number = 1021; - public static TYPE_DEFAULT: number = 1000; + public static readonly TYPE_NULL = 0; + public static readonly TYPE_ARROW = 1000; + public static readonly TYPE_CONTEXT_MENU = 1001; + public static readonly TYPE_HAND = 1002; + public static readonly TYPE_HELP = 1003; + public static readonly TYPE_WAIT = 1004; + public static readonly TYPE_CELL = 1006; + public static readonly TYPE_CROSSHAIR = 1007; + public static readonly TYPE_TEXT = 1008; + public static readonly TYPE_VERTICAL_TEXT = 1009; + public static readonly TYPE_ALIAS = 1010; + public static readonly TYPE_COPY = 1011; + public static readonly TYPE_NO_DROP = 1012; + public static readonly TYPE_ALL_SCROLL = 1013; + public static readonly TYPE_HORIZONTAL_DOUBLE_ARROW = 1014; + public static readonly TYPE_VERTICAL_DOUBLE_ARROW = 1015; + public static readonly TYPE_TOP_RIGHT_DIAGONAL_DOUBLE_ARROW = 1016; + public static readonly TYPE_TOP_LEFT_DIAGONAL_DOUBLE_ARROW = 1017; + public static readonly TYPE_ZOOM_IN = 1018; + public static readonly TYPE_ZOOM_OUT = 1019; + public static readonly TYPE_GRAB = 1020; + public static readonly TYPE_GRABBING = 1021; + public static readonly TYPE_DEFAULT = 1000; public getPointerIcon(): any; public static getSystemIcon(context: globalAndroid.content.Context, style: number): androidx.core.view.PointerIconCompat; public static create(bitmap: globalAndroid.graphics.Bitmap, hotSpotX: number, hotSpotY: number): androidx.core.view.PointerIconCompat; @@ -15276,9 +15278,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module view { +declare namespace androidx { + export namespace core { + export namespace view { export class ScaleGestureDetectorCompat { public static class: java.lang.Class; /** @deprecated */ @@ -15292,9 +15294,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module view { +declare namespace androidx { + export namespace core { + export namespace view { export class ScrollingView { public static class: java.lang.Class; /** @@ -15320,9 +15322,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module view { +declare namespace androidx { + export namespace core { + export namespace view { export class TintableBackgroundView { public static class: java.lang.Class; /** @@ -15344,9 +15346,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module view { +declare namespace androidx { + export namespace core { + export namespace view { export class VelocityTrackerCompat { public static class: java.lang.Class; /** @deprecated */ @@ -15358,43 +15360,43 @@ declare module androidx { } } -declare module androidx { - export module core { - export module view { +declare namespace androidx { + export namespace core { + export namespace view { export class ViewCompat { public static class: java.lang.Class; - public static OVER_SCROLL_ALWAYS: number = 0; - public static OVER_SCROLL_IF_CONTENT_SCROLLS: number = 1; - public static OVER_SCROLL_NEVER: number = 2; - public static IMPORTANT_FOR_ACCESSIBILITY_AUTO: number = 0; - public static IMPORTANT_FOR_ACCESSIBILITY_YES: number = 1; - public static IMPORTANT_FOR_ACCESSIBILITY_NO: number = 2; - public static IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS: number = 4; - public static ACCESSIBILITY_LIVE_REGION_NONE: number = 0; - public static ACCESSIBILITY_LIVE_REGION_POLITE: number = 1; - public static ACCESSIBILITY_LIVE_REGION_ASSERTIVE: number = 2; - public static LAYER_TYPE_NONE: number = 0; - public static LAYER_TYPE_SOFTWARE: number = 1; - public static LAYER_TYPE_HARDWARE: number = 2; - public static LAYOUT_DIRECTION_LTR: number = 0; - public static LAYOUT_DIRECTION_RTL: number = 1; - public static LAYOUT_DIRECTION_INHERIT: number = 2; - public static LAYOUT_DIRECTION_LOCALE: number = 3; - public static MEASURED_SIZE_MASK: number = 16777215; - public static MEASURED_STATE_MASK: number = -16777216; - public static MEASURED_HEIGHT_STATE_SHIFT: number = 16; - public static MEASURED_STATE_TOO_SMALL: number = 16777216; - public static SCROLL_AXIS_NONE: number = 0; - public static SCROLL_AXIS_HORIZONTAL: number = 1; - public static SCROLL_AXIS_VERTICAL: number = 2; - public static TYPE_TOUCH: number = 0; - public static TYPE_NON_TOUCH: number = 1; - public static SCROLL_INDICATOR_TOP: number = 1; - public static SCROLL_INDICATOR_BOTTOM: number = 2; - public static SCROLL_INDICATOR_LEFT: number = 4; - public static SCROLL_INDICATOR_RIGHT: number = 8; - public static SCROLL_INDICATOR_START: number = 16; - public static SCROLL_INDICATOR_END: number = 32; + public static readonly OVER_SCROLL_ALWAYS = 0; + public static readonly OVER_SCROLL_IF_CONTENT_SCROLLS = 1; + public static readonly OVER_SCROLL_NEVER = 2; + public static readonly IMPORTANT_FOR_ACCESSIBILITY_AUTO = 0; + public static readonly IMPORTANT_FOR_ACCESSIBILITY_YES = 1; + public static readonly IMPORTANT_FOR_ACCESSIBILITY_NO = 2; + public static readonly IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS = 4; + public static readonly ACCESSIBILITY_LIVE_REGION_NONE = 0; + public static readonly ACCESSIBILITY_LIVE_REGION_POLITE = 1; + public static readonly ACCESSIBILITY_LIVE_REGION_ASSERTIVE = 2; + public static readonly LAYER_TYPE_NONE = 0; + public static readonly LAYER_TYPE_SOFTWARE = 1; + public static readonly LAYER_TYPE_HARDWARE = 2; + public static readonly LAYOUT_DIRECTION_LTR = 0; + public static readonly LAYOUT_DIRECTION_RTL = 1; + public static readonly LAYOUT_DIRECTION_INHERIT = 2; + public static readonly LAYOUT_DIRECTION_LOCALE = 3; + public static readonly MEASURED_SIZE_MASK = 16777215; + public static readonly MEASURED_STATE_MASK = -16777216; + public static readonly MEASURED_HEIGHT_STATE_SHIFT = 16; + public static readonly MEASURED_STATE_TOO_SMALL = 16777216; + public static readonly SCROLL_AXIS_NONE = 0; + public static readonly SCROLL_AXIS_HORIZONTAL = 1; + public static readonly SCROLL_AXIS_VERTICAL = 2; + public static readonly TYPE_TOUCH = 0; + public static readonly TYPE_NON_TOUCH = 1; + public static readonly SCROLL_INDICATOR_TOP = 1; + public static readonly SCROLL_INDICATOR_BOTTOM = 2; + public static readonly SCROLL_INDICATOR_LEFT = 4; + public static readonly SCROLL_INDICATOR_RIGHT = 8; + public static readonly SCROLL_INDICATOR_START = 16; + public static readonly SCROLL_INDICATOR_END = 32; /** @deprecated */ public static canScrollHorizontally(view: globalAndroid.view.View, direction: number): boolean; /** @deprecated */ @@ -15426,7 +15428,7 @@ declare module androidx { public static isImportantForAccessibility(view: globalAndroid.view.View): boolean; public static performAccessibilityAction(view: globalAndroid.view.View, action: number, arguments_: globalAndroid.os.Bundle): boolean; public static enableAccessibleClickableSpanSupport(view: globalAndroid.view.View): void; - public static getAccessibilityNodeProvider(provider: globalAndroid.view.View): androidx.core.view.accessibility.AccessibilityNodeProviderCompat; + public static getAccessibilityNodeProvider(view: globalAndroid.view.View): androidx.core.view.accessibility.AccessibilityNodeProviderCompat; /** @deprecated */ public static getAlpha(view: globalAndroid.view.View): number; /** @deprecated */ @@ -15457,8 +15459,8 @@ declare module androidx { public static getPaddingStart(view: globalAndroid.view.View): number; public static getPaddingEnd(view: globalAndroid.view.View): number; public static setPaddingRelative(view: globalAndroid.view.View, start: number, top: number, end: number, bottom: number): void; - public static dispatchStartTemporaryDetach(e: globalAndroid.view.View): void; - public static dispatchFinishTemporaryDetach(e: globalAndroid.view.View): void; + public static dispatchStartTemporaryDetach(view: globalAndroid.view.View): void; + public static dispatchFinishTemporaryDetach(view: globalAndroid.view.View): void; /** @deprecated */ public static getTranslationX(view: globalAndroid.view.View): number; /** @deprecated */ @@ -15519,15 +15521,15 @@ declare module androidx { public static getWindowSystemUiVisibility(view: globalAndroid.view.View): number; public static requestApplyInsets(view: globalAndroid.view.View): void; /** @deprecated */ - public static setChildrenDrawingOrderEnabled(e: globalAndroid.view.ViewGroup, e: boolean): void; + public static setChildrenDrawingOrderEnabled(viewGroup: globalAndroid.view.ViewGroup, enabled: boolean): void; public static getFitsSystemWindows(v: globalAndroid.view.View): boolean; /** @deprecated */ public static setFitsSystemWindows(view: globalAndroid.view.View, fitSystemWindows: boolean): void; /** @deprecated */ public static jumpDrawablesToCurrentState(v: globalAndroid.view.View): void; public static setOnApplyWindowInsetsListener(v: globalAndroid.view.View, listener: androidx.core.view.OnApplyWindowInsetsListener): void; - public static onApplyWindowInsets(unwrapped: globalAndroid.view.View, result: androidx.core.view.WindowInsetsCompat): androidx.core.view.WindowInsetsCompat; - public static dispatchApplyWindowInsets(unwrapped: globalAndroid.view.View, result: androidx.core.view.WindowInsetsCompat): androidx.core.view.WindowInsetsCompat; + public static onApplyWindowInsets(view: globalAndroid.view.View, insets: androidx.core.view.WindowInsetsCompat): androidx.core.view.WindowInsetsCompat; + public static dispatchApplyWindowInsets(view: globalAndroid.view.View, insets: androidx.core.view.WindowInsetsCompat): androidx.core.view.WindowInsetsCompat; /** @deprecated */ public static setSaveFromParentEnabled(v: globalAndroid.view.View, enabled: boolean): void; /** @deprecated */ @@ -15536,9 +15538,9 @@ declare module androidx { public static isPaddingRelative(view: globalAndroid.view.View): boolean; public static setBackground(view: globalAndroid.view.View, background: globalAndroid.graphics.drawable.Drawable | null): void; public static getBackgroundTintList(view: globalAndroid.view.View): globalAndroid.content.res.ColorStateList; - public static setBackgroundTintList(background: globalAndroid.view.View, hasTint: globalAndroid.content.res.ColorStateList): void; + public static setBackgroundTintList(view: globalAndroid.view.View, tintList: globalAndroid.content.res.ColorStateList): void; public static getBackgroundTintMode(view: globalAndroid.view.View): globalAndroid.graphics.PorterDuff.Mode; - public static setBackgroundTintMode(background: globalAndroid.view.View, hasTint: globalAndroid.graphics.PorterDuff.Mode): void; + public static setBackgroundTintMode(view: globalAndroid.view.View, mode: globalAndroid.graphics.PorterDuff.Mode): void; public static setNestedScrollingEnabled(view: globalAndroid.view.View, enabled: boolean): void; public static isNestedScrollingEnabled(view: globalAndroid.view.View): boolean; public static startNestedScroll(view: globalAndroid.view.View, axes: number): boolean; @@ -15559,8 +15561,8 @@ declare module androidx { public static isLayoutDirectionResolved(view: globalAndroid.view.View): boolean; public static getZ(view: globalAndroid.view.View): number; public static setZ(view: globalAndroid.view.View, z: number): void; - public static offsetTopAndBottom(p: globalAndroid.view.View, parentRect: number): void; - public static offsetLeftAndRight(p: globalAndroid.view.View, parentRect: number): void; + public static offsetTopAndBottom(view: globalAndroid.view.View, offset: number): void; + public static offsetLeftAndRight(view: globalAndroid.view.View, offset: number): void; public static setClipBounds(view: globalAndroid.view.View, clipBounds: globalAndroid.graphics.Rect): void; public static getClipBounds(view: globalAndroid.view.View): globalAndroid.graphics.Rect | null; public static isAttachedToWindow(view: globalAndroid.view.View): boolean; @@ -15569,7 +15571,7 @@ declare module androidx { public static setScrollIndicators(view: globalAndroid.view.View, indicators: number, mask: number): void; public static getScrollIndicators(view: globalAndroid.view.View): number; public static setPointerIcon(view: globalAndroid.view.View, pointerIcon: androidx.core.view.PointerIconCompat): void; - public static getDisplay(wm: globalAndroid.view.View): globalAndroid.view.Display | null; + public static getDisplay(view: globalAndroid.view.View): globalAndroid.view.Display | null; public static setTooltipText(view: globalAndroid.view.View, tooltipText: string | null): void; public static startDragAndDrop(v: globalAndroid.view.View, data: globalAndroid.content.ClipData, shadowBuilder: globalAndroid.view.View.DragShadowBuilder, localState: any, flags: number): boolean; public static cancelDragAndDrop(v: globalAndroid.view.View): void; @@ -15585,8 +15587,8 @@ declare module androidx { public static restoreDefaultFocus(view: globalAndroid.view.View): boolean; public static hasExplicitFocusable(view: globalAndroid.view.View): boolean; public static generateViewId(): number; - public static addOnUnhandledKeyEventListener(viewListeners: globalAndroid.view.View, fwListener: androidx.core.view.ViewCompat.OnUnhandledKeyEventListenerCompat): void; - public static removeOnUnhandledKeyEventListener(viewListeners: globalAndroid.view.View, fwListener: androidx.core.view.ViewCompat.OnUnhandledKeyEventListenerCompat): void; + public static addOnUnhandledKeyEventListener(v: globalAndroid.view.View, listener: androidx.core.view.ViewCompat.OnUnhandledKeyEventListenerCompat): void; + public static removeOnUnhandledKeyEventListener(v: globalAndroid.view.View, listener: androidx.core.view.ViewCompat.OnUnhandledKeyEventListenerCompat): void; public constructor(); public static setScreenReaderFocusable(view: globalAndroid.view.View, screenReaderFocusable: boolean): void; public static isScreenReaderFocusable(view: globalAndroid.view.View): boolean; @@ -15595,7 +15597,7 @@ declare module androidx { public static isAccessibilityHeading(view: globalAndroid.view.View): boolean; public static setAccessibilityHeading(view: globalAndroid.view.View, isHeading: boolean): void; } - export module ViewCompat { + export namespace ViewCompat { export class AccessibilityPaneVisibilityManager { public static class: java.lang.Class; public onGlobalLayout(): void; @@ -15682,9 +15684,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module view { +declare namespace androidx { + export namespace core { + export namespace view { export class ViewConfigurationCompat { public static class: java.lang.Class; /** @deprecated */ @@ -15700,13 +15702,13 @@ declare module androidx { } } -declare module androidx { - export module core { - export module view { +declare namespace androidx { + export namespace core { + export namespace view { export class ViewGroupCompat { public static class: java.lang.Class; - public static LAYOUT_MODE_CLIP_BOUNDS: number = 0; - public static LAYOUT_MODE_OPTICAL_BOUNDS: number = 1; + public static readonly LAYOUT_MODE_CLIP_BOUNDS = 0; + public static readonly LAYOUT_MODE_OPTICAL_BOUNDS = 1; /** @deprecated */ public static onRequestSendAccessibilityEvent(group: globalAndroid.view.ViewGroup, child: globalAndroid.view.View, event: globalAndroid.view.accessibility.AccessibilityEvent): boolean; /** @deprecated */ @@ -15721,9 +15723,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module view { +declare namespace androidx { + export namespace core { + export namespace view { export class ViewParentCompat { public static class: java.lang.Class; /** @deprecated */ @@ -15734,22 +15736,22 @@ declare module androidx { public static onNestedScroll(parent: globalAndroid.view.ViewParent, target: globalAndroid.view.View, dxConsumed: number, dyConsumed: number, dxUnconsumed: number, dyUnconsumed: number): void; public static onNestedScroll(parent: globalAndroid.view.ViewParent, target: globalAndroid.view.View, dxConsumed: number, dyConsumed: number, dxUnconsumed: number, dyUnconsumed: number, type: number): void; public static onNestedPreScroll(parent: globalAndroid.view.ViewParent, target: globalAndroid.view.View, dx: number, dy: number, consumed: androidNative.Array): void; - public static onStartNestedScroll(e: globalAndroid.view.ViewParent, parent: globalAndroid.view.View, child: globalAndroid.view.View, target: number, nestedScrollAxes: number): boolean; - public static onNestedScrollAccepted(e: globalAndroid.view.ViewParent, parent: globalAndroid.view.View, child: globalAndroid.view.View, target: number, nestedScrollAxes: number): void; - public static onStopNestedScroll(e: globalAndroid.view.ViewParent, parent: globalAndroid.view.View, target: number): void; - public static onNestedScroll(e: globalAndroid.view.ViewParent, parent: globalAndroid.view.View, target: number, dxConsumed: number, dyConsumed: number, dxUnconsumed: number, dyUnconsumed: number, type: androidNative.Array): void; - public static onNestedPreScroll(e: globalAndroid.view.ViewParent, parent: globalAndroid.view.View, target: number, dx: number, dy: androidNative.Array, consumed: number): void; - public static onNestedFling(e: globalAndroid.view.ViewParent, parent: globalAndroid.view.View, target: number, velocityX: number, velocityY: boolean): boolean; - public static onNestedPreFling(e: globalAndroid.view.ViewParent, parent: globalAndroid.view.View, target: number, velocityX: number): boolean; + public static onStartNestedScroll(parent: globalAndroid.view.ViewParent, child: globalAndroid.view.View, target: globalAndroid.view.View, nestedScrollAxes: number, type: number): boolean; + public static onNestedScrollAccepted(parent: globalAndroid.view.ViewParent, child: globalAndroid.view.View, target: globalAndroid.view.View, nestedScrollAxes: number, type: number): void; + public static onStopNestedScroll(parent: globalAndroid.view.ViewParent, target: globalAndroid.view.View, type: number): void; + public static onNestedScroll(parent: globalAndroid.view.ViewParent, target: globalAndroid.view.View, dxConsumed: number, dyConsumed: number, dxUnconsumed: number, dyUnconsumed: number, type: number, consumed: androidNative.Array): void; + public static onNestedPreScroll(parent: globalAndroid.view.ViewParent, target: globalAndroid.view.View, dx: number, dy: number, consumed: androidNative.Array, type: number): void; + public static onNestedFling(parent: globalAndroid.view.ViewParent, target: globalAndroid.view.View, velocityX: number, velocityY: number, consumed: boolean): boolean; + public static onNestedPreFling(parent: globalAndroid.view.ViewParent, target: globalAndroid.view.View, velocityX: number, velocityY: number): boolean; public static notifySubtreeAccessibilityStateChanged(parent: globalAndroid.view.ViewParent, child: globalAndroid.view.View, source: globalAndroid.view.View, changeType: number): void; } } } } -declare module androidx { - export module core { - export module view { +declare namespace androidx { + export namespace core { + export namespace view { export class ViewPropertyAnimatorCompat { public static class: java.lang.Class; public setDuration(value: number): androidx.core.view.ViewPropertyAnimatorCompat; @@ -15788,13 +15790,13 @@ declare module androidx { public withLayer(): androidx.core.view.ViewPropertyAnimatorCompat; public withStartAction(runnable: java.lang.Runnable): androidx.core.view.ViewPropertyAnimatorCompat; public setListener(listener: androidx.core.view.ViewPropertyAnimatorListener): androidx.core.view.ViewPropertyAnimatorCompat; - public setUpdateListener(this_: androidx.core.view.ViewPropertyAnimatorUpdateListener): androidx.core.view.ViewPropertyAnimatorCompat; + public setUpdateListener(listener: androidx.core.view.ViewPropertyAnimatorUpdateListener): androidx.core.view.ViewPropertyAnimatorCompat; } - export module ViewPropertyAnimatorCompat { + export namespace ViewPropertyAnimatorCompat { export class ViewPropertyAnimatorListenerApi14 extends androidx.core.view.ViewPropertyAnimatorListener { public static class: java.lang.Class; - public onAnimationStart(this_: globalAndroid.view.View): void; - public onAnimationEnd(listenerTag: globalAndroid.view.View): void; + public onAnimationStart(view: globalAndroid.view.View): void; + public onAnimationEnd(view: globalAndroid.view.View): void; public onAnimationCancel(view: globalAndroid.view.View): void; public onAnimationStart(param0: globalAndroid.view.View): void; public onAnimationEnd(param0: globalAndroid.view.View): void; @@ -15805,9 +15807,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module view { +declare namespace androidx { + export namespace core { + export namespace view { export class ViewPropertyAnimatorListener { public static class: java.lang.Class; /** @@ -15827,9 +15829,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module view { +declare namespace androidx { + export namespace core { + export namespace view { export class ViewPropertyAnimatorListenerAdapter extends androidx.core.view.ViewPropertyAnimatorListener { public static class: java.lang.Class; public constructor(); @@ -15844,9 +15846,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module view { +declare namespace androidx { + export namespace core { + export namespace view { export class ViewPropertyAnimatorUpdateListener { public static class: java.lang.Class; /** @@ -15862,23 +15864,23 @@ declare module androidx { } } -declare module androidx { - export module core { - export module view { +declare namespace androidx { + export namespace core { + export namespace view { export class WindowCompat { public static class: java.lang.Class; - public static FEATURE_ACTION_BAR: number = 8; - public static FEATURE_ACTION_BAR_OVERLAY: number = 9; - public static FEATURE_ACTION_MODE_OVERLAY: number = 10; + public static readonly FEATURE_ACTION_BAR = 8; + public static readonly FEATURE_ACTION_BAR_OVERLAY = 9; + public static readonly FEATURE_ACTION_MODE_OVERLAY = 10; public static requireViewById(window: globalAndroid.view.Window, id: number): globalAndroid.view.View; } } } } -declare module androidx { - export module core { - export module view { +declare namespace androidx { + export namespace core { + export namespace view { export class WindowInsetsCompat { public static class: java.lang.Class; public constructor(src: androidx.core.view.WindowInsetsCompat); @@ -15908,13 +15910,13 @@ declare module androidx { } } -declare module androidx { - export module core { - export module view { - export module accessibility { +declare namespace androidx { + export namespace core { + export namespace view { + export namespace accessibility { export class AccessibilityClickableSpanCompat { public static class: java.lang.Class; - public static SPAN_ID: string = "ACCESSIBILITY_CLICKABLE_SPAN_ID"; + public static readonly SPAN_ID = "ACCESSIBILITY_CLICKABLE_SPAN_ID"; public constructor(originalClickableSpanId: number, nodeInfoCompat: androidx.core.view.accessibility.AccessibilityNodeInfoCompat, clickableSpanActionId: number); public onClick(unused: globalAndroid.view.View): void; } @@ -15923,38 +15925,38 @@ declare module androidx { } } -declare module androidx { - export module core { - export module view { - export module accessibility { +declare namespace androidx { + export namespace core { + export namespace view { + export namespace accessibility { export class AccessibilityEventCompat { public static class: java.lang.Class; - public static TYPE_VIEW_HOVER_ENTER: number = 128; - public static TYPE_VIEW_HOVER_EXIT: number = 256; - public static TYPE_TOUCH_EXPLORATION_GESTURE_START: number = 512; - public static TYPE_TOUCH_EXPLORATION_GESTURE_END: number = 1024; - public static TYPE_WINDOW_CONTENT_CHANGED: number = 2048; - public static TYPE_VIEW_SCROLLED: number = 4096; - public static TYPE_VIEW_TEXT_SELECTION_CHANGED: number = 8192; - public static TYPE_ANNOUNCEMENT: number = 16384; - public static TYPE_VIEW_ACCESSIBILITY_FOCUSED: number = 32768; - public static TYPE_VIEW_ACCESSIBILITY_FOCUS_CLEARED: number = 65536; - public static TYPE_VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY: number = 131072; - public static TYPE_GESTURE_DETECTION_START: number = 262144; - public static TYPE_GESTURE_DETECTION_END: number = 524288; - public static TYPE_TOUCH_INTERACTION_START: number = 1048576; - public static TYPE_TOUCH_INTERACTION_END: number = 2097152; - public static TYPE_WINDOWS_CHANGED: number = 4194304; - public static TYPE_VIEW_CONTEXT_CLICKED: number = 8388608; - public static TYPE_ASSIST_READING_CONTEXT: number = 16777216; - public static CONTENT_CHANGE_TYPE_UNDEFINED: number = 0; - public static CONTENT_CHANGE_TYPE_SUBTREE: number = 1; - public static CONTENT_CHANGE_TYPE_TEXT: number = 2; - public static CONTENT_CHANGE_TYPE_CONTENT_DESCRIPTION: number = 4; - public static CONTENT_CHANGE_TYPE_PANE_TITLE: number = 8; - public static CONTENT_CHANGE_TYPE_PANE_APPEARED: number = 16; - public static CONTENT_CHANGE_TYPE_PANE_DISAPPEARED: number = 32; - public static TYPES_ALL_MASK: number = -1; + public static readonly TYPE_VIEW_HOVER_ENTER = 128; + public static readonly TYPE_VIEW_HOVER_EXIT = 256; + public static readonly TYPE_TOUCH_EXPLORATION_GESTURE_START = 512; + public static readonly TYPE_TOUCH_EXPLORATION_GESTURE_END = 1024; + public static readonly TYPE_WINDOW_CONTENT_CHANGED = 2048; + public static readonly TYPE_VIEW_SCROLLED = 4096; + public static readonly TYPE_VIEW_TEXT_SELECTION_CHANGED = 8192; + public static readonly TYPE_ANNOUNCEMENT = 16384; + public static readonly TYPE_VIEW_ACCESSIBILITY_FOCUSED = 32768; + public static readonly TYPE_VIEW_ACCESSIBILITY_FOCUS_CLEARED = 65536; + public static readonly TYPE_VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY = 131072; + public static readonly TYPE_GESTURE_DETECTION_START = 262144; + public static readonly TYPE_GESTURE_DETECTION_END = 524288; + public static readonly TYPE_TOUCH_INTERACTION_START = 1048576; + public static readonly TYPE_TOUCH_INTERACTION_END = 2097152; + public static readonly TYPE_WINDOWS_CHANGED = 4194304; + public static readonly TYPE_VIEW_CONTEXT_CLICKED = 8388608; + public static readonly TYPE_ASSIST_READING_CONTEXT = 16777216; + public static readonly CONTENT_CHANGE_TYPE_UNDEFINED = 0; + public static readonly CONTENT_CHANGE_TYPE_SUBTREE = 1; + public static readonly CONTENT_CHANGE_TYPE_TEXT = 2; + public static readonly CONTENT_CHANGE_TYPE_CONTENT_DESCRIPTION = 4; + public static readonly CONTENT_CHANGE_TYPE_PANE_TITLE = 8; + public static readonly CONTENT_CHANGE_TYPE_PANE_APPEARED = 16; + public static readonly CONTENT_CHANGE_TYPE_PANE_DISAPPEARED = 32; + public static readonly TYPES_ALL_MASK = -1; /** @deprecated */ public static getRecordCount(event: globalAndroid.view.accessibility.AccessibilityEvent): number; /** @deprecated */ @@ -15975,10 +15977,10 @@ declare module androidx { } } -declare module androidx { - export module core { - export module view { - export module accessibility { +declare namespace androidx { + export namespace core { + export namespace view { + export namespace accessibility { export class AccessibilityManagerCompat { public static class: java.lang.Class; /** @deprecated */ @@ -15994,7 +15996,7 @@ declare module androidx { public static addTouchExplorationStateChangeListener(manager: globalAndroid.view.accessibility.AccessibilityManager, listener: androidx.core.view.accessibility.AccessibilityManagerCompat.TouchExplorationStateChangeListener): boolean; public static removeTouchExplorationStateChangeListener(manager: globalAndroid.view.accessibility.AccessibilityManager, listener: androidx.core.view.accessibility.AccessibilityManagerCompat.TouchExplorationStateChangeListener): boolean; } - export module AccessibilityManagerCompat { + export namespace AccessibilityManagerCompat { export class AccessibilityStateChangeListener { public static class: java.lang.Class; /** @@ -16042,53 +16044,53 @@ declare module androidx { } } -declare module androidx { - export module core { - export module view { - export module accessibility { +declare namespace androidx { + export namespace core { + export namespace view { + export namespace accessibility { export class AccessibilityNodeInfoCompat { public static class: java.lang.Class; public mParentVirtualDescendantId: number; - public static ACTION_FOCUS: number = 1; - public static ACTION_CLEAR_FOCUS: number = 2; - public static ACTION_SELECT: number = 4; - public static ACTION_CLEAR_SELECTION: number = 8; - public static ACTION_CLICK: number = 16; - public static ACTION_LONG_CLICK: number = 32; - public static ACTION_ACCESSIBILITY_FOCUS: number = 64; - public static ACTION_CLEAR_ACCESSIBILITY_FOCUS: number = 128; - public static ACTION_NEXT_AT_MOVEMENT_GRANULARITY: number = 256; - public static ACTION_PREVIOUS_AT_MOVEMENT_GRANULARITY: number = 512; - public static ACTION_NEXT_HTML_ELEMENT: number = 1024; - public static ACTION_PREVIOUS_HTML_ELEMENT: number = 2048; - public static ACTION_SCROLL_FORWARD: number = 4096; - public static ACTION_SCROLL_BACKWARD: number = 8192; - public static ACTION_COPY: number = 16384; - public static ACTION_PASTE: number = 32768; - public static ACTION_CUT: number = 65536; - public static ACTION_SET_SELECTION: number = 131072; - public static ACTION_EXPAND: number = 262144; - public static ACTION_COLLAPSE: number = 524288; - public static ACTION_DISMISS: number = 1048576; - public static ACTION_SET_TEXT: number = 2097152; - public static ACTION_ARGUMENT_MOVEMENT_GRANULARITY_INT: string = "ACTION_ARGUMENT_MOVEMENT_GRANULARITY_INT"; - public static ACTION_ARGUMENT_HTML_ELEMENT_STRING: string = "ACTION_ARGUMENT_HTML_ELEMENT_STRING"; - public static ACTION_ARGUMENT_EXTEND_SELECTION_BOOLEAN: string = "ACTION_ARGUMENT_EXTEND_SELECTION_BOOLEAN"; - public static ACTION_ARGUMENT_SELECTION_START_INT: string = "ACTION_ARGUMENT_SELECTION_START_INT"; - public static ACTION_ARGUMENT_SELECTION_END_INT: string = "ACTION_ARGUMENT_SELECTION_END_INT"; - public static ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCE: string = "ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCE"; - public static ACTION_ARGUMENT_ROW_INT: string = "android.view.accessibility.action.ARGUMENT_ROW_INT"; - public static ACTION_ARGUMENT_COLUMN_INT: string = "android.view.accessibility.action.ARGUMENT_COLUMN_INT"; - public static ACTION_ARGUMENT_PROGRESS_VALUE: string = "android.view.accessibility.action.ARGUMENT_PROGRESS_VALUE"; - public static ACTION_ARGUMENT_MOVE_WINDOW_X: string = "ACTION_ARGUMENT_MOVE_WINDOW_X"; - public static ACTION_ARGUMENT_MOVE_WINDOW_Y: string = "ACTION_ARGUMENT_MOVE_WINDOW_Y"; - public static FOCUS_INPUT: number = 1; - public static FOCUS_ACCESSIBILITY: number = 2; - public static MOVEMENT_GRANULARITY_CHARACTER: number = 1; - public static MOVEMENT_GRANULARITY_WORD: number = 2; - public static MOVEMENT_GRANULARITY_LINE: number = 4; - public static MOVEMENT_GRANULARITY_PARAGRAPH: number = 8; - public static MOVEMENT_GRANULARITY_PAGE: number = 16; + public static readonly ACTION_FOCUS = 1; + public static readonly ACTION_CLEAR_FOCUS = 2; + public static readonly ACTION_SELECT = 4; + public static readonly ACTION_CLEAR_SELECTION = 8; + public static readonly ACTION_CLICK = 16; + public static readonly ACTION_LONG_CLICK = 32; + public static readonly ACTION_ACCESSIBILITY_FOCUS = 64; + public static readonly ACTION_CLEAR_ACCESSIBILITY_FOCUS = 128; + public static readonly ACTION_NEXT_AT_MOVEMENT_GRANULARITY = 256; + public static readonly ACTION_PREVIOUS_AT_MOVEMENT_GRANULARITY = 512; + public static readonly ACTION_NEXT_HTML_ELEMENT = 1024; + public static readonly ACTION_PREVIOUS_HTML_ELEMENT = 2048; + public static readonly ACTION_SCROLL_FORWARD = 4096; + public static readonly ACTION_SCROLL_BACKWARD = 8192; + public static readonly ACTION_COPY = 16384; + public static readonly ACTION_PASTE = 32768; + public static readonly ACTION_CUT = 65536; + public static readonly ACTION_SET_SELECTION = 131072; + public static readonly ACTION_EXPAND = 262144; + public static readonly ACTION_COLLAPSE = 524288; + public static readonly ACTION_DISMISS = 1048576; + public static readonly ACTION_SET_TEXT = 2097152; + public static readonly ACTION_ARGUMENT_MOVEMENT_GRANULARITY_INT = "ACTION_ARGUMENT_MOVEMENT_GRANULARITY_INT"; + public static readonly ACTION_ARGUMENT_HTML_ELEMENT_STRING = "ACTION_ARGUMENT_HTML_ELEMENT_STRING"; + public static readonly ACTION_ARGUMENT_EXTEND_SELECTION_BOOLEAN = "ACTION_ARGUMENT_EXTEND_SELECTION_BOOLEAN"; + public static readonly ACTION_ARGUMENT_SELECTION_START_INT = "ACTION_ARGUMENT_SELECTION_START_INT"; + public static readonly ACTION_ARGUMENT_SELECTION_END_INT = "ACTION_ARGUMENT_SELECTION_END_INT"; + public static readonly ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCE = "ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCE"; + public static readonly ACTION_ARGUMENT_ROW_INT = "android.view.accessibility.action.ARGUMENT_ROW_INT"; + public static readonly ACTION_ARGUMENT_COLUMN_INT = "android.view.accessibility.action.ARGUMENT_COLUMN_INT"; + public static readonly ACTION_ARGUMENT_PROGRESS_VALUE = "android.view.accessibility.action.ARGUMENT_PROGRESS_VALUE"; + public static readonly ACTION_ARGUMENT_MOVE_WINDOW_X = "ACTION_ARGUMENT_MOVE_WINDOW_X"; + public static readonly ACTION_ARGUMENT_MOVE_WINDOW_Y = "ACTION_ARGUMENT_MOVE_WINDOW_Y"; + public static readonly FOCUS_INPUT = 1; + public static readonly FOCUS_ACCESSIBILITY = 2; + public static readonly MOVEMENT_GRANULARITY_CHARACTER = 1; + public static readonly MOVEMENT_GRANULARITY_WORD = 2; + public static readonly MOVEMENT_GRANULARITY_LINE = 4; + public static readonly MOVEMENT_GRANULARITY_PARAGRAPH = 8; + public static readonly MOVEMENT_GRANULARITY_PAGE = 16; /** @deprecated */ public constructor(info: any); public static wrap(info: globalAndroid.view.accessibility.AccessibilityNodeInfo): androidx.core.view.accessibility.AccessibilityNodeInfoCompat; @@ -16118,7 +16120,7 @@ declare module androidx { public performAction(action: number, arguments_: globalAndroid.os.Bundle): boolean; public setMovementGranularities(granularities: number): void; public getMovementGranularities(): number; - public findAccessibilityNodeInfosByText(i: string): java.util.List; + public findAccessibilityNodeInfosByText(text: string): java.util.List; public getParent(): androidx.core.view.accessibility.AccessibilityNodeInfoCompat; public setParent(parent: globalAndroid.view.View): void; public setParent(root: globalAndroid.view.View, virtualDescendantId: number): void; @@ -16162,8 +16164,8 @@ declare module androidx { public setClassName(className: string): void; public getText(): string; public setText(text: string): void; - public addSpansToExtras(i: string, tagSpans: globalAndroid.view.View): void; - public static getClickableSpans(spanned: string): androidNative.Array; + public addSpansToExtras(text: string, view: globalAndroid.view.View): void; + public static getClickableSpans(text: string): androidNative.Array; public getContentDescription(): string; public setContentDescription(contentDescription: string): void; public recycle(): void; @@ -16197,7 +16199,7 @@ declare module androidx { public getLabeledBy(): androidx.core.view.accessibility.AccessibilityNodeInfoCompat; public canOpenPopup(): boolean; public setCanOpenPopup(opensPopup: boolean): void; - public findAccessibilityNodeInfosByViewId(nodes: string): java.util.List; + public findAccessibilityNodeInfosByViewId(viewId: string): java.util.List; public getExtras(): globalAndroid.os.Bundle; public getInputType(): number; public setInputType(inputType: number): void; @@ -16236,7 +16238,7 @@ declare module androidx { public equals(obj: any): boolean; public toString(): string; } - export module AccessibilityNodeInfoCompat { + export namespace AccessibilityNodeInfoCompat { export class AccessibilityActionCompat { public static class: java.lang.Class; public static ACTION_FOCUS: androidx.core.view.accessibility.AccessibilityNodeInfoCompat.AccessibilityActionCompat; @@ -16278,9 +16280,9 @@ declare module androidx { } export class CollectionInfoCompat { public static class: java.lang.Class; - public static SELECTION_MODE_NONE: number = 0; - public static SELECTION_MODE_SINGLE: number = 1; - public static SELECTION_MODE_MULTIPLE: number = 2; + public static readonly SELECTION_MODE_NONE = 0; + public static readonly SELECTION_MODE_SINGLE = 1; + public static readonly SELECTION_MODE_MULTIPLE = 2; public static obtain(rowCount: number, columnCount: number, hierarchical: boolean, selectionMode: number): androidx.core.view.accessibility.AccessibilityNodeInfoCompat.CollectionInfoCompat; public static obtain(rowCount: number, columnCount: number, hierarchical: boolean): androidx.core.view.accessibility.AccessibilityNodeInfoCompat.CollectionInfoCompat; public getColumnCount(): number; @@ -16302,9 +16304,9 @@ declare module androidx { } export class RangeInfoCompat { public static class: java.lang.Class; - public static RANGE_TYPE_INT: number = 0; - public static RANGE_TYPE_FLOAT: number = 1; - public static RANGE_TYPE_PERCENT: number = 2; + public static readonly RANGE_TYPE_INT = 0; + public static readonly RANGE_TYPE_FLOAT = 1; + public static readonly RANGE_TYPE_PERCENT = 2; public static obtain(type: number, min: number, max: number, current: number): androidx.core.view.accessibility.AccessibilityNodeInfoCompat.RangeInfoCompat; public getCurrent(): number; public getMax(): number; @@ -16317,13 +16319,13 @@ declare module androidx { } } -declare module androidx { - export module core { - export module view { - export module accessibility { +declare namespace androidx { + export namespace core { + export namespace view { + export namespace accessibility { export class AccessibilityNodeProviderCompat { public static class: java.lang.Class; - public static HOST_VIEW_ID: number = -1; + public static readonly HOST_VIEW_ID = -1; public constructor(); public constructor(provider: any); public getProvider(): any; @@ -16332,11 +16334,11 @@ declare module androidx { public findAccessibilityNodeInfosByText(text: string, virtualViewId: number): java.util.List | null; public findFocus(focus: number): androidx.core.view.accessibility.AccessibilityNodeInfoCompat | null; } - export module AccessibilityNodeProviderCompat { + export namespace AccessibilityNodeProviderCompat { export class AccessibilityNodeProviderApi16 { public static class: java.lang.Class; public createAccessibilityNodeInfo(virtualViewId: number): globalAndroid.view.accessibility.AccessibilityNodeInfo; - public findAccessibilityNodeInfosByText(i: string, infoList: number): java.util.List; + public findAccessibilityNodeInfosByText(text: string, virtualViewId: number): java.util.List; public performAction(virtualViewId: number, action: number, arguments_: globalAndroid.os.Bundle): boolean; } export class AccessibilityNodeProviderApi19 extends androidx.core.view.accessibility.AccessibilityNodeProviderCompat.AccessibilityNodeProviderApi16 { @@ -16349,10 +16351,10 @@ declare module androidx { } } -declare module androidx { - export module core { - export module view { - export module accessibility { +declare namespace androidx { + export namespace core { + export namespace view { + export namespace accessibility { export class AccessibilityRecordCompat { public static class: java.lang.Class; /** @deprecated */ @@ -16466,17 +16468,17 @@ declare module androidx { } } -declare module androidx { - export module core { - export module view { - export module accessibility { +declare namespace androidx { + export namespace core { + export namespace view { + export namespace accessibility { export class AccessibilityWindowInfoCompat { public static class: java.lang.Class; - public static TYPE_APPLICATION: number = 1; - public static TYPE_INPUT_METHOD: number = 2; - public static TYPE_SYSTEM: number = 3; - public static TYPE_ACCESSIBILITY_OVERLAY: number = 4; - public static TYPE_SPLIT_SCREEN_DIVIDER: number = 5; + public static readonly TYPE_APPLICATION = 1; + public static readonly TYPE_INPUT_METHOD = 2; + public static readonly TYPE_SYSTEM = 3; + public static readonly TYPE_ACCESSIBILITY_OVERLAY = 4; + public static readonly TYPE_SPLIT_SCREEN_DIVIDER = 5; public getType(): number; public getLayer(): number; public getRoot(): androidx.core.view.accessibility.AccessibilityNodeInfoCompat; @@ -16502,23 +16504,23 @@ declare module androidx { } } -declare module androidx { - export module core { - export module view { - export module animation { +declare namespace androidx { + export namespace core { + export namespace view { + export namespace animation { export class PathInterpolatorApi14 { public static class: java.lang.Class; - public getInterpolation(this_: number): number; + public getInterpolation(t: number): number; } } } } } -declare module androidx { - export module core { - export module view { - export module animation { +declare namespace androidx { + export namespace core { + export namespace view { + export namespace animation { export class PathInterpolatorCompat { public static class: java.lang.Class; public static create(path: globalAndroid.graphics.Path): globalAndroid.view.animation.Interpolator; @@ -16530,16 +16532,16 @@ declare module androidx { } } -declare module androidx { - export module core { - export module view { - export module inputmethod { +declare namespace androidx { + export namespace core { + export namespace view { + export namespace inputmethod { export class EditorInfoCompat { public static class: java.lang.Class; - public static IME_FLAG_NO_PERSONALIZED_LEARNING: number = 16777216; - public static IME_FLAG_FORCE_ASCII: number = -2147483648; + public static readonly IME_FLAG_NO_PERSONALIZED_LEARNING = 16777216; + public static readonly IME_FLAG_FORCE_ASCII = -2147483648; public static setContentMimeTypes(editorInfo: globalAndroid.view.inputmethod.EditorInfo, contentMimeTypes: androidNative.Array | null): void; - public static getContentMimeTypes(result: globalAndroid.view.inputmethod.EditorInfo): androidNative.Array; + public static getContentMimeTypes(editorInfo: globalAndroid.view.inputmethod.EditorInfo): androidNative.Array; /** @deprecated */ public constructor(); } @@ -16548,19 +16550,19 @@ declare module androidx { } } -declare module androidx { - export module core { - export module view { - export module inputmethod { +declare namespace androidx { + export namespace core { + export namespace view { + export namespace inputmethod { export class InputConnectionCompat { public static class: java.lang.Class; - public static INPUT_CONTENT_GRANT_READ_URI_PERMISSION: number = 1; - public static commitContent(mimeType: globalAndroid.view.inputmethod.InputConnection, params: globalAndroid.view.inputmethod.EditorInfo, inputConnection: androidx.core.view.inputmethod.InputContentInfoCompat, editorInfo: number, inputContentInfo: globalAndroid.os.Bundle | null): boolean; - public static createWrapper(listener: globalAndroid.view.inputmethod.InputConnection, contentMimeTypes: globalAndroid.view.inputmethod.EditorInfo, listener: androidx.core.view.inputmethod.InputConnectionCompat.OnCommitContentListener): globalAndroid.view.inputmethod.InputConnection; + public static readonly INPUT_CONTENT_GRANT_READ_URI_PERMISSION = 1; + public static commitContent(inputConnection: globalAndroid.view.inputmethod.InputConnection, editorInfo: globalAndroid.view.inputmethod.EditorInfo, inputContentInfo: androidx.core.view.inputmethod.InputContentInfoCompat, flags: number, opts: globalAndroid.os.Bundle | null): boolean; + public static createWrapper(inputConnection: globalAndroid.view.inputmethod.InputConnection, editorInfo: globalAndroid.view.inputmethod.EditorInfo, onCommitContentListener: androidx.core.view.inputmethod.InputConnectionCompat.OnCommitContentListener): globalAndroid.view.inputmethod.InputConnection; /** @deprecated */ public constructor(); } - export module InputConnectionCompat { + export namespace InputConnectionCompat { export class OnCommitContentListener { public static class: java.lang.Class; /** @@ -16578,10 +16580,10 @@ declare module androidx { } } -declare module androidx { - export module core { - export module view { - export module inputmethod { +declare namespace androidx { + export namespace core { + export namespace view { + export namespace inputmethod { export class InputContentInfoCompat { public static class: java.lang.Class; public constructor(contentUri: globalAndroid.net.Uri, description: globalAndroid.content.ClipDescription, linkUri: globalAndroid.net.Uri | null); @@ -16593,7 +16595,7 @@ declare module androidx { public requestPermission(): void; public releasePermission(): void; } - export module InputContentInfoCompat { + export namespace InputContentInfoCompat { export class InputContentInfoCompatApi25Impl extends androidx.core.view.inputmethod.InputContentInfoCompat.InputContentInfoCompatImpl { public static class: java.lang.Class; public getContentUri(): globalAndroid.net.Uri; @@ -16639,17 +16641,17 @@ declare module androidx { } } -declare module androidx { - export module core { - export module widget { +declare namespace androidx { + export namespace core { + export namespace widget { export abstract class AutoScrollHelper { public static class: java.lang.Class; - public static RELATIVE_UNSPECIFIED: number = 0.0; - public static NO_MAX: number = 3.4028235E38; - public static NO_MIN: number = 0.0; - public static EDGE_TYPE_INSIDE: number = 0; - public static EDGE_TYPE_INSIDE_EXTEND: number = 1; - public static EDGE_TYPE_OUTSIDE: number = 2; + public static readonly RELATIVE_UNSPECIFIED = 0.0; + public static readonly NO_MAX = 3.4028234663852886E38; + public static readonly NO_MIN = 0.0; + public static readonly EDGE_TYPE_INSIDE = 0; + public static readonly EDGE_TYPE_INSIDE_EXTEND = 1; + public static readonly EDGE_TYPE_OUTSIDE = 2; public constructor(target: globalAndroid.view.View); public setEnabled(enabled: boolean): androidx.core.widget.AutoScrollHelper; public isEnabled(): boolean; @@ -16664,12 +16666,12 @@ declare module androidx { public setActivationDelay(delayMillis: number): androidx.core.widget.AutoScrollHelper; public setRampUpDuration(durationMillis: number): androidx.core.widget.AutoScrollHelper; public setRampDownDuration(durationMillis: number): androidx.core.widget.AutoScrollHelper; - public onTouch(yTargetVelocity: globalAndroid.view.View, this_: globalAndroid.view.MotionEvent): boolean; + public onTouch(v: globalAndroid.view.View, event: globalAndroid.view.MotionEvent): boolean; public scrollTargetBy(param0: number, param1: number): void; public canTargetScrollHorizontally(param0: number): boolean; public canTargetScrollVertically(param0: number): boolean; } - export module AutoScrollHelper { + export namespace AutoScrollHelper { export class ClampedScroller { public static class: java.lang.Class; public setRampUpDuration(durationMillis: number): void; @@ -16693,9 +16695,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module widget { +declare namespace androidx { + export namespace core { + export namespace widget { export class AutoSizeableTextView { public static class: java.lang.Class; /** @@ -16710,7 +16712,6 @@ declare module androidx { getAutoSizeMinTextSize(): number; getAutoSizeMaxTextSize(): number; getAutoSizeTextAvailableSizes(): androidNative.Array; - ""(): void; }); public constructor(); public static PLATFORM_SUPPORTS_AUTOSIZE: boolean; @@ -16727,24 +16728,24 @@ declare module androidx { } } -declare module androidx { - export module core { - export module widget { +declare namespace androidx { + export namespace core { + export namespace widget { export class CompoundButtonCompat { public static class: java.lang.Class; public static setButtonTintList(button: globalAndroid.widget.CompoundButton, tint: globalAndroid.content.res.ColorStateList | null): void; public static getButtonTintList(button: globalAndroid.widget.CompoundButton): globalAndroid.content.res.ColorStateList | null; public static setButtonTintMode(button: globalAndroid.widget.CompoundButton, tintMode: globalAndroid.graphics.PorterDuff.Mode | null): void; public static getButtonTintMode(button: globalAndroid.widget.CompoundButton): globalAndroid.graphics.PorterDuff.Mode | null; - public static getButtonDrawable(e: globalAndroid.widget.CompoundButton): globalAndroid.graphics.drawable.Drawable | null; + public static getButtonDrawable(button: globalAndroid.widget.CompoundButton): globalAndroid.graphics.drawable.Drawable | null; } } } } -declare module androidx { - export module core { - export module widget { +declare namespace androidx { + export namespace core { + export namespace widget { export class ContentLoadingProgressBar { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); @@ -16758,9 +16759,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module widget { +declare namespace androidx { + export namespace core { + export namespace widget { export class EdgeEffectCompat { public static class: java.lang.Class; /** @deprecated */ @@ -16787,23 +16788,23 @@ declare module androidx { } } -declare module androidx { - export module core { - export module widget { +declare namespace androidx { + export namespace core { + export namespace widget { export class ImageViewCompat { public static class: java.lang.Class; public static getImageTintList(view: globalAndroid.widget.ImageView): globalAndroid.content.res.ColorStateList | null; - public static setImageTintList(imageViewDrawable: globalAndroid.widget.ImageView, hasTint: globalAndroid.content.res.ColorStateList | null): void; + public static setImageTintList(view: globalAndroid.widget.ImageView, tintList: globalAndroid.content.res.ColorStateList | null): void; public static getImageTintMode(view: globalAndroid.widget.ImageView): globalAndroid.graphics.PorterDuff.Mode | null; - public static setImageTintMode(imageViewDrawable: globalAndroid.widget.ImageView, hasTint: globalAndroid.graphics.PorterDuff.Mode | null): void; + public static setImageTintMode(view: globalAndroid.widget.ImageView, mode: globalAndroid.graphics.PorterDuff.Mode | null): void; } } } } -declare module androidx { - export module core { - export module widget { +declare namespace androidx { + export namespace core { + export namespace widget { export class ListPopupWindowCompat { public static class: java.lang.Class; /** @deprecated */ @@ -16814,36 +16815,36 @@ declare module androidx { } } -declare module androidx { - export module core { - export module widget { +declare namespace androidx { + export namespace core { + export namespace widget { export class ListViewAutoScrollHelper extends androidx.core.widget.AutoScrollHelper { public static class: java.lang.Class; public constructor(target: globalAndroid.view.View); public constructor(target: globalAndroid.widget.ListView); public scrollTargetBy(deltaX: number, deltaY: number): void; public canTargetScrollHorizontally(direction: number): boolean; - public canTargetScrollVertically(firstView: number): boolean; + public canTargetScrollVertically(direction: number): boolean; } } } } -declare module androidx { - export module core { - export module widget { +declare namespace androidx { + export namespace core { + export namespace widget { export class ListViewCompat { public static class: java.lang.Class; - public static scrollListBy(firstPosition: globalAndroid.widget.ListView, firstView: number): void; - public static canScrollList(lastBottom: globalAndroid.widget.ListView, lastPosition: number): boolean; + public static scrollListBy(listView: globalAndroid.widget.ListView, y: number): void; + public static canScrollList(listView: globalAndroid.widget.ListView, direction: number): boolean; } } } } -declare module androidx { - export module core { - export module widget { +declare namespace androidx { + export namespace core { + export namespace widget { export class NestedScrollView implements androidx.core.view.NestedScrollingParent3, androidx.core.view.NestedScrollingChild3, androidx.core.view.ScrollingView { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); @@ -16892,18 +16893,18 @@ declare module androidx { public isSmoothScrollingEnabled(): boolean; public setSmoothScrollingEnabled(smoothScrollingEnabled: boolean): void; public onScrollChanged(l: number, t: number, oldl: number, oldt: number): void; - public onMeasure(childHeightMeasureSpec: number, child: number): void; + public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; public dispatchKeyEvent(event: globalAndroid.view.KeyEvent): boolean; - public executeKeyEvent(nextFocused: globalAndroid.view.KeyEvent): boolean; + public executeKeyEvent(event: globalAndroid.view.KeyEvent): boolean; public requestDisallowInterceptTouchEvent(disallowIntercept: boolean): void; - public onInterceptTouchEvent(activePointerId: globalAndroid.view.MotionEvent): boolean; - public onTouchEvent(parent: globalAndroid.view.MotionEvent): boolean; - public onGenericMotionEvent(range: globalAndroid.view.MotionEvent): boolean; + public onInterceptTouchEvent(ev: globalAndroid.view.MotionEvent): boolean; + public onTouchEvent(ev: globalAndroid.view.MotionEvent): boolean; + public onGenericMotionEvent(event: globalAndroid.view.MotionEvent): boolean; public onOverScrolled(scrollX: number, scrollY: number, clampedX: boolean, clampedY: boolean): void; - public pageScroll(lp: number): boolean; - public fullScroll(lp: number): boolean; - public arrowScroll(child: number): boolean; - public smoothScrollBy(lp: number, childSize: number): void; + public pageScroll(direction: number): boolean; + public fullScroll(direction: number): boolean; + public arrowScroll(direction: number): boolean; + public smoothScrollBy(dx: number, dy: number): void; public smoothScrollTo(x: number, y: number): void; public computeVerticalScrollRange(): number; public computeVerticalScrollOffset(): number; @@ -16914,17 +16915,17 @@ declare module androidx { public measureChild(child: globalAndroid.view.View, parentWidthMeasureSpec: number, parentHeightMeasureSpec: number): void; public measureChildWithMargins(child: globalAndroid.view.View, parentWidthMeasureSpec: number, widthUsed: number, parentHeightMeasureSpec: number, heightUsed: number): void; public computeScroll(): void; - public computeScrollDeltaToGetChildRectOnScreen(distanceToBottom: globalAndroid.graphics.Rect): number; + public computeScrollDeltaToGetChildRectOnScreen(rect: globalAndroid.graphics.Rect): number; public requestChildFocus(child: globalAndroid.view.View, focused: globalAndroid.view.View): void; public onRequestFocusInDescendants(direction: number, previouslyFocusedRect: globalAndroid.graphics.Rect): boolean; public requestChildRectangleOnScreen(child: globalAndroid.view.View, rectangle: globalAndroid.graphics.Rect, immediate: boolean): boolean; public requestLayout(): void; - public onLayout(lp: boolean, childSize: number, parentSpace: number, currentScrollY: number, newScrollY: number): void; + public onLayout(changed: boolean, l: number, t: number, r: number, b: number): void; public onAttachedToWindow(): void; - public onSizeChanged(this_: number, w: number, h: number, oldw: number): void; + public onSizeChanged(w: number, h: number, oldw: number, oldh: number): void; public fling(velocityY: number): void; - public scrollTo(lp: number, parentSpaceHorizontal: number): void; - public draw(width: globalAndroid.graphics.Canvas): void; + public scrollTo(x: number, y: number): void; + public draw(canvas: globalAndroid.graphics.Canvas): void; public onRestoreInstanceState(state: globalAndroid.os.Parcelable): void; public onSaveInstanceState(): globalAndroid.os.Parcelable; public onNestedScroll(param0: globalAndroid.view.View, param1: number, param2: number, param3: number, param4: number, param5: number, param6: androidNative.Array): void; @@ -16953,11 +16954,11 @@ declare module androidx { public dispatchNestedFling(param0: number, param1: number, param2: boolean): boolean; public dispatchNestedPreFling(param0: number, param1: number): boolean; } - export module NestedScrollView { + export namespace NestedScrollView { export class androidxcorewidgetNestedScrollViewAccessibilityDelegate extends androidx.core.view.AccessibilityDelegateCompat { public static class: java.lang.Class; - public performAccessibilityAction(targetScrollY: globalAndroid.view.View, viewportHeight: number, targetScrollY: globalAndroid.os.Bundle): boolean; - public onInitializeAccessibilityNodeInfo(this_: globalAndroid.view.View, host: androidx.core.view.accessibility.AccessibilityNodeInfoCompat): void; + public performAccessibilityAction(host: globalAndroid.view.View, action: number, arguments_: globalAndroid.os.Bundle): boolean; + public onInitializeAccessibilityNodeInfo(host: globalAndroid.view.View, info: androidx.core.view.accessibility.AccessibilityNodeInfoCompat): void; public onInitializeAccessibilityEvent(host: globalAndroid.view.View, event: globalAndroid.view.accessibility.AccessibilityEvent): void; } export type AccessibilityDelegate = androidxcorewidgetNestedScrollViewAccessibilityDelegate @@ -16984,9 +16985,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module widget { +declare namespace androidx { + export namespace core { + export namespace widget { export class PopupMenuCompat { public static class: java.lang.Class; public static getDragToOpenListener(popupMenu: any): globalAndroid.view.View.OnTouchListener | null; @@ -16995,14 +16996,14 @@ declare module androidx { } } -declare module androidx { - export module core { - export module widget { +declare namespace androidx { + export namespace core { + export namespace widget { export class PopupWindowCompat { public static class: java.lang.Class; - public static showAsDropDown(xoff1: globalAndroid.widget.PopupWindow, hgrav: globalAndroid.view.View, popup: number, anchor: number, xoff: number): void; - public static setOverlapAnchor(e: globalAndroid.widget.PopupWindow, e: boolean): void; - public static getOverlapAnchor(e: globalAndroid.widget.PopupWindow): boolean; + public static showAsDropDown(popup: globalAndroid.widget.PopupWindow, anchor: globalAndroid.view.View, xoff: number, yoff: number, gravity: number): void; + public static setOverlapAnchor(popupWindow: globalAndroid.widget.PopupWindow, overlapAnchor: boolean): void; + public static getOverlapAnchor(popupWindow: globalAndroid.widget.PopupWindow): boolean; public static setWindowLayoutType(popupWindow: globalAndroid.widget.PopupWindow, layoutType: number): void; public static getWindowLayoutType(popupWindow: globalAndroid.widget.PopupWindow): number; } @@ -17010,9 +17011,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module widget { +declare namespace androidx { + export namespace core { + export namespace widget { export class ScrollerCompat { public static class: java.lang.Class; /** @deprecated */ @@ -17056,20 +17057,20 @@ declare module androidx { } } -declare module androidx { - export module core { - export module widget { +declare namespace androidx { + export namespace core { + export namespace widget { export class TextViewCompat { public static class: java.lang.Class; - public static AUTO_SIZE_TEXT_TYPE_NONE: number = 0; - public static AUTO_SIZE_TEXT_TYPE_UNIFORM: number = 1; - public static setCompoundDrawablesRelative(rtl: globalAndroid.widget.TextView, textView: globalAndroid.graphics.drawable.Drawable | null, start: globalAndroid.graphics.drawable.Drawable | null, top: globalAndroid.graphics.drawable.Drawable | null, end: globalAndroid.graphics.drawable.Drawable | null): void; - public static setCompoundDrawablesRelativeWithIntrinsicBounds(rtl: globalAndroid.widget.TextView, textView: globalAndroid.graphics.drawable.Drawable | null, start: globalAndroid.graphics.drawable.Drawable | null, top: globalAndroid.graphics.drawable.Drawable | null, end: globalAndroid.graphics.drawable.Drawable | null): void; - public static setCompoundDrawablesRelativeWithIntrinsicBounds(rtl: globalAndroid.widget.TextView, textView: number, start: number, top: number, end: number): void; + public static readonly AUTO_SIZE_TEXT_TYPE_NONE = 0; + public static readonly AUTO_SIZE_TEXT_TYPE_UNIFORM = 1; + public static setCompoundDrawablesRelative(textView: globalAndroid.widget.TextView, start: globalAndroid.graphics.drawable.Drawable | null, top: globalAndroid.graphics.drawable.Drawable | null, end: globalAndroid.graphics.drawable.Drawable | null, bottom: globalAndroid.graphics.drawable.Drawable | null): void; + public static setCompoundDrawablesRelativeWithIntrinsicBounds(textView: globalAndroid.widget.TextView, start: globalAndroid.graphics.drawable.Drawable | null, top: globalAndroid.graphics.drawable.Drawable | null, end: globalAndroid.graphics.drawable.Drawable | null, bottom: globalAndroid.graphics.drawable.Drawable | null): void; + public static setCompoundDrawablesRelativeWithIntrinsicBounds(textView: globalAndroid.widget.TextView, start: number, top: number, end: number, bottom: number): void; public static getMaxLines(textView: globalAndroid.widget.TextView): number; public static getMinLines(textView: globalAndroid.widget.TextView): number; public static setTextAppearance(textView: globalAndroid.widget.TextView, resId: number): void; - public static getCompoundDrawablesRelative(start: globalAndroid.widget.TextView): androidNative.Array; + public static getCompoundDrawablesRelative(textView: globalAndroid.widget.TextView): androidNative.Array; public static setAutoSizeTextTypeWithDefaults(textView: globalAndroid.widget.TextView, autoSizeTextType: number): void; public static setAutoSizeTextTypeUniformWithConfiguration(textView: globalAndroid.widget.TextView, autoSizeMinTextSize: number, autoSizeMaxTextSize: number, autoSizeStepGranularity: number, unit: number): void; public static setAutoSizeTextTypeUniformWithPresetSizes(textView: globalAndroid.widget.TextView, presetSizes: androidNative.Array, unit: number): void; @@ -17080,16 +17081,16 @@ declare module androidx { public static getAutoSizeTextAvailableSizes(textView: globalAndroid.widget.TextView): androidNative.Array; public static setCustomSelectionActionModeCallback(textView: globalAndroid.widget.TextView, callback: globalAndroid.view.ActionMode.Callback): void; public static wrapCustomSelectionActionModeCallback(textView: globalAndroid.widget.TextView, callback: globalAndroid.view.ActionMode.Callback): globalAndroid.view.ActionMode.Callback; - public static setFirstBaselineToTopHeight(fontMetricsTop: globalAndroid.widget.TextView, paddingTop: number): void; - public static setLastBaselineToBottomHeight(fontMetricsBottom: globalAndroid.widget.TextView, paddingBottom: number): void; + public static setFirstBaselineToTopHeight(textView: globalAndroid.widget.TextView, firstBaselineToTopHeight: number): void; + public static setLastBaselineToBottomHeight(textView: globalAndroid.widget.TextView, lastBaselineToBottomHeight: number): void; public static getFirstBaselineToTopHeight(textView: globalAndroid.widget.TextView): number; public static getLastBaselineToBottomHeight(textView: globalAndroid.widget.TextView): number; public static setLineHeight(textView: globalAndroid.widget.TextView, lineHeight: number): void; - public static getTextMetricsParams(builder: globalAndroid.widget.TextView): androidx.core.text.PrecomputedTextCompat.Params; - public static setTextMetricsParams(paintTextScaleX: globalAndroid.widget.TextView, textView: androidx.core.text.PrecomputedTextCompat.Params): void; - public static setPrecomputedText(param: globalAndroid.widget.TextView, textView: androidx.core.text.PrecomputedTextCompat): void; + public static getTextMetricsParams(textView: globalAndroid.widget.TextView): androidx.core.text.PrecomputedTextCompat.Params; + public static setTextMetricsParams(textView: globalAndroid.widget.TextView, params: androidx.core.text.PrecomputedTextCompat.Params): void; + public static setPrecomputedText(textView: globalAndroid.widget.TextView, precomputed: androidx.core.text.PrecomputedTextCompat): void; } - export module TextViewCompat { + export namespace TextViewCompat { export class AutoSizeTextType { public static class: java.lang.Class; /** @@ -17111,9 +17112,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module widget { +declare namespace androidx { + export namespace core { + export namespace widget { export class TintableCompoundButton { public static class: java.lang.Class; /** @@ -17135,9 +17136,9 @@ declare module androidx { } } -declare module androidx { - export module core { - export module widget { +declare namespace androidx { + export namespace core { + export namespace widget { export class TintableImageSourceView { public static class: java.lang.Class; /** @@ -17159,9 +17160,9 @@ declare module androidx { } } -declare module androidx { - export module cursoradapter { - export module widget { +declare namespace androidx { + export namespace cursoradapter { + export namespace widget { export abstract class CursorAdapter implements androidx.cursoradapter.widget.CursorFilter.CursorFilterClient { public static class: java.lang.Class; public mDataValid: boolean; @@ -17173,8 +17174,8 @@ declare module androidx { public mDataSetObserver: globalAndroid.database.DataSetObserver; public mCursorFilter: androidx.cursoradapter.widget.CursorFilter; public mFilterQueryProvider: globalAndroid.widget.FilterQueryProvider; - public static FLAG_AUTO_REQUERY: number = 1; - public static FLAG_REGISTER_CONTENT_OBSERVER: number = 2; + public static readonly FLAG_AUTO_REQUERY = 1; + public static readonly FLAG_REGISTER_CONTENT_OBSERVER = 2; /** @deprecated */ public constructor(context: globalAndroid.content.Context, c: globalAndroid.database.Cursor); public constructor(context: globalAndroid.content.Context, c: globalAndroid.database.Cursor, autoRequery: boolean); @@ -17186,8 +17187,8 @@ declare module androidx { public getItem(position: number): any; public getItemId(position: number): number; public hasStableIds(): boolean; - public getView(this_: number, position: globalAndroid.view.View, convertView: globalAndroid.view.ViewGroup): globalAndroid.view.View; - public getDropDownView(v: number, this_: globalAndroid.view.View, position: globalAndroid.view.ViewGroup): globalAndroid.view.View; + public getView(position: number, convertView: globalAndroid.view.View, parent: globalAndroid.view.ViewGroup): globalAndroid.view.View; + public getDropDownView(position: number, convertView: globalAndroid.view.View, parent: globalAndroid.view.ViewGroup): globalAndroid.view.View; public newView(param0: globalAndroid.content.Context, param1: globalAndroid.database.Cursor, param2: globalAndroid.view.ViewGroup): globalAndroid.view.View; public newDropDownView(context: globalAndroid.content.Context, cursor: globalAndroid.database.Cursor, parent: globalAndroid.view.ViewGroup): globalAndroid.view.View; public bindView(param0: globalAndroid.view.View, param1: globalAndroid.content.Context, param2: globalAndroid.database.Cursor): void; @@ -17203,7 +17204,7 @@ declare module androidx { public runQueryOnBackgroundThread(param0: string): globalAndroid.database.Cursor; public changeCursor(param0: globalAndroid.database.Cursor): void; } - export module CursorAdapter { + export namespace CursorAdapter { export class ChangeObserver { public static class: java.lang.Class; public deliverSelfNotifications(): boolean; @@ -17219,16 +17220,16 @@ declare module androidx { } } -declare module androidx { - export module cursoradapter { - export module widget { +declare namespace androidx { + export namespace cursoradapter { + export namespace widget { export class CursorFilter { public static class: java.lang.Class; public convertResultToString(resultValue: any): string; public performFiltering(constraint: string): globalAndroid.widget.Filter.FilterResults; public publishResults(constraint: string, results: globalAndroid.widget.Filter.FilterResults): void; } - export module CursorFilter { + export namespace CursorFilter { export class CursorFilterClient { public static class: java.lang.Class; /** @@ -17251,9 +17252,9 @@ declare module androidx { } } -declare module androidx { - export module cursoradapter { - export module widget { +declare namespace androidx { + export namespace cursoradapter { + export namespace widget { export abstract class ResourceCursorAdapter extends androidx.cursoradapter.widget.CursorAdapter { public static class: java.lang.Class; /** @deprecated */ @@ -17278,9 +17279,9 @@ declare module androidx { } } -declare module androidx { - export module cursoradapter { - export module widget { +declare namespace androidx { + export namespace cursoradapter { + export namespace widget { export class SimpleCursorAdapter extends androidx.cursoradapter.widget.ResourceCursorAdapter { public static class: java.lang.Class; public mFrom: androidNative.Array; @@ -17297,10 +17298,10 @@ declare module androidx { /** @deprecated */ public constructor(context: globalAndroid.content.Context, layout: number, c: globalAndroid.database.Cursor, from: androidNative.Array, to: androidNative.Array); public constructor(context: globalAndroid.content.Context, layout: number, c: globalAndroid.database.Cursor, from: androidNative.Array, to: androidNative.Array, flags: number); - public bindView(bound: globalAndroid.view.View, v: globalAndroid.content.Context, i: globalAndroid.database.Cursor): void; + public bindView(view: globalAndroid.view.View, context: globalAndroid.content.Context, cursor: globalAndroid.database.Cursor): void; public getViewBinder(): androidx.cursoradapter.widget.SimpleCursorAdapter.ViewBinder; public setViewBinder(viewBinder: androidx.cursoradapter.widget.SimpleCursorAdapter.ViewBinder): void; - public setViewImage(this_: globalAndroid.widget.ImageView, v: string): void; + public setViewImage(v: globalAndroid.widget.ImageView, value: string): void; public setViewText(v: globalAndroid.widget.TextView, text: string): void; public getStringConversionColumn(): number; public setStringConversionColumn(stringConversionColumn: number): void; @@ -17314,7 +17315,7 @@ declare module androidx { public getCursor(): globalAndroid.database.Cursor; public changeCursor(param0: globalAndroid.database.Cursor): void; } - export module SimpleCursorAdapter { + export namespace SimpleCursorAdapter { export class CursorToStringConverter { public static class: java.lang.Class; /** @@ -17342,9 +17343,9 @@ declare module androidx { } } -declare module androidx { - export module customview { - export module view { +declare namespace androidx { + export namespace customview { + export namespace view { export abstract class AbsSavedState { public static class: java.lang.Class; public static EMPTY_STATE: androidx.customview.view.AbsSavedState; @@ -17360,26 +17361,26 @@ declare module androidx { } } -declare module androidx { - export module customview { - export module widget { +declare namespace androidx { + export namespace customview { + export namespace widget { export abstract class ExploreByTouchHelper extends androidx.core.view.AccessibilityDelegateCompat { public static class: java.lang.Class; - public static INVALID_ID: number = -2147483648; - public static HOST_ID: number = -1; + public static readonly INVALID_ID = -2147483648; + public static readonly HOST_ID = -1; public constructor(); public constructor(originalDelegate: any); public constructor(host: globalAndroid.view.View); public getAccessibilityNodeProvider(host: globalAndroid.view.View): androidx.core.view.accessibility.AccessibilityNodeProviderCompat; - public dispatchHoverEvent(this_: globalAndroid.view.MotionEvent): boolean; - public dispatchKeyEvent(direction: globalAndroid.view.KeyEvent): boolean; + public dispatchHoverEvent(event: globalAndroid.view.MotionEvent): boolean; + public dispatchKeyEvent(event: globalAndroid.view.KeyEvent): boolean; public onFocusChanged(gainFocus: boolean, direction: number, previouslyFocusedRect: globalAndroid.graphics.Rect | null): void; public getAccessibilityFocusedVirtualViewId(): number; public getKeyboardFocusedVirtualViewId(): number; public sendEventForVirtualView(virtualViewId: number, eventType: number): boolean; public invalidateRoot(): void; public invalidateVirtualView(virtualViewId: number): void; - public invalidateVirtualView(parent: number, this_: number): void; + public invalidateVirtualView(virtualViewId: number, changeTypes: number): void; /** @deprecated */ public getFocusedVirtualView(): number; public onVirtualViewKeyboardFocusChanged(virtualViewId: number, hasFocus: boolean): void; @@ -17395,7 +17396,7 @@ declare module androidx { public onPopulateNodeForHost(node: androidx.core.view.accessibility.AccessibilityNodeInfoCompat): void; public onPerformActionForVirtualView(param0: number, param1: number, param2: globalAndroid.os.Bundle | null): boolean; } - export module ExploreByTouchHelper { + export namespace ExploreByTouchHelper { export class MyNodeProvider extends androidx.core.view.accessibility.AccessibilityNodeProviderCompat { public static class: java.lang.Class; public createAccessibilityNodeInfo(virtualViewId: number): androidx.core.view.accessibility.AccessibilityNodeInfoCompat; @@ -17407,15 +17408,15 @@ declare module androidx { } } -declare module androidx { - export module customview { - export module widget { +declare namespace androidx { + export namespace customview { + export namespace widget { export class FocusStrategy { public static class: java.lang.Class; - public static findNextFocusInRelativeDirection(i: any, focusables: androidx.customview.widget.FocusStrategy.CollectionAdapter, collectionAdapter: androidx.customview.widget.FocusStrategy.BoundsAdapter, adapter: any, focused: number, direction: boolean, isLayoutRtl: boolean): any; - public static findNextFocusInAbsoluteDirection(focusable: any, i: androidx.customview.widget.FocusStrategy.CollectionAdapter, focusables: androidx.customview.widget.FocusStrategy.BoundsAdapter, collectionAdapter: any, adapter: globalAndroid.graphics.Rect, focused: number): any; + public static findNextFocusInRelativeDirection(focusables: any, collectionAdapter: androidx.customview.widget.FocusStrategy.CollectionAdapter, adapter: androidx.customview.widget.FocusStrategy.BoundsAdapter, focused: any, direction: number, isLayoutRtl: boolean, wrap: boolean): any; + public static findNextFocusInAbsoluteDirection(focusables: any, collectionAdapter: androidx.customview.widget.FocusStrategy.CollectionAdapter, adapter: androidx.customview.widget.FocusStrategy.BoundsAdapter, focused: any, focusedRect: globalAndroid.graphics.Rect, direction: number): any; } - export module FocusStrategy { + export namespace FocusStrategy { export class BoundsAdapter extends java.lang.Object { public static class: java.lang.Class>; /** @@ -17449,23 +17450,23 @@ declare module androidx { } } -declare module androidx { - export module customview { - export module widget { +declare namespace androidx { + export namespace customview { + export namespace widget { export class ViewDragHelper { public static class: java.lang.Class; - public static INVALID_POINTER: number = -1; - public static STATE_IDLE: number = 0; - public static STATE_DRAGGING: number = 1; - public static STATE_SETTLING: number = 2; - public static EDGE_LEFT: number = 1; - public static EDGE_RIGHT: number = 2; - public static EDGE_TOP: number = 4; - public static EDGE_BOTTOM: number = 8; - public static EDGE_ALL: number = 15; - public static DIRECTION_HORIZONTAL: number = 1; - public static DIRECTION_VERTICAL: number = 2; - public static DIRECTION_ALL: number = 3; + public static readonly INVALID_POINTER = -1; + public static readonly STATE_IDLE = 0; + public static readonly STATE_DRAGGING = 1; + public static readonly STATE_SETTLING = 2; + public static readonly EDGE_LEFT = 1; + public static readonly EDGE_RIGHT = 2; + public static readonly EDGE_TOP = 4; + public static readonly EDGE_BOTTOM = 8; + public static readonly EDGE_ALL = 15; + public static readonly DIRECTION_HORIZONTAL = 1; + public static readonly DIRECTION_VERTICAL = 2; + public static readonly DIRECTION_ALL = 3; public static create(forParent: globalAndroid.view.ViewGroup, cb: androidx.customview.widget.ViewDragHelper.Callback): androidx.customview.widget.ViewDragHelper; public static create(forParent: globalAndroid.view.ViewGroup, sensitivity: number, cb: androidx.customview.widget.ViewDragHelper.Callback): androidx.customview.widget.ViewDragHelper; public setMinVelocity(minVel: number): void; @@ -17482,20 +17483,20 @@ declare module androidx { public smoothSlideViewTo(child: globalAndroid.view.View, finalLeft: number, finalTop: number): boolean; public settleCapturedViewAt(finalLeft: number, finalTop: number): boolean; public flingCapturedView(minLeft: number, minTop: number, maxLeft: number, maxTop: number): void; - public continueSettling(x: boolean): boolean; + public continueSettling(deferCallbacks: boolean): boolean; public isPointerDown(pointerId: number): boolean; - public canScroll(i: globalAndroid.view.View, group: boolean, scrollX: number, scrollY: number, count: number, this_: number): boolean; - public shouldInterceptTouchEvent(y: globalAndroid.view.MotionEvent): boolean; - public processTouchEvent(y: globalAndroid.view.MotionEvent): void; - public checkTouchSlop(this_: number): boolean; + public canScroll(v: globalAndroid.view.View, checkV: boolean, dx: number, dy: number, x: number, y: number): boolean; + public shouldInterceptTouchEvent(ev: globalAndroid.view.MotionEvent): boolean; + public processTouchEvent(ev: globalAndroid.view.MotionEvent): void; + public checkTouchSlop(directions: number): boolean; public checkTouchSlop(directions: number, pointerId: number): boolean; - public isEdgeTouched(this_: number): boolean; + public isEdgeTouched(edges: number): boolean; public isEdgeTouched(edges: number, pointerId: number): boolean; public isCapturedViewUnder(x: number, y: number): boolean; public isViewUnder(view: globalAndroid.view.View | null, x: number, y: number): boolean; - public findTopChildUnder(i: number, this_: number): globalAndroid.view.View | null; + public findTopChildUnder(x: number, y: number): globalAndroid.view.View | null; } - export module ViewDragHelper { + export namespace ViewDragHelper { export abstract class Callback { public static class: java.lang.Class; public constructor(); @@ -17518,9 +17519,9 @@ declare module androidx { } } -declare module androidx { - export module documentfile { - export module provider { +declare namespace androidx { + export namespace documentfile { + export namespace provider { export abstract class DocumentFile { public static class: java.lang.Class; public static fromFile(file: java.io.File): androidx.documentfile.provider.DocumentFile; @@ -17543,16 +17544,16 @@ declare module androidx { public delete(): boolean; public exists(): boolean; public listFiles(): androidNative.Array; - public findFile(this_: string): androidx.documentfile.provider.DocumentFile | null; + public findFile(displayName: string): androidx.documentfile.provider.DocumentFile | null; public renameTo(param0: string): boolean; } } } } -declare module androidx { - export module documentfile { - export module provider { +declare namespace androidx { + export namespace documentfile { + export namespace provider { export class DocumentsContractApi19 { public static class: java.lang.Class; public static isVirtual(context: globalAndroid.content.Context, self: globalAndroid.net.Uri): boolean; @@ -17565,18 +17566,18 @@ declare module androidx { public static length(context: globalAndroid.content.Context, self: globalAndroid.net.Uri): number; public static canRead(context: globalAndroid.content.Context, self: globalAndroid.net.Uri): boolean; public static canWrite(context: globalAndroid.content.Context, self: globalAndroid.net.Uri): boolean; - public static exists(e: globalAndroid.content.Context, context: globalAndroid.net.Uri): boolean; + public static exists(context: globalAndroid.content.Context, self: globalAndroid.net.Uri): boolean; } } } } -declare module androidx { - export module documentfile { - export module provider { +declare namespace androidx { + export namespace documentfile { + export namespace provider { export class RawDocumentFile extends androidx.documentfile.provider.DocumentFile { public static class: java.lang.Class; - public createFile(this_: string, mimeType: string): androidx.documentfile.provider.DocumentFile | null; + public createFile(mimeType: string, displayName: string): androidx.documentfile.provider.DocumentFile | null; public createDirectory(displayName: string): androidx.documentfile.provider.DocumentFile | null; public getUri(): globalAndroid.net.Uri; public getName(): string; @@ -17597,9 +17598,9 @@ declare module androidx { } } -declare module androidx { - export module documentfile { - export module provider { +declare namespace androidx { + export namespace documentfile { + export namespace provider { export class SingleDocumentFile extends androidx.documentfile.provider.DocumentFile { public static class: java.lang.Class; public createFile(mimeType: string, displayName: string): androidx.documentfile.provider.DocumentFile; @@ -17623,9 +17624,9 @@ declare module androidx { } } -declare module androidx { - export module documentfile { - export module provider { +declare namespace androidx { + export namespace documentfile { + export namespace provider { export class TreeDocumentFile extends androidx.documentfile.provider.DocumentFile { public static class: java.lang.Class; public createFile(mimeType: string, displayName: string): androidx.documentfile.provider.DocumentFile | null; @@ -17643,28 +17644,28 @@ declare module androidx { public delete(): boolean; public exists(): boolean; public listFiles(): androidNative.Array; - public renameTo(e: string): boolean; + public renameTo(displayName: string): boolean; } } } } -declare module androidx { - export module drawerlayout { - export module widget { +declare namespace androidx { + export namespace drawerlayout { + export namespace widget { export class DrawerLayout { public static class: java.lang.Class; - public static STATE_IDLE: number = 0; - public static STATE_DRAGGING: number = 1; - public static STATE_SETTLING: number = 2; - public static LOCK_MODE_UNLOCKED: number = 0; - public static LOCK_MODE_LOCKED_CLOSED: number = 1; - public static LOCK_MODE_LOCKED_OPEN: number = 2; - public static LOCK_MODE_UNDEFINED: number = 3; + public static readonly STATE_IDLE = 0; + public static readonly STATE_DRAGGING = 1; + public static readonly STATE_SETTLING = 2; + public static readonly LOCK_MODE_UNLOCKED = 0; + public static readonly LOCK_MODE_LOCKED_CLOSED = 1; + public static readonly LOCK_MODE_LOCKED_OPEN = 2; + public static readonly LOCK_MODE_UNDEFINED = 3; public constructor(context: globalAndroid.content.Context); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet | null); - public constructor(this_: globalAndroid.content.Context, context: globalAndroid.util.AttributeSet | null, attrs: number); - public setDrawerElevation(i: number): void; + public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet | null, defStyle: number); + public setDrawerElevation(elevation: number): void; public getDrawerElevation(): number; public setChildInsets(insets: any, draw: boolean): void; public setDrawerShadow(shadowDrawable: globalAndroid.graphics.drawable.Drawable, gravity: number): void; @@ -17675,16 +17676,16 @@ declare module androidx { public addDrawerListener(listener: androidx.drawerlayout.widget.DrawerLayout.DrawerListener): void; public removeDrawerListener(listener: androidx.drawerlayout.widget.DrawerLayout.DrawerListener): void; public setDrawerLockMode(lockMode: number): void; - public setDrawerLockMode(toClose: number, toOpen: number): void; + public setDrawerLockMode(lockMode: number, edgeGravity: number): void; public setDrawerLockMode(lockMode: number, drawerView: globalAndroid.view.View): void; - public getDrawerLockMode(leftLockMode: number): number; + public getDrawerLockMode(edgeGravity: number): number; public getDrawerLockMode(drawerView: globalAndroid.view.View): number; public setDrawerTitle(edgeGravity: number, title: string | null): void; public getDrawerTitle(edgeGravity: number): string | null; public onDetachedFromWindow(): void; public onAttachedToWindow(): void; - public onMeasure(wi: number, cgrav: number): void; - public onLayout(newOffset: boolean, height: number, height: number, childTop: number, childWidth: number): void; + public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; + public onLayout(changed: boolean, l: number, t: number, r: number, b: number): void; public requestLayout(): void; public computeScroll(): void; public setStatusBarBackground(bg: globalAndroid.graphics.drawable.Drawable | null): void; @@ -17692,11 +17693,11 @@ declare module androidx { public setStatusBarBackground(resId: number): void; public setStatusBarBackgroundColor(color: number): void; public onRtlPropertiesChanged(layoutDirection: number): void; - public onDraw(inset: globalAndroid.graphics.Canvas): void; - public drawChild(vleft: globalAndroid.graphics.Canvas, v: globalAndroid.view.View, i: number): boolean; - public onInterceptTouchEvent(x: globalAndroid.view.MotionEvent): boolean; - public dispatchGenericMotionEvent(i: globalAndroid.view.MotionEvent): boolean; - public onTouchEvent(y: globalAndroid.view.MotionEvent): boolean; + public onDraw(c: globalAndroid.graphics.Canvas): void; + public drawChild(canvas: globalAndroid.graphics.Canvas, child: globalAndroid.view.View, drawingTime: number): boolean; + public onInterceptTouchEvent(ev: globalAndroid.view.MotionEvent): boolean; + public dispatchGenericMotionEvent(event: globalAndroid.view.MotionEvent): boolean; + public onTouchEvent(ev: globalAndroid.view.MotionEvent): boolean; public requestDisallowInterceptTouchEvent(disallowIntercept: boolean): void; public closeDrawers(): void; public openDrawer(drawerView: globalAndroid.view.View): void; @@ -17715,19 +17716,19 @@ declare module androidx { public generateLayoutParams(p: globalAndroid.view.ViewGroup.LayoutParams): globalAndroid.view.ViewGroup.LayoutParams; public checkLayoutParams(p: globalAndroid.view.ViewGroup.LayoutParams): boolean; public generateLayoutParams(attrs: globalAndroid.util.AttributeSet): globalAndroid.view.ViewGroup.LayoutParams; - public addFocusables(i: java.util.ArrayList, child: number, i: number): void; + public addFocusables(views: java.util.ArrayList, direction: number, focusableMode: number): void; public onKeyDown(keyCode: number, event: globalAndroid.view.KeyEvent): boolean; - public onKeyUp(this_: number, keyCode: globalAndroid.view.KeyEvent): boolean; - public onRestoreInstanceState(this_: globalAndroid.os.Parcelable): void; + public onKeyUp(keyCode: number, event: globalAndroid.view.KeyEvent): boolean; + public onRestoreInstanceState(state: globalAndroid.os.Parcelable): void; public onSaveInstanceState(): globalAndroid.os.Parcelable; public addView(child: globalAndroid.view.View, index: number, params: globalAndroid.view.ViewGroup.LayoutParams): void; } - export module DrawerLayout { + export namespace DrawerLayout { export class androidxdrawerlayoutwidgetDrawerLayoutAccessibilityDelegate extends androidx.core.view.AccessibilityDelegateCompat { public static class: java.lang.Class; - public onInitializeAccessibilityNodeInfo(parent: globalAndroid.view.View, this_: androidx.core.view.accessibility.AccessibilityNodeInfoCompat): void; + public onInitializeAccessibilityNodeInfo(host: globalAndroid.view.View, info: androidx.core.view.accessibility.AccessibilityNodeInfoCompat): void; public onInitializeAccessibilityEvent(host: globalAndroid.view.View, event: globalAndroid.view.accessibility.AccessibilityEvent): void; - public dispatchPopulateAccessibilityEvent(title: globalAndroid.view.View, eventText: globalAndroid.view.accessibility.AccessibilityEvent): boolean; + public dispatchPopulateAccessibilityEvent(host: globalAndroid.view.View, event: globalAndroid.view.accessibility.AccessibilityEvent): boolean; public onRequestSendAccessibilityEvent(host: globalAndroid.view.ViewGroup, child: globalAndroid.view.View, event: globalAndroid.view.accessibility.AccessibilityEvent): boolean; } export type AccessibilityDelegate = androidxdrawerlayoutwidgetDrawerLayoutAccessibilityDelegate @@ -17788,14 +17789,14 @@ declare module androidx { public removeCallbacks(): void; public tryCaptureView(child: globalAndroid.view.View, pointerId: number): boolean; public onViewDragStateChanged(state: number): void; - public onViewPositionChanged(width: globalAndroid.view.View, this_: number, changedView: number, left: number, top: number): void; + public onViewPositionChanged(changedView: globalAndroid.view.View, left: number, top: number, dx: number, dy: number): void; public onViewCaptured(capturedChild: globalAndroid.view.View, activePointerId: number): void; - public onViewReleased(width: globalAndroid.view.View, this_: number, releasedChild: number): void; + public onViewReleased(releasedChild: globalAndroid.view.View, xvel: number, yvel: number): void; public onEdgeTouched(edgeFlags: number, pointerId: number): void; public onEdgeLock(edgeFlags: number): boolean; - public onEdgeDragStarted(this_: number, edgeFlags: number): void; + public onEdgeDragStarted(edgeFlags: number, pointerId: number): void; public getViewHorizontalDragRange(child: globalAndroid.view.View): number; - public clampViewPositionHorizontal(this_: globalAndroid.view.View, child: number, left: number): number; + public clampViewPositionHorizontal(child: globalAndroid.view.View, left: number, dx: number): number; public clampViewPositionVertical(child: globalAndroid.view.View, top: number, dy: number): number; } } @@ -17803,14 +17804,14 @@ declare module androidx { } } -declare module androidx { - export module fragment { - export module app { +declare namespace androidx { + export namespace fragment { + export namespace app { export class BackStackRecord extends androidx.fragment.app.FragmentTransaction implements androidx.fragment.app.FragmentManager.BackStackEntry, androidx.fragment.app.FragmentManagerImpl.OpGenerator { public static class: java.lang.Class; public toString(): string; public dump(prefix: string, writer: java.io.PrintWriter): void; - public dump(cmdStr: string, cmdStr: java.io.PrintWriter, cmdStr: boolean): void; + public dump(prefix: string, writer: java.io.PrintWriter, full: boolean): void; public constructor(); public constructor(manager: androidx.fragment.app.FragmentManagerImpl); public getId(): number; @@ -17836,7 +17837,7 @@ declare module androidx { public setCustomAnimations(enter: number, exit: number): androidx.fragment.app.FragmentTransaction; public setCustomAnimations(enter: number, exit: number, popEnter: number, popExit: number): androidx.fragment.app.FragmentTransaction; public setTransition(transition: number): androidx.fragment.app.FragmentTransaction; - public addSharedElement(this_: globalAndroid.view.View, sharedElement: string): androidx.fragment.app.FragmentTransaction; + public addSharedElement(sharedElement: globalAndroid.view.View, name: string): androidx.fragment.app.FragmentTransaction; public setTransitionStyle(styleRes: number): androidx.fragment.app.FragmentTransaction; public addToBackStack(name: string | null): androidx.fragment.app.FragmentTransaction; public isAddToBackStackAllowed(): boolean; @@ -17860,7 +17861,7 @@ declare module androidx { public isEmpty(): boolean; public generateOps(param0: java.util.ArrayList, param1: java.util.ArrayList): boolean; } - export module BackStackRecord { + export namespace BackStackRecord { export class Op { public static class: java.lang.Class; } @@ -17869,15 +17870,15 @@ declare module androidx { } } -declare module androidx { - export module fragment { - export module app { +declare namespace androidx { + export namespace fragment { + export namespace app { export class BackStackState { public static class: java.lang.Class; public static CREATOR: globalAndroid.os.Parcelable.Creator; - public constructor(opNum: androidx.fragment.app.BackStackRecord); + public constructor(bse: androidx.fragment.app.BackStackRecord); public constructor(in_: globalAndroid.os.Parcel); - public instantiate(op: androidx.fragment.app.FragmentManagerImpl): androidx.fragment.app.BackStackRecord; + public instantiate(fm: androidx.fragment.app.FragmentManagerImpl): androidx.fragment.app.BackStackRecord; public describeContents(): number; public writeToParcel(dest: globalAndroid.os.Parcel, flags: number): void; } @@ -17885,15 +17886,15 @@ declare module androidx { } } -declare module androidx { - export module fragment { - export module app { +declare namespace androidx { + export namespace fragment { + export namespace app { export class DialogFragment extends androidx.fragment.app.Fragment { public static class: java.lang.Class; - public static STYLE_NORMAL: number = 0; - public static STYLE_NO_TITLE: number = 1; - public static STYLE_NO_FRAME: number = 2; - public static STYLE_NO_INPUT: number = 3; + public static readonly STYLE_NORMAL = 0; + public static readonly STYLE_NO_TITLE = 1; + public static readonly STYLE_NO_FRAME = 2; + public static readonly STYLE_NO_INPUT = 3; public constructor(); public setStyle(style: number, theme: number): void; public show(manager: androidx.fragment.app.FragmentManager, tag: string | null): void; @@ -17918,9 +17919,9 @@ declare module androidx { public onCreateDialog(savedInstanceState: globalAndroid.os.Bundle | null): globalAndroid.app.Dialog; public onCancel(dialog: globalAndroid.content.DialogInterface): void; public onDismiss(dialog: globalAndroid.content.DialogInterface): void; - public onActivityCreated(this_: globalAndroid.os.Bundle | null): void; + public onActivityCreated(savedInstanceState: globalAndroid.os.Bundle | null): void; public onStart(): void; - public onSaveInstanceState(this_: globalAndroid.os.Bundle): void; + public onSaveInstanceState(outState: globalAndroid.os.Bundle): void; public onStop(): void; public onDestroyView(): void; public getLifecycle(): androidx.lifecycle.Lifecycle; @@ -17930,9 +17931,9 @@ declare module androidx { } } -declare module androidx { - export module fragment { - export module app { +declare namespace androidx { + export namespace fragment { + export namespace app { export class Fragment implements androidx.lifecycle.LifecycleOwner, androidx.lifecycle.ViewModelStoreOwner { public static class: java.lang.Class; public getLifecycle(): androidx.lifecycle.Lifecycle; @@ -17943,7 +17944,7 @@ declare module androidx { /** @deprecated */ public static instantiate(context: globalAndroid.content.Context, fname: string): androidx.fragment.app.Fragment; /** @deprecated */ - public static instantiate(clazz: globalAndroid.content.Context, f: string, e: globalAndroid.os.Bundle | null): androidx.fragment.app.Fragment; + public static instantiate(context: globalAndroid.content.Context, fname: string, args: globalAndroid.os.Bundle | null): androidx.fragment.app.Fragment; public equals(o: any): boolean; public hashCode(): number; public toString(): string; @@ -17953,7 +17954,7 @@ declare module androidx { public getArguments(): globalAndroid.os.Bundle | null; public isStateSaved(): boolean; public setInitialSavedState(state: androidx.fragment.app.Fragment.SavedState | null): void; - public setTargetFragment(this_: androidx.fragment.app.Fragment | null, fragment: number): void; + public setTargetFragment(fragment: androidx.fragment.app.Fragment | null, requestCode: number): void; public getTargetFragment(): androidx.fragment.app.Fragment | null; public getTargetRequestCode(): number; public getContext(): globalAndroid.content.Context | null; @@ -18059,7 +18060,7 @@ declare module androidx { public startPostponedEnterTransition(): void; public dump(prefix: string, fd: java.io.FileDescriptor | null, writer: java.io.PrintWriter, args: androidNative.Array | null): void; } - export module Fragment { + export namespace Fragment { export class AnimationInfo { public static class: java.lang.Class; } @@ -18091,13 +18092,13 @@ declare module androidx { } } -declare module androidx { - export module fragment { - export module app { +declare namespace androidx { + export namespace fragment { + export namespace app { export class FragmentActivity extends androidx.activity.ComponentActivity implements androidx.core.app.ActivityCompat.OnRequestPermissionsResultCallback, androidx.core.app.ActivityCompat.RequestPermissionsRequestCodeValidator { public static class: java.lang.Class; public constructor(); - public onActivityResult(targetFragment: number, this_: number, requestCode: globalAndroid.content.Intent | null): void; + public onActivityResult(requestCode: number, resultCode: number, data: globalAndroid.content.Intent | null): void; public supportFinishAfterTransition(): void; public setEnterSharedElementCallback(callback: androidx.core.app.SharedElementCallback | null): void; public setExitSharedElementCallback(listener: androidx.core.app.SharedElementCallback | null): void; @@ -18107,8 +18108,8 @@ declare module androidx { public onPictureInPictureModeChanged(isInPictureInPictureMode: boolean): void; public onConfigurationChanged(newConfig: globalAndroid.content.res.Configuration): void; public getThemedContext(): globalAndroid.content.Context; - public onCreate(requestCodes: globalAndroid.os.Bundle | null): void; - public onCreatePanelMenu(this_: number, featureId: globalAndroid.view.Menu): boolean; + public onCreate(savedInstanceState: globalAndroid.os.Bundle | null): void; + public onCreatePanelMenu(featureId: number, menu: globalAndroid.view.Menu): boolean; public onCreateView(parent: globalAndroid.view.View | null, name: string, context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet): globalAndroid.view.View | null; public onCreateView(name: string, context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet): globalAndroid.view.View | null; public onDestroy(): void; @@ -18121,10 +18122,10 @@ declare module androidx { public onResume(): void; public onPostResume(): void; public onResumeFragments(): void; - public onPreparePanel(this_: number, featureId: globalAndroid.view.View | null, view: globalAndroid.view.Menu): boolean; + public onPreparePanel(featureId: number, view: globalAndroid.view.View | null, menu: globalAndroid.view.Menu): boolean; /** @deprecated */ public onPrepareOptionsPanel(view: globalAndroid.view.View | null, menu: globalAndroid.view.Menu): boolean; - public onSaveInstanceState(requestCodes: globalAndroid.os.Bundle): void; + public onSaveInstanceState(outState: globalAndroid.os.Bundle): void; public onStart(): void; public onStop(): void; /** @deprecated */ @@ -18139,22 +18140,22 @@ declare module androidx { public startIntentSenderForResult(intent: globalAndroid.content.IntentSender, requestCode: number, fillInIntent: globalAndroid.content.Intent | null, flagsMask: number, flagsValues: number, extraFlags: number): void; public startIntentSenderForResult(intent: globalAndroid.content.IntentSender, requestCode: number, fillInIntent: globalAndroid.content.Intent | null, flagsMask: number, flagsValues: number, extraFlags: number, options: globalAndroid.os.Bundle | null): void; public validateRequestPermissionsRequestCode(requestCode: number): void; - public onRequestPermissionsResult(frag: number, this_: androidNative.Array, requestCode: androidNative.Array): void; + public onRequestPermissionsResult(requestCode: number, permissions: androidNative.Array, grantResults: androidNative.Array): void; public startActivityFromFragment(fragment: androidx.fragment.app.Fragment, intent: globalAndroid.content.Intent, requestCode: number): void; - public startActivityFromFragment(this_: androidx.fragment.app.Fragment, fragment: globalAndroid.content.Intent, intent: number, requestCode: globalAndroid.os.Bundle | null): void; - public startIntentSenderFromFragment(this_: androidx.fragment.app.Fragment, fragment: globalAndroid.content.IntentSender, intent: number, requestCode: globalAndroid.content.Intent | null, fillInIntent: number, flagsMask: number, flagsValues: number, extraFlags: globalAndroid.os.Bundle | null): void; + public startActivityFromFragment(fragment: androidx.fragment.app.Fragment, intent: globalAndroid.content.Intent, requestCode: number, options: globalAndroid.os.Bundle | null): void; + public startIntentSenderFromFragment(fragment: androidx.fragment.app.Fragment, intent: globalAndroid.content.IntentSender, requestCode: number, fillInIntent: globalAndroid.content.Intent | null, flagsMask: number, flagsValues: number, extraFlags: number, options: globalAndroid.os.Bundle | null): void; public onRequestPermissionsResult(param0: number, param1: androidNative.Array, param2: androidNative.Array): void; public validateRequestPermissionsRequestCode(param0: number): void; public superDispatchKeyEvent(param0: globalAndroid.view.KeyEvent): boolean; public getLifecycle(): androidx.lifecycle.Lifecycle; public getViewModelStore(): androidx.lifecycle.ViewModelStore; } - export module FragmentActivity { - export class HostCallbacks extends androidx.fragment.app.FragmentHostCallback implements androidx.lifecycle.ViewModelStoreOwner { + export namespace FragmentActivity { + export class HostCallbacks extends androidx.fragment.app.FragmentHostCallback implements androidx.lifecycle.ViewModelStoreOwner { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, handler: globalAndroid.os.Handler, windowAnimations: number); public constructor(); - public constructor(this$0: androidx.fragment.app.FragmentActivity); + public constructor(outer: androidx.fragment.app.FragmentActivity); public getViewModelStore(): androidx.lifecycle.ViewModelStore; public onDump(prefix: string, fd: java.io.FileDescriptor | null, writer: java.io.PrintWriter, args: androidNative.Array | null): void; public onShouldSaveFragmentState(fragment: androidx.fragment.app.Fragment): boolean; @@ -18178,9 +18179,9 @@ declare module androidx { } } -declare module androidx { - export module fragment { - export module app { +declare namespace androidx { + export namespace fragment { + export namespace app { export abstract class FragmentContainer { public static class: java.lang.Class; public constructor(); @@ -18193,9 +18194,9 @@ declare module androidx { } } -declare module androidx { - export module fragment { - export module app { +declare namespace androidx { + export namespace fragment { + export namespace app { export class FragmentController { public static class: java.lang.Class; public static createController(callbacks: androidx.fragment.app.FragmentHostCallback): androidx.fragment.app.FragmentController; @@ -18259,22 +18260,22 @@ declare module androidx { } } -declare module androidx { - export module fragment { - export module app { +declare namespace androidx { + export namespace fragment { + export namespace app { export class FragmentFactory { public static class: java.lang.Class; public constructor(); - public static loadFragmentClass(clazz: java.lang.ClassLoader, e: string): java.lang.Class; - public instantiate(e: java.lang.ClassLoader, e: string, e: globalAndroid.os.Bundle | null): androidx.fragment.app.Fragment; + public static loadFragmentClass(classLoader: java.lang.ClassLoader, className: string): java.lang.Class; + public instantiate(classLoader: java.lang.ClassLoader, className: string, args: globalAndroid.os.Bundle | null): androidx.fragment.app.Fragment; } } } } -declare module androidx { - export module fragment { - export module app { +declare namespace androidx { + export namespace fragment { + export namespace app { export abstract class FragmentHostCallback extends androidx.fragment.app.FragmentContainer { public static class: java.lang.Class>; public constructor(); @@ -18298,12 +18299,12 @@ declare module androidx { } } -declare module androidx { - export module fragment { - export module app { +declare namespace androidx { + export namespace fragment { + export namespace app { export abstract class FragmentManager { public static class: java.lang.Class; - public static POP_BACK_STACK_INCLUSIVE: number = 1; + public static readonly POP_BACK_STACK_INCLUSIVE = 1; public constructor(); public beginTransaction(): androidx.fragment.app.FragmentTransaction; /** @deprecated */ @@ -18335,7 +18336,7 @@ declare module androidx { public static enableDebugLogging(enabled: boolean): void; public isStateSaved(): boolean; } - export module FragmentManager { + export namespace FragmentManager { export class BackStackEntry { public static class: java.lang.Class; /** @@ -18391,17 +18392,17 @@ declare module androidx { } } -declare module androidx { - export module fragment { - export module app { +declare namespace androidx { + export namespace fragment { + export namespace app { export class FragmentManagerImpl extends androidx.fragment.app.FragmentManager { public static class: java.lang.Class; - public static ANIM_STYLE_OPEN_ENTER: number = 1; - public static ANIM_STYLE_OPEN_EXIT: number = 2; - public static ANIM_STYLE_CLOSE_ENTER: number = 3; - public static ANIM_STYLE_CLOSE_EXIT: number = 4; - public static ANIM_STYLE_FADE_ENTER: number = 5; - public static ANIM_STYLE_FADE_EXIT: number = 6; + public static readonly ANIM_STYLE_OPEN_ENTER = 1; + public static readonly ANIM_STYLE_OPEN_EXIT = 2; + public static readonly ANIM_STYLE_CLOSE_ENTER = 3; + public static readonly ANIM_STYLE_CLOSE_EXIT = 4; + public static readonly ANIM_STYLE_FADE_ENTER = 5; + public static readonly ANIM_STYLE_FADE_EXIT = 6; public beginTransaction(): androidx.fragment.app.FragmentTransaction; public executePendingTransactions(): boolean; public popBackStack(param0: string | null, param1: number): void; @@ -18421,10 +18422,10 @@ declare module androidx { public putFragment(bundle: globalAndroid.os.Bundle, key: string, fragment: androidx.fragment.app.Fragment): void; public getFragment(bundle: globalAndroid.os.Bundle, key: string): androidx.fragment.app.Fragment | null; public getFragments(): java.util.List; - public saveFragmentInstanceState(this_: androidx.fragment.app.Fragment): androidx.fragment.app.Fragment.SavedState | null; + public saveFragmentInstanceState(fragment: androidx.fragment.app.Fragment): androidx.fragment.app.Fragment.SavedState | null; public isDestroyed(): boolean; public toString(): string; - public dump(f: string, i: java.io.FileDescriptor | null, f: java.io.PrintWriter, i: androidNative.Array | null): void; + public dump(prefix: string, fd: java.io.FileDescriptor | null, writer: java.io.PrintWriter, args: androidNative.Array | null): void; public performPendingDeferredStart(f: androidx.fragment.app.Fragment): void; public addFragment(fragment: androidx.fragment.app.Fragment, moveToStateNow: boolean): void; public removeFragment(fragment: androidx.fragment.app.Fragment): void; @@ -18432,17 +18433,17 @@ declare module androidx { public showFragment(fragment: androidx.fragment.app.Fragment): void; public detachFragment(fragment: androidx.fragment.app.Fragment): void; public attachFragment(fragment: androidx.fragment.app.Fragment): void; - public findFragmentById(i: number): androidx.fragment.app.Fragment | null; - public findFragmentByTag(i: string | null): androidx.fragment.app.Fragment | null; - public findFragmentByWho(this_: string): androidx.fragment.app.Fragment; + public findFragmentById(id: number): androidx.fragment.app.Fragment | null; + public findFragmentByTag(tag: string | null): androidx.fragment.app.Fragment | null; + public findFragmentByWho(who: string): androidx.fragment.app.Fragment; public isStateSaved(): boolean; public enqueueAction(action: androidx.fragment.app.FragmentManagerImpl.OpGenerator, allowStateLoss: boolean): void; - public allocBackStackIndex(index: androidx.fragment.app.BackStackRecord): number; - public setBackStackIndex(this_: number, index: androidx.fragment.app.BackStackRecord): void; + public allocBackStackIndex(bse: androidx.fragment.app.BackStackRecord): number; + public setBackStackIndex(index: number, bse: androidx.fragment.app.BackStackRecord): void; public freeBackStackIndex(index: number): void; public execSingleAction(action: androidx.fragment.app.FragmentManagerImpl.OpGenerator, allowStateLoss: boolean): void; public execPendingActions(): boolean; - public attachController(this_: androidx.fragment.app.FragmentHostCallback, host: androidx.fragment.app.FragmentContainer, container: androidx.fragment.app.Fragment | null): void; + public attachController(host: androidx.fragment.app.FragmentHostCallback, container: androidx.fragment.app.FragmentContainer, parent: androidx.fragment.app.Fragment | null): void; public noteStateNotSaved(): void; public dispatchCreate(): void; public dispatchActivityCreated(): void; @@ -18452,27 +18453,27 @@ declare module androidx { public dispatchStop(): void; public dispatchDestroyView(): void; public dispatchDestroy(): void; - public dispatchMultiWindowModeChanged(i: boolean): void; - public dispatchPictureInPictureModeChanged(i: boolean): void; - public dispatchConfigurationChanged(i: globalAndroid.content.res.Configuration): void; + public dispatchMultiWindowModeChanged(isInMultiWindowMode: boolean): void; + public dispatchPictureInPictureModeChanged(isInPictureInPictureMode: boolean): void; + public dispatchConfigurationChanged(newConfig: globalAndroid.content.res.Configuration): void; public dispatchLowMemory(): void; - public dispatchCreateOptionsMenu(i: globalAndroid.view.Menu, f: globalAndroid.view.MenuInflater): boolean; - public dispatchPrepareOptionsMenu(i: globalAndroid.view.Menu): boolean; - public dispatchOptionsItemSelected(i: globalAndroid.view.MenuItem): boolean; - public dispatchContextItemSelected(i: globalAndroid.view.MenuItem): boolean; - public dispatchOptionsMenuClosed(i: globalAndroid.view.Menu): void; + public dispatchCreateOptionsMenu(menu: globalAndroid.view.Menu, inflater: globalAndroid.view.MenuInflater): boolean; + public dispatchPrepareOptionsMenu(menu: globalAndroid.view.Menu): boolean; + public dispatchOptionsItemSelected(item: globalAndroid.view.MenuItem): boolean; + public dispatchContextItemSelected(item: globalAndroid.view.MenuItem): boolean; + public dispatchOptionsMenuClosed(menu: globalAndroid.view.Menu): void; public setPrimaryNavigationFragment(f: androidx.fragment.app.Fragment): void; public getPrimaryNavigationFragment(): androidx.fragment.app.Fragment | null; public setFragmentFactory(fragmentFactory: androidx.fragment.app.FragmentFactory): void; public getFragmentFactory(): androidx.fragment.app.FragmentFactory; public registerFragmentLifecycleCallbacks(cb: androidx.fragment.app.FragmentManager.FragmentLifecycleCallbacks, recursive: boolean): void; - public unregisterFragmentLifecycleCallbacks(N: androidx.fragment.app.FragmentManager.FragmentLifecycleCallbacks): void; + public unregisterFragmentLifecycleCallbacks(cb: androidx.fragment.app.FragmentManager.FragmentLifecycleCallbacks): void; public static reverseTransit(transit: number): number; public static transitToStyleIndex(transit: number, enter: boolean): number; public onCreateView(parent: globalAndroid.view.View | null, name: string, context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet): globalAndroid.view.View | null; public onCreateView(name: string, context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet): globalAndroid.view.View; } - export module FragmentManagerImpl { + export namespace FragmentManagerImpl { export class AnimateOnHWLayerIfNeededListener extends androidx.fragment.app.FragmentManagerImpl.AnimationListenerWrapper { public static class: java.lang.Class; public onAnimationEnd(animation: globalAndroid.view.animation.Animation): void; @@ -18505,9 +18506,9 @@ declare module androidx { export class FragmentTag { public static class: java.lang.Class; public static Fragment: androidNative.Array; - public static Fragment_id: number = 1; - public static Fragment_name: number = 0; - public static Fragment_tag: number = 2; + public static readonly Fragment_id = 1; + public static readonly Fragment_name = 0; + public static readonly Fragment_tag = 2; } export class OpGenerator { public static class: java.lang.Class; @@ -18522,7 +18523,7 @@ declare module androidx { } export class PopBackStackState extends androidx.fragment.app.FragmentManagerImpl.OpGenerator { public static class: java.lang.Class; - public generateOps(this_: java.util.ArrayList, records: java.util.ArrayList): boolean; + public generateOps(records: java.util.ArrayList, isRecordPop: java.util.ArrayList): boolean; public generateOps(param0: java.util.ArrayList, param1: java.util.ArrayList): boolean; } export class StartEnterTransitionListener extends androidx.fragment.app.Fragment.OnStartEnterTransitionListener { @@ -18538,9 +18539,9 @@ declare module androidx { } } -declare module androidx { - export module fragment { - export module app { +declare namespace androidx { + export namespace fragment { + export namespace app { export class FragmentManagerNonConfig { public static class: java.lang.Class; } @@ -18548,9 +18549,9 @@ declare module androidx { } } -declare module androidx { - export module fragment { - export module app { +declare namespace androidx { + export namespace fragment { + export namespace app { export class FragmentManagerState { public static class: java.lang.Class; public static CREATOR: globalAndroid.os.Parcelable.Creator; @@ -18563,9 +18564,9 @@ declare module androidx { } } -declare module androidx { - export module fragment { - export module app { +declare namespace androidx { + export namespace fragment { + export namespace app { export class FragmentManagerViewModel extends androidx.lifecycle.ViewModel { public static class: java.lang.Class; public onCleared(): void; @@ -18577,9 +18578,9 @@ declare module androidx { } } -declare module androidx { - export module fragment { - export module app { +declare namespace androidx { + export namespace fragment { + export namespace app { export abstract class FragmentPagerAdapter extends androidx.viewpager.widget.PagerAdapter { public static class: java.lang.Class; public constructor(); @@ -18609,9 +18610,9 @@ declare module androidx { } } -declare module androidx { - export module fragment { - export module app { +declare namespace androidx { + export namespace fragment { + export namespace app { export class FragmentState { public static class: java.lang.Class; public static CREATOR: globalAndroid.os.Parcelable.Creator; @@ -18623,9 +18624,9 @@ declare module androidx { } } -declare module androidx { - export module fragment { - export module app { +declare namespace androidx { + export namespace fragment { + export namespace app { export abstract class FragmentStatePagerAdapter extends androidx.viewpager.widget.PagerAdapter { public static class: java.lang.Class; public constructor(); @@ -18636,7 +18637,7 @@ declare module androidx { public startUpdate(container: globalAndroid.view.ViewGroup): void; /** @deprecated */ public instantiateItem(container: globalAndroid.view.View, position: number): any; - public instantiateItem(fss: globalAndroid.view.ViewGroup, this_: number): any; + public instantiateItem(container: globalAndroid.view.ViewGroup, position: number): any; /** @deprecated */ public destroyItem(container: globalAndroid.view.View, position: number, object: any): void; public destroyItem(container: globalAndroid.view.ViewGroup, position: number, object: any): void; @@ -18648,15 +18649,15 @@ declare module androidx { public finishUpdate(container: globalAndroid.view.ViewGroup): void; public isViewFromObject(view: globalAndroid.view.View, object: any): boolean; public saveState(): globalAndroid.os.Parcelable | null; - public restoreState(index: globalAndroid.os.Parcelable | null, f: java.lang.ClassLoader | null): void; + public restoreState(state: globalAndroid.os.Parcelable | null, loader: java.lang.ClassLoader | null): void; } } } } -declare module androidx { - export module fragment { - export module app { +declare namespace androidx { + export namespace fragment { + export namespace app { export class FragmentTabHost { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); @@ -18666,14 +18667,14 @@ declare module androidx { public setup(context: globalAndroid.content.Context, manager: androidx.fragment.app.FragmentManager): void; public setup(context: globalAndroid.content.Context, manager: androidx.fragment.app.FragmentManager, containerId: number): void; public setOnTabChangedListener(l: globalAndroid.widget.TabHost.OnTabChangeListener | null): void; - public addTab(this_: globalAndroid.widget.TabHost.TabSpec, tabSpec: java.lang.Class, clss: globalAndroid.os.Bundle | null): void; + public addTab(tabSpec: globalAndroid.widget.TabHost.TabSpec, clss: java.lang.Class, args: globalAndroid.os.Bundle | null): void; public onAttachedToWindow(): void; public onDetachedFromWindow(): void; public onSaveInstanceState(): globalAndroid.os.Parcelable; public onRestoreInstanceState(state: globalAndroid.os.Parcelable): void; - public onTabChanged(this_: string | null): void; + public onTabChanged(tabId: string | null): void; } - export module FragmentTabHost { + export namespace FragmentTabHost { export class DummyTabFactory { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); @@ -18693,18 +18694,18 @@ declare module androidx { } } -declare module androidx { - export module fragment { - export module app { +declare namespace androidx { + export namespace fragment { + export namespace app { export abstract class FragmentTransaction { public static class: java.lang.Class; - public static TRANSIT_ENTER_MASK: number = 4096; - public static TRANSIT_EXIT_MASK: number = 8192; - public static TRANSIT_UNSET: number = -1; - public static TRANSIT_NONE: number = 0; - public static TRANSIT_FRAGMENT_OPEN: number = 4097; - public static TRANSIT_FRAGMENT_CLOSE: number = 8194; - public static TRANSIT_FRAGMENT_FADE: number = 4099; + public static readonly TRANSIT_ENTER_MASK = 4096; + public static readonly TRANSIT_EXIT_MASK = 8192; + public static readonly TRANSIT_UNSET = -1; + public static readonly TRANSIT_NONE = 0; + public static readonly TRANSIT_FRAGMENT_OPEN = 4097; + public static readonly TRANSIT_FRAGMENT_CLOSE = 8194; + public static readonly TRANSIT_FRAGMENT_FADE = 4099; public constructor(); public add(param0: androidx.fragment.app.Fragment, param1: string | null): androidx.fragment.app.FragmentTransaction; public add(param0: number, param1: androidx.fragment.app.Fragment): androidx.fragment.app.FragmentTransaction; @@ -18743,15 +18744,15 @@ declare module androidx { } } -declare module androidx { - export module fragment { - export module app { +declare namespace androidx { + export namespace fragment { + export namespace app { export class FragmentTransition { public static class: java.lang.Class; - public static calculateFragments(op: androidx.fragment.app.BackStackRecord, opNum: globalAndroid.util.SparseArray, transaction: boolean): void; - public static calculatePopFragments(op: androidx.fragment.app.BackStackRecord, opNum: globalAndroid.util.SparseArray, transaction: boolean): void; + public static calculateFragments(transaction: androidx.fragment.app.BackStackRecord, transitioningFragments: globalAndroid.util.SparseArray, isReordered: boolean): void; + public static calculatePopFragments(transaction: androidx.fragment.app.BackStackRecord, transitioningFragments: globalAndroid.util.SparseArray, isReordered: boolean): void; } - export module FragmentTransition { + export namespace FragmentTransition { export class FragmentContainerTransition { public static class: java.lang.Class; public lastIn: androidx.fragment.app.Fragment; @@ -18766,36 +18767,36 @@ declare module androidx { } } -declare module androidx { - export module fragment { - export module app { +declare namespace androidx { + export namespace fragment { + export namespace app { export class FragmentTransitionCompat21 extends androidx.fragment.app.FragmentTransitionImpl { public static class: java.lang.Class; public canHandle(transition: any): boolean; public cloneTransition(transition: any): any; public wrapTransitionInSet(transition: any): any; - public setSharedElementTargets(i: any, this_: globalAndroid.view.View, transitionObj: java.util.ArrayList): void; + public setSharedElementTargets(transitionObj: any, nonExistentView: globalAndroid.view.View, sharedViews: java.util.ArrayList): void; public setEpicenter(param0: any, param1: globalAndroid.graphics.Rect): void; - public setEpicenter(epicenter: any, this_: globalAndroid.view.View): void; - public addTargets(i: any, set: java.util.ArrayList): void; + public setEpicenter(transitionObj: any, view: globalAndroid.view.View): void; + public addTargets(transitionObj: any, views: java.util.ArrayList): void; public mergeTransitionsTogether(transition1: any, transition2: any, transition3: any): any; public scheduleHideFragmentView(exitTransitionObj: any, fragmentView: globalAndroid.view.View, exitingViews: java.util.ArrayList): void; - public mergeTransitionsInSequence(this_: any, exitTransitionObj: any, enterTransitionObj: any): any; + public mergeTransitionsInSequence(exitTransitionObj: any, enterTransitionObj: any, sharedElementTransitionObj: any): any; public beginDelayedTransition(sceneRoot: globalAndroid.view.ViewGroup, transition: any): void; public scheduleRemoveTargets(overallTransitionObj: any, enterTransition: any, enteringViews: java.util.ArrayList, exitTransition: any, exitingViews: java.util.ArrayList, sharedElementTransition: any, sharedElementsIn: java.util.ArrayList): void; public swapSharedElementTargets(sharedElementTransitionObj: any, sharedElementsOut: java.util.ArrayList, sharedElementsIn: java.util.ArrayList): void; - public replaceTargets(i: any, set: java.util.ArrayList, numTransitions: java.util.ArrayList): void; - public addTarget(this_: any, transitionObj: globalAndroid.view.View): void; - public removeTarget(this_: any, transitionObj: globalAndroid.view.View): void; - public setEpicenter(this_: any, transitionObj: globalAndroid.graphics.Rect): void; + public replaceTargets(transitionObj: any, oldTargets: java.util.ArrayList, newTargets: java.util.ArrayList): void; + public addTarget(transitionObj: any, view: globalAndroid.view.View): void; + public removeTarget(transitionObj: any, view: globalAndroid.view.View): void; + public setEpicenter(transitionObj: any, epicenter: globalAndroid.graphics.Rect): void; } } } } -declare module androidx { - export module fragment { - export module app { +declare namespace androidx { + export namespace fragment { + export namespace app { export abstract class FragmentTransitionImpl { public static class: java.lang.Class; public constructor(); @@ -18816,16 +18817,16 @@ declare module androidx { public addTarget(param0: any, param1: globalAndroid.view.View): void; public removeTarget(param0: any, param1: globalAndroid.view.View): void; public setEpicenter(param0: any, param1: globalAndroid.graphics.Rect): void; - public static bfsAddViewChildren(child: java.util.List, childIndex: globalAndroid.view.View): void; + public static bfsAddViewChildren(views: java.util.List, startView: globalAndroid.view.View): void; public static isNullOrEmpty(list: java.util.List): boolean; } } } } -declare module androidx { - export module fragment { - export module app { +declare namespace androidx { + export namespace fragment { + export namespace app { export class ListFragment extends androidx.fragment.app.Fragment { public static class: java.lang.Class; public constructor(); @@ -18850,9 +18851,9 @@ declare module androidx { } } -declare module androidx { - export module fragment { - export module app { +declare namespace androidx { + export namespace fragment { + export namespace app { export class SuperNotCalledException { public static class: java.lang.Class; public constructor(msg: string); @@ -18861,10 +18862,10 @@ declare module androidx { } } -declare module androidx { - export module interpolator { - export module view { - export module animation { +declare namespace androidx { + export namespace interpolator { + export namespace view { + export namespace animation { export class FastOutLinearInInterpolator extends androidx.interpolator.view.animation.LookupTableInterpolator { public static class: java.lang.Class; public constructor(values: androidNative.Array); @@ -18875,10 +18876,10 @@ declare module androidx { } } -declare module androidx { - export module interpolator { - export module view { - export module animation { +declare namespace androidx { + export namespace interpolator { + export namespace view { + export namespace animation { export class FastOutSlowInInterpolator extends androidx.interpolator.view.animation.LookupTableInterpolator { public static class: java.lang.Class; public constructor(values: androidNative.Array); @@ -18889,10 +18890,10 @@ declare module androidx { } } -declare module androidx { - export module interpolator { - export module view { - export module animation { +declare namespace androidx { + export namespace interpolator { + export namespace view { + export namespace animation { export class LinearOutSlowInInterpolator extends androidx.interpolator.view.animation.LookupTableInterpolator { public static class: java.lang.Class; public constructor(values: androidNative.Array); @@ -18903,10 +18904,10 @@ declare module androidx { } } -declare module androidx { - export module interpolator { - export module view { - export module animation { +declare namespace androidx { + export namespace interpolator { + export namespace view { + export namespace animation { export abstract class LookupTableInterpolator { public static class: java.lang.Class; public constructor(values: androidNative.Array); @@ -18917,9 +18918,9 @@ declare module androidx { } } -declare module androidx { - export module legacy { - export module app { +declare namespace androidx { + export namespace legacy { + export namespace app { export class ActionBarDrawerToggle extends androidx.drawerlayout.widget.DrawerLayout.DrawerListener { public static class: java.lang.Class; public constructor(activity: globalAndroid.app.Activity, drawerLayout: androidx.drawerlayout.widget.DrawerLayout, drawerImageRes: number, openDrawerContentDescRes: number, closeDrawerContentDescRes: number); @@ -18940,7 +18941,7 @@ declare module androidx { public onDrawerClosed(param0: globalAndroid.view.View): void; public onDrawerStateChanged(param0: number): void; } - export module ActionBarDrawerToggle { + export namespace ActionBarDrawerToggle { export class Delegate { public static class: java.lang.Class; /** @@ -18982,22 +18983,22 @@ declare module androidx { } } -declare module androidx { - export module legacy { - export module content { +declare namespace androidx { + export namespace legacy { + export namespace content { export abstract class WakefulBroadcastReceiver { public static class: java.lang.Class; public constructor(); - public static startWakefulService(id: globalAndroid.content.Context, comp: globalAndroid.content.Intent): globalAndroid.content.ComponentName; - public static completeWakefulIntent(wl: globalAndroid.content.Intent): boolean; + public static startWakefulService(context: globalAndroid.content.Context, intent: globalAndroid.content.Intent): globalAndroid.content.ComponentName; + public static completeWakefulIntent(intent: globalAndroid.content.Intent): boolean; } } } } -declare module androidx { - export module legacy { - export module widget { +declare namespace androidx { + export namespace legacy { + export namespace widget { export class Space { public static class: java.lang.Class; /** @deprecated */ @@ -19015,8 +19016,8 @@ declare module androidx { } } -declare module androidx { - export module lifecycle { +declare namespace androidx { + export namespace lifecycle { export class AndroidViewModel extends androidx.lifecycle.ViewModel { public static class: java.lang.Class; public constructor(); @@ -19026,12 +19027,12 @@ declare module androidx { } } -declare module androidx { - export module lifecycle { +declare namespace androidx { + export namespace lifecycle { export class ClassesInfoCache { public static class: java.lang.Class; } - export module ClassesInfoCache { + export namespace ClassesInfoCache { export class CallbackInfo { public static class: java.lang.Class; } @@ -19044,18 +19045,18 @@ declare module androidx { } } -declare module androidx { - export module lifecycle { +declare namespace androidx { + export namespace lifecycle { export class CompositeGeneratedAdaptersObserver extends androidx.lifecycle.GenericLifecycleObserver { public static class: java.lang.Class; - public onStateChanged(mGenerated: androidx.lifecycle.LifecycleOwner, this_: androidx.lifecycle.Lifecycle.Event): void; + public onStateChanged(source: androidx.lifecycle.LifecycleOwner, event: androidx.lifecycle.Lifecycle.Event): void; public onStateChanged(param0: androidx.lifecycle.LifecycleOwner, param1: androidx.lifecycle.Lifecycle.Event): void; } } } -declare module androidx { - export module lifecycle { +declare namespace androidx { + export namespace lifecycle { export abstract class ComputableLiveData extends java.lang.Object { public static class: java.lang.Class>; public constructor(); @@ -19067,8 +19068,8 @@ declare module androidx { } } -declare module androidx { - export module lifecycle { +declare namespace androidx { + export namespace lifecycle { export class FullLifecycleObserver extends androidx.lifecycle.LifecycleObserver { public static class: java.lang.Class; /** @@ -19093,8 +19094,8 @@ declare module androidx { } } -declare module androidx { - export module lifecycle { +declare namespace androidx { + export namespace lifecycle { export class FullLifecycleObserverAdapter extends androidx.lifecycle.GenericLifecycleObserver { public static class: java.lang.Class; public onStateChanged(source: androidx.lifecycle.LifecycleOwner, event: androidx.lifecycle.Lifecycle.Event): void; @@ -19103,8 +19104,8 @@ declare module androidx { } } -declare module androidx { - export module lifecycle { +declare namespace androidx { + export namespace lifecycle { export class GeneratedAdapter { public static class: java.lang.Class; /** @@ -19119,8 +19120,8 @@ declare module androidx { } } -declare module androidx { - export module lifecycle { +declare namespace androidx { + export namespace lifecycle { export class GenericLifecycleObserver extends androidx.lifecycle.LifecycleObserver { public static class: java.lang.Class; /** @@ -19135,8 +19136,8 @@ declare module androidx { } } -declare module androidx { - export module lifecycle { +declare namespace androidx { + export namespace lifecycle { export abstract class Lifecycle { public static class: java.lang.Class; public constructor(); @@ -19144,7 +19145,7 @@ declare module androidx { public removeObserver(param0: androidx.lifecycle.LifecycleObserver): void; public getCurrentState(): androidx.lifecycle.Lifecycle.State; } - export module Lifecycle { + export namespace Lifecycle { export class Event { public static class: java.lang.Class; public static ON_CREATE: androidx.lifecycle.Lifecycle.Event; @@ -19172,8 +19173,8 @@ declare module androidx { } } -declare module androidx { - export module lifecycle { +declare namespace androidx { + export namespace lifecycle { export class LifecycleObserver { public static class: java.lang.Class; /** @@ -19186,8 +19187,8 @@ declare module androidx { } } -declare module androidx { - export module lifecycle { +declare namespace androidx { + export namespace lifecycle { export class LifecycleOwner { public static class: java.lang.Class; /** @@ -19202,8 +19203,8 @@ declare module androidx { } } -declare module androidx { - export module lifecycle { +declare namespace androidx { + export namespace lifecycle { export class LifecycleRegistry extends androidx.lifecycle.Lifecycle { public static class: java.lang.Class; public constructor(); @@ -19215,7 +19216,7 @@ declare module androidx { public getObserverCount(): number; public getCurrentState(): androidx.lifecycle.Lifecycle.State; } - export module LifecycleRegistry { + export namespace LifecycleRegistry { export class ObserverWithState { public static class: java.lang.Class; } @@ -19223,8 +19224,8 @@ declare module androidx { } } -declare module androidx { - export module lifecycle { +declare namespace androidx { + export namespace lifecycle { export class LifecycleRegistryOwner extends androidx.lifecycle.LifecycleOwner { public static class: java.lang.Class; /** @@ -19241,8 +19242,8 @@ declare module androidx { } } -declare module androidx { - export module lifecycle { +declare namespace androidx { + export namespace lifecycle { export class Lifecycling { public static class: java.lang.Class; public static getAdapterName(className: string): string; @@ -19250,15 +19251,15 @@ declare module androidx { } } -declare module androidx { - export module lifecycle { +declare namespace androidx { + export namespace lifecycle { export abstract class LiveData extends java.lang.Object { public static class: java.lang.Class>; public constructor(); public observe(owner: androidx.lifecycle.LifecycleOwner, observer: androidx.lifecycle.Observer): void; public observeForever(observer: androidx.lifecycle.Observer): void; public removeObserver(observer: androidx.lifecycle.Observer): void; - public removeObservers(this_: androidx.lifecycle.LifecycleOwner): void; + public removeObservers(owner: androidx.lifecycle.LifecycleOwner): void; public postValue(value: T): void; public setValue(value: T): void; public getValue(): T | null; @@ -19267,11 +19268,11 @@ declare module androidx { public hasObservers(): boolean; public hasActiveObservers(): boolean; } - export module LiveData { + export namespace LiveData { export class AlwaysActiveObserver extends androidx.lifecycle.LiveData.ObserverWrapper { public static class: java.lang.Class; } - export class LifecycleBoundObserver extends androidx.lifecycle.LiveData.ObserverWrapper implements androidx.lifecycle.GenericLifecycleObserver { + export class LifecycleBoundObserver extends androidx.lifecycle.LiveData.ObserverWrapper implements androidx.lifecycle.GenericLifecycleObserver { public static class: java.lang.Class; public onStateChanged(source: androidx.lifecycle.LifecycleOwner, event: androidx.lifecycle.Lifecycle.Event): void; public onStateChanged(param0: androidx.lifecycle.LifecycleOwner, param1: androidx.lifecycle.Lifecycle.Event): void; @@ -19283,8 +19284,8 @@ declare module androidx { } } -declare module androidx { - export module lifecycle { +declare namespace androidx { + export namespace lifecycle { export class MediatorLiveData extends androidx.lifecycle.MutableLiveData { public static class: java.lang.Class>; public constructor(); @@ -19293,7 +19294,7 @@ declare module androidx { public onActive(): void; public onInactive(): void; } - export module MediatorLiveData { + export namespace MediatorLiveData { export class Source extends androidx.lifecycle.Observer { public static class: java.lang.Class>; public onChanged(v: any): void; @@ -19303,8 +19304,8 @@ declare module androidx { } } -declare module androidx { - export module lifecycle { +declare namespace androidx { + export namespace lifecycle { export class MethodCallsLogger { public static class: java.lang.Class; public constructor(); @@ -19313,8 +19314,8 @@ declare module androidx { } } -declare module androidx { - export module lifecycle { +declare namespace androidx { + export namespace lifecycle { export class MutableLiveData extends androidx.lifecycle.LiveData { public static class: java.lang.Class>; public constructor(); @@ -19324,8 +19325,8 @@ declare module androidx { } } -declare module androidx { - export module lifecycle { +declare namespace androidx { + export namespace lifecycle { export class Observer extends java.lang.Object { public static class: java.lang.Class>; /** @@ -19340,8 +19341,8 @@ declare module androidx { } } -declare module androidx { - export module lifecycle { +declare namespace androidx { + export namespace lifecycle { export class OnLifecycleEvent { public static class: java.lang.Class; /** @@ -19356,8 +19357,8 @@ declare module androidx { } } -declare module androidx { - export module lifecycle { +declare namespace androidx { + export namespace lifecycle { export class ReflectiveGenericLifecycleObserver extends androidx.lifecycle.GenericLifecycleObserver { public static class: java.lang.Class; public onStateChanged(source: androidx.lifecycle.LifecycleOwner, event: androidx.lifecycle.Lifecycle.Event): void; @@ -19366,8 +19367,8 @@ declare module androidx { } } -declare module androidx { - export module lifecycle { +declare namespace androidx { + export namespace lifecycle { export class ReportFragment { public static class: java.lang.Class; public constructor(); @@ -19379,7 +19380,7 @@ declare module androidx { public onStop(): void; public onDestroy(): void; } - export module ReportFragment { + export namespace ReportFragment { export class ActivityInitializationListener { public static class: java.lang.Class; /** @@ -19399,8 +19400,8 @@ declare module androidx { } } -declare module androidx { - export module lifecycle { +declare namespace androidx { + export namespace lifecycle { export class SingleGeneratedAdapterObserver extends androidx.lifecycle.GenericLifecycleObserver { public static class: java.lang.Class; public onStateChanged(source: androidx.lifecycle.LifecycleOwner, event: androidx.lifecycle.Lifecycle.Event): void; @@ -19409,8 +19410,8 @@ declare module androidx { } } -declare module androidx { - export module lifecycle { +declare namespace androidx { + export namespace lifecycle { export class Transformations { public static class: java.lang.Class; public static map(source: androidx.lifecycle.LiveData, mapFunction: androidx.arch.core.util.Function): androidx.lifecycle.LiveData; @@ -19419,8 +19420,8 @@ declare module androidx { } } -declare module androidx { - export module lifecycle { +declare namespace androidx { + export namespace lifecycle { export abstract class ViewModel { public static class: java.lang.Class; public constructor(); @@ -19429,8 +19430,8 @@ declare module androidx { } } -declare module androidx { - export module lifecycle { +declare namespace androidx { + export namespace lifecycle { export class ViewModelProvider { public static class: java.lang.Class; public constructor(owner: androidx.lifecycle.ViewModelStoreOwner, factory: androidx.lifecycle.ViewModelProvider.Factory); @@ -19438,13 +19439,13 @@ declare module androidx { public get(modelClass: java.lang.Class): androidx.lifecycle.ViewModel; public get(key: string, modelClass: java.lang.Class): androidx.lifecycle.ViewModel; } - export module ViewModelProvider { + export namespace ViewModelProvider { export class AndroidViewModelFactory extends androidx.lifecycle.ViewModelProvider.NewInstanceFactory { public static class: java.lang.Class; public static getInstance(application: globalAndroid.app.Application): androidx.lifecycle.ViewModelProvider.AndroidViewModelFactory; public constructor(); public constructor(application: globalAndroid.app.Application); - public create(e: java.lang.Class): androidx.lifecycle.ViewModel; + public create(modelClass: java.lang.Class): androidx.lifecycle.ViewModel; public create(param0: java.lang.Class): androidx.lifecycle.ViewModel; } export class Factory { @@ -19461,15 +19462,15 @@ declare module androidx { export class NewInstanceFactory extends androidx.lifecycle.ViewModelProvider.Factory { public static class: java.lang.Class; public constructor(); - public create(e: java.lang.Class): androidx.lifecycle.ViewModel; + public create(modelClass: java.lang.Class): androidx.lifecycle.ViewModel; public create(param0: java.lang.Class): androidx.lifecycle.ViewModel; } } } } -declare module androidx { - export module lifecycle { +declare namespace androidx { + export namespace lifecycle { export class ViewModelStore { public static class: java.lang.Class; public constructor(); @@ -19478,8 +19479,8 @@ declare module androidx { } } -declare module androidx { - export module lifecycle { +declare namespace androidx { + export namespace lifecycle { export class ViewModelStoreOwner { public static class: java.lang.Class; /** @@ -19494,9 +19495,9 @@ declare module androidx { } } -declare module androidx { - export module loader { - export module app { +declare namespace androidx { + export namespace loader { + export namespace app { export abstract class LoaderManager { public static class: java.lang.Class; public constructor(); @@ -19511,7 +19512,7 @@ declare module androidx { public static enableDebugLogging(enabled: boolean): void; public hasRunningLoaders(): boolean; } - export module LoaderManager { + export namespace LoaderManager { export class LoaderCallbacks extends java.lang.Object { public static class: java.lang.Class>; /** @@ -19532,9 +19533,9 @@ declare module androidx { } } -declare module androidx { - export module loader { - export module app { +declare namespace androidx { + export namespace loader { + export namespace app { export class LoaderManagerImpl extends androidx.loader.app.LoaderManager { public static class: java.lang.Class; public initLoader(id: number, args: globalAndroid.os.Bundle | null, callback: androidx.loader.app.LoaderManager.LoaderCallbacks): androidx.loader.content.Loader; @@ -19547,8 +19548,8 @@ declare module androidx { public dump(prefix: string, fd: java.io.FileDescriptor, writer: java.io.PrintWriter, args: androidNative.Array): void; public hasRunningLoaders(): boolean; } - export module LoaderManagerImpl { - export class LoaderInfo extends androidx.lifecycle.MutableLiveData implements androidx.loader.content.Loader.OnLoadCompleteListener { + export namespace LoaderManagerImpl { + export class LoaderInfo extends androidx.lifecycle.MutableLiveData implements androidx.loader.content.Loader.OnLoadCompleteListener { public static class: java.lang.Class>; public onActive(): void; public onInactive(): void; @@ -19569,16 +19570,16 @@ declare module androidx { export class LoaderViewModel extends androidx.lifecycle.ViewModel { public static class: java.lang.Class; public onCleared(): void; - public dump(i: string, innerPrefix: java.io.FileDescriptor, this_: java.io.PrintWriter, prefix: androidNative.Array): void; + public dump(prefix: string, fd: java.io.FileDescriptor, writer: java.io.PrintWriter, args: androidNative.Array): void; } } } } } -declare module androidx { - export module loader { - export module content { +declare namespace androidx { + export namespace loader { + export namespace content { export abstract class AsyncTaskLoader extends androidx.loader.content.Loader { public static class: java.lang.Class>; public constructor(context: globalAndroid.content.Context); @@ -19594,11 +19595,11 @@ declare module androidx { /** @deprecated */ public dump(prefix: string, fd: java.io.FileDescriptor, writer: java.io.PrintWriter, args: androidNative.Array): void; } - export module AsyncTaskLoader { - export class LoadTask extends androidx.loader.content.ModernAsyncTask implements java.lang.Runnable { + export namespace AsyncTaskLoader { + export class LoadTask extends androidx.loader.content.ModernAsyncTask implements java.lang.Runnable { public static class: java.lang.Class; public doInBackground(param0: androidNative.Array): any; - public doInBackground(ex: androidNative.Array): any; + public doInBackground(params: androidNative.Array): any; public onPostExecute(data: any): void; public onCancelled(): void; public onCancelled(data: any): void; @@ -19610,9 +19611,9 @@ declare module androidx { } } -declare module androidx { - export module loader { - export module content { +declare namespace androidx { + export namespace loader { + export namespace content { export class CursorLoader extends androidx.loader.content.AsyncTaskLoader { public static class: java.lang.Class; public loadInBackground(): any; @@ -19644,9 +19645,9 @@ declare module androidx { } } -declare module androidx { - export module loader { - export module content { +declare namespace androidx { + export namespace loader { + export namespace content { export class Loader extends java.lang.Object { public static class: java.lang.Class>; public constructor(context: globalAndroid.content.Context); @@ -19682,10 +19683,10 @@ declare module androidx { /** @deprecated */ public dump(prefix: string, fd: java.io.FileDescriptor, writer: java.io.PrintWriter, args: androidNative.Array): void; } - export module Loader { + export namespace Loader { export class ForceLoadContentObserver { public static class: java.lang.Class; - public constructor(this$0: androidx.loader.content.Loader); + public constructor(outer: androidx.loader.content.Loader); public deliverSelfNotifications(): boolean; public onChange(selfChange: boolean): void; } @@ -19716,9 +19717,9 @@ declare module androidx { } } -declare module androidx { - export module loader { - export module content { +declare namespace androidx { + export namespace loader { + export namespace content { export abstract class ModernAsyncTask extends java.lang.Object { public static class: java.lang.Class>; public static THREAD_POOL_EXECUTOR: java.util.concurrent.Executor; @@ -19739,7 +19740,7 @@ declare module androidx { public static execute(runnable: java.lang.Runnable): void; public publishProgress(values: androidNative.Array): void; } - export module ModernAsyncTask { + export namespace ModernAsyncTask { export class AsyncTaskResult extends java.lang.Object { public static class: java.lang.Class>; } @@ -19763,18 +19764,18 @@ declare module androidx { } } -declare module androidx { - export module localbroadcastmanager { - export module content { +declare namespace androidx { + export namespace localbroadcastmanager { + export namespace content { export class LocalBroadcastManager { public static class: java.lang.Class; public static getInstance(context: globalAndroid.content.Context): androidx.localbroadcastmanager.content.LocalBroadcastManager; - public registerReceiver(entries: globalAndroid.content.BroadcastReceiver, i: globalAndroid.content.IntentFilter): void; - public unregisterReceiver(k: globalAndroid.content.BroadcastReceiver): void; - public sendBroadcast(reason: globalAndroid.content.Intent): boolean; + public registerReceiver(receiver: globalAndroid.content.BroadcastReceiver, filter: globalAndroid.content.IntentFilter): void; + public unregisterReceiver(receiver: globalAndroid.content.BroadcastReceiver): void; + public sendBroadcast(intent: globalAndroid.content.Intent): boolean; public sendBroadcastSync(intent: globalAndroid.content.Intent): void; } - export module LocalBroadcastManager { + export namespace LocalBroadcastManager { export class BroadcastRecord { public static class: java.lang.Class; } @@ -19787,48 +19788,48 @@ declare module androidx { } } -declare module androidx { - export module media { +declare namespace androidx { + export namespace media { export class AudioAttributesCompat extends androidx.versionedparcelable.VersionedParcelable { public static class: java.lang.Class; - public static CONTENT_TYPE_UNKNOWN: number = 0; - public static CONTENT_TYPE_SPEECH: number = 1; - public static CONTENT_TYPE_MUSIC: number = 2; - public static CONTENT_TYPE_MOVIE: number = 3; - public static CONTENT_TYPE_SONIFICATION: number = 4; - public static USAGE_UNKNOWN: number = 0; - public static USAGE_MEDIA: number = 1; - public static USAGE_VOICE_COMMUNICATION: number = 2; - public static USAGE_VOICE_COMMUNICATION_SIGNALLING: number = 3; - public static USAGE_ALARM: number = 4; - public static USAGE_NOTIFICATION: number = 5; - public static USAGE_NOTIFICATION_RINGTONE: number = 6; - public static USAGE_NOTIFICATION_COMMUNICATION_REQUEST: number = 7; - public static USAGE_NOTIFICATION_COMMUNICATION_INSTANT: number = 8; - public static USAGE_NOTIFICATION_COMMUNICATION_DELAYED: number = 9; - public static USAGE_NOTIFICATION_EVENT: number = 10; - public static USAGE_ASSISTANCE_ACCESSIBILITY: number = 11; - public static USAGE_ASSISTANCE_NAVIGATION_GUIDANCE: number = 12; - public static USAGE_ASSISTANCE_SONIFICATION: number = 13; - public static USAGE_GAME: number = 14; - public static USAGE_ASSISTANT: number = 16; - public static FLAG_AUDIBILITY_ENFORCED: number = 1; - public static FLAG_HW_AV_SYNC: number = 16; + public static readonly CONTENT_TYPE_UNKNOWN = 0; + public static readonly CONTENT_TYPE_SPEECH = 1; + public static readonly CONTENT_TYPE_MUSIC = 2; + public static readonly CONTENT_TYPE_MOVIE = 3; + public static readonly CONTENT_TYPE_SONIFICATION = 4; + public static readonly USAGE_UNKNOWN = 0; + public static readonly USAGE_MEDIA = 1; + public static readonly USAGE_VOICE_COMMUNICATION = 2; + public static readonly USAGE_VOICE_COMMUNICATION_SIGNALLING = 3; + public static readonly USAGE_ALARM = 4; + public static readonly USAGE_NOTIFICATION = 5; + public static readonly USAGE_NOTIFICATION_RINGTONE = 6; + public static readonly USAGE_NOTIFICATION_COMMUNICATION_REQUEST = 7; + public static readonly USAGE_NOTIFICATION_COMMUNICATION_INSTANT = 8; + public static readonly USAGE_NOTIFICATION_COMMUNICATION_DELAYED = 9; + public static readonly USAGE_NOTIFICATION_EVENT = 10; + public static readonly USAGE_ASSISTANCE_ACCESSIBILITY = 11; + public static readonly USAGE_ASSISTANCE_NAVIGATION_GUIDANCE = 12; + public static readonly USAGE_ASSISTANCE_SONIFICATION = 13; + public static readonly USAGE_GAME = 14; + public static readonly USAGE_ASSISTANT = 16; + public static readonly FLAG_AUDIBILITY_ENFORCED = 1; + public static readonly FLAG_HW_AV_SYNC = 16; public getVolumeControlStream(): number; public unwrap(): any; public getLegacyStreamType(): number; - public static wrap(impl: any): androidx.media.AudioAttributesCompat | null; + public static wrap(aa: any): androidx.media.AudioAttributesCompat | null; public getContentType(): number; public getUsage(): number; public getFlags(): number; public toBundle(): globalAndroid.os.Bundle; - public static fromBundle(impl: globalAndroid.os.Bundle): androidx.media.AudioAttributesCompat; + public static fromBundle(bundle: globalAndroid.os.Bundle): androidx.media.AudioAttributesCompat; public hashCode(): number; public toString(): string; public static setForceLegacyBehavior(force: boolean): void; public equals(o: any): boolean; } - export module AudioAttributesCompat { + export namespace AudioAttributesCompat { export class AttributeContentType { public static class: java.lang.Class; /** @@ -19849,10 +19850,10 @@ declare module androidx { } export abstract class AudioManagerHidden { public static class: java.lang.Class; - public static STREAM_BLUETOOTH_SCO: number = 6; - public static STREAM_SYSTEM_ENFORCED: number = 7; - public static STREAM_TTS: number = 9; - public static STREAM_ACCESSIBILITY: number = 10; + public static readonly STREAM_BLUETOOTH_SCO = 6; + public static readonly STREAM_SYSTEM_ENFORCED = 7; + public static readonly STREAM_TTS = 9; + public static readonly STREAM_ACCESSIBILITY = 10; } export class Builder { public static class: java.lang.Class; @@ -19868,8 +19869,8 @@ declare module androidx { } } -declare module androidx { - export module media { +declare namespace androidx { + export namespace media { export class AudioAttributesCompatParcelizer { public static class: java.lang.Class; public constructor(); @@ -19879,8 +19880,8 @@ declare module androidx { } } -declare module androidx { - export module media { +declare namespace androidx { + export namespace media { export class AudioAttributesImpl extends androidx.versionedparcelable.VersionedParcelable { public static class: java.lang.Class; /** @@ -19909,8 +19910,8 @@ declare module androidx { } } -declare module androidx { - export module media { +declare namespace androidx { + export namespace media { export class AudioAttributesImplApi21 extends androidx.media.AudioAttributesImpl { public static class: java.lang.Class; public getAudioAttributes(): any; @@ -19929,8 +19930,8 @@ declare module androidx { } } -declare module androidx { - export module media { +declare namespace androidx { + export namespace media { export class AudioAttributesImplApi21Parcelizer { public static class: java.lang.Class; public constructor(); @@ -19940,8 +19941,8 @@ declare module androidx { } } -declare module androidx { - export module media { +declare namespace androidx { + export namespace media { export class AudioAttributesImplBase extends androidx.media.AudioAttributesImpl { public static class: java.lang.Class; public getAudioAttributes(): any; @@ -19960,8 +19961,8 @@ declare module androidx { } } -declare module androidx { - export module media { +declare namespace androidx { + export namespace media { export class AudioAttributesImplBaseParcelizer { public static class: java.lang.Class; public constructor(); @@ -19971,70 +19972,70 @@ declare module androidx { } } -declare module androidx { - export module media { +declare namespace androidx { + export namespace media { export class MediaBrowserCompatUtils { public static class: java.lang.Class; public static areSameOptions(options1: globalAndroid.os.Bundle, options2: globalAndroid.os.Bundle): boolean; - public static hasDuplicatedItems(startIndex1: globalAndroid.os.Bundle, endIndex1: globalAndroid.os.Bundle): boolean; + public static hasDuplicatedItems(options1: globalAndroid.os.Bundle, options2: globalAndroid.os.Bundle): boolean; } } } -declare module androidx { - export module media { +declare namespace androidx { + export namespace media { export class MediaBrowserProtocol { public static class: java.lang.Class; - public static DATA_CALLBACK_TOKEN: string = "data_callback_token"; - public static DATA_CALLING_UID: string = "data_calling_uid"; - public static DATA_CALLING_PID: string = "data_calling_pid"; - public static DATA_MEDIA_ITEM_ID: string = "data_media_item_id"; - public static DATA_MEDIA_ITEM_LIST: string = "data_media_item_list"; - public static DATA_MEDIA_SESSION_TOKEN: string = "data_media_session_token"; - public static DATA_OPTIONS: string = "data_options"; - public static DATA_NOTIFY_CHILDREN_CHANGED_OPTIONS: string = "data_notify_children_changed_options"; - public static DATA_PACKAGE_NAME: string = "data_package_name"; - public static DATA_RESULT_RECEIVER: string = "data_result_receiver"; - public static DATA_ROOT_HINTS: string = "data_root_hints"; - public static DATA_SEARCH_EXTRAS: string = "data_search_extras"; - public static DATA_SEARCH_QUERY: string = "data_search_query"; - public static DATA_CUSTOM_ACTION: string = "data_custom_action"; - public static DATA_CUSTOM_ACTION_EXTRAS: string = "data_custom_action_extras"; - public static EXTRA_CLIENT_VERSION: string = "extra_client_version"; - public static EXTRA_SERVICE_VERSION: string = "extra_service_version"; - public static EXTRA_MESSENGER_BINDER: string = "extra_messenger"; - public static EXTRA_SESSION_BINDER: string = "extra_session_binder"; - public static SERVICE_VERSION_1: number = 1; - public static SERVICE_VERSION_2: number = 2; - public static SERVICE_VERSION_CURRENT: number = 2; - public static SERVICE_MSG_ON_CONNECT: number = 1; - public static SERVICE_MSG_ON_CONNECT_FAILED: number = 2; - public static SERVICE_MSG_ON_LOAD_CHILDREN: number = 3; - public static CLIENT_VERSION_1: number = 1; - public static CLIENT_VERSION_CURRENT: number = 1; - public static CLIENT_MSG_CONNECT: number = 1; - public static CLIENT_MSG_DISCONNECT: number = 2; - public static CLIENT_MSG_ADD_SUBSCRIPTION: number = 3; - public static CLIENT_MSG_REMOVE_SUBSCRIPTION: number = 4; - public static CLIENT_MSG_GET_MEDIA_ITEM: number = 5; - public static CLIENT_MSG_REGISTER_CALLBACK_MESSENGER: number = 6; - public static CLIENT_MSG_UNREGISTER_CALLBACK_MESSENGER: number = 7; - public static CLIENT_MSG_SEARCH: number = 8; - public static CLIENT_MSG_SEND_CUSTOM_ACTION: number = 9; - } - } -} - -declare module androidx { - export module media { + public static readonly DATA_CALLBACK_TOKEN = "data_callback_token"; + public static readonly DATA_CALLING_UID = "data_calling_uid"; + public static readonly DATA_CALLING_PID = "data_calling_pid"; + public static readonly DATA_MEDIA_ITEM_ID = "data_media_item_id"; + public static readonly DATA_MEDIA_ITEM_LIST = "data_media_item_list"; + public static readonly DATA_MEDIA_SESSION_TOKEN = "data_media_session_token"; + public static readonly DATA_OPTIONS = "data_options"; + public static readonly DATA_NOTIFY_CHILDREN_CHANGED_OPTIONS = "data_notify_children_changed_options"; + public static readonly DATA_PACKAGE_NAME = "data_package_name"; + public static readonly DATA_RESULT_RECEIVER = "data_result_receiver"; + public static readonly DATA_ROOT_HINTS = "data_root_hints"; + public static readonly DATA_SEARCH_EXTRAS = "data_search_extras"; + public static readonly DATA_SEARCH_QUERY = "data_search_query"; + public static readonly DATA_CUSTOM_ACTION = "data_custom_action"; + public static readonly DATA_CUSTOM_ACTION_EXTRAS = "data_custom_action_extras"; + public static readonly EXTRA_CLIENT_VERSION = "extra_client_version"; + public static readonly EXTRA_SERVICE_VERSION = "extra_service_version"; + public static readonly EXTRA_MESSENGER_BINDER = "extra_messenger"; + public static readonly EXTRA_SESSION_BINDER = "extra_session_binder"; + public static readonly SERVICE_VERSION_1 = 1; + public static readonly SERVICE_VERSION_2 = 2; + public static readonly SERVICE_VERSION_CURRENT = 2; + public static readonly SERVICE_MSG_ON_CONNECT = 1; + public static readonly SERVICE_MSG_ON_CONNECT_FAILED = 2; + public static readonly SERVICE_MSG_ON_LOAD_CHILDREN = 3; + public static readonly CLIENT_VERSION_1 = 1; + public static readonly CLIENT_VERSION_CURRENT = 1; + public static readonly CLIENT_MSG_CONNECT = 1; + public static readonly CLIENT_MSG_DISCONNECT = 2; + public static readonly CLIENT_MSG_ADD_SUBSCRIPTION = 3; + public static readonly CLIENT_MSG_REMOVE_SUBSCRIPTION = 4; + public static readonly CLIENT_MSG_GET_MEDIA_ITEM = 5; + public static readonly CLIENT_MSG_REGISTER_CALLBACK_MESSENGER = 6; + public static readonly CLIENT_MSG_UNREGISTER_CALLBACK_MESSENGER = 7; + public static readonly CLIENT_MSG_SEARCH = 8; + public static readonly CLIENT_MSG_SEND_CUSTOM_ACTION = 9; + } + } +} + +declare namespace androidx { + export namespace media { export abstract class MediaBrowserServiceCompat { public static class: java.lang.Class; - public static SERVICE_INTERFACE: string = "any"; - public static KEY_MEDIA_ITEM: string = "media_item"; - public static KEY_SEARCH_RESULTS: string = "search_results"; - public static RESULT_ERROR: number = -1; - public static RESULT_OK: number = 0; - public static RESULT_PROGRESS_UPDATE: number = 1; + public static readonly SERVICE_INTERFACE = "android.media.browse.MediaBrowserService"; + public static readonly KEY_MEDIA_ITEM = "media_item"; + public static readonly KEY_SEARCH_RESULTS = "search_results"; + public static readonly RESULT_ERROR = -1; + public static readonly RESULT_OK = 0; + public static readonly RESULT_PROGRESS_UPDATE = 1; public constructor(); public attachToBaseContext(base: globalAndroid.content.Context): void; public onCreate(): void; @@ -20056,13 +20057,13 @@ declare module androidx { public notifyChildrenChanged(parentId: string, options: globalAndroid.os.Bundle): void; public notifyChildrenChanged(remoteUserInfo: androidx.media.MediaSessionManager.RemoteUserInfo, parentId: string, options: globalAndroid.os.Bundle): void; } - export module MediaBrowserServiceCompat { + export namespace MediaBrowserServiceCompat { export class BrowserRoot { public static class: java.lang.Class; - public static EXTRA_RECENT: string = "any"; - public static EXTRA_OFFLINE: string = "any"; - public static EXTRA_SUGGESTED: string = "any"; - public static EXTRA_SUGGESTION_KEYWORDS: string = "any_KEYWORDS"; + public static readonly EXTRA_RECENT = "android.service.media.extra.RECENT"; + public static readonly EXTRA_OFFLINE = "android.service.media.extra.OFFLINE"; + public static readonly EXTRA_SUGGESTED = "android.service.media.extra.SUGGESTED"; + public static readonly EXTRA_SUGGESTION_KEYWORDS = "android.service.media.extra.SUGGESTION_KEYWORDS"; public constructor(rootId: string, extras: globalAndroid.os.Bundle | null); public getRootId(): string; public getExtras(): globalAndroid.os.Bundle; @@ -20109,7 +20110,7 @@ declare module androidx { public setSessionToken(token: globalAndroid.support.v4.media.session.MediaSessionCompat.Token): void; public notifyChildrenChanged(parentId: string, options: globalAndroid.os.Bundle): void; public notifyChildrenChanged(remoteUserInfo: androidx.media.MediaSessionManager.RemoteUserInfo, parentId: string, options: globalAndroid.os.Bundle): void; - public onGetRoot(this_: string, clientPackageName: number, clientUid: globalAndroid.os.Bundle): androidx.media.MediaBrowserServiceCompatApi21.BrowserRoot; + public onGetRoot(clientPackageName: string, clientUid: number, rootHints: globalAndroid.os.Bundle): androidx.media.MediaBrowserServiceCompatApi21.BrowserRoot; public onLoadChildren(parentId: string, resultWrapper: androidx.media.MediaBrowserServiceCompatApi21.ResultWrapper>): void; public getBrowserRootHints(): globalAndroid.os.Bundle; public getCurrentBrowserInfo(): androidx.media.MediaSessionManager.RemoteUserInfo; @@ -20229,7 +20230,7 @@ declare module androidx { } export class ServiceHandler { public static class: java.lang.Class; - public handleMessage(options: globalAndroid.os.Message): void; + public handleMessage(msg: globalAndroid.os.Message): void; public sendMessageAtTime(msg: globalAndroid.os.Message, uptimeMillis: number): boolean; public postOrRun(r: java.lang.Runnable): void; } @@ -20237,8 +20238,8 @@ declare module androidx { } } -declare module androidx { - export module media { +declare namespace androidx { + export namespace media { export class MediaBrowserServiceCompatApi21 { public static class: java.lang.Class; public static createService(context: globalAndroid.content.Context, serviceProxy: androidx.media.MediaBrowserServiceCompatApi21.ServiceCompatProxy): any; @@ -20247,7 +20248,7 @@ declare module androidx { public static setSessionToken(serviceObj: any, token: any): void; public static notifyChildrenChanged(serviceObj: any, parentId: string): void; } - export module MediaBrowserServiceCompatApi21 { + export namespace MediaBrowserServiceCompatApi21 { export class BrowserRoot { public static class: java.lang.Class; } @@ -20258,7 +20259,7 @@ declare module androidx { } export class ResultWrapper extends java.lang.Object { public static class: java.lang.Class>; - public sendResult(this_: T): void; + public sendResult(result: T): void; public detach(): void; } export class ServiceCompatProxy { @@ -20278,13 +20279,13 @@ declare module androidx { } } -declare module androidx { - export module media { +declare namespace androidx { + export namespace media { export class MediaBrowserServiceCompatApi23 { public static class: java.lang.Class; public static createService(context: globalAndroid.content.Context, serviceProxy: androidx.media.MediaBrowserServiceCompatApi23.ServiceCompatProxy): any; } - export module MediaBrowserServiceCompatApi23 { + export namespace MediaBrowserServiceCompatApi23 { export class MediaBrowserServiceAdaptor extends androidx.media.MediaBrowserServiceCompatApi21.MediaBrowserServiceAdaptor { public static class: java.lang.Class; public onLoadItem(itemId: string, result: any): void; @@ -20308,15 +20309,15 @@ declare module androidx { } } -declare module androidx { - export module media { +declare namespace androidx { + export namespace media { export class MediaBrowserServiceCompatApi26 { public static class: java.lang.Class; public static createService(context: globalAndroid.content.Context, serviceProxy: androidx.media.MediaBrowserServiceCompatApi26.ServiceCompatProxy): any; public static notifyChildrenChanged(serviceObj: any, parentId: string, options: globalAndroid.os.Bundle): void; public static getBrowserRootHints(serviceObj: any): globalAndroid.os.Bundle; } - export module MediaBrowserServiceCompatApi26 { + export namespace MediaBrowserServiceCompatApi26 { export class MediaBrowserServiceAdaptor extends androidx.media.MediaBrowserServiceCompatApi23.MediaBrowserServiceAdaptor { public static class: java.lang.Class; public onLoadChildren(parentId: string, result: any): void; @@ -20324,7 +20325,7 @@ declare module androidx { } export class ResultWrapper { public static class: java.lang.Class; - public sendResult(this_: java.util.List, result: number): void; + public sendResult(result: java.util.List, flags: number): void; public detach(): void; } export class ServiceCompatProxy extends androidx.media.MediaBrowserServiceCompatApi23.ServiceCompatProxy { @@ -20348,14 +20349,14 @@ declare module androidx { } } -declare module androidx { - export module media { +declare namespace androidx { + export namespace media { export class MediaSessionManager { public static class: java.lang.Class; public static getSessionManager(context: globalAndroid.content.Context): androidx.media.MediaSessionManager; public isTrustedForMediaControl(userInfo: androidx.media.MediaSessionManager.RemoteUserInfo): boolean; } - export module MediaSessionManager { + export namespace MediaSessionManager { export class MediaSessionManagerImpl { public static class: java.lang.Class; /** @@ -20371,7 +20372,7 @@ declare module androidx { } export class RemoteUserInfo { public static class: java.lang.Class; - public static LEGACY_CONTROLLER: string = "any"; + public static readonly LEGACY_CONTROLLER = "android.media.session.MediaController"; public constructor(packageName: string, pid: number, uid: number); public constructor(remoteUserInfo: any); public getPackageName(): string; @@ -20399,8 +20400,8 @@ declare module androidx { } } -declare module androidx { - export module media { +declare namespace androidx { + export namespace media { export class MediaSessionManagerImplApi21 extends androidx.media.MediaSessionManagerImplBase { public static class: java.lang.Class; public isTrustedForMediaControl(userInfo: androidx.media.MediaSessionManager.RemoteUserInfoImpl): boolean; @@ -20410,15 +20411,15 @@ declare module androidx { } } -declare module androidx { - export module media { +declare namespace androidx { + export namespace media { export class MediaSessionManagerImplApi28 extends androidx.media.MediaSessionManagerImplApi21 { public static class: java.lang.Class; public isTrustedForMediaControl(userInfo: androidx.media.MediaSessionManager.RemoteUserInfoImpl): boolean; public getContext(): globalAndroid.content.Context; public isTrustedForMediaControl(param0: androidx.media.MediaSessionManager.RemoteUserInfoImpl): boolean; } - export module MediaSessionManagerImplApi28 { + export namespace MediaSessionManagerImplApi28 { export class RemoteUserInfoImplApi28 extends androidx.media.MediaSessionManager.RemoteUserInfoImpl { public static class: java.lang.Class; public getPackageName(): string; @@ -20431,15 +20432,15 @@ declare module androidx { } } -declare module androidx { - export module media { +declare namespace androidx { + export namespace media { export class MediaSessionManagerImplBase extends androidx.media.MediaSessionManager.MediaSessionManagerImpl { public static class: java.lang.Class; public getContext(): globalAndroid.content.Context; - public isTrustedForMediaControl(this_: androidx.media.MediaSessionManager.RemoteUserInfoImpl): boolean; + public isTrustedForMediaControl(userInfo: androidx.media.MediaSessionManager.RemoteUserInfoImpl): boolean; public isTrustedForMediaControl(param0: androidx.media.MediaSessionManager.RemoteUserInfoImpl): boolean; } - export module MediaSessionManagerImplBase { + export namespace MediaSessionManagerImplBase { export class RemoteUserInfoImplBase extends androidx.media.MediaSessionManager.RemoteUserInfoImpl { public static class: java.lang.Class; public getPackageName(): string; @@ -20452,13 +20453,13 @@ declare module androidx { } } -declare module androidx { - export module media { +declare namespace androidx { + export namespace media { export abstract class VolumeProviderCompat { public static class: java.lang.Class; - public static VOLUME_CONTROL_FIXED: number = 0; - public static VOLUME_CONTROL_RELATIVE: number = 1; - public static VOLUME_CONTROL_ABSOLUTE: number = 2; + public static readonly VOLUME_CONTROL_FIXED = 0; + public static readonly VOLUME_CONTROL_RELATIVE = 1; + public static readonly VOLUME_CONTROL_ABSOLUTE = 2; public constructor(volumeControl: number, maxVolume: number, currentVolume: number); public getCurrentVolume(): number; public getVolumeControl(): number; @@ -20469,7 +20470,7 @@ declare module androidx { public setCallback(callback: androidx.media.VolumeProviderCompat.Callback): void; public getVolumeProvider(): any; } - export module VolumeProviderCompat { + export namespace VolumeProviderCompat { export abstract class Callback { public static class: java.lang.Class; public constructor(); @@ -20488,14 +20489,14 @@ declare module androidx { } } -declare module androidx { - export module media { +declare namespace androidx { + export namespace media { export class VolumeProviderCompatApi21 { public static class: java.lang.Class; public static createVolumeProvider(volumeControl: number, maxVolume: number, currentVolume: number, delegate: androidx.media.VolumeProviderCompatApi21.Delegate): any; public static setCurrentVolume(volumeProviderObj: any, currentVolume: number): void; } - export module VolumeProviderCompatApi21 { + export namespace VolumeProviderCompatApi21 { export class Delegate { public static class: java.lang.Class; /** @@ -20513,25 +20514,25 @@ declare module androidx { } } -declare module androidx { - export module media { - export module app { +declare namespace androidx { + export namespace media { + export namespace app { export class NotificationCompat { public static class: java.lang.Class; } - export module NotificationCompat { + export namespace NotificationCompat { export class DecoratedMediaCustomViewStyle extends androidx.media.app.NotificationCompat.MediaStyle { public static class: java.lang.Class; public constructor(builder: androidx.core.app.NotificationCompat.Builder); public constructor(); public apply(builder: androidx.core.app.NotificationBuilderWithBuilderAccessor): void; - public makeContentView(createCustomContent: androidx.core.app.NotificationBuilderWithBuilderAccessor): globalAndroid.widget.RemoteViews; + public makeContentView(builder: androidx.core.app.NotificationBuilderWithBuilderAccessor): globalAndroid.widget.RemoteViews; public makeBigContentView(builder: androidx.core.app.NotificationBuilderWithBuilderAccessor): globalAndroid.widget.RemoteViews; public makeHeadsUpContentView(builder: androidx.core.app.NotificationBuilderWithBuilderAccessor): globalAndroid.widget.RemoteViews; } export class MediaStyle extends androidx.core.app.NotificationCompat.Style { public static class: java.lang.Class; - public static getMediaSession(tokenInner: globalAndroid.app.Notification): globalAndroid.support.v4.media.session.MediaSessionCompat.Token; + public static getMediaSession(notification: globalAndroid.app.Notification): globalAndroid.support.v4.media.session.MediaSessionCompat.Token; public constructor(); public constructor(builder: androidx.core.app.NotificationCompat.Builder); public setShowActionsInCompactView(actions: androidNative.Array): androidx.media.app.NotificationCompat.MediaStyle; @@ -20547,19 +20548,19 @@ declare module androidx { } } -declare module androidx { - export module media { - export module session { +declare namespace androidx { + export namespace media { + export namespace session { export class MediaButtonReceiver { public static class: java.lang.Class; public constructor(); - public onReceive(applicationContext: globalAndroid.content.Context, connectionCallback: globalAndroid.content.Intent): void; + public onReceive(context: globalAndroid.content.Context, intent: globalAndroid.content.Intent): void; public static handleIntent(mediaSessionCompat: globalAndroid.support.v4.media.session.MediaSessionCompat, intent: globalAndroid.content.Intent): globalAndroid.view.KeyEvent; public static buildMediaButtonPendingIntent(context: globalAndroid.content.Context, action: number): globalAndroid.app.PendingIntent; public static buildMediaButtonPendingIntent(context: globalAndroid.content.Context, mbrComponent: globalAndroid.content.ComponentName, action: number): globalAndroid.app.PendingIntent; - public static getMediaButtonReceiverComponent(resolveInfo: globalAndroid.content.Context): globalAndroid.content.ComponentName; + public static getMediaButtonReceiverComponent(context: globalAndroid.content.Context): globalAndroid.content.ComponentName; } - export module MediaButtonReceiver { + export namespace MediaButtonReceiver { export class MediaButtonConnectionCallback extends globalAndroid.support.v4.media.MediaBrowserCompat.ConnectionCallback { public static class: java.lang.Class; public onConnected(): void; @@ -20571,16 +20572,16 @@ declare module androidx { } } -declare module androidx { - export module print { +declare namespace androidx { + export namespace print { export class PrintHelper { public static class: java.lang.Class; - public static SCALE_MODE_FIT: number = 1; - public static SCALE_MODE_FILL: number = 2; - public static COLOR_MODE_MONOCHROME: number = 1; - public static COLOR_MODE_COLOR: number = 2; - public static ORIENTATION_LANDSCAPE: number = 1; - public static ORIENTATION_PORTRAIT: number = 2; + public static readonly SCALE_MODE_FIT = 1; + public static readonly SCALE_MODE_FILL = 2; + public static readonly COLOR_MODE_MONOCHROME = 1; + public static readonly COLOR_MODE_COLOR = 2; + public static readonly ORIENTATION_LANDSCAPE = 1; + public static readonly ORIENTATION_PORTRAIT = 2; public static systemSupportsPrint(): boolean; public constructor(context: globalAndroid.content.Context); public setScaleMode(scaleMode: number): void; @@ -20590,11 +20591,11 @@ declare module androidx { public setOrientation(orientation: number): void; public getOrientation(): number; public printBitmap(jobName: string, bitmap: globalAndroid.graphics.Bitmap): void; - public printBitmap(this_: string, jobName: globalAndroid.graphics.Bitmap, bitmap: androidx.print.PrintHelper.OnPrintFinishCallback | null): void; + public printBitmap(jobName: string, bitmap: globalAndroid.graphics.Bitmap, callback: androidx.print.PrintHelper.OnPrintFinishCallback | null): void; public printBitmap(jobName: string, imageFile: globalAndroid.net.Uri): void; public printBitmap(jobName: string, imageFile: globalAndroid.net.Uri, callback: androidx.print.PrintHelper.OnPrintFinishCallback | null): void; } - export module PrintHelper { + export namespace PrintHelper { export class OnPrintFinishCallback { public static class: java.lang.Class; /** @@ -20614,7 +20615,7 @@ declare module androidx { } export class PrintUriAdapter { public static class: java.lang.Class; - public onLayout(changed: any, this_: any, oldPrintAttributes: globalAndroid.os.CancellationSignal, newPrintAttributes: any, cancellationSignal: globalAndroid.os.Bundle): void; + public onLayout(oldPrintAttributes: any, newPrintAttributes: any, cancellationSignal: globalAndroid.os.CancellationSignal, layoutResultCallback: any, bundle: globalAndroid.os.Bundle): void; public onFinish(): void; public onWrite(pageRanges: androidNative.Array, fileDescriptor: globalAndroid.os.ParcelFileDescriptor, cancellationSignal: globalAndroid.os.CancellationSignal, writeResultCallback: any): void; } @@ -20622,18 +20623,18 @@ declare module androidx { } } -declare module androidx { - export module recyclerview { - export module widget { +declare namespace androidx { + export namespace recyclerview { + export namespace widget { export class AdapterHelper extends androidx.recyclerview.widget.OpReorderer.Callback { public static class: java.lang.Class; - public applyPendingUpdatesToPosition(op: number): number; + public applyPendingUpdatesToPosition(position: number): number; public obtainUpdateOp(cmd: number, positionStart: number, itemCount: number, payload: any): androidx.recyclerview.widget.AdapterHelper.UpdateOp; public recycleUpdateOp(op: androidx.recyclerview.widget.AdapterHelper.UpdateOp): void; public obtainUpdateOp(param0: number, param1: number, param2: number, param3: any): androidx.recyclerview.widget.AdapterHelper.UpdateOp; public recycleUpdateOp(param0: androidx.recyclerview.widget.AdapterHelper.UpdateOp): void; } - export module AdapterHelper { + export namespace AdapterHelper { export class Callback { public static class: java.lang.Class; /** @@ -20670,9 +20671,9 @@ declare module androidx { } } -declare module androidx { - export module recyclerview { - export module widget { +declare namespace androidx { + export namespace recyclerview { + export namespace widget { export class AdapterListUpdateCallback extends androidx.recyclerview.widget.ListUpdateCallback { public static class: java.lang.Class; public constructor(adapter: androidx.recyclerview.widget.RecyclerView.Adapter); @@ -20689,16 +20690,16 @@ declare module androidx { } } -declare module androidx { - export module recyclerview { - export module widget { +declare namespace androidx { + export namespace recyclerview { + export namespace widget { export class AsyncDifferConfig extends java.lang.Object { public static class: java.lang.Class>; public getMainThreadExecutor(): java.util.concurrent.Executor; public getBackgroundThreadExecutor(): java.util.concurrent.Executor; public getDiffCallback(): androidx.recyclerview.widget.DiffUtil.ItemCallback; } - export module AsyncDifferConfig { + export namespace AsyncDifferConfig { export class Builder extends java.lang.Object { public static class: java.lang.Class>; public constructor(diffCallback: androidx.recyclerview.widget.DiffUtil.ItemCallback); @@ -20711,17 +20712,17 @@ declare module androidx { } } -declare module androidx { - export module recyclerview { - export module widget { +declare namespace androidx { + export namespace recyclerview { + export namespace widget { export class AsyncListDiffer extends java.lang.Object { public static class: java.lang.Class>; public constructor(adapter: androidx.recyclerview.widget.RecyclerView.Adapter, diffCallback: androidx.recyclerview.widget.DiffUtil.ItemCallback); public constructor(listUpdateCallback: androidx.recyclerview.widget.ListUpdateCallback, config: androidx.recyclerview.widget.AsyncDifferConfig); public getCurrentList(): java.util.List; - public submitList(this_: java.util.List | null): void; + public submitList(newList: java.util.List | null): void; } - export module AsyncListDiffer { + export namespace AsyncListDiffer { export class MainThreadExecutor { public static class: java.lang.Class; public execute(command: java.lang.Runnable): void; @@ -20731,9 +20732,9 @@ declare module androidx { } } -declare module androidx { - export module recyclerview { - export module widget { +declare namespace androidx { + export namespace recyclerview { + export namespace widget { export class AsyncListUtil extends java.lang.Object { public static class: java.lang.Class>; public constructor(klass: java.lang.Class, tileSize: number, dataCallback: androidx.recyclerview.widget.AsyncListUtil.DataCallback, viewCallback: androidx.recyclerview.widget.AsyncListUtil.ViewCallback); @@ -20742,7 +20743,7 @@ declare module androidx { public getItem(position: number): T | null; public getItemCount(): number; } - export module AsyncListUtil { + export namespace AsyncListUtil { export abstract class DataCallback extends java.lang.Object { public static class: java.lang.Class>; public constructor(); @@ -20753,9 +20754,9 @@ declare module androidx { } export abstract class ViewCallback { public static class: java.lang.Class; - public static HINT_SCROLL_NONE: number = 0; - public static HINT_SCROLL_DESC: number = 1; - public static HINT_SCROLL_ASC: number = 2; + public static readonly HINT_SCROLL_NONE = 0; + public static readonly HINT_SCROLL_DESC = 1; + public static readonly HINT_SCROLL_ASC = 2; public constructor(); public getItemRangeInto(param0: androidNative.Array): void; public extendRangeInto(range: androidNative.Array, outRange: androidNative.Array, scrollHint: number): void; @@ -20767,9 +20768,9 @@ declare module androidx { } } -declare module androidx { - export module recyclerview { - export module widget { +declare namespace androidx { + export namespace recyclerview { + export namespace widget { export class BatchingListUpdateCallback extends androidx.recyclerview.widget.ListUpdateCallback { public static class: java.lang.Class; public constructor(callback: androidx.recyclerview.widget.ListUpdateCallback); @@ -20777,7 +20778,7 @@ declare module androidx { public onInserted(position: number, count: number): void; public onRemoved(position: number, count: number): void; public onMoved(fromPosition: number, toPosition: number): void; - public onChanged(this_: number, position: number, count: any): void; + public onChanged(position: number, count: number, payload: any): void; public onInserted(param0: number, param1: number): void; public onRemoved(param0: number, param1: number): void; public onMoved(param0: number, param1: number): void; @@ -20787,14 +20788,14 @@ declare module androidx { } } -declare module androidx { - export module recyclerview { - export module widget { +declare namespace androidx { + export namespace recyclerview { + export namespace widget { export class ChildHelper { public static class: java.lang.Class; public toString(): string; } - export module ChildHelper { + export namespace ChildHelper { export class Bucket { public static class: java.lang.Class; public toString(): string; @@ -20835,9 +20836,9 @@ declare module androidx { } } -declare module androidx { - export module recyclerview { - export module widget { +declare namespace androidx { + export namespace recyclerview { + export namespace widget { export class DefaultItemAnimator extends androidx.recyclerview.widget.SimpleItemAnimator { public static class: java.lang.Class; public constructor(); @@ -20845,16 +20846,16 @@ declare module androidx { public animateRemove(holder: androidx.recyclerview.widget.RecyclerView.ViewHolder): boolean; public animateAdd(holder: androidx.recyclerview.widget.RecyclerView.ViewHolder): boolean; public animateMove(holder: androidx.recyclerview.widget.RecyclerView.ViewHolder, fromX: number, fromY: number, toX: number, toY: number): boolean; - public animateChange(toTop: androidx.recyclerview.widget.RecyclerView.ViewHolder, this_: androidx.recyclerview.widget.RecyclerView.ViewHolder, oldHolder: androidx.recyclerview.widget.RecyclerView.ItemAnimator.ItemHolderInfo, newHolder: androidx.recyclerview.widget.RecyclerView.ItemAnimator.ItemHolderInfo): boolean; + public animateChange(oldHolder: androidx.recyclerview.widget.RecyclerView.ViewHolder, newHolder: androidx.recyclerview.widget.RecyclerView.ViewHolder, preInfo: androidx.recyclerview.widget.RecyclerView.ItemAnimator.ItemHolderInfo, postInfo: androidx.recyclerview.widget.RecyclerView.ItemAnimator.ItemHolderInfo): boolean; public animateChange(oldHolder: androidx.recyclerview.widget.RecyclerView.ViewHolder, newHolder: androidx.recyclerview.widget.RecyclerView.ViewHolder, fromX: number, fromY: number, toX: number, toY: number): boolean; - public endAnimation(i: androidx.recyclerview.widget.RecyclerView.ViewHolder): void; + public endAnimation(item: androidx.recyclerview.widget.RecyclerView.ViewHolder): void; public isRunning(listener: androidx.recyclerview.widget.RecyclerView.ItemAnimator.ItemAnimatorFinishedListener | null): boolean; public isRunning(): boolean; public endAnimations(): void; public canReuseUpdatedViewHolder(viewHolder: androidx.recyclerview.widget.RecyclerView.ViewHolder): boolean; public canReuseUpdatedViewHolder(viewHolder: androidx.recyclerview.widget.RecyclerView.ViewHolder, payloads: java.util.List): boolean; } - export module DefaultItemAnimator { + export namespace DefaultItemAnimator { export class ChangeInfo { public static class: java.lang.Class; public oldHolder: androidx.recyclerview.widget.RecyclerView.ViewHolder; @@ -20878,15 +20879,15 @@ declare module androidx { } } -declare module androidx { - export module recyclerview { - export module widget { +declare namespace androidx { + export namespace recyclerview { + export namespace widget { export class DiffUtil { public static class: java.lang.Class; public static calculateDiff(cb: androidx.recyclerview.widget.DiffUtil.Callback): androidx.recyclerview.widget.DiffUtil.DiffResult; - public static calculateDiff(left: androidx.recyclerview.widget.DiffUtil.Callback, right: boolean): androidx.recyclerview.widget.DiffUtil.DiffResult; + public static calculateDiff(cb: androidx.recyclerview.widget.DiffUtil.Callback, detectMoves: boolean): androidx.recyclerview.widget.DiffUtil.DiffResult; } - export module DiffUtil { + export namespace DiffUtil { export abstract class Callback { public static class: java.lang.Class; public constructor(); @@ -20898,11 +20899,11 @@ declare module androidx { } export class DiffResult { public static class: java.lang.Class; - public static NO_POSITION: number = -1; + public static readonly NO_POSITION = -1; public convertOldPositionToNew(oldListPosition: number): number; public convertNewPositionToOld(newListPosition: number): number; public dispatchUpdatesTo(adapter: androidx.recyclerview.widget.RecyclerView.Adapter): void; - public dispatchUpdatesTo(i: androidx.recyclerview.widget.ListUpdateCallback): void; + public dispatchUpdatesTo(updateCallback: androidx.recyclerview.widget.ListUpdateCallback): void; } export abstract class ItemCallback extends java.lang.Object { public static class: java.lang.Class>; @@ -20928,13 +20929,13 @@ declare module androidx { } } -declare module androidx { - export module recyclerview { - export module widget { +declare namespace androidx { + export namespace recyclerview { + export namespace widget { export class DividerItemDecoration extends androidx.recyclerview.widget.RecyclerView.ItemDecoration { public static class: java.lang.Class; - public static HORIZONTAL: number = 0; - public static VERTICAL: number = 1; + public static readonly HORIZONTAL = 0; + public static readonly VERTICAL = 1; public constructor(); public constructor(context: globalAndroid.content.Context, orientation: number); public setOrientation(orientation: number): void; @@ -20950,9 +20951,9 @@ declare module androidx { } } -declare module androidx { - export module recyclerview { - export module widget { +declare namespace androidx { + export namespace recyclerview { + export namespace widget { export class FastScroller extends androidx.recyclerview.widget.RecyclerView.ItemDecoration implements androidx.recyclerview.widget.RecyclerView.OnItemTouchListener { public static class: java.lang.Class; public attachToRecyclerView(recyclerView: androidx.recyclerview.widget.RecyclerView | null): void; @@ -20962,14 +20963,14 @@ declare module androidx { /** @deprecated */ public onDrawOver(c: globalAndroid.graphics.Canvas, parent: androidx.recyclerview.widget.RecyclerView): void; public onDrawOver(canvas: globalAndroid.graphics.Canvas, parent: androidx.recyclerview.widget.RecyclerView, state: androidx.recyclerview.widget.RecyclerView.State): void; - public onInterceptTouchEvent(insideVerticalThumb: androidx.recyclerview.widget.RecyclerView, insideHorizontalThumb: globalAndroid.view.MotionEvent): boolean; - public onTouchEvent(insideHorizontalThumb: androidx.recyclerview.widget.RecyclerView, this_: globalAndroid.view.MotionEvent): void; + public onInterceptTouchEvent(recyclerView: androidx.recyclerview.widget.RecyclerView, ev: globalAndroid.view.MotionEvent): boolean; + public onTouchEvent(recyclerView: androidx.recyclerview.widget.RecyclerView, me: globalAndroid.view.MotionEvent): void; public onRequestDisallowInterceptTouchEvent(disallowIntercept: boolean): void; public onInterceptTouchEvent(param0: androidx.recyclerview.widget.RecyclerView, param1: globalAndroid.view.MotionEvent): boolean; public onTouchEvent(param0: androidx.recyclerview.widget.RecyclerView, param1: globalAndroid.view.MotionEvent): void; public onRequestDisallowInterceptTouchEvent(param0: boolean): void; } - export module FastScroller { + export namespace FastScroller { export class AnimatorListener { public static class: java.lang.Class; public onAnimationEnd(animation: globalAndroid.animation.Animator): void; @@ -20984,19 +20985,19 @@ declare module androidx { } } -declare module androidx { - export module recyclerview { - export module widget { +declare namespace androidx { + export namespace recyclerview { + export namespace widget { export class GapWorker { public static class: java.lang.Class; public add(recyclerView: androidx.recyclerview.widget.RecyclerView): void; public remove(recyclerView: androidx.recyclerview.widget.RecyclerView): void; public run(): void; } - export module GapWorker { + export namespace GapWorker { export class LayoutPrefetchRegistryImpl extends androidx.recyclerview.widget.RecyclerView.LayoutManager.LayoutPrefetchRegistry { public static class: java.lang.Class; - public addPosition(this_: number, layoutPosition: number): void; + public addPosition(layoutPosition: number, pixelDistance: number): void; public addPosition(param0: number, param1: number): void; } export class Task { @@ -21013,12 +21014,12 @@ declare module androidx { } } -declare module androidx { - export module recyclerview { - export module widget { +declare namespace androidx { + export namespace recyclerview { + export namespace widget { export class GridLayoutManager extends androidx.recyclerview.widget.LinearLayoutManager { public static class: java.lang.Class; - public static DEFAULT_SPAN_COUNT: number = -1; + public static readonly DEFAULT_SPAN_COUNT = -1; public constructor(context: globalAndroid.content.Context); public constructor(context: globalAndroid.content.Context, orientation: number, reverseLayout: boolean); public constructor(); @@ -21044,17 +21045,17 @@ declare module androidx { public setSpanSizeLookup(spanSizeLookup: androidx.recyclerview.widget.GridLayoutManager.SpanSizeLookup): void; public getSpanSizeLookup(): androidx.recyclerview.widget.GridLayoutManager.SpanSizeLookup; public setMeasuredDimension(widthSize: number, heightSize: number): void; - public setMeasuredDimension(width: globalAndroid.graphics.Rect, height: number, usedWidth: number): void; + public setMeasuredDimension(childrenBounds: globalAndroid.graphics.Rect, wSpec: number, hSpec: number): void; public scrollHorizontallyBy(dx: number, recycler: androidx.recyclerview.widget.RecyclerView.Recycler, state: androidx.recyclerview.widget.RecyclerView.State): number; public scrollVerticallyBy(dy: number, recycler: androidx.recyclerview.widget.RecyclerView.Recycler, state: androidx.recyclerview.widget.RecyclerView.State): number; public getSpanCount(): number; public setSpanCount(spanCount: number): void; - public onFocusSearchFailed(inc: globalAndroid.view.View, limit: number, maxStart: androidx.recyclerview.widget.RecyclerView.Recycler, minEnd: androidx.recyclerview.widget.RecyclerView.State): globalAndroid.view.View; + public onFocusSearchFailed(focused: globalAndroid.view.View, focusDirection: number, recycler: androidx.recyclerview.widget.RecyclerView.Recycler, state: androidx.recyclerview.widget.RecyclerView.State): globalAndroid.view.View; public supportsPredictiveItemAnimations(): boolean; public computeScrollVectorForPosition(param0: number): globalAndroid.graphics.PointF | null; public prepareForDrop(param0: globalAndroid.view.View, param1: globalAndroid.view.View, param2: number, param3: number): void; } - export module GridLayoutManager { + export namespace GridLayoutManager { export class DefaultSpanSizeLookup extends androidx.recyclerview.widget.GridLayoutManager.SpanSizeLookup { public static class: java.lang.Class; public constructor(); @@ -21063,7 +21064,7 @@ declare module androidx { } export class LayoutParams extends androidx.recyclerview.widget.RecyclerView.LayoutParams { public static class: java.lang.Class; - public static INVALID_SPAN_ID: number = -1; + public static readonly INVALID_SPAN_ID = -1; public constructor(width: number, height: number); public constructor(source: globalAndroid.view.ViewGroup.MarginLayoutParams); public constructor(source: globalAndroid.view.ViewGroup.LayoutParams); @@ -21079,34 +21080,34 @@ declare module androidx { public setSpanIndexCacheEnabled(cacheSpanIndices: boolean): void; public invalidateSpanIndexCache(): void; public isSpanIndexCacheEnabled(): boolean; - public getSpanIndex(size: number, i: number): number; - public getSpanGroupIndex(i: number, this_: number): number; + public getSpanIndex(position: number, spanCount: number): number; + public getSpanGroupIndex(adapterPosition: number, spanCount: number): number; } } } } } -declare module androidx { - export module recyclerview { - export module widget { +declare namespace androidx { + export namespace recyclerview { + export namespace widget { export class ItemTouchHelper extends androidx.recyclerview.widget.RecyclerView.ItemDecoration implements androidx.recyclerview.widget.RecyclerView.OnChildAttachStateChangeListener { public static class: java.lang.Class; - public static UP: number = 1; - public static DOWN: number = 2; - public static LEFT: number = 4; - public static RIGHT: number = 8; - public static START: number = 16; - public static END: number = 32; - public static ACTION_STATE_IDLE: number = 0; - public static ACTION_STATE_SWIPE: number = 1; - public static ACTION_STATE_DRAG: number = 2; - public static ANIMATION_TYPE_SWIPE_SUCCESS: number = 2; - public static ANIMATION_TYPE_SWIPE_CANCEL: number = 4; - public static ANIMATION_TYPE_DRAG: number = 8; + public static readonly UP = 1; + public static readonly DOWN = 2; + public static readonly LEFT = 4; + public static readonly RIGHT = 8; + public static readonly START = 16; + public static readonly END = 32; + public static readonly ACTION_STATE_IDLE = 0; + public static readonly ACTION_STATE_SWIPE = 1; + public static readonly ACTION_STATE_DRAG = 2; + public static readonly ANIMATION_TYPE_SWIPE_SUCCESS = 2; + public static readonly ANIMATION_TYPE_SWIPE_CANCEL = 4; + public static readonly ANIMATION_TYPE_DRAG = 8; public constructor(); public constructor(callback: androidx.recyclerview.widget.ItemTouchHelper.Callback); - public attachToRecyclerView(this_: androidx.recyclerview.widget.RecyclerView | null): void; + public attachToRecyclerView(recyclerView: androidx.recyclerview.widget.RecyclerView | null): void; /** @deprecated */ public onDrawOver(c: globalAndroid.graphics.Canvas, parent: androidx.recyclerview.widget.RecyclerView): void; public onDrawOver(c: globalAndroid.graphics.Canvas, parent: androidx.recyclerview.widget.RecyclerView, state: androidx.recyclerview.widget.RecyclerView.State): void; @@ -21123,11 +21124,11 @@ declare module androidx { public onChildViewAttachedToWindow(param0: globalAndroid.view.View): void; public onChildViewDetachedFromWindow(param0: globalAndroid.view.View): void; } - export module ItemTouchHelper { + export namespace ItemTouchHelper { export abstract class Callback { public static class: java.lang.Class; - public static DEFAULT_DRAG_ANIMATION_DURATION: number = 200; - public static DEFAULT_SWIPE_ANIMATION_DURATION: number = 250; + public static readonly DEFAULT_DRAG_ANIMATION_DURATION = 200; + public static readonly DEFAULT_SWIPE_ANIMATION_DURATION = 250; public constructor(); public static getDefaultUIUtil(): androidx.recyclerview.widget.ItemTouchUIUtil; public static convertToRelativeDirection(flags: number, layoutDirection: number): number; @@ -21144,20 +21145,20 @@ declare module androidx { public getMoveThreshold(viewHolder: androidx.recyclerview.widget.RecyclerView.ViewHolder): number; public getSwipeEscapeVelocity(defaultValue: number): number; public getSwipeVelocityThreshold(defaultValue: number): number; - public chooseDropTarget(diff: androidx.recyclerview.widget.RecyclerView.ViewHolder, score: java.util.List, diff: number, score: number): androidx.recyclerview.widget.RecyclerView.ViewHolder; + public chooseDropTarget(selected: androidx.recyclerview.widget.RecyclerView.ViewHolder, dropTargets: java.util.List, curX: number, curY: number): androidx.recyclerview.widget.RecyclerView.ViewHolder; public onSwiped(param0: androidx.recyclerview.widget.RecyclerView.ViewHolder, param1: number): void; public onSelectedChanged(viewHolder: androidx.recyclerview.widget.RecyclerView.ViewHolder | null, actionState: number): void; - public onMoved(maxRight: androidx.recyclerview.widget.RecyclerView, minTop: androidx.recyclerview.widget.RecyclerView.ViewHolder, maxBottom: number, this_: androidx.recyclerview.widget.RecyclerView.ViewHolder, recyclerView: number, viewHolder: number, fromPos: number): void; + public onMoved(recyclerView: androidx.recyclerview.widget.RecyclerView, viewHolder: androidx.recyclerview.widget.RecyclerView.ViewHolder, fromPos: number, target: androidx.recyclerview.widget.RecyclerView.ViewHolder, toPos: number, x: number, y: number): void; public clearView(recyclerView: androidx.recyclerview.widget.RecyclerView, viewHolder: androidx.recyclerview.widget.RecyclerView.ViewHolder): void; public onChildDraw(c: globalAndroid.graphics.Canvas, recyclerView: androidx.recyclerview.widget.RecyclerView, viewHolder: androidx.recyclerview.widget.RecyclerView.ViewHolder, dX: number, dY: number, actionState: number, isCurrentlyActive: boolean): void; public onChildDrawOver(c: globalAndroid.graphics.Canvas, recyclerView: androidx.recyclerview.widget.RecyclerView, viewHolder: androidx.recyclerview.widget.RecyclerView.ViewHolder, dX: number, dY: number, actionState: number, isCurrentlyActive: boolean): void; public getAnimationDuration(recyclerView: androidx.recyclerview.widget.RecyclerView, animationType: number, animateDx: number, animateDy: number): number; - public interpolateOutOfBoundsScroll(this_: androidx.recyclerview.widget.RecyclerView, recyclerView: number, viewSize: number, viewSizeOutOfBounds: number, totalSize: number): number; + public interpolateOutOfBoundsScroll(recyclerView: androidx.recyclerview.widget.RecyclerView, viewSize: number, viewSizeOutOfBounds: number, totalSize: number, msSinceStartScroll: number): number; } export class ItemTouchHelperGestureListener { public static class: java.lang.Class; public onDown(e: globalAndroid.view.MotionEvent): boolean; - public onLongPress(x: globalAndroid.view.MotionEvent): void; + public onLongPress(e: globalAndroid.view.MotionEvent): void; } export class RecoverAnimation { public static class: java.lang.Class; @@ -21197,9 +21198,9 @@ declare module androidx { } } -declare module androidx { - export module recyclerview { - export module widget { +declare namespace androidx { + export namespace recyclerview { + export namespace widget { export class ItemTouchUIUtil { public static class: java.lang.Class; /** @@ -21221,14 +21222,14 @@ declare module androidx { } } -declare module androidx { - export module recyclerview { - export module widget { +declare namespace androidx { + export namespace recyclerview { + export namespace widget { export class ItemTouchUIUtilImpl extends androidx.recyclerview.widget.ItemTouchUIUtil { public static class: java.lang.Class; - public onDraw(originalElevation: globalAndroid.graphics.Canvas, this_: androidx.recyclerview.widget.RecyclerView, c: globalAndroid.view.View, recyclerView: number, view: number, dX: number, dY: boolean): void; + public onDraw(c: globalAndroid.graphics.Canvas, recyclerView: androidx.recyclerview.widget.RecyclerView, view: globalAndroid.view.View, dX: number, dY: number, actionState: number, isCurrentlyActive: boolean): void; public onDrawOver(c: globalAndroid.graphics.Canvas, recyclerView: androidx.recyclerview.widget.RecyclerView, view: globalAndroid.view.View, dX: number, dY: number, actionState: number, isCurrentlyActive: boolean): void; - public clearView(this_: globalAndroid.view.View): void; + public clearView(view: globalAndroid.view.View): void; public onSelected(view: globalAndroid.view.View): void; public onDraw(param0: globalAndroid.graphics.Canvas, param1: androidx.recyclerview.widget.RecyclerView, param2: globalAndroid.view.View, param3: number, param4: number, param5: number, param6: boolean): void; public onDrawOver(param0: globalAndroid.graphics.Canvas, param1: androidx.recyclerview.widget.RecyclerView, param2: globalAndroid.view.View, param3: number, param4: number, param5: number, param6: boolean): void; @@ -21239,9 +21240,9 @@ declare module androidx { } } -declare module androidx { - export module recyclerview { - export module widget { +declare namespace androidx { + export namespace recyclerview { + export namespace widget { export class LayoutState { public static class: java.lang.Class; public toString(): string; @@ -21250,14 +21251,14 @@ declare module androidx { } } -declare module androidx { - export module recyclerview { - export module widget { +declare namespace androidx { + export namespace recyclerview { + export namespace widget { export class LinearLayoutManager extends androidx.recyclerview.widget.RecyclerView.LayoutManager implements androidx.recyclerview.widget.ItemTouchHelper.ViewDropHandler, androidx.recyclerview.widget.RecyclerView.SmoothScroller.ScrollVectorProvider { public static class: java.lang.Class; - public static HORIZONTAL: number = 0; - public static VERTICAL: number = 1; - public static INVALID_OFFSET: number = -2147483648; + public static readonly HORIZONTAL = 0; + public static readonly VERTICAL = 1; + public static readonly INVALID_OFFSET = -2147483648; public constructor(); public constructor(context: globalAndroid.content.Context); public constructor(context: globalAndroid.content.Context, orientation: number, reverseLayout: boolean); @@ -21281,11 +21282,11 @@ declare module androidx { public setOrientation(orientation: number): void; public getReverseLayout(): boolean; public setReverseLayout(reverseLayout: boolean): void; - public findViewByPosition(this_: number): globalAndroid.view.View; + public findViewByPosition(position: number): globalAndroid.view.View; public getExtraLayoutSpace(state: androidx.recyclerview.widget.RecyclerView.State): number; public smoothScrollToPosition(recyclerView: androidx.recyclerview.widget.RecyclerView, state: androidx.recyclerview.widget.RecyclerView.State, position: number): void; public computeScrollVectorForPosition(targetPosition: number): globalAndroid.graphics.PointF; - public onLayoutChildren(extraForEnd: androidx.recyclerview.widget.RecyclerView.Recycler, current: androidx.recyclerview.widget.RecyclerView.State): void; + public onLayoutChildren(recycler: androidx.recyclerview.widget.RecyclerView.Recycler, state: androidx.recyclerview.widget.RecyclerView.State): void; public onLayoutCompleted(state: androidx.recyclerview.widget.RecyclerView.State): void; public isLayoutRTL(): boolean; public scrollToPosition(position: number): void; @@ -21300,7 +21301,7 @@ declare module androidx { public computeVerticalScrollRange(state: androidx.recyclerview.widget.RecyclerView.State): number; public setSmoothScrollbarEnabled(enabled: boolean): void; public isSmoothScrollbarEnabled(): boolean; - public collectInitialPrefetchPositions(anchorPos: number, anchorPos: androidx.recyclerview.widget.RecyclerView.LayoutManager.LayoutPrefetchRegistry): void; + public collectInitialPrefetchPositions(adapterItemCount: number, layoutPrefetchRegistry: androidx.recyclerview.widget.RecyclerView.LayoutManager.LayoutPrefetchRegistry): void; public setInitialPrefetchItemCount(itemCount: number): void; public getInitialPrefetchItemCount(): number; public collectAdjacentPrefetchPositions(dx: number, dy: number, state: androidx.recyclerview.widget.RecyclerView.State, layoutPrefetchRegistry: androidx.recyclerview.widget.RecyclerView.LayoutManager.LayoutPrefetchRegistry): void; @@ -21309,17 +21310,17 @@ declare module androidx { public findFirstCompletelyVisibleItemPosition(): number; public findLastVisibleItemPosition(): number; public findLastCompletelyVisibleItemPosition(): number; - public onFocusSearchFailed(nextFocus: globalAndroid.view.View, this_: number, focused: androidx.recyclerview.widget.RecyclerView.Recycler, focusDirection: androidx.recyclerview.widget.RecyclerView.State): globalAndroid.view.View; + public onFocusSearchFailed(focused: globalAndroid.view.View, focusDirection: number, recycler: androidx.recyclerview.widget.RecyclerView.Recycler, state: androidx.recyclerview.widget.RecyclerView.State): globalAndroid.view.View; public supportsPredictiveItemAnimations(): boolean; public prepareForDrop(view: globalAndroid.view.View, target: globalAndroid.view.View, x: number, y: number): void; public prepareForDrop(param0: globalAndroid.view.View, param1: globalAndroid.view.View, param2: number, param3: number): void; public computeScrollVectorForPosition(param0: number): globalAndroid.graphics.PointF | null; } - export module LinearLayoutManager { + export namespace LinearLayoutManager { export class AnchorInfo { public static class: java.lang.Class; public toString(): string; - public assignFromViewAndKeepVisibleRect(estimatedChildStart: globalAndroid.view.View, layoutStart: number): void; + public assignFromViewAndKeepVisibleRect(child: globalAndroid.view.View, position: number): void; public assignFromView(child: globalAndroid.view.View, position: number): void; } export class LayoutChunkResult { @@ -21334,7 +21335,7 @@ declare module androidx { public static class: java.lang.Class; public assignPositionFromScrapList(): void; public assignPositionFromScrapList(ignore: globalAndroid.view.View): void; - public nextViewInLimitedList(lp: globalAndroid.view.View): globalAndroid.view.View; + public nextViewInLimitedList(ignore: globalAndroid.view.View): globalAndroid.view.View; } export class SavedState { public static class: java.lang.Class; @@ -21349,14 +21350,14 @@ declare module androidx { } } -declare module androidx { - export module recyclerview { - export module widget { +declare namespace androidx { + export namespace recyclerview { + export namespace widget { export class LinearSmoothScroller extends androidx.recyclerview.widget.RecyclerView.SmoothScroller { public static class: java.lang.Class; - public static SNAP_TO_START: number = -1; - public static SNAP_TO_END: number = 1; - public static SNAP_TO_ANY: number = 0; + public static readonly SNAP_TO_START = -1; + public static readonly SNAP_TO_END = 1; + public static readonly SNAP_TO_ANY = 0; public mLinearInterpolator: globalAndroid.view.animation.LinearInterpolator; public mDecelerateInterpolator: globalAndroid.view.animation.DecelerateInterpolator; public mTargetVector: globalAndroid.graphics.PointF; @@ -21373,8 +21374,8 @@ declare module androidx { public calculateTimeForScrolling(dx: number): number; public getHorizontalSnapPreference(): number; public getVerticalSnapPreference(): number; - public updateActionForInterimTarget(this_: androidx.recyclerview.widget.RecyclerView.SmoothScroller.Action): void; - public calculateDtToFit(dtEnd: number, this_: number, viewStart: number, viewEnd: number, boxStart: number): number; + public updateActionForInterimTarget(action: androidx.recyclerview.widget.RecyclerView.SmoothScroller.Action): void; + public calculateDtToFit(viewStart: number, viewEnd: number, boxStart: number, boxEnd: number, snapPreference: number): number; public calculateDyToMakeVisible(view: globalAndroid.view.View, snapPreference: number): number; public calculateDxToMakeVisible(view: globalAndroid.view.View, snapPreference: number): number; } @@ -21382,23 +21383,23 @@ declare module androidx { } } -declare module androidx { - export module recyclerview { - export module widget { +declare namespace androidx { + export namespace recyclerview { + export namespace widget { export class LinearSnapHelper extends androidx.recyclerview.widget.SnapHelper { public static class: java.lang.Class; public constructor(); public calculateDistanceToFinalSnap(layoutManager: androidx.recyclerview.widget.RecyclerView.LayoutManager, targetView: globalAndroid.view.View): androidNative.Array; - public findTargetSnapPosition(vDeltaJump: androidx.recyclerview.widget.RecyclerView.LayoutManager, this_: number, layoutManager: number): number; + public findTargetSnapPosition(layoutManager: androidx.recyclerview.widget.RecyclerView.LayoutManager, velocityX: number, velocityY: number): number; public findSnapView(layoutManager: androidx.recyclerview.widget.RecyclerView.LayoutManager): globalAndroid.view.View; } } } } -declare module androidx { - export module recyclerview { - export module widget { +declare namespace androidx { + export namespace recyclerview { + export namespace widget { export abstract class ListAdapter extends androidx.recyclerview.widget.RecyclerView.Adapter { public static class: java.lang.Class>; public constructor(); @@ -21412,9 +21413,9 @@ declare module androidx { } } -declare module androidx { - export module recyclerview { - export module widget { +declare namespace androidx { + export namespace recyclerview { + export namespace widget { export class ListUpdateCallback { public static class: java.lang.Class; /** @@ -21436,9 +21437,9 @@ declare module androidx { } } -declare module androidx { - export module recyclerview { - export module widget { +declare namespace androidx { + export namespace recyclerview { + export namespace widget { export class MessageThreadUtil extends androidx.recyclerview.widget.ThreadUtil { public static class: java.lang.Class>; public getMainThreadProxy(callback: androidx.recyclerview.widget.ThreadUtil.MainThreadCallback): androidx.recyclerview.widget.ThreadUtil.MainThreadCallback; @@ -21446,7 +21447,7 @@ declare module androidx { public getMainThreadProxy(param0: androidx.recyclerview.widget.ThreadUtil.MainThreadCallback): androidx.recyclerview.widget.ThreadUtil.MainThreadCallback; public getBackgroundProxy(param0: androidx.recyclerview.widget.ThreadUtil.BackgroundCallback): androidx.recyclerview.widget.ThreadUtil.BackgroundCallback; } - export module MessageThreadUtil { + export namespace MessageThreadUtil { export class MessageQueue { public static class: java.lang.Class; } @@ -21465,13 +21466,13 @@ declare module androidx { } } -declare module androidx { - export module recyclerview { - export module widget { +declare namespace androidx { + export namespace recyclerview { + export namespace widget { export class OpReorderer { public static class: java.lang.Class; } - export module OpReorderer { + export namespace OpReorderer { export class Callback { public static class: java.lang.Class; /** @@ -21490,14 +21491,14 @@ declare module androidx { } } -declare module androidx { - export module recyclerview { - export module widget { +declare namespace androidx { + export namespace recyclerview { + export namespace widget { export abstract class OrientationHelper { public static class: java.lang.Class; public mLayoutManager: androidx.recyclerview.widget.RecyclerView.LayoutManager; - public static HORIZONTAL: number = 0; - public static VERTICAL: number = 1; + public static readonly HORIZONTAL = 0; + public static readonly VERTICAL = 1; public getLayoutManager(): androidx.recyclerview.widget.RecyclerView.LayoutManager; public onLayoutComplete(): void; public getTotalSpaceChange(): number; @@ -21524,39 +21525,39 @@ declare module androidx { } } -declare module androidx { - export module recyclerview { - export module widget { +declare namespace androidx { + export namespace recyclerview { + export namespace widget { export class PagerSnapHelper extends androidx.recyclerview.widget.SnapHelper { public static class: java.lang.Class; public constructor(); public calculateDistanceToFinalSnap(layoutManager: androidx.recyclerview.widget.RecyclerView.LayoutManager, targetView: globalAndroid.view.View): androidNative.Array | null; public findSnapView(layoutManager: androidx.recyclerview.widget.RecyclerView.LayoutManager): globalAndroid.view.View | null; - public findTargetSnapPosition(vectorProvider: androidx.recyclerview.widget.RecyclerView.LayoutManager, vectorForEnd: number, this_: number): number; + public findTargetSnapPosition(layoutManager: androidx.recyclerview.widget.RecyclerView.LayoutManager, velocityX: number, velocityY: number): number; public createSnapScroller(layoutManager: androidx.recyclerview.widget.RecyclerView.LayoutManager): androidx.recyclerview.widget.LinearSmoothScroller; } } } } -declare module androidx { - export module recyclerview { - export module widget { +declare namespace androidx { + export namespace recyclerview { + export namespace widget { export class RecyclerView implements androidx.core.view.ScrollingView, androidx.core.view.NestedScrollingChild2 { public static class: java.lang.Class; - public static HORIZONTAL: number = 0; - public static VERTICAL: number = 1; - public static NO_POSITION: number = -1; - public static NO_ID: number = -1; - public static INVALID_TYPE: number = -1; - public static TOUCH_SLOP_DEFAULT: number = 0; - public static TOUCH_SLOP_PAGING: number = 1; - public static SCROLL_STATE_IDLE: number = 0; - public static SCROLL_STATE_DRAGGING: number = 1; - public static SCROLL_STATE_SETTLING: number = 2; + public static readonly HORIZONTAL = 0; + public static readonly VERTICAL = 1; + public static readonly NO_POSITION = -1; + public static readonly NO_ID = -1; + public static readonly INVALID_TYPE = -1; + public static readonly TOUCH_SLOP_DEFAULT = 0; + public static readonly TOUCH_SLOP_PAGING = 1; + public static readonly SCROLL_STATE_IDLE = 0; + public static readonly SCROLL_STATE_DRAGGING = 1; + public static readonly SCROLL_STATE_SETTLING = 2; public constructor(context: globalAndroid.content.Context); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet | null); - public constructor(verticalThumbDrawable: globalAndroid.content.Context, verticalTrackDrawable: globalAndroid.util.AttributeSet | null, horizontalThumbDrawable: number); + public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet | null, defStyle: number); public getCompatAccessibilityDelegate(): androidx.recyclerview.widget.RecyclerViewAccessibilityDelegate | null; public setAccessibilityDelegateCompat(accessibilityDelegate: androidx.recyclerview.widget.RecyclerViewAccessibilityDelegate | null): void; public setHasFixedSize(hasFixedSize: boolean): void; @@ -21607,17 +21608,17 @@ declare module androidx { public computeVerticalScrollOffset(): number; public computeVerticalScrollExtent(): number; public computeVerticalScrollRange(): number; - public setLayoutFrozen(cancelEvent: boolean): void; + public setLayoutFrozen(frozen: boolean): void; public isLayoutFrozen(): boolean; public smoothScrollBy(dx: number, dy: number): void; public smoothScrollBy(dx: number, dy: number, interpolator: globalAndroid.view.animation.Interpolator | null): void; - public fling(canScroll: number, this_: number): boolean; + public fling(velocityX: number, velocityY: number): boolean; public stopScroll(): void; public getMinFlingVelocity(): number; public getMaxFlingVelocity(): number; public setEdgeEffectFactory(edgeEffectFactory: androidx.recyclerview.widget.RecyclerView.EdgeEffectFactory): void; public getEdgeEffectFactory(): androidx.recyclerview.widget.RecyclerView.EdgeEffectFactory; - public focusSearch(found: globalAndroid.view.View, rtl: number): globalAndroid.view.View; + public focusSearch(focused: globalAndroid.view.View, direction: number): globalAndroid.view.View; public requestChildFocus(child: globalAndroid.view.View, focused: globalAndroid.view.View): void; public requestChildRectangleOnScreen(child: globalAndroid.view.View, rect: globalAndroid.graphics.Rect, immediate: boolean): boolean; public addFocusables(views: java.util.ArrayList, direction: number, focusableMode: number): void; @@ -21627,11 +21628,11 @@ declare module androidx { public isAttachedToWindow(): boolean; public addOnItemTouchListener(listener: androidx.recyclerview.widget.RecyclerView.OnItemTouchListener): void; public removeOnItemTouchListener(listener: androidx.recyclerview.widget.RecyclerView.OnItemTouchListener): void; - public onInterceptTouchEvent(dy: globalAndroid.view.MotionEvent): boolean; - public requestDisallowInterceptTouchEvent(i: boolean): void; - public onTouchEvent(startScroll: globalAndroid.view.MotionEvent): boolean; - public onGenericMotionEvent(hScroll: globalAndroid.view.MotionEvent): boolean; - public onMeasure(heightMode: number, measureSpecModeIsExactly: number): void; + public onInterceptTouchEvent(e: globalAndroid.view.MotionEvent): boolean; + public requestDisallowInterceptTouchEvent(disallowIntercept: boolean): void; + public onTouchEvent(e: globalAndroid.view.MotionEvent): boolean; + public onGenericMotionEvent(event: globalAndroid.view.MotionEvent): boolean; + public onMeasure(widthSpec: number, heightSpec: number): void; public onSizeChanged(w: number, h: number, oldw: number, oldh: number): void; public setItemAnimator(animator: androidx.recyclerview.widget.RecyclerView.ItemAnimator | null): void; public isComputingLayout(): boolean; @@ -21640,8 +21641,8 @@ declare module androidx { public removeDetachedView(child: globalAndroid.view.View, animate: boolean): void; public onLayout(changed: boolean, l: number, t: number, r: number, b: number): void; public requestLayout(): void; - public draw(restore: globalAndroid.graphics.Canvas): void; - public onDraw(this_: globalAndroid.graphics.Canvas): void; + public draw(c: globalAndroid.graphics.Canvas): void; + public onDraw(c: globalAndroid.graphics.Canvas): void; public checkLayoutParams(p: globalAndroid.view.ViewGroup.LayoutParams): boolean; public generateDefaultLayoutParams(): globalAndroid.view.ViewGroup.LayoutParams; public generateLayoutParams(attrs: globalAndroid.util.AttributeSet): globalAndroid.view.ViewGroup.LayoutParams; @@ -21661,14 +21662,14 @@ declare module androidx { /** @deprecated */ public findViewHolderForPosition(position: number): androidx.recyclerview.widget.RecyclerView.ViewHolder | null; public findViewHolderForLayoutPosition(position: number): androidx.recyclerview.widget.RecyclerView.ViewHolder | null; - public findViewHolderForAdapterPosition(i: number): androidx.recyclerview.widget.RecyclerView.ViewHolder | null; - public findViewHolderForItemId(i: number): androidx.recyclerview.widget.RecyclerView.ViewHolder; - public findChildViewUnder(translationX: number, translationY: number): globalAndroid.view.View | null; + public findViewHolderForAdapterPosition(position: number): androidx.recyclerview.widget.RecyclerView.ViewHolder | null; + public findViewHolderForItemId(id: number): androidx.recyclerview.widget.RecyclerView.ViewHolder; + public findChildViewUnder(x: number, y: number): globalAndroid.view.View | null; public drawChild(canvas: globalAndroid.graphics.Canvas, child: globalAndroid.view.View, drawingTime: number): boolean; - public offsetChildrenVertical(this_: number): void; + public offsetChildrenVertical(dy: number): void; public onChildAttachedToWindow(child: globalAndroid.view.View): void; public onChildDetachedFromWindow(child: globalAndroid.view.View): void; - public offsetChildrenHorizontal(this_: number): void; + public offsetChildrenHorizontal(dx: number): void; public getDecoratedBoundsWithMargins(view: globalAndroid.view.View, outBounds: globalAndroid.graphics.Rect): void; public onScrolled(dx: number, dy: number): void; public onScrollStateChanged(state: number): void; @@ -21700,14 +21701,14 @@ declare module androidx { public dispatchNestedFling(param0: number, param1: number, param2: boolean): boolean; public dispatchNestedPreFling(param0: number, param1: number): boolean; } - export module RecyclerView { + export namespace RecyclerView { export abstract class Adapter extends java.lang.Object { public static class: java.lang.Class>; public constructor(); public onCreateViewHolder(param0: globalAndroid.view.ViewGroup, param1: number): VH; public onBindViewHolder(param0: VH, param1: number): void; public onBindViewHolder(holder: VH, position: number, payloads: java.util.List): void; - public createViewHolder(this_: globalAndroid.view.ViewGroup, parent: number): VH; + public createViewHolder(parent: globalAndroid.view.ViewGroup, viewType: number): VH; public bindViewHolder(holder: VH, position: number): void; public getItemViewType(position: number): number; public setHasStableIds(hasStableIds: boolean): void; @@ -21739,10 +21740,10 @@ declare module androidx { public hasObservers(): boolean; public notifyChanged(): void; public notifyItemRangeChanged(positionStart: number, itemCount: number): void; - public notifyItemRangeChanged(this_: number, positionStart: number, itemCount: any): void; - public notifyItemRangeInserted(this_: number, positionStart: number): void; - public notifyItemRangeRemoved(this_: number, positionStart: number): void; - public notifyItemMoved(this_: number, fromPosition: number): void; + public notifyItemRangeChanged(positionStart: number, itemCount: number, payload: any): void; + public notifyItemRangeInserted(positionStart: number, itemCount: number): void; + public notifyItemRangeRemoved(positionStart: number, itemCount: number): void; + public notifyItemMoved(fromPosition: number, toPosition: number): void; } export abstract class AdapterDataObserver { public static class: java.lang.Class; @@ -21767,14 +21768,14 @@ declare module androidx { } export class EdgeEffectFactory { public static class: java.lang.Class; - public static DIRECTION_LEFT: number = 0; - public static DIRECTION_TOP: number = 1; - public static DIRECTION_RIGHT: number = 2; - public static DIRECTION_BOTTOM: number = 3; + public static readonly DIRECTION_LEFT = 0; + public static readonly DIRECTION_TOP = 1; + public static readonly DIRECTION_RIGHT = 2; + public static readonly DIRECTION_BOTTOM = 3; public constructor(); public createEdgeEffect(view: androidx.recyclerview.widget.RecyclerView, direction: number): globalAndroid.widget.EdgeEffect; } - export module EdgeEffectFactory { + export namespace EdgeEffectFactory { export class EdgeDirection { public static class: java.lang.Class; /** @@ -21787,11 +21788,11 @@ declare module androidx { } export abstract class ItemAnimator { public static class: java.lang.Class; - public static FLAG_CHANGED: number = 2; - public static FLAG_REMOVED: number = 8; - public static FLAG_INVALIDATED: number = 4; - public static FLAG_MOVED: number = 2048; - public static FLAG_APPEARED_IN_PRE_LAYOUT: number = 4096; + public static readonly FLAG_CHANGED = 2; + public static readonly FLAG_REMOVED = 8; + public static readonly FLAG_INVALIDATED = 4; + public static readonly FLAG_MOVED = 2048; + public static readonly FLAG_APPEARED_IN_PRE_LAYOUT = 4096; public constructor(); public getMoveDuration(): number; public setMoveDuration(moveDuration: number): void; @@ -21821,7 +21822,7 @@ declare module androidx { public dispatchAnimationsFinished(): void; public obtainHolderInfo(): androidx.recyclerview.widget.RecyclerView.ItemAnimator.ItemHolderInfo; } - export module ItemAnimator { + export namespace ItemAnimator { export class AdapterChanges { public static class: java.lang.Class; /** @@ -21934,7 +21935,7 @@ declare module androidx { public getPosition(view: globalAndroid.view.View): number; public getItemViewType(view: globalAndroid.view.View): number; public findContainingItemView(view: globalAndroid.view.View): globalAndroid.view.View | null; - public findViewByPosition(vh: number): globalAndroid.view.View | null; + public findViewByPosition(position: number): globalAndroid.view.View | null; public detachView(child: globalAndroid.view.View): void; public detachViewAt(index: number): void; public attachView(child: globalAndroid.view.View, index: number, lp: androidx.recyclerview.widget.RecyclerView.LayoutParams): void; @@ -21966,7 +21967,7 @@ declare module androidx { public offsetChildrenVertical(dy: number): void; public ignoreView(view: globalAndroid.view.View): void; public stopIgnoringView(view: globalAndroid.view.View): void; - public detachAndScrapAttachedViews(i: androidx.recyclerview.widget.RecyclerView.Recycler): void; + public detachAndScrapAttachedViews(recycler: androidx.recyclerview.widget.RecyclerView.Recycler): void; public measureChild(child: globalAndroid.view.View, widthUsed: number, heightUsed: number): void; public isMeasurementCacheEnabled(): boolean; public setMeasurementCacheEnabled(measurementCacheEnabled: boolean): void; @@ -21978,7 +21979,7 @@ declare module androidx { public getDecoratedMeasuredHeight(child: globalAndroid.view.View): number; public layoutDecorated(child: globalAndroid.view.View, left: number, top: number, right: number, bottom: number): void; public layoutDecoratedWithMargins(child: globalAndroid.view.View, left: number, top: number, right: number, bottom: number): void; - public getTransformedBoundingBox(tempRectF: globalAndroid.view.View, childMatrix: boolean, this_: globalAndroid.graphics.Rect): void; + public getTransformedBoundingBox(child: globalAndroid.view.View, includeDecorInsets: boolean, out: globalAndroid.graphics.Rect): void; public getDecoratedBoundsWithMargins(view: globalAndroid.view.View, outBounds: globalAndroid.graphics.Rect): void; public getDecoratedLeft(child: globalAndroid.view.View): number; public getDecoratedTop(child: globalAndroid.view.View): number; @@ -22018,7 +22019,7 @@ declare module androidx { public onSaveInstanceState(): globalAndroid.os.Parcelable | null; public onRestoreInstanceState(state: globalAndroid.os.Parcelable): void; public onScrollStateChanged(state: number): void; - public removeAndRecycleAllViews(i: androidx.recyclerview.widget.RecyclerView.Recycler): void; + public removeAndRecycleAllViews(recycler: androidx.recyclerview.widget.RecyclerView.Recycler): void; public onInitializeAccessibilityNodeInfo(recycler: androidx.recyclerview.widget.RecyclerView.Recycler, state: androidx.recyclerview.widget.RecyclerView.State, info: androidx.core.view.accessibility.AccessibilityNodeInfoCompat): void; public onInitializeAccessibilityEvent(event: globalAndroid.view.accessibility.AccessibilityEvent): void; public onInitializeAccessibilityEvent(recycler: androidx.recyclerview.widget.RecyclerView.Recycler, state: androidx.recyclerview.widget.RecyclerView.State, event: globalAndroid.view.accessibility.AccessibilityEvent): void; @@ -22032,7 +22033,7 @@ declare module androidx { public performAccessibilityActionForItem(recycler: androidx.recyclerview.widget.RecyclerView.Recycler, state: androidx.recyclerview.widget.RecyclerView.State, view: globalAndroid.view.View, action: number, args: globalAndroid.os.Bundle | null): boolean; public static getProperties(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet | null, defStyleAttr: number, defStyleRes: number): androidx.recyclerview.widget.RecyclerView.LayoutManager.Properties; } - export module LayoutManager { + export namespace LayoutManager { export class LayoutPrefetchRegistry { public static class: java.lang.Class; /** @@ -22123,21 +22124,21 @@ declare module androidx { public clear(): void; public setMaxRecycledViews(viewType: number, max: number): void; public getRecycledViewCount(viewType: number): number; - public getRecycledView(this_: number): androidx.recyclerview.widget.RecyclerView.ViewHolder | null; + public getRecycledView(viewType: number): androidx.recyclerview.widget.RecyclerView.ViewHolder | null; public putRecycledView(scrap: androidx.recyclerview.widget.RecyclerView.ViewHolder): void; } - export module RecycledViewPool { + export namespace RecycledViewPool { export class ScrapData { public static class: java.lang.Class; } } export class Recycler { public static class: java.lang.Class; - public constructor(this$0: androidx.recyclerview.widget.RecyclerView); + public constructor(outer: androidx.recyclerview.widget.RecyclerView); public clear(): void; public setViewCacheSize(viewCount: number): void; public getScrapList(): java.util.List; - public bindViewToPosition(rvLayoutParams: globalAndroid.view.View, this_: number): void; + public bindViewToPosition(view: globalAndroid.view.View, position: number): void; public convertPreLayoutPositionToPostLayout(position: number): number; public getViewForPosition(position: number): globalAndroid.view.View; public recycleView(view: globalAndroid.view.View): void; @@ -22199,10 +22200,10 @@ declare module androidx { public onSeekTargetStep(param0: number, param1: number, param2: androidx.recyclerview.widget.RecyclerView.State, param3: androidx.recyclerview.widget.RecyclerView.SmoothScroller.Action): void; public onTargetFound(param0: globalAndroid.view.View, param1: androidx.recyclerview.widget.RecyclerView.State, param2: androidx.recyclerview.widget.RecyclerView.SmoothScroller.Action): void; } - export module SmoothScroller { + export namespace SmoothScroller { export class Action { public static class: java.lang.Class; - public static UNDEFINED_DURATION: number = -2147483648; + public static readonly UNDEFINED_DURATION = -2147483648; public constructor(dx: number, dy: number); public constructor(dx: number, dy: number, duration: number); public constructor(dx: number, dy: number, duration: number, interpolator: globalAndroid.view.animation.Interpolator | null); @@ -22283,9 +22284,9 @@ declare module androidx { } } -declare module androidx { - export module recyclerview { - export module widget { +declare namespace androidx { + export namespace recyclerview { + export namespace widget { export class RecyclerViewAccessibilityDelegate extends androidx.core.view.AccessibilityDelegateCompat { public static class: java.lang.Class; public constructor(); @@ -22293,10 +22294,10 @@ declare module androidx { public constructor(recyclerView: androidx.recyclerview.widget.RecyclerView); public performAccessibilityAction(host: globalAndroid.view.View, action: number, args: globalAndroid.os.Bundle): boolean; public onInitializeAccessibilityNodeInfo(host: globalAndroid.view.View, info: androidx.core.view.accessibility.AccessibilityNodeInfoCompat): void; - public onInitializeAccessibilityEvent(this_: globalAndroid.view.View, host: globalAndroid.view.accessibility.AccessibilityEvent): void; + public onInitializeAccessibilityEvent(host: globalAndroid.view.View, event: globalAndroid.view.accessibility.AccessibilityEvent): void; public getItemDelegate(): androidx.core.view.AccessibilityDelegateCompat; } - export module RecyclerViewAccessibilityDelegate { + export namespace RecyclerViewAccessibilityDelegate { export class ItemDelegate extends androidx.core.view.AccessibilityDelegateCompat { public static class: java.lang.Class; public constructor(); @@ -22310,9 +22311,9 @@ declare module androidx { } } -declare module androidx { - export module recyclerview { - export module widget { +declare namespace androidx { + export namespace recyclerview { + export namespace widget { export class ScrollbarHelper { public static class: java.lang.Class; } @@ -22320,9 +22321,9 @@ declare module androidx { } } -declare module androidx { - export module recyclerview { - export module widget { +declare namespace androidx { + export namespace recyclerview { + export namespace widget { export abstract class SimpleItemAnimator extends androidx.recyclerview.widget.RecyclerView.ItemAnimator { public static class: java.lang.Class; public constructor(); @@ -22333,7 +22334,7 @@ declare module androidx { public animateDisappearance(viewHolder: androidx.recyclerview.widget.RecyclerView.ViewHolder, preLayoutInfo: androidx.recyclerview.widget.RecyclerView.ItemAnimator.ItemHolderInfo, postLayoutInfo: androidx.recyclerview.widget.RecyclerView.ItemAnimator.ItemHolderInfo | null): boolean; public animateAppearance(viewHolder: androidx.recyclerview.widget.RecyclerView.ViewHolder, preLayoutInfo: androidx.recyclerview.widget.RecyclerView.ItemAnimator.ItemHolderInfo | null, postLayoutInfo: androidx.recyclerview.widget.RecyclerView.ItemAnimator.ItemHolderInfo): boolean; public animatePersistence(viewHolder: androidx.recyclerview.widget.RecyclerView.ViewHolder, preInfo: androidx.recyclerview.widget.RecyclerView.ItemAnimator.ItemHolderInfo, postInfo: androidx.recyclerview.widget.RecyclerView.ItemAnimator.ItemHolderInfo): boolean; - public animateChange(toTop: androidx.recyclerview.widget.RecyclerView.ViewHolder, this_: androidx.recyclerview.widget.RecyclerView.ViewHolder, oldHolder: androidx.recyclerview.widget.RecyclerView.ItemAnimator.ItemHolderInfo, newHolder: androidx.recyclerview.widget.RecyclerView.ItemAnimator.ItemHolderInfo): boolean; + public animateChange(oldHolder: androidx.recyclerview.widget.RecyclerView.ViewHolder, newHolder: androidx.recyclerview.widget.RecyclerView.ViewHolder, preInfo: androidx.recyclerview.widget.RecyclerView.ItemAnimator.ItemHolderInfo, postInfo: androidx.recyclerview.widget.RecyclerView.ItemAnimator.ItemHolderInfo): boolean; public animateRemove(param0: androidx.recyclerview.widget.RecyclerView.ViewHolder): boolean; public animateAdd(param0: androidx.recyclerview.widget.RecyclerView.ViewHolder): boolean; public animateMove(param0: androidx.recyclerview.widget.RecyclerView.ViewHolder, param1: number, param2: number, param3: number, param4: number): boolean; @@ -22359,9 +22360,9 @@ declare module androidx { } } -declare module androidx { - export module recyclerview { - export module widget { +declare namespace androidx { + export namespace recyclerview { + export namespace widget { export abstract class SnapHelper extends androidx.recyclerview.widget.RecyclerView.OnFlingListener { public static class: java.lang.Class; public constructor(); @@ -22379,12 +22380,12 @@ declare module androidx { } } -declare module androidx { - export module recyclerview { - export module widget { +declare namespace androidx { + export namespace recyclerview { + export namespace widget { export class SortedList extends java.lang.Object { public static class: java.lang.Class>; - public static INVALID_POSITION: number = -1; + public static readonly INVALID_POSITION = -1; public constructor(klass: java.lang.Class, callback: androidx.recyclerview.widget.SortedList.Callback); public constructor(klass: java.lang.Class, callback: androidx.recyclerview.widget.SortedList.Callback, initialCapacity: number); public size(): number; @@ -22399,13 +22400,13 @@ declare module androidx { public endBatchedUpdates(): void; public remove(item: T): boolean; public removeItemAt(index: number): T; - public updateItemAt(this_: number, index: T): void; + public updateItemAt(index: number, item: T): void; public recalculatePositionOfItemAt(index: number): void; public get(index: number): T; - public indexOf(this_: T): number; + public indexOf(item: T): number; public clear(): void; } - export module SortedList { + export namespace SortedList { export class BatchedCallback extends androidx.recyclerview.widget.SortedList.Callback { public static class: java.lang.Class>; public constructor(); @@ -22444,9 +22445,9 @@ declare module androidx { } } -declare module androidx { - export module recyclerview { - export module widget { +declare namespace androidx { + export namespace recyclerview { + export namespace widget { export abstract class SortedListAdapterCallback extends androidx.recyclerview.widget.SortedList.Callback { public static class: java.lang.Class>; public constructor(); @@ -22465,16 +22466,16 @@ declare module androidx { } } -declare module androidx { - export module recyclerview { - export module widget { +declare namespace androidx { + export namespace recyclerview { + export namespace widget { export class StaggeredGridLayoutManager extends androidx.recyclerview.widget.RecyclerView.LayoutManager implements androidx.recyclerview.widget.RecyclerView.SmoothScroller.ScrollVectorProvider { public static class: java.lang.Class; - public static HORIZONTAL: number = 0; - public static VERTICAL: number = 1; - public static GAP_HANDLING_NONE: number = 0; - public static GAP_HANDLING_LAZY: number = 1; - public static GAP_HANDLING_MOVE_ITEMS_BETWEEN_SPANS: number = 2; + public static readonly HORIZONTAL = 0; + public static readonly VERTICAL = 1; + public static readonly GAP_HANDLING_NONE = 0; + public static readonly GAP_HANDLING_LAZY = 1; + public static readonly GAP_HANDLING_MOVE_ITEMS_BETWEEN_SPANS = 2; public constructor(); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet, defStyleAttr: number, defStyleRes: number); public constructor(spanCount: number, orientation: number); @@ -22482,8 +22483,8 @@ declare module androidx { public onScrollStateChanged(state: number): void; /** @deprecated */ public onDetachedFromWindow(view: androidx.recyclerview.widget.RecyclerView): void; - public onDetachedFromWindow(this_: androidx.recyclerview.widget.RecyclerView, view: androidx.recyclerview.widget.RecyclerView.Recycler): void; - public setSpanCount(this_: number): void; + public onDetachedFromWindow(view: androidx.recyclerview.widget.RecyclerView, recycler: androidx.recyclerview.widget.RecyclerView.Recycler): void; + public setSpanCount(spanCount: number): void; public setOrientation(orientation: number): void; public setReverseLayout(reverseLayout: boolean): void; public getGapStrategy(): number; @@ -22493,14 +22494,14 @@ declare module androidx { public invalidateSpanAssignments(): void; public getReverseLayout(): boolean; public setMeasuredDimension(widthSize: number, heightSize: number): void; - public setMeasuredDimension(width: globalAndroid.graphics.Rect, height: number, usedWidth: number): void; + public setMeasuredDimension(childrenBounds: globalAndroid.graphics.Rect, wSpec: number, hSpec: number): void; public onLayoutChildren(recycler: androidx.recyclerview.widget.RecyclerView.Recycler, state: androidx.recyclerview.widget.RecyclerView.State): void; public onLayoutCompleted(state: androidx.recyclerview.widget.RecyclerView.State): void; public supportsPredictiveItemAnimations(): boolean; - public findFirstVisibleItemPositions(this_: androidNative.Array): androidNative.Array; - public findFirstCompletelyVisibleItemPositions(this_: androidNative.Array): androidNative.Array; - public findLastVisibleItemPositions(this_: androidNative.Array): androidNative.Array; - public findLastCompletelyVisibleItemPositions(this_: androidNative.Array): androidNative.Array; + public findFirstVisibleItemPositions(into: androidNative.Array): androidNative.Array; + public findFirstCompletelyVisibleItemPositions(into: androidNative.Array): androidNative.Array; + public findLastVisibleItemPositions(into: androidNative.Array): androidNative.Array; + public findLastCompletelyVisibleItemPositions(into: androidNative.Array): androidNative.Array; public computeHorizontalScrollOffset(state: androidx.recyclerview.widget.RecyclerView.State): number; public computeVerticalScrollOffset(state: androidx.recyclerview.widget.RecyclerView.State): number; public computeHorizontalScrollExtent(state: androidx.recyclerview.widget.RecyclerView.State): number; @@ -22511,11 +22512,11 @@ declare module androidx { public onSaveInstanceState(): globalAndroid.os.Parcelable; public onInitializeAccessibilityNodeInfoForItem(recycler: androidx.recyclerview.widget.RecyclerView.Recycler, state: androidx.recyclerview.widget.RecyclerView.State, host: globalAndroid.view.View, info: androidx.core.view.accessibility.AccessibilityNodeInfoCompat): void; public onInitializeAccessibilityEvent(recycler: androidx.recyclerview.widget.RecyclerView.Recycler, state: androidx.recyclerview.widget.RecyclerView.State, event: globalAndroid.view.accessibility.AccessibilityEvent): void; - public onInitializeAccessibilityEvent(end: globalAndroid.view.accessibility.AccessibilityEvent): void; + public onInitializeAccessibilityEvent(event: globalAndroid.view.accessibility.AccessibilityEvent): void; public getRowCountForAccessibility(recycler: androidx.recyclerview.widget.RecyclerView.Recycler, state: androidx.recyclerview.widget.RecyclerView.State): number; public getColumnCountForAccessibility(recycler: androidx.recyclerview.widget.RecyclerView.Recycler, state: androidx.recyclerview.widget.RecyclerView.State): number; - public offsetChildrenHorizontal(this_: number): void; - public offsetChildrenVertical(this_: number): void; + public offsetChildrenHorizontal(dx: number): void; + public offsetChildrenVertical(dy: number): void; public onItemsRemoved(recyclerView: androidx.recyclerview.widget.RecyclerView, positionStart: number, itemCount: number): void; public onItemsAdded(recyclerView: androidx.recyclerview.widget.RecyclerView, positionStart: number, itemCount: number): void; public onItemsChanged(recyclerView: androidx.recyclerview.widget.RecyclerView): void; @@ -22530,22 +22531,22 @@ declare module androidx { public smoothScrollToPosition(recyclerView: androidx.recyclerview.widget.RecyclerView, state: androidx.recyclerview.widget.RecyclerView.State, position: number): void; public scrollToPosition(position: number): void; public scrollToPositionWithOffset(position: number, offset: number): void; - public collectAdjacentPrefetchPositions(i: number, i: number, this_: androidx.recyclerview.widget.RecyclerView.State, dx: androidx.recyclerview.widget.RecyclerView.LayoutManager.LayoutPrefetchRegistry): void; + public collectAdjacentPrefetchPositions(dx: number, dy: number, state: androidx.recyclerview.widget.RecyclerView.State, layoutPrefetchRegistry: androidx.recyclerview.widget.RecyclerView.LayoutManager.LayoutPrefetchRegistry): void; public generateDefaultLayoutParams(): androidx.recyclerview.widget.RecyclerView.LayoutParams; public generateLayoutParams(lp: globalAndroid.view.ViewGroup.LayoutParams): androidx.recyclerview.widget.RecyclerView.LayoutParams; public generateLayoutParams(c: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet): androidx.recyclerview.widget.RecyclerView.LayoutParams; public checkLayoutParams(lp: androidx.recyclerview.widget.RecyclerView.LayoutParams): boolean; public getOrientation(): number; - public onFocusSearchFailed(view: globalAndroid.view.View, view: number, i: androidx.recyclerview.widget.RecyclerView.Recycler, view: androidx.recyclerview.widget.RecyclerView.State): globalAndroid.view.View | null; + public onFocusSearchFailed(focused: globalAndroid.view.View, direction: number, recycler: androidx.recyclerview.widget.RecyclerView.Recycler, state: androidx.recyclerview.widget.RecyclerView.State): globalAndroid.view.View | null; public computeScrollVectorForPosition(param0: number): globalAndroid.graphics.PointF | null; } - export module StaggeredGridLayoutManager { + export namespace StaggeredGridLayoutManager { export class AnchorInfo { public static class: java.lang.Class; } export class LayoutParams extends androidx.recyclerview.widget.RecyclerView.LayoutParams { public static class: java.lang.Class; - public static INVALID_SPAN_ID: number = -1; + public static readonly INVALID_SPAN_ID = -1; public constructor(width: number, height: number); public constructor(source: globalAndroid.view.ViewGroup.MarginLayoutParams); public constructor(source: globalAndroid.view.ViewGroup.LayoutParams); @@ -22557,11 +22558,11 @@ declare module androidx { } export class LazySpanLookup { public static class: java.lang.Class; - public addFullSpanItem(i: androidx.recyclerview.widget.StaggeredGridLayoutManager.LazySpanLookup.FullSpanItem): void; - public getFullSpanItem(i: number): androidx.recyclerview.widget.StaggeredGridLayoutManager.LazySpanLookup.FullSpanItem; - public getFirstFullSpanItemInRange(i: number, this_: number, minPos: number, maxPos: boolean): androidx.recyclerview.widget.StaggeredGridLayoutManager.LazySpanLookup.FullSpanItem; + public addFullSpanItem(fullSpanItem: androidx.recyclerview.widget.StaggeredGridLayoutManager.LazySpanLookup.FullSpanItem): void; + public getFullSpanItem(position: number): androidx.recyclerview.widget.StaggeredGridLayoutManager.LazySpanLookup.FullSpanItem; + public getFirstFullSpanItemInRange(minPos: number, maxPos: number, gapDir: number, hasUnwantedGapAfter: boolean): androidx.recyclerview.widget.StaggeredGridLayoutManager.LazySpanLookup.FullSpanItem; } - export module LazySpanLookup { + export namespace LazySpanLookup { export class FullSpanItem { public static class: java.lang.Class; public static CREATOR: globalAndroid.os.Parcelable.Creator; @@ -22587,16 +22588,16 @@ declare module androidx { public findLastVisibleItemPosition(): number; public findLastPartiallyVisibleItemPosition(): number; public findLastCompletelyVisibleItemPosition(): number; - public getFocusableViewAfter(i: number, limit: number): globalAndroid.view.View; + public getFocusableViewAfter(referenceChildPosition: number, layoutDir: number): globalAndroid.view.View; } } } } } -declare module androidx { - export module recyclerview { - export module widget { +declare namespace androidx { + export namespace recyclerview { + export namespace widget { export class ThreadUtil extends java.lang.Object { public static class: java.lang.Class>; /** @@ -22610,7 +22611,7 @@ declare module androidx { public getMainThreadProxy(param0: androidx.recyclerview.widget.ThreadUtil.MainThreadCallback): androidx.recyclerview.widget.ThreadUtil.MainThreadCallback; public getBackgroundProxy(param0: androidx.recyclerview.widget.ThreadUtil.BackgroundCallback): androidx.recyclerview.widget.ThreadUtil.BackgroundCallback; } - export module ThreadUtil { + export namespace ThreadUtil { export class BackgroundCallback extends java.lang.Object { public static class: java.lang.Class>; /** @@ -22648,20 +22649,20 @@ declare module androidx { } } -declare module androidx { - export module recyclerview { - export module widget { +declare namespace androidx { + export namespace recyclerview { + export namespace widget { export class TileList extends java.lang.Object { public static class: java.lang.Class>; public constructor(tileSize: number); - public getItemAt(index: number): T; + public getItemAt(pos: number): T; public size(): number; public clear(): void; public getAtIndex(index: number): androidx.recyclerview.widget.TileList.Tile; public addOrReplace(newTile: androidx.recyclerview.widget.TileList.Tile): androidx.recyclerview.widget.TileList.Tile; public removeAtPos(startPosition: number): androidx.recyclerview.widget.TileList.Tile; } - export module TileList { + export namespace TileList { export class Tile extends java.lang.Object { public static class: java.lang.Class>; public mItems: androidNative.Array; @@ -22674,13 +22675,13 @@ declare module androidx { } } -declare module androidx { - export module recyclerview { - export module widget { +declare namespace androidx { + export namespace recyclerview { + export namespace widget { export class ViewBoundsCheck { public static class: java.lang.Class; } - export module ViewBoundsCheck { + export namespace ViewBoundsCheck { export class BoundFlags { public static class: java.lang.Class; } @@ -22721,14 +22722,14 @@ declare module androidx { } } -declare module androidx { - export module recyclerview { - export module widget { +declare namespace androidx { + export namespace recyclerview { + export namespace widget { export class ViewInfoStore { public static class: java.lang.Class; public onViewDetached(viewHolder: androidx.recyclerview.widget.RecyclerView.ViewHolder): void; } - export module ViewInfoStore { + export namespace ViewInfoStore { export class InfoRecord { public static class: java.lang.Class; } @@ -22754,9 +22755,9 @@ declare module androidx { } } -declare module androidx { - export module slidingpanelayout { - export module widget { +declare namespace androidx { + export namespace slidingpanelayout { + export namespace widget { export class SlidingPaneLayout { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); @@ -22771,12 +22772,12 @@ declare module androidx { public setPanelSlideListener(listener: androidx.slidingpanelayout.widget.SlidingPaneLayout.PanelSlideListener | null): void; public onAttachedToWindow(): void; public onDetachedFromWindow(): void; - public onMeasure(childWidthSpec: number, childHeightSpec: number): void; - public onLayout(range: boolean, lpMargin: number, pos: number, childRight: number, childLeft: number): void; + public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; + public onLayout(changed: boolean, l: number, t: number, r: number, b: number): void; public onSizeChanged(w: number, h: number, oldw: number, oldh: number): void; public requestChildFocus(child: globalAndroid.view.View, focused: globalAndroid.view.View): void; - public onInterceptTouchEvent(x: globalAndroid.view.MotionEvent): boolean; - public onTouchEvent(y: globalAndroid.view.MotionEvent): boolean; + public onInterceptTouchEvent(ev: globalAndroid.view.MotionEvent): boolean; + public onTouchEvent(ev: globalAndroid.view.MotionEvent): boolean; /** @deprecated */ public smoothSlideOpen(): void; public openPane(): boolean; @@ -22797,8 +22798,8 @@ declare module androidx { public setShadowResource(resId: number): void; public setShadowResourceLeft(resId: number): void; public setShadowResourceRight(resId: number): void; - public draw(left: globalAndroid.graphics.Canvas): void; - public canScroll(i: globalAndroid.view.View, group: boolean, scrollX: number, scrollY: number, count: number): boolean; + public draw(c: globalAndroid.graphics.Canvas): void; + public canScroll(v: globalAndroid.view.View, checkV: boolean, dx: number, x: number, y: number): boolean; public generateDefaultLayoutParams(): globalAndroid.view.ViewGroup.LayoutParams; public generateLayoutParams(p: globalAndroid.view.ViewGroup.LayoutParams): globalAndroid.view.ViewGroup.LayoutParams; public checkLayoutParams(p: globalAndroid.view.ViewGroup.LayoutParams): boolean; @@ -22806,10 +22807,10 @@ declare module androidx { public onSaveInstanceState(): globalAndroid.os.Parcelable; public onRestoreInstanceState(state: globalAndroid.os.Parcelable): void; } - export module SlidingPaneLayout { + export namespace SlidingPaneLayout { export class androidxslidingpanelayoutwidgetSlidingPaneLayoutAccessibilityDelegate extends androidx.core.view.AccessibilityDelegateCompat { public static class: java.lang.Class; - public onInitializeAccessibilityNodeInfo(i: globalAndroid.view.View, this_: androidx.core.view.accessibility.AccessibilityNodeInfoCompat): void; + public onInitializeAccessibilityNodeInfo(host: globalAndroid.view.View, info: androidx.core.view.accessibility.AccessibilityNodeInfoCompat): void; public onInitializeAccessibilityEvent(host: globalAndroid.view.View, event: globalAndroid.view.accessibility.AccessibilityEvent): void; public onRequestSendAccessibilityEvent(host: globalAndroid.view.ViewGroup, child: globalAndroid.view.View, event: globalAndroid.view.accessibility.AccessibilityEvent): boolean; public filter(child: globalAndroid.view.View): boolean; @@ -22825,9 +22826,9 @@ declare module androidx { public onViewDragStateChanged(state: number): void; public onViewCaptured(capturedChild: globalAndroid.view.View, activePointerId: number): void; public onViewPositionChanged(changedView: globalAndroid.view.View, left: number, top: number, dx: number, dy: number): void; - public onViewReleased(childWidth: globalAndroid.view.View, left: number, this_: number): void; + public onViewReleased(releasedChild: globalAndroid.view.View, xvel: number, yvel: number): void; public getViewHorizontalDragRange(child: globalAndroid.view.View): number; - public clampViewPositionHorizontal(endBound: globalAndroid.view.View, newLeft: number, startBound: number): number; + public clampViewPositionHorizontal(child: globalAndroid.view.View, left: number, dx: number): number; public clampViewPositionVertical(child: globalAndroid.view.View, top: number, dy: number): number; public onEdgeDragStarted(edgeFlags: number, pointerId: number): void; } @@ -22876,9 +22877,9 @@ declare module androidx { } } -declare module androidx { - export module swiperefreshlayout { - export module widget { +declare namespace androidx { + export namespace swiperefreshlayout { + export namespace widget { export class CircleImageView { public static class: java.lang.Class; public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; @@ -22888,7 +22889,7 @@ declare module androidx { public setBackgroundColorRes(colorRes: number): void; public setBackgroundColor(color: number): void; } - export module CircleImageView { + export namespace CircleImageView { export class OvalShadow { public static class: java.lang.Class; public onResize(width: number, height: number): void; @@ -22899,13 +22900,13 @@ declare module androidx { } } -declare module androidx { - export module swiperefreshlayout { - export module widget { +declare namespace androidx { + export namespace swiperefreshlayout { + export namespace widget { export class CircularProgressDrawable { public static class: java.lang.Class; - public static LARGE: number = 0; - public static DEFAULT: number = 1; + public static readonly LARGE = 0; + public static readonly DEFAULT = 1; public constructor(context: globalAndroid.content.Context); public setStyle(size: number): void; public getStrokeWidth(): number; @@ -22939,7 +22940,7 @@ declare module androidx { public start(): void; public stop(): void; } - export module CircularProgressDrawable { + export namespace CircularProgressDrawable { export class ProgressDrawableSize { public static class: java.lang.Class; /** @@ -22957,14 +22958,14 @@ declare module androidx { } } -declare module androidx { - export module swiperefreshlayout { - export module widget { +declare namespace androidx { + export namespace swiperefreshlayout { + export namespace widget { export class SwipeRefreshLayout implements androidx.core.view.NestedScrollingParent, androidx.core.view.NestedScrollingChild { public static class: java.lang.Class; - public static LARGE: number = 0; - public static DEFAULT: number = 1; - public static DEFAULT_SLINGSHOT_DISTANCE: number = -1; + public static readonly LARGE = 0; + public static readonly DEFAULT = 1; + public static readonly DEFAULT_SLINGSHOT_DISTANCE = -1; public mFrom: number; public mOriginalOffsetTop: number; public setEnabled(enabled: boolean): void; @@ -22979,23 +22980,23 @@ declare module androidx { public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet | null); public getChildDrawingOrder(childCount: number, i: number): number; public setOnRefreshListener(listener: androidx.swiperefreshlayout.widget.SwipeRefreshLayout.OnRefreshListener | null): void; - public setRefreshing(this_: boolean): void; + public setRefreshing(refreshing: boolean): void; /** @deprecated */ public setProgressBackgroundColor(colorRes: number): void; public setProgressBackgroundColorSchemeResource(colorRes: number): void; public setProgressBackgroundColorSchemeColor(color: number): void; /** @deprecated */ public setColorScheme(colors: androidNative.Array): void; - public setColorSchemeResources(this_: androidNative.Array): void; + public setColorSchemeResources(colorResIds: androidNative.Array): void; public setColorSchemeColors(colors: androidNative.Array): void; public isRefreshing(): boolean; public setDistanceToTriggerSync(distance: number): void; public onLayout(changed: boolean, left: number, top: number, right: number, bottom: number): void; - public onMeasure(this_: number, widthMeasureSpec: number): void; + public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; public getProgressCircleDiameter(): number; public canChildScrollUp(): boolean; public setOnChildScrollUpCallback(callback: androidx.swiperefreshlayout.widget.SwipeRefreshLayout.OnChildScrollUpCallback | null): void; - public onInterceptTouchEvent(this_: globalAndroid.view.MotionEvent): boolean; + public onInterceptTouchEvent(ev: globalAndroid.view.MotionEvent): boolean; public requestDisallowInterceptTouchEvent(b: boolean): void; public onStartNestedScroll(child: globalAndroid.view.View, target: globalAndroid.view.View, nestedScrollAxes: number): boolean; public onNestedScrollAccepted(child: globalAndroid.view.View, target: globalAndroid.view.View, axes: number): void; @@ -23014,7 +23015,7 @@ declare module androidx { public onNestedFling(target: globalAndroid.view.View, velocityX: number, velocityY: number, consumed: boolean): boolean; public dispatchNestedFling(velocityX: number, velocityY: number, consumed: boolean): boolean; public dispatchNestedPreFling(velocityX: number, velocityY: number): boolean; - public onTouchEvent(y: globalAndroid.view.MotionEvent): boolean; + public onTouchEvent(ev: globalAndroid.view.MotionEvent): boolean; public onStartNestedScroll(param0: globalAndroid.view.View, param1: globalAndroid.view.View, param2: number): boolean; public onNestedScrollAccepted(param0: globalAndroid.view.View, param1: globalAndroid.view.View, param2: number): void; public onStopNestedScroll(param0: globalAndroid.view.View): void; @@ -23029,7 +23030,7 @@ declare module androidx { public dispatchNestedFling(param0: number, param1: number, param2: boolean): boolean; public dispatchNestedPreFling(param0: number, param1: number): boolean; } - export module SwipeRefreshLayout { + export namespace SwipeRefreshLayout { export class OnChildScrollUpCallback { public static class: java.lang.Class; /** @@ -23057,12 +23058,12 @@ declare module androidx { } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class AnimatorUtils { public static class: java.lang.Class; } - export module AnimatorUtils { + export namespace AnimatorUtils { export class AnimatorPauseListenerCompat { public static class: java.lang.Class; /** @@ -23080,8 +23081,8 @@ declare module androidx { } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class ArcMotion extends androidx.transition.PathMotion { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); @@ -23092,13 +23093,13 @@ declare module androidx { public getMinimumVerticalAngle(): number; public setMaximumAngle(angleInDegrees: number): void; public getMaximumAngle(): number; - public getPath(ey: number, eDistY: number, ex: number, ey: number): globalAndroid.graphics.Path; + public getPath(startX: number, startY: number, endX: number, endY: number): globalAndroid.graphics.Path; } } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class AutoTransition extends androidx.transition.TransitionSet { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); @@ -23107,8 +23108,8 @@ declare module androidx { } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class ChangeBounds extends androidx.transition.Transition { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); @@ -23118,9 +23119,9 @@ declare module androidx { public getResizeClip(): boolean; public captureStartValues(transitionValues: androidx.transition.TransitionValues): void; public captureEndValues(transitionValues: androidx.transition.TransitionValues): void; - public createAnimator(anim: globalAndroid.view.ViewGroup, viewBounds: androidx.transition.TransitionValues | null, topLeftPath: androidx.transition.TransitionValues | null): globalAndroid.animation.Animator | null; + public createAnimator(sceneRoot: globalAndroid.view.ViewGroup, startValues: androidx.transition.TransitionValues | null, endValues: androidx.transition.TransitionValues | null): globalAndroid.animation.Animator | null; } - export module ChangeBounds { + export namespace ChangeBounds { export class ViewBounds { public static class: java.lang.Class; } @@ -23128,8 +23129,8 @@ declare module androidx { } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class ChangeClipBounds extends androidx.transition.Transition { public static class: java.lang.Class; public getTransitionProperties(): androidNative.Array; @@ -23137,13 +23138,13 @@ declare module androidx { public constructor(); public captureStartValues(transitionValues: androidx.transition.TransitionValues): void; public captureEndValues(transitionValues: androidx.transition.TransitionValues): void; - public createAnimator(this_: globalAndroid.view.ViewGroup, sceneRoot: androidx.transition.TransitionValues, startValues: androidx.transition.TransitionValues): globalAndroid.animation.Animator; + public createAnimator(sceneRoot: globalAndroid.view.ViewGroup, startValues: androidx.transition.TransitionValues, endValues: androidx.transition.TransitionValues): globalAndroid.animation.Animator; } } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class ChangeImageTransform extends androidx.transition.Transition { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); @@ -23151,13 +23152,13 @@ declare module androidx { public captureStartValues(transitionValues: androidx.transition.TransitionValues): void; public captureEndValues(transitionValues: androidx.transition.TransitionValues): void; public getTransitionProperties(): androidNative.Array; - public createAnimator(this_: globalAndroid.view.ViewGroup, sceneRoot: androidx.transition.TransitionValues, startValues: androidx.transition.TransitionValues): globalAndroid.animation.Animator; + public createAnimator(sceneRoot: globalAndroid.view.ViewGroup, startValues: androidx.transition.TransitionValues, endValues: androidx.transition.TransitionValues): globalAndroid.animation.Animator; } } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class ChangeScroll extends androidx.transition.Transition { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); @@ -23170,8 +23171,8 @@ declare module androidx { } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class ChangeTransform extends androidx.transition.Transition { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); @@ -23185,7 +23186,7 @@ declare module androidx { public captureEndValues(transitionValues: androidx.transition.TransitionValues): void; public createAnimator(sceneRoot: globalAndroid.view.ViewGroup, startValues: androidx.transition.TransitionValues, endValues: androidx.transition.TransitionValues): globalAndroid.animation.Animator; } - export module ChangeTransform { + export namespace ChangeTransform { export class GhostListener extends androidx.transition.TransitionListenerAdapter { public static class: java.lang.Class; public onTransitionEnd(transition: androidx.transition.Transition): void; @@ -23210,49 +23211,49 @@ declare module androidx { } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class CircularPropagation extends androidx.transition.VisibilityPropagation { public static class: java.lang.Class; public constructor(); public setPropagationSpeed(propagationSpeed: number): void; - public getStartDelay(epicenterX: globalAndroid.view.ViewGroup, epicenterY: androidx.transition.Transition, loc: androidx.transition.TransitionValues, this_: androidx.transition.TransitionValues): number; + public getStartDelay(sceneRoot: globalAndroid.view.ViewGroup, transition: androidx.transition.Transition, startValues: androidx.transition.TransitionValues, endValues: androidx.transition.TransitionValues): number; } } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class Explode extends androidx.transition.Visibility { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); public constructor(); public captureStartValues(transitionValues: androidx.transition.TransitionValues): void; public captureEndValues(transitionValues: androidx.transition.TransitionValues): void; - public onAppear(startParentValues: globalAndroid.view.ViewGroup, endParentValues: androidx.transition.TransitionValues, parentVisibilityInfo: number, this_: androidx.transition.TransitionValues, sceneRoot: number): globalAndroid.animation.Animator; + public onAppear(sceneRoot: globalAndroid.view.ViewGroup, startValues: androidx.transition.TransitionValues, startVisibility: number, endValues: androidx.transition.TransitionValues, endVisibility: number): globalAndroid.animation.Animator; public onAppear(sceneRoot: globalAndroid.view.ViewGroup, view: globalAndroid.view.View, startValues: androidx.transition.TransitionValues, endValues: androidx.transition.TransitionValues): globalAndroid.animation.Animator; - public onDisappear(startParent: globalAndroid.view.ViewGroup, startParentValues: androidx.transition.TransitionValues, endParentValues: number, parentVisibilityInfo: androidx.transition.TransitionValues, finalOverlayView: number): globalAndroid.animation.Animator; + public onDisappear(sceneRoot: globalAndroid.view.ViewGroup, startValues: androidx.transition.TransitionValues, startVisibility: number, endValues: androidx.transition.TransitionValues, endVisibility: number): globalAndroid.animation.Animator; public onDisappear(sceneRoot: globalAndroid.view.ViewGroup, view: globalAndroid.view.View, startValues: androidx.transition.TransitionValues, endValues: androidx.transition.TransitionValues): globalAndroid.animation.Animator; } } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class Fade extends androidx.transition.Visibility { public static class: java.lang.Class; - public static IN: number = 1; - public static OUT: number = 2; + public static readonly IN = 1; + public static readonly OUT = 2; public constructor(); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); public constructor(fadingMode: number); public captureStartValues(transitionValues: androidx.transition.TransitionValues): void; - public onAppear(startParentValues: globalAndroid.view.ViewGroup, endParentValues: androidx.transition.TransitionValues, parentVisibilityInfo: number, this_: androidx.transition.TransitionValues, sceneRoot: number): globalAndroid.animation.Animator; + public onAppear(sceneRoot: globalAndroid.view.ViewGroup, startValues: androidx.transition.TransitionValues, startVisibility: number, endValues: androidx.transition.TransitionValues, endVisibility: number): globalAndroid.animation.Animator; public onAppear(sceneRoot: globalAndroid.view.ViewGroup, view: globalAndroid.view.View, startValues: androidx.transition.TransitionValues, endValues: androidx.transition.TransitionValues): globalAndroid.animation.Animator; - public onDisappear(startParent: globalAndroid.view.ViewGroup, startParentValues: androidx.transition.TransitionValues, endParentValues: number, parentVisibilityInfo: androidx.transition.TransitionValues, finalOverlayView: number): globalAndroid.animation.Animator; + public onDisappear(sceneRoot: globalAndroid.view.ViewGroup, startValues: androidx.transition.TransitionValues, startVisibility: number, endValues: androidx.transition.TransitionValues, endVisibility: number): globalAndroid.animation.Animator; public onDisappear(sceneRoot: globalAndroid.view.ViewGroup, view: globalAndroid.view.View, startValues: androidx.transition.TransitionValues, endValues: androidx.transition.TransitionValues): globalAndroid.animation.Animator; } - export module Fade { + export namespace Fade { export class FadeAnimatorListener { public static class: java.lang.Class; public onAnimationStart(animation: globalAndroid.animation.Animator): void; @@ -23262,43 +23263,43 @@ declare module androidx { } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class FloatArrayEvaluator extends globalAndroid.animation.TypeEvaluator> { public static class: java.lang.Class; - public evaluate(end: number, i: androidNative.Array, this_: androidNative.Array): androidNative.Array; + public evaluate(fraction: number, startValue: androidNative.Array, endValue: androidNative.Array): androidNative.Array; } } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class FragmentTransitionSupport extends androidx.fragment.app.FragmentTransitionImpl { public static class: java.lang.Class; public constructor(); public canHandle(transition: any): boolean; public cloneTransition(transition: any): any; public wrapTransitionInSet(transition: any): any; - public setSharedElementTargets(i: any, this_: globalAndroid.view.View, transitionObj: java.util.ArrayList): void; + public setSharedElementTargets(transitionObj: any, nonExistentView: globalAndroid.view.View, sharedViews: java.util.ArrayList): void; public setEpicenter(param0: any, param1: globalAndroid.graphics.Rect): void; - public setEpicenter(epicenter: any, this_: globalAndroid.view.View): void; - public addTargets(i: any, set: java.util.ArrayList): void; + public setEpicenter(transitionObj: any, view: globalAndroid.view.View): void; + public addTargets(transitionObj: any, views: java.util.ArrayList): void; public mergeTransitionsTogether(transition1: any, transition2: any, transition3: any): any; public scheduleHideFragmentView(exitTransitionObj: any, fragmentView: globalAndroid.view.View, exitingViews: java.util.ArrayList): void; - public mergeTransitionsInSequence(this_: any, exitTransitionObj: any, enterTransitionObj: any): any; + public mergeTransitionsInSequence(exitTransitionObj: any, enterTransitionObj: any, sharedElementTransitionObj: any): any; public beginDelayedTransition(sceneRoot: globalAndroid.view.ViewGroup, transition: any): void; public scheduleRemoveTargets(overallTransitionObj: any, enterTransition: any, enteringViews: java.util.ArrayList, exitTransition: any, exitingViews: java.util.ArrayList, sharedElementTransition: any, sharedElementsIn: java.util.ArrayList): void; public swapSharedElementTargets(sharedElementTransitionObj: any, sharedElementsOut: java.util.ArrayList, sharedElementsIn: java.util.ArrayList): void; - public replaceTargets(i: any, set: java.util.ArrayList, numTransitions: java.util.ArrayList): void; - public addTarget(this_: any, transitionObj: globalAndroid.view.View): void; - public removeTarget(this_: any, transitionObj: globalAndroid.view.View): void; - public setEpicenter(this_: any, transitionObj: globalAndroid.graphics.Rect): void; + public replaceTargets(transitionObj: any, oldTargets: java.util.ArrayList, newTargets: java.util.ArrayList): void; + public addTarget(transitionObj: any, view: globalAndroid.view.View): void; + public removeTarget(transitionObj: any, view: globalAndroid.view.View): void; + public setEpicenter(transitionObj: any, epicenter: globalAndroid.graphics.Rect): void; } } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class GhostViewApi14 implements androidx.transition.GhostViewImpl { public static class: java.lang.Class; public onAttachedToWindow(): void; @@ -23312,8 +23313,8 @@ declare module androidx { } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class GhostViewApi21 extends androidx.transition.GhostViewImpl { public static class: java.lang.Class; public setVisibility(visibility: number): void; @@ -23324,8 +23325,8 @@ declare module androidx { } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class GhostViewImpl { public static class: java.lang.Class; /** @@ -23342,40 +23343,40 @@ declare module androidx { } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class GhostViewUtils { public static class: java.lang.Class; } } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class ImageViewUtils { public static class: java.lang.Class; } } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class MatrixUtils { public static class: java.lang.Class; } } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class ObjectAnimatorUtils { public static class: java.lang.Class; } } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export abstract class PathMotion { public static class: java.lang.Class; public constructor(); @@ -23385,8 +23386,8 @@ declare module androidx { } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class PathProperty extends globalAndroid.util.Property { public static class: java.lang.Class>; public get(object: any): java.lang.Float; @@ -23395,13 +23396,12 @@ declare module androidx { } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class PatternPathMotion extends androidx.transition.PathMotion { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); public constructor(); - public constructor(pattern: globalAndroid.content.Context, this_: globalAndroid.util.AttributeSet); public constructor(patternPath: globalAndroid.graphics.Path); public getPatternPath(): globalAndroid.graphics.Path; public setPatternPath(patternPath: globalAndroid.graphics.Path): void; @@ -23410,16 +23410,16 @@ declare module androidx { } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class PropertyValuesHolderUtils { public static class: java.lang.Class; } } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class RectEvaluator extends globalAndroid.animation.TypeEvaluator { public static class: java.lang.Class; public evaluate(fraction: number, startValue: globalAndroid.graphics.Rect, endValue: globalAndroid.graphics.Rect): globalAndroid.graphics.Rect; @@ -23427,8 +23427,8 @@ declare module androidx { } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class Scene { public static class: java.lang.Class; public static getSceneForLayout(sceneRoot: globalAndroid.view.ViewGroup, layoutId: number, context: globalAndroid.content.Context): androidx.transition.Scene; @@ -23443,20 +23443,20 @@ declare module androidx { } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class SidePropagation extends androidx.transition.VisibilityPropagation { public static class: java.lang.Class; public constructor(); public setSide(side: number): void; public setPropagationSpeed(propagationSpeed: number): void; - public getStartDelay(epicenterX: globalAndroid.view.ViewGroup, epicenterY: androidx.transition.Transition, this_: androidx.transition.TransitionValues, sceneRoot: androidx.transition.TransitionValues): number; + public getStartDelay(sceneRoot: globalAndroid.view.ViewGroup, transition: androidx.transition.Transition, startValues: androidx.transition.TransitionValues, endValues: androidx.transition.TransitionValues): number; } } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class Slide extends androidx.transition.Visibility { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); @@ -23466,12 +23466,12 @@ declare module androidx { public captureEndValues(transitionValues: androidx.transition.TransitionValues): void; public setSlideEdge(slideEdge: number): void; public getSlideEdge(): number; - public onAppear(startParentValues: globalAndroid.view.ViewGroup, endParentValues: androidx.transition.TransitionValues, parentVisibilityInfo: number, this_: androidx.transition.TransitionValues, sceneRoot: number): globalAndroid.animation.Animator; + public onAppear(sceneRoot: globalAndroid.view.ViewGroup, startValues: androidx.transition.TransitionValues, startVisibility: number, endValues: androidx.transition.TransitionValues, endVisibility: number): globalAndroid.animation.Animator; public onAppear(sceneRoot: globalAndroid.view.ViewGroup, view: globalAndroid.view.View, startValues: androidx.transition.TransitionValues, endValues: androidx.transition.TransitionValues): globalAndroid.animation.Animator; - public onDisappear(startParent: globalAndroid.view.ViewGroup, startParentValues: androidx.transition.TransitionValues, endParentValues: number, parentVisibilityInfo: androidx.transition.TransitionValues, finalOverlayView: number): globalAndroid.animation.Animator; + public onDisappear(sceneRoot: globalAndroid.view.ViewGroup, startValues: androidx.transition.TransitionValues, startVisibility: number, endValues: androidx.transition.TransitionValues, endVisibility: number): globalAndroid.animation.Animator; public onDisappear(sceneRoot: globalAndroid.view.ViewGroup, view: globalAndroid.view.View, startValues: androidx.transition.TransitionValues, endValues: androidx.transition.TransitionValues): globalAndroid.animation.Animator; } - export module Slide { + export namespace Slide { export class CalculateSlide { public static class: java.lang.Class; /** @@ -23510,12 +23510,12 @@ declare module androidx { } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class Styleable { public static class: java.lang.Class; } - export module Styleable { + export namespace Styleable { export class ArcMotion { public static class: java.lang.Class; /** @@ -23524,9 +23524,9 @@ declare module androidx { public constructor(implementation: { }); public constructor(); - public static MINIMUM_VERTICAL_ANGLE: number = 1; - public static MAXIMUM_ANGLE: number = 2; - public static MINIMUM_HORIZONTAL_ANGLE: number = 0; + public static readonly MINIMUM_VERTICAL_ANGLE = 1; + public static readonly MAXIMUM_ANGLE = 2; + public static readonly MINIMUM_HORIZONTAL_ANGLE = 0; } export class ChangeBounds { public static class: java.lang.Class; @@ -23536,7 +23536,7 @@ declare module androidx { public constructor(implementation: { }); public constructor(); - public static RESIZE_CLIP: number = 0; + public static readonly RESIZE_CLIP = 0; } export class ChangeTransform { public static class: java.lang.Class; @@ -23546,8 +23546,8 @@ declare module androidx { public constructor(implementation: { }); public constructor(); - public static REPARENT: number = 0; - public static REPARENT_WITH_OVERLAY: number = 1; + public static readonly REPARENT = 0; + public static readonly REPARENT_WITH_OVERLAY = 1; } export class Fade { public static class: java.lang.Class; @@ -23557,7 +23557,7 @@ declare module androidx { public constructor(implementation: { }); public constructor(); - public static FADING_MODE: number = 0; + public static readonly FADING_MODE = 0; } export class PatternPathMotion { public static class: java.lang.Class; @@ -23567,7 +23567,7 @@ declare module androidx { public constructor(implementation: { }); public constructor(); - public static PATTERN_PATH_DATA: number = 0; + public static readonly PATTERN_PATH_DATA = 0; } export class Slide { public static class: java.lang.Class; @@ -23577,7 +23577,7 @@ declare module androidx { public constructor(implementation: { }); public constructor(); - public static SLIDE_EDGE: number = 0; + public static readonly SLIDE_EDGE = 0; } export class Transition { public static class: java.lang.Class; @@ -23587,10 +23587,10 @@ declare module androidx { public constructor(implementation: { }); public constructor(); - public static MATCH_ORDER: number = 3; - public static DURATION: number = 1; - public static START_DELAY: number = 2; - public static INTERPOLATOR: number = 0; + public static readonly MATCH_ORDER = 3; + public static readonly DURATION = 1; + public static readonly START_DELAY = 2; + public static readonly INTERPOLATOR = 0; } export class TransitionManager { public static class: java.lang.Class; @@ -23600,9 +23600,9 @@ declare module androidx { public constructor(implementation: { }); public constructor(); - public static FROM_SCENE: number = 0; - public static TRANSITION: number = 2; - public static TO_SCENE: number = 1; + public static readonly FROM_SCENE = 0; + public static readonly TRANSITION = 2; + public static readonly TO_SCENE = 1; } export class TransitionSet { public static class: java.lang.Class; @@ -23612,7 +23612,7 @@ declare module androidx { public constructor(implementation: { }); public constructor(); - public static TRANSITION_ORDERING: number = 0; + public static readonly TRANSITION_ORDERING = 0; } export class TransitionTarget { public static class: java.lang.Class; @@ -23622,12 +23622,12 @@ declare module androidx { public constructor(implementation: { }); public constructor(); - public static TARGET_NAME: number = 4; - public static EXCLUDE_NAME: number = 5; - public static TARGET_ID: number = 1; - public static TARGET_CLASS: number = 0; - public static EXCLUDE_CLASS: number = 3; - public static EXCLUDE_ID: number = 2; + public static readonly TARGET_NAME = 4; + public static readonly EXCLUDE_NAME = 5; + public static readonly TARGET_ID = 1; + public static readonly TARGET_CLASS = 0; + public static readonly EXCLUDE_CLASS = 3; + public static readonly EXCLUDE_ID = 2; } export class VisibilityTransition { public static class: java.lang.Class; @@ -23637,20 +23637,20 @@ declare module androidx { public constructor(implementation: { }); public constructor(); - public static TRANSITION_VISIBILITY_MODE: number = 0; + public static readonly TRANSITION_VISIBILITY_MODE = 0; } } } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export abstract class Transition { public static class: java.lang.Class; - public static MATCH_INSTANCE: number = 1; - public static MATCH_NAME: number = 2; - public static MATCH_ID: number = 3; - public static MATCH_ITEM_ID: number = 4; + public static readonly MATCH_INSTANCE = 1; + public static readonly MATCH_NAME = 2; + public static readonly MATCH_ID = 3; + public static readonly MATCH_ITEM_ID = 4; public constructor(); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); public setDuration(duration: number): androidx.transition.Transition; @@ -23661,8 +23661,8 @@ declare module androidx { public getInterpolator(): globalAndroid.animation.TimeInterpolator | null; public getTransitionProperties(): androidNative.Array | null; public createAnimator(sceneRoot: globalAndroid.view.ViewGroup, startValues: androidx.transition.TransitionValues | null, endValues: androidx.transition.TransitionValues | null): globalAndroid.animation.Animator | null; - public setMatchOrder(i: androidNative.Array): void; - public createAnimators(anim: globalAndroid.view.ViewGroup, info: androidx.transition.TransitionValuesMaps, j: androidx.transition.TransitionValuesMaps, newValues: java.util.ArrayList, numExistingAnims: java.util.ArrayList): void; + public setMatchOrder(matches: androidNative.Array): void; + public createAnimators(sceneRoot: globalAndroid.view.ViewGroup, startValues: androidx.transition.TransitionValuesMaps, endValues: androidx.transition.TransitionValuesMaps, startValuesList: java.util.ArrayList, endValuesList: java.util.ArrayList): void; public runAnimators(): void; public captureStartValues(param0: androidx.transition.TransitionValues): void; public captureEndValues(param0: androidx.transition.TransitionValues): void; @@ -23686,9 +23686,9 @@ declare module androidx { public getTargetNames(): java.util.List | null; public getTargetTypes(): java.util.List> | null; public getTransitionValues(view: globalAndroid.view.View, start: boolean): androidx.transition.TransitionValues | null; - public pause(info: globalAndroid.view.View): void; - public resume(info: globalAndroid.view.View): void; - public isTransitionRequired(key: androidx.transition.TransitionValues | null, properties: androidx.transition.TransitionValues | null): boolean; + public pause(sceneRoot: globalAndroid.view.View): void; + public resume(sceneRoot: globalAndroid.view.View): void; + public isTransitionRequired(startValues: androidx.transition.TransitionValues | null, endValues: androidx.transition.TransitionValues | null): boolean; public animate(animator: globalAndroid.animation.Animator): void; public start(): void; public end(): void; @@ -23706,7 +23706,7 @@ declare module androidx { public clone(): androidx.transition.Transition; public getName(): string; } - export module Transition { + export namespace Transition { export class AnimationInfo { public static class: java.lang.Class; } @@ -23750,19 +23750,19 @@ declare module androidx { } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class TransitionInflater { public static class: java.lang.Class; public static from(context: globalAndroid.content.Context): androidx.transition.TransitionInflater; - public inflateTransition(e: number): androidx.transition.Transition; - public inflateTransitionManager(e: number, ex: globalAndroid.view.ViewGroup): androidx.transition.TransitionManager; + public inflateTransition(resource: number): androidx.transition.Transition; + public inflateTransitionManager(resource: number, sceneRoot: globalAndroid.view.ViewGroup): androidx.transition.TransitionManager; } } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class TransitionListenerAdapter extends androidx.transition.Transition.TransitionListener { public static class: java.lang.Class; public constructor(); @@ -23780,8 +23780,8 @@ declare module androidx { } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class TransitionManager { public static class: java.lang.Class; public constructor(); @@ -23791,22 +23791,22 @@ declare module androidx { public static go(scene: androidx.transition.Scene): void; public static go(scene: androidx.transition.Scene, transition: androidx.transition.Transition | null): void; public static beginDelayedTransition(sceneRoot: globalAndroid.view.ViewGroup): void; - public static beginDelayedTransition(transitionClone: globalAndroid.view.ViewGroup, sceneRoot: androidx.transition.Transition | null): void; - public static endTransitions(transition: globalAndroid.view.ViewGroup): void; + public static beginDelayedTransition(sceneRoot: globalAndroid.view.ViewGroup, transition: androidx.transition.Transition | null): void; + public static endTransitions(sceneRoot: globalAndroid.view.ViewGroup): void; } - export module TransitionManager { + export namespace TransitionManager { export class MultiListener { public static class: java.lang.Class; public onViewAttachedToWindow(v: globalAndroid.view.View): void; - public onViewDetachedFromWindow(this_: globalAndroid.view.View): void; + public onViewDetachedFromWindow(v: globalAndroid.view.View): void; public onPreDraw(): boolean; } } } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export abstract class TransitionPropagation { public static class: java.lang.Class; public constructor(); @@ -23817,12 +23817,12 @@ declare module androidx { } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class TransitionSet extends androidx.transition.Transition { public static class: java.lang.Class; - public static ORDERING_TOGETHER: number = 0; - public static ORDERING_SEQUENTIAL: number = 1; + public static readonly ORDERING_TOGETHER = 0; + public static readonly ORDERING_SEQUENTIAL = 1; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); public constructor(); public setOrdering(ordering: number): androidx.transition.TransitionSet; @@ -23831,52 +23831,49 @@ declare module androidx { public getTransitionCount(): number; public getTransitionAt(index: number): androidx.transition.Transition; public setDuration(duration: number): androidx.transition.Transition; - public setDuration(numTransitions: number): androidx.transition.TransitionSet; + public setDuration(duration: number): androidx.transition.TransitionSet; public setStartDelay(startDelay: number): androidx.transition.Transition; public setStartDelay(startDelay: number): androidx.transition.TransitionSet; public setInterpolator(interpolator: globalAndroid.animation.TimeInterpolator | null): androidx.transition.Transition; - public setInterpolator(numTransitions: globalAndroid.animation.TimeInterpolator | null): androidx.transition.TransitionSet; + public setInterpolator(interpolator: globalAndroid.animation.TimeInterpolator | null): androidx.transition.TransitionSet; public addTarget(target: globalAndroid.view.View): androidx.transition.Transition; public addTarget(targetId: number): androidx.transition.Transition; public addTarget(targetName: string): androidx.transition.Transition; public addTarget(targetType: java.lang.Class): androidx.transition.Transition; - public addTarget(this_: globalAndroid.view.View): androidx.transition.TransitionSet; - public addTarget(this_: number): androidx.transition.TransitionSet; - public addTarget(this_: string): androidx.transition.TransitionSet; - public addTarget(this_: java.lang.Class): androidx.transition.TransitionSet; + public addTarget(target: globalAndroid.view.View): androidx.transition.TransitionSet; + public addTarget(targetId: number): androidx.transition.TransitionSet; + public addTarget(targetName: string): androidx.transition.TransitionSet; + public addTarget(targetType: java.lang.Class): androidx.transition.TransitionSet; public addListener(listener: androidx.transition.Transition.TransitionListener): androidx.transition.Transition; public addListener(listener: androidx.transition.Transition.TransitionListener): androidx.transition.TransitionSet; public removeTarget(target: globalAndroid.view.View): androidx.transition.Transition; public removeTarget(targetId: number): androidx.transition.Transition; public removeTarget(targetName: string): androidx.transition.Transition; public removeTarget(target: java.lang.Class): androidx.transition.Transition; - public removeTarget(this_: number): androidx.transition.TransitionSet; - public removeTarget(this_: globalAndroid.view.View): androidx.transition.TransitionSet; - public removeTarget(this_: java.lang.Class): androidx.transition.TransitionSet; - public removeTarget(this_: string): androidx.transition.TransitionSet; + public removeTarget(targetId: number): androidx.transition.TransitionSet; + public removeTarget(target: globalAndroid.view.View): androidx.transition.TransitionSet; + public removeTarget(target: java.lang.Class): androidx.transition.TransitionSet; + public removeTarget(target: string): androidx.transition.TransitionSet; public excludeTarget(targetId: number, exclude: boolean): androidx.transition.Transition; public excludeTarget(targetName: string, exclude: boolean): androidx.transition.Transition; public excludeTarget(type: java.lang.Class, exclude: boolean): androidx.transition.Transition; - public excludeTarget(this_: globalAndroid.view.View, target: boolean): androidx.transition.Transition; - public excludeTarget(this_: string, targetName: boolean): androidx.transition.Transition; - public excludeTarget(this_: number, targetId: boolean): androidx.transition.Transition; - public excludeTarget(this_: java.lang.Class, type: boolean): androidx.transition.Transition; + public excludeTarget(target: globalAndroid.view.View, exclude: boolean): androidx.transition.Transition; public removeListener(listener: androidx.transition.Transition.TransitionListener): androidx.transition.Transition; public removeListener(listener: androidx.transition.Transition.TransitionListener): androidx.transition.TransitionSet; - public setPathMotion(this_: androidx.transition.PathMotion): void; + public setPathMotion(pathMotion: androidx.transition.PathMotion): void; public removeTransition(transition: androidx.transition.Transition): androidx.transition.TransitionSet; - public createAnimators(childTransition: globalAndroid.view.ViewGroup, i: androidx.transition.TransitionValuesMaps, this_: androidx.transition.TransitionValuesMaps, sceneRoot: java.util.ArrayList, startValues: java.util.ArrayList): void; + public createAnimators(sceneRoot: globalAndroid.view.ViewGroup, startValues: androidx.transition.TransitionValuesMaps, endValues: androidx.transition.TransitionValuesMaps, startValuesList: java.util.ArrayList, endValuesList: java.util.ArrayList): void; public runAnimators(): void; - public captureStartValues(this_: androidx.transition.TransitionValues): void; - public captureEndValues(this_: androidx.transition.TransitionValues): void; - public pause(this_: globalAndroid.view.View): void; - public resume(this_: globalAndroid.view.View): void; + public captureStartValues(transitionValues: androidx.transition.TransitionValues): void; + public captureEndValues(transitionValues: androidx.transition.TransitionValues): void; + public pause(sceneRoot: globalAndroid.view.View): void; + public resume(sceneRoot: globalAndroid.view.View): void; public cancel(): void; - public setPropagation(this_: androidx.transition.TransitionPropagation): void; - public setEpicenterCallback(this_: androidx.transition.Transition.EpicenterCallback): void; + public setPropagation(propagation: androidx.transition.TransitionPropagation): void; + public setEpicenterCallback(epicenterCallback: androidx.transition.Transition.EpicenterCallback): void; public clone(): androidx.transition.Transition; } - export module TransitionSet { + export namespace TransitionSet { export class TransitionSetListener extends androidx.transition.TransitionListenerAdapter { public static class: java.lang.Class; public onTransitionStart(transition: androidx.transition.Transition): void; @@ -23891,22 +23888,22 @@ declare module androidx { } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class TransitionUtils { public static class: java.lang.Class; } - export module TransitionUtils { + export namespace TransitionUtils { export class MatrixEvaluator extends globalAndroid.animation.TypeEvaluator { public static class: java.lang.Class; - public evaluate(i: number, this_: globalAndroid.graphics.Matrix, fraction: globalAndroid.graphics.Matrix): globalAndroid.graphics.Matrix; + public evaluate(fraction: number, startValue: globalAndroid.graphics.Matrix, endValue: globalAndroid.graphics.Matrix): globalAndroid.graphics.Matrix; } } } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class TransitionValues { public static class: java.lang.Class; public values: java.util.Map; @@ -23919,20 +23916,20 @@ declare module androidx { } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class TransitionValuesMaps { public static class: java.lang.Class; } } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class TranslationAnimationCreator { public static class: java.lang.Class; } - export module TranslationAnimationCreator { + export namespace TranslationAnimationCreator { export class TransitionPositionListener { public static class: java.lang.Class; public onAnimationCancel(animation: globalAndroid.animation.Animator): void; @@ -23944,8 +23941,8 @@ declare module androidx { } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class ViewGroupOverlayApi14 extends androidx.transition.ViewOverlayApi14 implements androidx.transition.ViewGroupOverlayImpl { public static class: java.lang.Class; public add(drawable: globalAndroid.graphics.drawable.Drawable): void; @@ -23961,8 +23958,8 @@ declare module androidx { } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class ViewGroupOverlayApi18 extends androidx.transition.ViewGroupOverlayImpl { public static class: java.lang.Class; public add(drawable: globalAndroid.graphics.drawable.Drawable): void; @@ -23978,8 +23975,8 @@ declare module androidx { } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class ViewGroupOverlayImpl extends androidx.transition.ViewOverlayImpl { public static class: java.lang.Class; /** @@ -24002,32 +23999,32 @@ declare module androidx { } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class ViewGroupUtils { public static class: java.lang.Class; } } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class ViewGroupUtilsApi14 { public static class: java.lang.Class; } } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class ViewGroupUtilsApi18 { public static class: java.lang.Class; } } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class ViewOverlayApi14 extends androidx.transition.ViewOverlayImpl { public static class: java.lang.Class; public mOverlayViewGroup: androidx.transition.ViewOverlayApi14.OverlayViewGroup; @@ -24037,24 +24034,24 @@ declare module androidx { public add(param0: globalAndroid.graphics.drawable.Drawable): void; public remove(param0: globalAndroid.graphics.drawable.Drawable): void; } - export module ViewOverlayApi14 { + export namespace ViewOverlayApi14 { export class OverlayViewGroup { public static class: java.lang.Class; public dispatchTouchEvent(ev: globalAndroid.view.MotionEvent): boolean; public add(drawable: globalAndroid.graphics.drawable.Drawable): void; public remove(drawable: globalAndroid.graphics.drawable.Drawable): void; public verifyDrawable(who: globalAndroid.graphics.drawable.Drawable): boolean; - public add(hostViewLocation: globalAndroid.view.View): void; + public add(child: globalAndroid.view.View): void; public remove(view: globalAndroid.view.View): void; public clear(): void; public invalidateDrawable(drawable: globalAndroid.graphics.drawable.Drawable): void; - public dispatchDraw(this_: globalAndroid.graphics.Canvas): void; + public dispatchDraw(canvas: globalAndroid.graphics.Canvas): void; public onLayout(changed: boolean, l: number, t: number, r: number, b: number): void; - public invalidateChildFast(top: globalAndroid.view.View, offset: globalAndroid.graphics.Rect): void; - public invalidateChildInParentFast(e: number, e: number, this_: globalAndroid.graphics.Rect): globalAndroid.view.ViewParent; - public invalidateChildInParent(this_: androidNative.Array, location: globalAndroid.graphics.Rect): globalAndroid.view.ViewParent; + public invalidateChildFast(child: globalAndroid.view.View, dirty: globalAndroid.graphics.Rect): void; + public invalidateChildInParentFast(left: number, top: number, dirty: globalAndroid.graphics.Rect): globalAndroid.view.ViewParent; + public invalidateChildInParent(location: androidNative.Array, dirty: globalAndroid.graphics.Rect): globalAndroid.view.ViewParent; } - export module OverlayViewGroup { + export namespace OverlayViewGroup { export class TouchInterceptor { public static class: java.lang.Class; } @@ -24063,8 +24060,8 @@ declare module androidx { } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class ViewOverlayApi18 extends androidx.transition.ViewOverlayImpl { public static class: java.lang.Class; public add(drawable: globalAndroid.graphics.drawable.Drawable): void; @@ -24076,8 +24073,8 @@ declare module androidx { } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class ViewOverlayImpl { public static class: java.lang.Class; /** @@ -24096,68 +24093,68 @@ declare module androidx { } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class ViewUtils { public static class: java.lang.Class; } } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class ViewUtilsApi19 extends androidx.transition.ViewUtilsBase { public static class: java.lang.Class; - public setTransitionAlpha(this_: globalAndroid.view.View, view: number): void; - public getTransitionAlpha(this_: globalAndroid.view.View): number; + public setTransitionAlpha(view: globalAndroid.view.View, alpha: number): void; + public getTransitionAlpha(view: globalAndroid.view.View): number; public saveNonTransitionAlpha(view: globalAndroid.view.View): void; public clearNonTransitionAlpha(view: globalAndroid.view.View): void; } } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class ViewUtilsApi21 extends androidx.transition.ViewUtilsApi19 { public static class: java.lang.Class; - public transformMatrixToGlobal(this_: globalAndroid.view.View, view: globalAndroid.graphics.Matrix): void; - public transformMatrixToLocal(this_: globalAndroid.view.View, view: globalAndroid.graphics.Matrix): void; - public setAnimationMatrix(this_: globalAndroid.view.View, view: globalAndroid.graphics.Matrix): void; + public transformMatrixToGlobal(view: globalAndroid.view.View, matrix: globalAndroid.graphics.Matrix): void; + public transformMatrixToLocal(view: globalAndroid.view.View, matrix: globalAndroid.graphics.Matrix): void; + public setAnimationMatrix(view: globalAndroid.view.View, matrix: globalAndroid.graphics.Matrix): void; } } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class ViewUtilsApi22 extends androidx.transition.ViewUtilsApi21 { public static class: java.lang.Class; - public setLeftTopRightBottom(this_: globalAndroid.view.View, v: number, left: number, top: number, right: number): void; + public setLeftTopRightBottom(v: globalAndroid.view.View, left: number, top: number, right: number, bottom: number): void; } } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class ViewUtilsBase { public static class: java.lang.Class; public setTransitionAlpha(view: globalAndroid.view.View, alpha: number): void; public getTransitionAlpha(view: globalAndroid.view.View): number; public saveNonTransitionAlpha(view: globalAndroid.view.View): void; public clearNonTransitionAlpha(view: globalAndroid.view.View): void; - public transformMatrixToGlobal(this_: globalAndroid.view.View, view: globalAndroid.graphics.Matrix): void; - public transformMatrixToLocal(inverted: globalAndroid.view.View, this_: globalAndroid.graphics.Matrix): void; - public setAnimationMatrix(sin: globalAndroid.view.View, cos: globalAndroid.graphics.Matrix): void; + public transformMatrixToGlobal(view: globalAndroid.view.View, matrix: globalAndroid.graphics.Matrix): void; + public transformMatrixToLocal(view: globalAndroid.view.View, matrix: globalAndroid.graphics.Matrix): void; + public setAnimationMatrix(view: globalAndroid.view.View, matrix: globalAndroid.graphics.Matrix): void; public setLeftTopRightBottom(v: globalAndroid.view.View, left: number, top: number, right: number, bottom: number): void; } } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export abstract class Visibility extends androidx.transition.Transition { public static class: java.lang.Class; - public static MODE_IN: number = 1; - public static MODE_OUT: number = 2; + public static readonly MODE_IN = 1; + public static readonly MODE_OUT = 2; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); public constructor(); public setMode(mode: number): void; @@ -24167,13 +24164,13 @@ declare module androidx { public captureEndValues(transitionValues: androidx.transition.TransitionValues): void; public isVisible(values: androidx.transition.TransitionValues): boolean; public createAnimator(sceneRoot: globalAndroid.view.ViewGroup, startValues: androidx.transition.TransitionValues | null, endValues: androidx.transition.TransitionValues | null): globalAndroid.animation.Animator | null; - public onAppear(startParentValues: globalAndroid.view.ViewGroup, endParentValues: androidx.transition.TransitionValues, parentVisibilityInfo: number, this_: androidx.transition.TransitionValues, sceneRoot: number): globalAndroid.animation.Animator; + public onAppear(sceneRoot: globalAndroid.view.ViewGroup, startValues: androidx.transition.TransitionValues, startVisibility: number, endValues: androidx.transition.TransitionValues, endVisibility: number): globalAndroid.animation.Animator; public onAppear(sceneRoot: globalAndroid.view.ViewGroup, view: globalAndroid.view.View, startValues: androidx.transition.TransitionValues, endValues: androidx.transition.TransitionValues): globalAndroid.animation.Animator; - public onDisappear(startParent: globalAndroid.view.ViewGroup, startParentValues: androidx.transition.TransitionValues, endParentValues: number, parentVisibilityInfo: androidx.transition.TransitionValues, finalOverlayView: number): globalAndroid.animation.Animator; + public onDisappear(sceneRoot: globalAndroid.view.ViewGroup, startValues: androidx.transition.TransitionValues, startVisibility: number, endValues: androidx.transition.TransitionValues, endVisibility: number): globalAndroid.animation.Animator; public onDisappear(sceneRoot: globalAndroid.view.ViewGroup, view: globalAndroid.view.View, startValues: androidx.transition.TransitionValues, endValues: androidx.transition.TransitionValues): globalAndroid.animation.Animator; public isTransitionRequired(startValues: androidx.transition.TransitionValues, newValues: androidx.transition.TransitionValues): boolean; } - export module Visibility { + export namespace Visibility { export class DisappearListener implements androidx.transition.Transition.TransitionListener, androidx.transition.AnimatorUtils.AnimatorPauseListenerCompat { public static class: java.lang.Class; public onAnimationPause(animation: globalAndroid.animation.Animator): void; @@ -24211,8 +24208,8 @@ declare module androidx { } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export abstract class VisibilityPropagation extends androidx.transition.TransitionPropagation { public static class: java.lang.Class; public constructor(); @@ -24225,8 +24222,8 @@ declare module androidx { } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class WindowIdApi14 extends androidx.transition.WindowIdImpl { public static class: java.lang.Class; public equals(o: any): boolean; @@ -24235,8 +24232,8 @@ declare module androidx { } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class WindowIdApi18 extends androidx.transition.WindowIdImpl { public static class: java.lang.Class; public equals(o: any): boolean; @@ -24245,8 +24242,8 @@ declare module androidx { } } -declare module androidx { - export module transition { +declare namespace androidx { + export namespace transition { export class WindowIdImpl { public static class: java.lang.Class; /** @@ -24259,57 +24256,57 @@ declare module androidx { } } -declare module androidx { - export module vectordrawable { - export module graphics { - export module drawable { +declare namespace androidx { + export namespace vectordrawable { + export namespace graphics { + export namespace drawable { export class AndroidResources { public static class: java.lang.Class; public static STYLEABLE_ANIMATOR: androidNative.Array; - public static STYLEABLE_ANIMATOR_INTERPOLATOR: number = 0; - public static STYLEABLE_ANIMATOR_DURATION: number = 1; - public static STYLEABLE_ANIMATOR_START_OFFSET: number = 2; - public static STYLEABLE_ANIMATOR_REPEAT_COUNT: number = 3; - public static STYLEABLE_ANIMATOR_REPEAT_MODE: number = 4; - public static STYLEABLE_ANIMATOR_VALUE_FROM: number = 5; - public static STYLEABLE_ANIMATOR_VALUE_TO: number = 6; - public static STYLEABLE_ANIMATOR_VALUE_TYPE: number = 7; + public static readonly STYLEABLE_ANIMATOR_INTERPOLATOR = 0; + public static readonly STYLEABLE_ANIMATOR_DURATION = 1; + public static readonly STYLEABLE_ANIMATOR_START_OFFSET = 2; + public static readonly STYLEABLE_ANIMATOR_REPEAT_COUNT = 3; + public static readonly STYLEABLE_ANIMATOR_REPEAT_MODE = 4; + public static readonly STYLEABLE_ANIMATOR_VALUE_FROM = 5; + public static readonly STYLEABLE_ANIMATOR_VALUE_TO = 6; + public static readonly STYLEABLE_ANIMATOR_VALUE_TYPE = 7; public static STYLEABLE_ANIMATOR_SET: androidNative.Array; - public static STYLEABLE_ANIMATOR_SET_ORDERING: number = 0; + public static readonly STYLEABLE_ANIMATOR_SET_ORDERING = 0; public static STYLEABLE_PROPERTY_VALUES_HOLDER: androidNative.Array; - public static STYLEABLE_PROPERTY_VALUES_HOLDER_VALUE_FROM: number = 0; - public static STYLEABLE_PROPERTY_VALUES_HOLDER_VALUE_TO: number = 1; - public static STYLEABLE_PROPERTY_VALUES_HOLDER_VALUE_TYPE: number = 2; - public static STYLEABLE_PROPERTY_VALUES_HOLDER_PROPERTY_NAME: number = 3; + public static readonly STYLEABLE_PROPERTY_VALUES_HOLDER_VALUE_FROM = 0; + public static readonly STYLEABLE_PROPERTY_VALUES_HOLDER_VALUE_TO = 1; + public static readonly STYLEABLE_PROPERTY_VALUES_HOLDER_VALUE_TYPE = 2; + public static readonly STYLEABLE_PROPERTY_VALUES_HOLDER_PROPERTY_NAME = 3; public static STYLEABLE_KEYFRAME: androidNative.Array; - public static STYLEABLE_KEYFRAME_VALUE: number = 0; - public static STYLEABLE_KEYFRAME_INTERPOLATOR: number = 1; - public static STYLEABLE_KEYFRAME_VALUE_TYPE: number = 2; - public static STYLEABLE_KEYFRAME_FRACTION: number = 3; + public static readonly STYLEABLE_KEYFRAME_VALUE = 0; + public static readonly STYLEABLE_KEYFRAME_INTERPOLATOR = 1; + public static readonly STYLEABLE_KEYFRAME_VALUE_TYPE = 2; + public static readonly STYLEABLE_KEYFRAME_FRACTION = 3; public static STYLEABLE_PROPERTY_ANIMATOR: androidNative.Array; - public static STYLEABLE_PROPERTY_ANIMATOR_PROPERTY_NAME: number = 0; - public static STYLEABLE_PROPERTY_ANIMATOR_PATH_DATA: number = 1; - public static STYLEABLE_PROPERTY_ANIMATOR_PROPERTY_X_NAME: number = 2; - public static STYLEABLE_PROPERTY_ANIMATOR_PROPERTY_Y_NAME: number = 3; + public static readonly STYLEABLE_PROPERTY_ANIMATOR_PROPERTY_NAME = 0; + public static readonly STYLEABLE_PROPERTY_ANIMATOR_PATH_DATA = 1; + public static readonly STYLEABLE_PROPERTY_ANIMATOR_PROPERTY_X_NAME = 2; + public static readonly STYLEABLE_PROPERTY_ANIMATOR_PROPERTY_Y_NAME = 3; public static STYLEABLE_PATH_INTERPOLATOR: androidNative.Array; - public static STYLEABLE_PATH_INTERPOLATOR_CONTROL_X_1: number = 0; - public static STYLEABLE_PATH_INTERPOLATOR_CONTROL_Y_1: number = 1; - public static STYLEABLE_PATH_INTERPOLATOR_CONTROL_X_2: number = 2; - public static STYLEABLE_PATH_INTERPOLATOR_CONTROL_Y_2: number = 3; - public static STYLEABLE_PATH_INTERPOLATOR_PATH_DATA: number = 4; - public static FAST_OUT_LINEAR_IN: number = 17563663; - public static FAST_OUT_SLOW_IN: number = 17563661; - public static LINEAR_OUT_SLOW_IN: number = 17563662; + public static readonly STYLEABLE_PATH_INTERPOLATOR_CONTROL_X_1 = 0; + public static readonly STYLEABLE_PATH_INTERPOLATOR_CONTROL_Y_1 = 1; + public static readonly STYLEABLE_PATH_INTERPOLATOR_CONTROL_X_2 = 2; + public static readonly STYLEABLE_PATH_INTERPOLATOR_CONTROL_Y_2 = 3; + public static readonly STYLEABLE_PATH_INTERPOLATOR_PATH_DATA = 4; + public static readonly FAST_OUT_LINEAR_IN = 17563663; + public static readonly FAST_OUT_SLOW_IN = 17563661; + public static readonly LINEAR_OUT_SLOW_IN = 17563662; } } } } } -declare module androidx { - export module vectordrawable { - export module graphics { - export module drawable { +declare namespace androidx { + export namespace vectordrawable { + export namespace graphics { + export namespace drawable { export class Animatable2Compat { public static class: java.lang.Class; /** @@ -24325,7 +24322,7 @@ declare module androidx { public unregisterAnimationCallback(param0: androidx.vectordrawable.graphics.drawable.Animatable2Compat.AnimationCallback): boolean; public clearAnimationCallbacks(): void; } - export module Animatable2Compat { + export namespace Animatable2Compat { export abstract class AnimationCallback { public static class: java.lang.Class; public constructor(); @@ -24338,14 +24335,14 @@ declare module androidx { } } -declare module androidx { - export module vectordrawable { - export module graphics { - export module drawable { +declare namespace androidx { + export namespace vectordrawable { + export namespace graphics { + export namespace drawable { export class AnimatedVectorDrawableCompat extends androidx.vectordrawable.graphics.drawable.VectorDrawableCommon implements androidx.vectordrawable.graphics.drawable.Animatable2Compat { public static class: java.lang.Class; public mutate(): globalAndroid.graphics.drawable.Drawable; - public static create(drawable: globalAndroid.content.Context, parser: number): androidx.vectordrawable.graphics.drawable.AnimatedVectorDrawableCompat | null; + public static create(context: globalAndroid.content.Context, resId: number): androidx.vectordrawable.graphics.drawable.AnimatedVectorDrawableCompat | null; public static createFromXmlInner(context: globalAndroid.content.Context, r: globalAndroid.content.res.Resources, parser: org.xmlpull.v1.XmlPullParser, attrs: globalAndroid.util.AttributeSet, theme: globalAndroid.content.res.Resources.Theme): androidx.vectordrawable.graphics.drawable.AnimatedVectorDrawableCompat; public getConstantState(): globalAndroid.graphics.drawable.Drawable.ConstantState; public getChangingConfigurations(): number; @@ -24367,7 +24364,7 @@ declare module androidx { public getIntrinsicHeight(): number; public isAutoMirrored(): boolean; public setAutoMirrored(mirrored: boolean): void; - public inflate(a: globalAndroid.content.res.Resources, drawableRes: org.xmlpull.v1.XmlPullParser, objectAnimator: globalAndroid.util.AttributeSet, a: globalAndroid.content.res.Resources.Theme): void; + public inflate(res: globalAndroid.content.res.Resources, parser: org.xmlpull.v1.XmlPullParser, attrs: globalAndroid.util.AttributeSet, theme: globalAndroid.content.res.Resources.Theme): void; public inflate(res: globalAndroid.content.res.Resources, parser: org.xmlpull.v1.XmlPullParser, attrs: globalAndroid.util.AttributeSet): void; public applyTheme(t: globalAndroid.content.res.Resources.Theme): void; public canApplyTheme(): boolean; @@ -24386,10 +24383,10 @@ declare module androidx { public setTintList(param0: globalAndroid.content.res.ColorStateList): void; public setTintMode(param0: globalAndroid.graphics.PorterDuff.Mode): void; } - export module AnimatedVectorDrawableCompat { + export namespace AnimatedVectorDrawableCompat { export class AnimatedVectorDrawableCompatState { public static class: java.lang.Class; - public constructor(anim: globalAndroid.content.Context, animClone: androidx.vectordrawable.graphics.drawable.AnimatedVectorDrawableCompat.AnimatedVectorDrawableCompatState, targetName: globalAndroid.graphics.drawable.Drawable.Callback, targetObject: globalAndroid.content.res.Resources); + public constructor(context: globalAndroid.content.Context, copy: androidx.vectordrawable.graphics.drawable.AnimatedVectorDrawableCompat.AnimatedVectorDrawableCompatState, owner: globalAndroid.graphics.drawable.Drawable.Callback, res: globalAndroid.content.res.Resources); public newDrawable(): globalAndroid.graphics.drawable.Drawable; public newDrawable(res: globalAndroid.content.res.Resources): globalAndroid.graphics.drawable.Drawable; public getChangingConfigurations(): number; @@ -24410,33 +24407,33 @@ declare module androidx { } } -declare module androidx { - export module vectordrawable { - export module graphics { - export module drawable { +declare namespace androidx { + export namespace vectordrawable { + export namespace graphics { + export namespace drawable { export class AnimationUtilsCompat { public static class: java.lang.Class; - public static loadInterpolator(rnf: globalAndroid.content.Context, ex: number): globalAndroid.view.animation.Interpolator; + public static loadInterpolator(context: globalAndroid.content.Context, id: number): globalAndroid.view.animation.Interpolator; } } } } } -declare module androidx { - export module vectordrawable { - export module graphics { - export module drawable { +declare namespace androidx { + export namespace vectordrawable { + export namespace graphics { + export namespace drawable { export class AnimatorInflaterCompat { public static class: java.lang.Class; - public static loadAnimator(objectAnimator: globalAndroid.content.Context, context: number): globalAndroid.animation.Animator; + public static loadAnimator(context: globalAndroid.content.Context, id: number): globalAndroid.animation.Animator; public static loadAnimator(context: globalAndroid.content.Context, resources: globalAndroid.content.res.Resources, theme: globalAndroid.content.res.Resources.Theme, id: number): globalAndroid.animation.Animator; - public static loadAnimator(rnf: globalAndroid.content.Context, ex: globalAndroid.content.res.Resources, rnf: globalAndroid.content.res.Resources.Theme, ex: number, context: number): globalAndroid.animation.Animator; + public static loadAnimator(context: globalAndroid.content.Context, resources: globalAndroid.content.res.Resources, theme: globalAndroid.content.res.Resources.Theme, id: number, pathErrorScale: number): globalAndroid.animation.Animator; } - export module AnimatorInflaterCompat { + export namespace AnimatorInflaterCompat { export class PathDataEvaluator extends globalAndroid.animation.TypeEvaluator> { public static class: java.lang.Class; - public evaluate(this_: number, fraction: androidNative.Array, startPathData: androidNative.Array): androidNative.Array; + public evaluate(fraction: number, startPathData: androidNative.Array, endPathData: androidNative.Array): androidNative.Array; } } } @@ -24444,10 +24441,10 @@ declare module androidx { } } -declare module androidx { - export module vectordrawable { - export module graphics { - export module drawable { +declare namespace androidx { + export namespace vectordrawable { + export namespace graphics { + export namespace drawable { export class ArgbEvaluator { public static class: java.lang.Class; public constructor(); @@ -24459,27 +24456,27 @@ declare module androidx { } } -declare module androidx { - export module vectordrawable { - export module graphics { - export module drawable { +declare namespace androidx { + export namespace vectordrawable { + export namespace graphics { + export namespace drawable { export class PathInterpolatorCompat { public static class: java.lang.Class; - public static MAX_NUM_POINTS: number = 3000; - public static EPSILON: number = 1.0E-5; + public static readonly MAX_NUM_POINTS = 3000; + public static readonly EPSILON = 1.0E-5; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet, parser: org.xmlpull.v1.XmlPullParser); public constructor(res: globalAndroid.content.res.Resources, theme: globalAndroid.content.res.Resources.Theme, attrs: globalAndroid.util.AttributeSet, parser: org.xmlpull.v1.XmlPullParser); - public getInterpolation(this_: number): number; + public getInterpolation(t: number): number; } } } } } -declare module androidx { - export module vectordrawable { - export module graphics { - export module drawable { +declare namespace androidx { + export namespace vectordrawable { + export namespace graphics { + export namespace drawable { export abstract class VectorDrawableCommon implements androidx.core.graphics.drawable.TintAwareDrawable { public static class: java.lang.Class; public setColorFilter(color: number, mode: globalAndroid.graphics.PorterDuff.Mode): void; @@ -24509,10 +24506,10 @@ declare module androidx { } } -declare module androidx { - export module vectordrawable { - export module graphics { - export module drawable { +declare namespace androidx { + export namespace vectordrawable { + export namespace graphics { + export namespace drawable { export class VectorDrawableCompat extends androidx.vectordrawable.graphics.drawable.VectorDrawableCommon { public static class: java.lang.Class; public mutate(): globalAndroid.graphics.drawable.Drawable; @@ -24534,7 +24531,7 @@ declare module androidx { public isAutoMirrored(): boolean; public setAutoMirrored(mirrored: boolean): void; public getPixelSize(): number; - public static create(drawable: globalAndroid.content.res.Resources, parser: number, attrs: globalAndroid.content.res.Resources.Theme | null): androidx.vectordrawable.graphics.drawable.VectorDrawableCompat | null; + public static create(res: globalAndroid.content.res.Resources, resId: number, theme: globalAndroid.content.res.Resources.Theme | null): androidx.vectordrawable.graphics.drawable.VectorDrawableCompat | null; public static createFromXmlInner(r: globalAndroid.content.res.Resources, parser: org.xmlpull.v1.XmlPullParser, attrs: globalAndroid.util.AttributeSet, theme: globalAndroid.content.res.Resources.Theme): androidx.vectordrawable.graphics.drawable.VectorDrawableCompat; public inflate(res: globalAndroid.content.res.Resources, parser: org.xmlpull.v1.XmlPullParser, attrs: globalAndroid.util.AttributeSet): void; public inflate(res: globalAndroid.content.res.Resources, parser: org.xmlpull.v1.XmlPullParser, attrs: globalAndroid.util.AttributeSet, theme: globalAndroid.content.res.Resources.Theme): void; @@ -24548,7 +24545,7 @@ declare module androidx { public setTintList(param0: globalAndroid.content.res.ColorStateList): void; public setTintMode(param0: globalAndroid.graphics.PorterDuff.Mode): void; } - export module VectorDrawableCompat { + export namespace VectorDrawableCompat { export class VClipPath extends androidx.vectordrawable.graphics.drawable.VectorDrawableCompat.VPath { public static class: java.lang.Class; public constructor(copy: androidx.vectordrawable.graphics.drawable.VectorDrawableCompat.VPath); @@ -24570,7 +24567,7 @@ declare module androidx { } export class VGroup extends androidx.vectordrawable.graphics.drawable.VectorDrawableCompat.VObject { public static class: java.lang.Class; - public constructor(newPath: androidx.vectordrawable.graphics.drawable.VectorDrawableCompat.VGroup, newPath: androidx.collection.ArrayMap); + public constructor(copy: androidx.vectordrawable.graphics.drawable.VectorDrawableCompat.VGroup, targetsMap: androidx.collection.ArrayMap); public constructor(); public getGroupName(): string; public getLocalMatrix(): globalAndroid.graphics.Matrix; @@ -24590,7 +24587,7 @@ declare module androidx { public getTranslateY(): number; public setTranslateY(translateY: number): void; public isStateful(): boolean; - public onStateChanged(this_: androidNative.Array): boolean; + public onStateChanged(stateSet: androidNative.Array): boolean; } export abstract class VObject { public static class: java.lang.Class; @@ -24601,8 +24598,8 @@ declare module androidx { public static class: java.lang.Class; public mNodes: androidNative.Array; public constructor(); - public printVPath(this_: number): void; - public nodesToString(params: androidNative.Array): string; + public printVPath(level: number): void; + public nodesToString(nodes: androidNative.Array): string; public constructor(copy: androidx.vectordrawable.graphics.drawable.VectorDrawableCompat.VPath); public toPath(path: globalAndroid.graphics.Path): void; public getPathName(): string; @@ -24657,8 +24654,8 @@ declare module androidx { } } -declare module androidx { - export module versionedparcelable { +declare namespace androidx { + export namespace versionedparcelable { export abstract class CustomVersionedParcelable extends androidx.versionedparcelable.VersionedParcelable { public static class: java.lang.Class; public constructor(); @@ -24668,8 +24665,8 @@ declare module androidx { } } -declare module androidx { - export module versionedparcelable { +declare namespace androidx { + export namespace versionedparcelable { export class NonParcelField { public static class: java.lang.Class; /** @@ -24682,8 +24679,8 @@ declare module androidx { } } -declare module androidx { - export module versionedparcelable { +declare namespace androidx { + export namespace versionedparcelable { export class ParcelField { public static class: java.lang.Class; /** @@ -24700,8 +24697,8 @@ declare module androidx { } } -declare module androidx { - export module versionedparcelable { +declare namespace androidx { + export namespace versionedparcelable { export class ParcelImpl { public static class: java.lang.Class; public static CREATOR: globalAndroid.os.Parcelable.Creator; @@ -24714,8 +24711,8 @@ declare module androidx { } } -declare module androidx { - export module versionedparcelable { +declare namespace androidx { + export namespace versionedparcelable { export class ParcelUtils { public static class: java.lang.Class; public static toParcelable(obj: androidx.versionedparcelable.VersionedParcelable): globalAndroid.os.Parcelable; @@ -24723,13 +24720,13 @@ declare module androidx { public static toOutputStream(obj: androidx.versionedparcelable.VersionedParcelable, output: java.io.OutputStream): void; public static fromInputStream(input: java.io.InputStream): androidx.versionedparcelable.VersionedParcelable; public static putVersionedParcelable(b: globalAndroid.os.Bundle, key: string, obj: androidx.versionedparcelable.VersionedParcelable): void; - public static getVersionedParcelable(innerBundle: globalAndroid.os.Bundle, e: string): androidx.versionedparcelable.VersionedParcelable | null; + public static getVersionedParcelable(bundle: globalAndroid.os.Bundle, key: string): androidx.versionedparcelable.VersionedParcelable | null; } } } -declare module androidx { - export module versionedparcelable { +declare namespace androidx { + export namespace versionedparcelable { export abstract class VersionedParcel { public static class: java.lang.Class; public mReadCache: androidx.collection.ArrayMap; @@ -24794,56 +24791,56 @@ declare module androidx { public writeSizeF(val: any, fieldId: number): void; public writeSparseBooleanArray(val: globalAndroid.util.SparseBooleanArray, fieldId: number): void; public writeBooleanArray(val: androidNative.Array, fieldId: number): void; - public writeBooleanArray(n: androidNative.Array): void; + public writeBooleanArray(val: androidNative.Array): void; public readBooleanArray(def: androidNative.Array, fieldId: number): androidNative.Array; public readBooleanArray(): androidNative.Array; - public writeCharArray(n: androidNative.Array, this_: number): void; + public writeCharArray(val: androidNative.Array, fieldId: number): void; public readCharSequence(def: string, fieldId: number): string; - public readCharArray(this_: androidNative.Array, def: number): androidNative.Array; + public readCharArray(def: androidNative.Array, fieldId: number): androidNative.Array; public writeIntArray(val: androidNative.Array, fieldId: number): void; - public writeIntArray(n: androidNative.Array): void; + public writeIntArray(val: androidNative.Array): void; public readIntArray(def: androidNative.Array, fieldId: number): androidNative.Array; public readIntArray(): androidNative.Array; public writeLongArray(val: androidNative.Array, fieldId: number): void; - public writeLongArray(n: androidNative.Array): void; + public writeLongArray(val: androidNative.Array): void; public readLongArray(def: androidNative.Array, fieldId: number): androidNative.Array; public readLongArray(): androidNative.Array; public writeFloatArray(val: androidNative.Array, fieldId: number): void; - public writeFloatArray(n: androidNative.Array): void; + public writeFloatArray(val: androidNative.Array): void; public readFloatArray(def: androidNative.Array, fieldId: number): androidNative.Array; public readFloatArray(): androidNative.Array; public writeDoubleArray(val: androidNative.Array, fieldId: number): void; - public writeDoubleArray(n: androidNative.Array): void; + public writeDoubleArray(val: androidNative.Array): void; public readDoubleArray(def: androidNative.Array, fieldId: number): androidNative.Array; public readDoubleArray(): androidNative.Array; public writeSet(val: java.util.Set, fieldId: number): void; public writeList(val: java.util.List, fieldId: number): void; - public writeMap(this_: java.util.Map, val: number): void; + public writeMap(val: java.util.Map, fieldId: number): void; public writeArray(val: androidNative.Array, fieldId: number): void; - public writeArray(this_: androidNative.Array): void; + public writeArray(val: androidNative.Array): void; public writeVersionedParcelable(p: androidx.versionedparcelable.VersionedParcelable, fieldId: number): void; public writeVersionedParcelable(p: androidx.versionedparcelable.VersionedParcelable): void; public writeSerializable(s: java.io.Serializable, fieldId: number): void; public writeException(e: java.lang.Exception, fieldId: number): void; public writeNoException(): void; - public readException(this_: java.lang.Exception, def: number): java.lang.Exception; + public readException(def: java.lang.Exception, fieldId: number): java.lang.Exception; public static getRootCause(t: java.lang.Throwable): java.lang.Throwable; public readByte(def: number, fieldId: number): number; - public readSize(height: any, this_: number): any; - public readSizeF(height: any, this_: number): any; + public readSize(def: any, fieldId: number): any; + public readSizeF(def: any, fieldId: number): any; public readSparseBooleanArray(def: globalAndroid.util.SparseBooleanArray, fieldId: number): globalAndroid.util.SparseBooleanArray; public readSet(def: java.util.Set, fieldId: number): java.util.Set; public readList(def: java.util.List, fieldId: number): java.util.List; - public readMap(this_: java.util.Map, def: number): java.util.Map; + public readMap(def: java.util.Map, fieldId: number): java.util.Map; public readArray(def: androidNative.Array, fieldId: number): androidNative.Array; - public readArray(this_: androidNative.Array): androidNative.Array; + public readArray(def: androidNative.Array): androidNative.Array; public readVersionedParcelable(def: androidx.versionedparcelable.VersionedParcelable, fieldId: number): androidx.versionedparcelable.VersionedParcelable; public readVersionedParcelable(): androidx.versionedparcelable.VersionedParcelable; public readSerializable(): java.io.Serializable; - public readFromParcel(e: string, e: androidx.versionedparcelable.VersionedParcel): androidx.versionedparcelable.VersionedParcelable; - public writeToParcel(e: androidx.versionedparcelable.VersionedParcelable, e: androidx.versionedparcelable.VersionedParcel): void; + public readFromParcel(parcelCls: string, versionedParcel: androidx.versionedparcelable.VersionedParcel): androidx.versionedparcelable.VersionedParcelable; + public writeToParcel(val: androidx.versionedparcelable.VersionedParcelable, versionedParcel: androidx.versionedparcelable.VersionedParcel): void; } - export module VersionedParcel { + export namespace VersionedParcel { export class ParcelException { public static class: java.lang.Class; public constructor(source: java.lang.Throwable); @@ -24852,11 +24849,11 @@ declare module androidx { } } -declare module androidx { - export module versionedparcelable { +declare namespace androidx { + export namespace versionedparcelable { export class VersionedParcelParcel extends androidx.versionedparcelable.VersionedParcel { public static class: java.lang.Class; - public readField(this_: number): boolean; + public readField(fieldId: number): boolean; public setOutputField(fieldId: number): void; public closeField(): void; public createSubParcel(): androidx.versionedparcelable.VersionedParcel; @@ -24913,8 +24910,8 @@ declare module androidx { } } -declare module androidx { - export module versionedparcelable { +declare namespace androidx { + export namespace versionedparcelable { export class VersionedParcelStream extends androidx.versionedparcelable.VersionedParcel { public static class: java.lang.Class; public constructor(readCache: androidx.collection.ArrayMap, writeCache: androidx.collection.ArrayMap, parcelizerCache: androidx.collection.ArrayMap>); @@ -24923,27 +24920,27 @@ declare module androidx { public setSerializationFlags(allowSerialization: boolean, ignoreParcelables: boolean): void; public closeField(): void; public createSubParcel(): androidx.versionedparcelable.VersionedParcel; - public readField(size: number): boolean; + public readField(fieldId: number): boolean; public setOutputField(fieldId: number): void; public writeByteArray(param0: androidNative.Array, param1: number, param2: number): void; public writeByteArray(b: androidNative.Array, fieldId: number): void; public writeByteArray(b: androidNative.Array, offset: number, len: number, fieldId: number): void; - public writeByteArray(this_: androidNative.Array): void; - public writeByteArray(this_: androidNative.Array, b: number, offset: number): void; + public writeByteArray(b: androidNative.Array): void; + public writeByteArray(b: androidNative.Array, offset: number, len: number): void; public writeCharSequence(val: string, fieldId: number): void; public writeCharSequence(charSequence: string): void; public writeInt(val: number, fieldId: number): void; - public writeInt(this_: number): void; + public writeInt(val: number): void; public writeLong(val: number, fieldId: number): void; - public writeLong(this_: number): void; + public writeLong(val: number): void; public writeFloat(val: number, fieldId: number): void; - public writeFloat(this_: number): void; + public writeFloat(val: number): void; public writeDouble(val: number, fieldId: number): void; - public writeDouble(this_: number): void; + public writeDouble(val: number): void; public writeString(val: string, fieldId: number): void; - public writeString(e: string): void; + public writeString(val: string): void; public writeBoolean(val: boolean, fieldId: number): void; - public writeBoolean(this_: boolean): void; + public writeBoolean(val: boolean): void; public writeStrongBinder(val: globalAndroid.os.IBinder, fieldId: number): void; public writeStrongBinder(val: globalAndroid.os.IBinder): void; public writeParcelable(p: globalAndroid.os.Parcelable, fieldId: number): void; @@ -24971,11 +24968,11 @@ declare module androidx { public readBoolean(def: boolean, fieldId: number): boolean; public readBoolean(): boolean; public writeBundle(val: globalAndroid.os.Bundle, fieldId: number): void; - public writeBundle(key: globalAndroid.os.Bundle): void; + public writeBundle(val: globalAndroid.os.Bundle): void; public readBundle(def: globalAndroid.os.Bundle, fieldId: number): globalAndroid.os.Bundle; public readBundle(): globalAndroid.os.Bundle; } - export module VersionedParcelStream { + export namespace VersionedParcelStream { export class FieldBuffer { public static class: java.lang.Class; } @@ -24983,8 +24980,8 @@ declare module androidx { } } -declare module androidx { - export module versionedparcelable { +declare namespace androidx { + export namespace versionedparcelable { export class VersionedParcelable { public static class: java.lang.Class; /** @@ -24997,8 +24994,8 @@ declare module androidx { } } -declare module androidx { - export module versionedparcelable { +declare namespace androidx { + export namespace versionedparcelable { export class VersionedParcelize { public static class: java.lang.Class; /** @@ -25023,13 +25020,13 @@ declare module androidx { } } -declare module androidx { - export module viewpager { - export module widget { +declare namespace androidx { + export namespace viewpager { + export namespace widget { export abstract class PagerAdapter { public static class: java.lang.Class; - public static POSITION_UNCHANGED: number = -1; - public static POSITION_NONE: number = -2; + public static readonly POSITION_UNCHANGED = -1; + public static readonly POSITION_NONE = -2; public constructor(); public getCount(): number; public startUpdate(container: globalAndroid.view.ViewGroup): void; @@ -25061,14 +25058,13 @@ declare module androidx { } } -declare module androidx { - export module viewpager { - export module widget { +declare namespace androidx { + export namespace viewpager { + export namespace widget { export class PagerTabStrip extends androidx.viewpager.widget.PagerTitleStrip { public static class: java.lang.Class; - public constructor(ta: globalAndroid.content.Context, this_: globalAndroid.util.AttributeSet | null); - public constructor(context: globalAndroid.content.Context); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet | null); + public constructor(context: globalAndroid.content.Context); public setTabIndicatorColor(color: number): void; public setTabIndicatorColorResource(resId: number): void; public getTabIndicatorColor(): number; @@ -25086,13 +25082,13 @@ declare module androidx { } } -declare module androidx { - export module viewpager { - export module widget { +declare namespace androidx { + export namespace viewpager { + export namespace widget { export class PagerTitleStrip { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); - public constructor(ta: globalAndroid.content.Context, this_: globalAndroid.util.AttributeSet | null); + public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet | null); public setTextSpacing(spacingPixels: number): void; public getTextSpacing(): number; public setNonPrimaryAlpha(alpha: number): void; @@ -25102,14 +25098,14 @@ declare module androidx { public onAttachedToWindow(): void; public onDetachedFromWindow(): void; public requestLayout(): void; - public onMeasure(textHeight: number, minHeight: number): void; - public onLayout(this_: boolean, changed: number, l: number, t: number, r: number): void; + public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; + public onLayout(changed: boolean, l: number, t: number, r: number, b: number): void; } - export module PagerTitleStrip { + export namespace PagerTitleStrip { export class PageListener implements androidx.viewpager.widget.ViewPager.OnPageChangeListener, androidx.viewpager.widget.ViewPager.OnAdapterChangeListener { public static class: java.lang.Class; public onPageScrolled(position: number, positionOffset: number, positionOffsetPixels: number): void; - public onPageSelected(this_: number): void; + public onPageSelected(position: number): void; public onPageScrollStateChanged(state: number): void; public onAdapterChanged(viewPager: androidx.viewpager.widget.ViewPager, oldAdapter: androidx.viewpager.widget.PagerAdapter, newAdapter: androidx.viewpager.widget.PagerAdapter): void; public onChanged(): void; @@ -25127,18 +25123,18 @@ declare module androidx { } } -declare module androidx { - export module viewpager { - export module widget { +declare namespace androidx { + export namespace viewpager { + export namespace widget { export class ViewPager { public static class: java.lang.Class; - public static SCROLL_STATE_IDLE: number = 0; - public static SCROLL_STATE_DRAGGING: number = 1; - public static SCROLL_STATE_SETTLING: number = 2; + public static readonly SCROLL_STATE_IDLE = 0; + public static readonly SCROLL_STATE_DRAGGING = 1; + public static readonly SCROLL_STATE_SETTLING = 2; public constructor(context: globalAndroid.content.Context); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet | null); public onDetachedFromWindow(): void; - public setAdapter(i: androidx.viewpager.widget.PagerAdapter | null): void; + public setAdapter(adapter: androidx.viewpager.widget.PagerAdapter | null): void; public getAdapter(): androidx.viewpager.widget.PagerAdapter | null; public addOnAdapterChangeListener(listener: androidx.viewpager.widget.ViewPager.OnAdapterChangeListener): void; public removeOnAdapterChangeListener(listener: androidx.viewpager.widget.ViewPager.OnAdapterChangeListener): void; @@ -25166,34 +25162,34 @@ declare module androidx { public addView(child: globalAndroid.view.View, index: number, params: globalAndroid.view.ViewGroup.LayoutParams): void; public removeView(view: globalAndroid.view.View): void; public onAttachedToWindow(): void; - public onMeasure(vgrav: number, widthMode: number): void; + public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; public onSizeChanged(w: number, h: number, oldw: number, oldh: number): void; - public onLayout(vgrav: boolean, lp: number, childLeft: number, childTop: number, child: number): void; + public onLayout(changed: boolean, l: number, t: number, r: number, b: number): void; public computeScroll(): void; - public onPageScrolled(lp: number, hgrav: number, childLeft: number): void; - public onInterceptTouchEvent(pointerIndex: globalAndroid.view.MotionEvent): boolean; - public onTouchEvent(pointerIndex: globalAndroid.view.MotionEvent): boolean; - public draw(height: globalAndroid.graphics.Canvas): void; - public onDraw(widthFactor: globalAndroid.graphics.Canvas): void; + public onPageScrolled(position: number, offset: number, offsetPixels: number): void; + public onInterceptTouchEvent(ev: globalAndroid.view.MotionEvent): boolean; + public onTouchEvent(ev: globalAndroid.view.MotionEvent): boolean; + public draw(canvas: globalAndroid.graphics.Canvas): void; + public onDraw(canvas: globalAndroid.graphics.Canvas): void; public beginFakeDrag(): boolean; public endFakeDrag(): void; public fakeDragBy(xOffset: number): void; public isFakeDragging(): boolean; public canScrollHorizontally(direction: number): boolean; - public canScroll(i: globalAndroid.view.View, group: boolean, scrollX: number, scrollY: number, count: number): boolean; + public canScroll(v: globalAndroid.view.View, checkV: boolean, dx: number, x: number, y: number): boolean; public dispatchKeyEvent(event: globalAndroid.view.KeyEvent): boolean; public executeKeyEvent(event: globalAndroid.view.KeyEvent): boolean; - public arrowScroll(parent: number): boolean; - public addFocusables(child: java.util.ArrayList, i: number, this_: number): void; - public addTouchables(child: java.util.ArrayList): void; - public onRequestFocusInDescendants(increment: number, end: globalAndroid.graphics.Rect): boolean; - public dispatchPopulateAccessibilityEvent(child: globalAndroid.view.accessibility.AccessibilityEvent): boolean; + public arrowScroll(direction: number): boolean; + public addFocusables(views: java.util.ArrayList, direction: number, focusableMode: number): void; + public addTouchables(views: java.util.ArrayList): void; + public onRequestFocusInDescendants(direction: number, previouslyFocusedRect: globalAndroid.graphics.Rect): boolean; + public dispatchPopulateAccessibilityEvent(event: globalAndroid.view.accessibility.AccessibilityEvent): boolean; public generateDefaultLayoutParams(): globalAndroid.view.ViewGroup.LayoutParams; public generateLayoutParams(p: globalAndroid.view.ViewGroup.LayoutParams): globalAndroid.view.ViewGroup.LayoutParams; public checkLayoutParams(p: globalAndroid.view.ViewGroup.LayoutParams): boolean; public generateLayoutParams(attrs: globalAndroid.util.AttributeSet): globalAndroid.view.ViewGroup.LayoutParams; } - export module ViewPager { + export namespace ViewPager { export class DecorView { public static class: java.lang.Class; /** @@ -25289,11 +25285,11 @@ declare module androidx { } } -declare module com { - export module google { - export module android { - export module material { - export module animation { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace animation { export class AnimationUtils { public static class: java.lang.Class; public static LINEAR_INTERPOLATOR: globalAndroid.animation.TimeInterpolator; @@ -25310,15 +25306,15 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module animation { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace animation { export class AnimatorSetCompat { public static class: java.lang.Class; public constructor(); - public static playTogether(animator: globalAndroid.animation.AnimatorSet, i: java.util.List): void; + public static playTogether(animatorSet: globalAndroid.animation.AnimatorSet, items: java.util.List): void; } } } @@ -25326,11 +25322,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module animation { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace animation { export class ArgbEvaluatorCompat extends globalAndroid.animation.TypeEvaluator { public static class: java.lang.Class; public constructor(); @@ -25343,16 +25339,16 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module animation { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace animation { export class ChildrenAlphaProperty extends globalAndroid.util.Property { public static class: java.lang.Class; public static CHILDREN_ALPHA: globalAndroid.util.Property; public get(object: globalAndroid.view.ViewGroup): java.lang.Float; - public set(i: globalAndroid.view.ViewGroup, count: java.lang.Float): void; + public set(object: globalAndroid.view.ViewGroup, value: java.lang.Float): void; } } } @@ -25360,11 +25356,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module animation { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace animation { export class DrawableAlphaProperty extends globalAndroid.util.Property { public static class: java.lang.Class; public static DRAWABLE_ALPHA_COMPAT: globalAndroid.util.Property; @@ -25377,11 +25373,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module animation { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace animation { export class ImageMatrixProperty extends globalAndroid.util.Property { public static class: java.lang.Class; public constructor(); @@ -25394,15 +25390,15 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module animation { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace animation { export class MatrixEvaluator extends globalAndroid.animation.TypeEvaluator { public static class: java.lang.Class; public constructor(); - public evaluate(i: number, this_: globalAndroid.graphics.Matrix, fraction: globalAndroid.graphics.Matrix): globalAndroid.graphics.Matrix; + public evaluate(fraction: number, startValue: globalAndroid.graphics.Matrix, endValue: globalAndroid.graphics.Matrix): globalAndroid.graphics.Matrix; } } } @@ -25410,11 +25406,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module animation { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace animation { export class MotionSpec { public static class: java.lang.Class; public constructor(); @@ -25422,8 +25418,8 @@ declare module com { public getTiming(name: string): com.google.android.material.animation.MotionTiming; public setTiming(name: string, timing: com.google.android.material.animation.MotionTiming | null): void; public getTotalDuration(): number; - public static createFromAttribute(resourceId: globalAndroid.content.Context, context: globalAndroid.content.res.TypedArray, attributes: number): com.google.android.material.animation.MotionSpec | null; - public static createFromResource(set: globalAndroid.content.Context, animators: number): com.google.android.material.animation.MotionSpec | null; + public static createFromAttribute(context: globalAndroid.content.Context, attributes: globalAndroid.content.res.TypedArray, index: number): com.google.android.material.animation.MotionSpec | null; + public static createFromResource(context: globalAndroid.content.Context, id: number): com.google.android.material.animation.MotionSpec | null; public equals(o: any): boolean; public hashCode(): number; public toString(): string; @@ -25434,11 +25430,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module animation { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace animation { export class MotionTiming { public static class: java.lang.Class; public constructor(delay: number, duration: number); @@ -25459,11 +25455,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module animation { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace animation { export class Positioning { public static class: java.lang.Class; public gravity: number; @@ -25477,11 +25473,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module animation { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace animation { export class TransformationListener extends java.lang.Object { public static class: java.lang.Class>; /** @@ -25501,11 +25497,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module appbar { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace appbar { export class AppBarLayout { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); @@ -25516,7 +25512,7 @@ declare module com { public removeOnOffsetChangedListener(listener: com.google.android.material.appbar.AppBarLayout.BaseOnOffsetChangedListener): void; public removeOnOffsetChangedListener(listener: com.google.android.material.appbar.AppBarLayout.OnOffsetChangedListener): void; public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; - public onLayout(childLp: boolean, interpolator: number, i: number, z: number, this_: number): void; + public onLayout(changed: boolean, l: number, t: number, r: number, b: number): void; public setOrientation(orientation: number): void; public setExpanded(expanded: boolean): void; public setExpanded(expanded: boolean, animate: boolean): void; @@ -25539,7 +25535,7 @@ declare module com { /** @deprecated */ public getTargetElevation(): number; } - export module AppBarLayout { + export namespace AppBarLayout { export class BaseBehavior extends com.google.android.material.appbar.HeaderBehavior { public static class: java.lang.Class>; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); @@ -25551,7 +25547,6 @@ declare module com { /** @deprecated */ public onNestedPreScroll(coordinatorLayout: androidx.coordinatorlayout.widget.CoordinatorLayout, child: any, target: globalAndroid.view.View, dx: number, dy: number, consumed: androidNative.Array): void; public onNestedPreScroll(coordinatorLayout: androidx.coordinatorlayout.widget.CoordinatorLayout, child: any, target: globalAndroid.view.View, dx: number, dy: number, consumed: androidNative.Array, type: number): void; - public onNestedPreScroll(max: androidx.coordinatorlayout.widget.CoordinatorLayout, min: any, max: globalAndroid.view.View, this_: number, coordinatorLayout: number, child: androidNative.Array, target: number): void; /** @deprecated */ public onNestedScroll(coordinatorLayout: androidx.coordinatorlayout.widget.CoordinatorLayout, child: any, target: globalAndroid.view.View, dxConsumed: number, dyConsumed: number, dxUnconsumed: number, dyUnconsumed: number): void; public onNestedScroll(coordinatorLayout: androidx.coordinatorlayout.widget.CoordinatorLayout, child: any, target: globalAndroid.view.View, dxConsumed: number, dyConsumed: number, dxUnconsumed: number, dyUnconsumed: number, type: number): void; @@ -25562,13 +25557,13 @@ declare module com { public setDragCallback(callback: com.google.android.material.appbar.AppBarLayout.BaseBehavior.BaseDragCallback | null): void; public onMeasureChild(parent: androidx.coordinatorlayout.widget.CoordinatorLayout, child: any, parentWidthMeasureSpec: number, widthUsed: number, parentHeightMeasureSpec: number, heightUsed: number): boolean; public onLayoutChild(parent: androidx.coordinatorlayout.widget.CoordinatorLayout, child: any, layoutDirection: number): boolean; - public onLayoutChild(offset: androidx.coordinatorlayout.widget.CoordinatorLayout, offset: any, animate: number): boolean; + public onLayoutChild(parent: androidx.coordinatorlayout.widget.CoordinatorLayout, abl: any, layoutDirection: number): boolean; public onSaveInstanceState(parent: androidx.coordinatorlayout.widget.CoordinatorLayout, child: any): globalAndroid.os.Parcelable | null; - public onSaveInstanceState(child: androidx.coordinatorlayout.widget.CoordinatorLayout, visBottom: any): globalAndroid.os.Parcelable; + public onSaveInstanceState(parent: androidx.coordinatorlayout.widget.CoordinatorLayout, abl: any): globalAndroid.os.Parcelable; public onRestoreInstanceState(parent: androidx.coordinatorlayout.widget.CoordinatorLayout, child: any, state: globalAndroid.os.Parcelable): void; - public onRestoreInstanceState(this_: androidx.coordinatorlayout.widget.CoordinatorLayout, parent: any, appBarLayout: globalAndroid.os.Parcelable): void; + public onRestoreInstanceState(parent: androidx.coordinatorlayout.widget.CoordinatorLayout, appBarLayout: any, state: globalAndroid.os.Parcelable): void; } - export module BaseBehavior { + export namespace BaseBehavior { export abstract class BaseDragCallback extends java.lang.Object { public static class: java.lang.Class>; public constructor(); @@ -25599,7 +25594,7 @@ declare module com { public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); public constructor(); } - export module Behavior { + export namespace Behavior { export abstract class DragCallback extends com.google.android.material.appbar.AppBarLayout.BaseBehavior.BaseDragCallback { public static class: java.lang.Class; public constructor(); @@ -25607,13 +25602,13 @@ declare module com { } export class LayoutParams { public static class: java.lang.Class; - public static SCROLL_FLAG_SCROLL: number = 1; - public static SCROLL_FLAG_EXIT_UNTIL_COLLAPSED: number = 2; - public static SCROLL_FLAG_ENTER_ALWAYS: number = 4; - public static SCROLL_FLAG_ENTER_ALWAYS_COLLAPSED: number = 8; - public static SCROLL_FLAG_SNAP: number = 16; - public static SCROLL_FLAG_SNAP_MARGINS: number = 32; - public constructor(this_: globalAndroid.content.Context, c: globalAndroid.util.AttributeSet); + public static readonly SCROLL_FLAG_SCROLL = 1; + public static readonly SCROLL_FLAG_EXIT_UNTIL_COLLAPSED = 2; + public static readonly SCROLL_FLAG_ENTER_ALWAYS = 4; + public static readonly SCROLL_FLAG_ENTER_ALWAYS_COLLAPSED = 8; + public static readonly SCROLL_FLAG_SNAP = 16; + public static readonly SCROLL_FLAG_SNAP_MARGINS = 32; + public constructor(c: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); public constructor(width: number, height: number); public constructor(width: number, height: number, weight: number); public constructor(p: globalAndroid.view.ViewGroup.LayoutParams); @@ -25625,7 +25620,7 @@ declare module com { public setScrollInterpolator(interpolator: globalAndroid.view.animation.Interpolator): void; public getScrollInterpolator(): globalAndroid.view.animation.Interpolator; } - export module LayoutParams { + export namespace LayoutParams { export class ScrollFlags { public static class: java.lang.Class; /** @@ -25655,7 +25650,7 @@ declare module com { public constructor(); public layoutDependsOn(parent: androidx.coordinatorlayout.widget.CoordinatorLayout, child: globalAndroid.view.View, dependency: globalAndroid.view.View): boolean; public onDependentViewChanged(parent: androidx.coordinatorlayout.widget.CoordinatorLayout, child: globalAndroid.view.View, dependency: globalAndroid.view.View): boolean; - public onRequestChildRectangleOnScreen(this_: androidx.coordinatorlayout.widget.CoordinatorLayout, parent: globalAndroid.view.View, child: globalAndroid.graphics.Rect, rectangle: boolean): boolean; + public onRequestChildRectangleOnScreen(parent: androidx.coordinatorlayout.widget.CoordinatorLayout, child: globalAndroid.view.View, rectangle: globalAndroid.graphics.Rect, immediate: boolean): boolean; } } } @@ -25664,11 +25659,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module appbar { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace appbar { export class CollapsingToolbarLayout { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); @@ -25676,11 +25671,11 @@ declare module com { public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet, defStyleAttr: number); public onAttachedToWindow(): void; public onDetachedFromWindow(): void; - public draw(this_: globalAndroid.graphics.Canvas): void; + public draw(canvas: globalAndroid.graphics.Canvas): void; public drawChild(canvas: globalAndroid.graphics.Canvas, child: globalAndroid.view.View, drawingTime: number): boolean; public onSizeChanged(w: number, h: number, oldw: number, oldh: number): void; public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; - public onLayout(i: boolean, z: number, insetTop: number, isRtl: number, maxOffset: number): void; + public onLayout(changed: boolean, left: number, top: number, right: number, bottom: number): void; public setTitle(title: string | null): void; public getTitle(): string | null; public setTitleEnabled(enabled: boolean): void; @@ -25730,12 +25725,12 @@ declare module com { public generateLayoutParams(attrs: globalAndroid.util.AttributeSet): globalAndroid.widget.FrameLayout.LayoutParams; public generateLayoutParams(p: globalAndroid.view.ViewGroup.LayoutParams): globalAndroid.widget.FrameLayout.LayoutParams; } - export module CollapsingToolbarLayout { + export namespace CollapsingToolbarLayout { export class LayoutParams { public static class: java.lang.Class; - public static COLLAPSE_MODE_OFF: number = 0; - public static COLLAPSE_MODE_PIN: number = 1; - public static COLLAPSE_MODE_PARALLAX: number = 2; + public static readonly COLLAPSE_MODE_OFF = 0; + public static readonly COLLAPSE_MODE_PIN = 1; + public static readonly COLLAPSE_MODE_PARALLAX = 2; public constructor(c: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); public constructor(width: number, height: number); public constructor(width: number, height: number, gravity: number); @@ -25749,7 +25744,7 @@ declare module com { } export class OffsetUpdateListener extends com.google.android.material.appbar.AppBarLayout.OnOffsetChangedListener { public static class: java.lang.Class; - public onOffsetChanged(lp: com.google.android.material.appbar.AppBarLayout, offsetHelper: number): void; + public onOffsetChanged(layout: com.google.android.material.appbar.AppBarLayout, verticalOffset: number): void; public onOffsetChanged(param0: com.google.android.material.appbar.AppBarLayout, param1: number): void; public onOffsetChanged(param0: any, param1: number): void; } @@ -25760,19 +25755,19 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module appbar { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace appbar { export abstract class HeaderBehavior extends com.google.android.material.appbar.ViewOffsetBehavior { public static class: java.lang.Class>; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); public constructor(); - public onInterceptTouchEvent(y: androidx.coordinatorlayout.widget.CoordinatorLayout, activePointerId: any, pointerIndex: globalAndroid.view.MotionEvent): boolean; - public onTouchEvent(y: androidx.coordinatorlayout.widget.CoordinatorLayout, activePointerIndex: any, y: globalAndroid.view.MotionEvent): boolean; + public onInterceptTouchEvent(parent: androidx.coordinatorlayout.widget.CoordinatorLayout, child: any, ev: globalAndroid.view.MotionEvent): boolean; + public onTouchEvent(parent: androidx.coordinatorlayout.widget.CoordinatorLayout, child: any, ev: globalAndroid.view.MotionEvent): boolean; } - export module HeaderBehavior { + export namespace HeaderBehavior { export class FlingRunnable { public static class: java.lang.Class; public run(): void; @@ -25784,17 +25779,17 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module appbar { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace appbar { export abstract class HeaderScrollingViewBehavior extends com.google.android.material.appbar.ViewOffsetBehavior { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); public constructor(); - public onMeasureChild(height: androidx.coordinatorlayout.widget.CoordinatorLayout, headerHeight: globalAndroid.view.View, heightMeasureSpec: number, dependencies: number, header: number, this_: number): boolean; - public layoutChild(available: androidx.coordinatorlayout.widget.CoordinatorLayout, parentInsets: globalAndroid.view.View, out: number): void; + public onMeasureChild(parent: androidx.coordinatorlayout.widget.CoordinatorLayout, child: globalAndroid.view.View, parentWidthMeasureSpec: number, widthUsed: number, parentHeightMeasureSpec: number, heightUsed: number): boolean; + public layoutChild(parent: androidx.coordinatorlayout.widget.CoordinatorLayout, child: globalAndroid.view.View, layoutDirection: number): void; public shouldHeaderOverlapScrollingChild(): boolean; public setOverlayTop(overlayTop: number): void; public getOverlayTop(): number; @@ -25805,11 +25800,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module appbar { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace appbar { export class ViewOffsetBehavior extends androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior { public static class: java.lang.Class>; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); @@ -25831,11 +25826,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module appbar { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace appbar { export class ViewOffsetHelper { public static class: java.lang.Class; public constructor(view: globalAndroid.view.View); @@ -25857,11 +25852,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module appbar { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace appbar { export class ViewUtilsLollipop { public static class: java.lang.Class; } @@ -25871,15 +25866,15 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module behavior { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace behavior { export class HideBottomViewOnScrollBehavior extends androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior { public static class: java.lang.Class>; - public static ENTER_ANIMATION_DURATION: number = 225; - public static EXIT_ANIMATION_DURATION: number = 175; + public static readonly ENTER_ANIMATION_DURATION = 225; + public static readonly EXIT_ANIMATION_DURATION = 175; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); public constructor(); public onLayoutChild(parent: androidx.coordinatorlayout.widget.CoordinatorLayout, child: any, layoutDirection: number): boolean; @@ -25896,19 +25891,19 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module behavior { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace behavior { export class SwipeDismissBehavior extends androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior { public static class: java.lang.Class>; - public static STATE_IDLE: number = 0; - public static STATE_DRAGGING: number = 1; - public static STATE_SETTLING: number = 2; - public static SWIPE_DIRECTION_START_TO_END: number = 0; - public static SWIPE_DIRECTION_END_TO_START: number = 1; - public static SWIPE_DIRECTION_ANY: number = 2; + public static readonly STATE_IDLE = 0; + public static readonly STATE_DRAGGING = 1; + public static readonly STATE_SETTLING = 2; + public static readonly SWIPE_DIRECTION_START_TO_END = 0; + public static readonly SWIPE_DIRECTION_END_TO_START = 1; + public static readonly SWIPE_DIRECTION_ANY = 2; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); public constructor(); public setListener(listener: com.google.android.material.behavior.SwipeDismissBehavior.OnDismissListener): void; @@ -25922,7 +25917,7 @@ declare module com { public canSwipeDismissView(view: globalAndroid.view.View): boolean; public getDragState(): number; } - export module SwipeDismissBehavior { + export namespace SwipeDismissBehavior { export class OnDismissListener { public static class: java.lang.Class; /** @@ -25947,17 +25942,17 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module bottomappbar { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace bottomappbar { export class BottomAppBar extends androidx.appcompat.widget.Toolbar implements androidx.coordinatorlayout.widget.CoordinatorLayout.AttachedBehavior { public static class: java.lang.Class; - public static FAB_ALIGNMENT_MODE_CENTER: number = 0; - public static FAB_ALIGNMENT_MODE_END: number = 1; - public static FAB_ANIMATION_MODE_SCALE: number = 0; - public static FAB_ANIMATION_MODE_SLIDE: number = 1; + public static readonly FAB_ALIGNMENT_MODE_CENTER = 0; + public static readonly FAB_ALIGNMENT_MODE_END = 1; + public static readonly FAB_ANIMATION_MODE_SCALE = 0; + public static readonly FAB_ANIMATION_MODE_SLIDE = 1; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet | null); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet | null, defStyleAttr: number); public constructor(context: globalAndroid.content.Context); @@ -25988,20 +25983,20 @@ declare module com { public onRestoreInstanceState(state: globalAndroid.os.Parcelable): void; public getBehavior(): androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior; } - export module BottomAppBar { + export namespace BottomAppBar { export class Behavior extends com.google.android.material.behavior.HideBottomViewOnScrollBehavior { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); public constructor(); public onLayoutChild(parent: androidx.coordinatorlayout.widget.CoordinatorLayout, child: any, layoutDirection: number): boolean; - public onLayoutChild(this_: androidx.coordinatorlayout.widget.CoordinatorLayout, parent: com.google.android.material.bottomappbar.BottomAppBar, child: number): boolean; + public onLayoutChild(parent: androidx.coordinatorlayout.widget.CoordinatorLayout, child: com.google.android.material.bottomappbar.BottomAppBar, layoutDirection: number): boolean; public onStartNestedScroll(coordinatorLayout: androidx.coordinatorlayout.widget.CoordinatorLayout, child: any, directTargetChild: globalAndroid.view.View, target: globalAndroid.view.View, nestedScrollAxes: number): boolean; public onStartNestedScroll(coordinatorLayout: androidx.coordinatorlayout.widget.CoordinatorLayout, child: any, directTargetChild: globalAndroid.view.View, target: globalAndroid.view.View, axes: number, type: number): boolean; public onStartNestedScroll(coordinatorLayout: androidx.coordinatorlayout.widget.CoordinatorLayout, child: com.google.android.material.bottomappbar.BottomAppBar, directTargetChild: globalAndroid.view.View, target: globalAndroid.view.View, axes: number, type: number): boolean; public slideUp(child: any): void; public slideUp(child: com.google.android.material.bottomappbar.BottomAppBar): void; public slideDown(child: any): void; - public slideDown(this_: com.google.android.material.bottomappbar.BottomAppBar): void; + public slideDown(child: com.google.android.material.bottomappbar.BottomAppBar): void; } export class FabAlignmentMode { public static class: java.lang.Class; @@ -26037,11 +26032,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module bottomappbar { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace bottomappbar { export class BottomAppBarTopEdgeTreatment extends com.google.android.material.shape.EdgeTreatment { public static class: java.lang.Class; public constructor(); @@ -26054,22 +26049,22 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module bottomnavigation { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace bottomnavigation { export class BottomNavigationItemView implements androidx.appcompat.view.menu.MenuView.ItemView { public static class: java.lang.Class; - public static INVALID_ITEM_POSITION: number = -1; + public static readonly INVALID_ITEM_POSITION = -1; public constructor(context: globalAndroid.content.Context); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet, defStyleAttr: number); public initialize(itemData: androidx.appcompat.view.menu.MenuItemImpl, menuType: number): void; public setItemPosition(position: number): void; public getItemPosition(): number; - public setShifting(this_: boolean): void; - public setLabelVisibilityMode(this_: number): void; + public setShifting(shifting: boolean): void; + public setLabelVisibilityMode(mode: number): void; public getItemData(): androidx.appcompat.view.menu.MenuItemImpl; public setTitle(title: string): void; public setCheckable(checkable: boolean): void; @@ -26077,7 +26072,7 @@ declare module com { public setEnabled(enabled: boolean): void; public onCreateDrawableState(extraSpace: number): androidNative.Array; public setShortcut(showShortcut: boolean, shortcutKey: string): void; - public setIcon(this_: globalAndroid.graphics.drawable.Drawable): void; + public setIcon(iconDrawable: globalAndroid.graphics.drawable.Drawable): void; public prefersCondensedTitle(): boolean; public showsIcon(): boolean; public setIconTintList(tint: globalAndroid.content.res.ColorStateList): void; @@ -26101,14 +26096,14 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module bottomnavigation { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace bottomnavigation { export class BottomNavigationMenu extends androidx.appcompat.view.menu.MenuBuilder { public static class: java.lang.Class; - public static MAX_ITEM_COUNT: number = 5; + public static readonly MAX_ITEM_COUNT = 5; public constructor(context: globalAndroid.content.Context); public addSubMenu(title: string): globalAndroid.view.SubMenu; public addSubMenu(titleRes: number): globalAndroid.view.SubMenu; @@ -26123,33 +26118,33 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module bottomnavigation { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace bottomnavigation { export class BottomNavigationMenuView implements androidx.appcompat.view.menu.MenuView { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); public initialize(menu: androidx.appcompat.view.menu.MenuBuilder): void; - public onMeasure(activeChild: number, activeItemWidth: number): void; - public onLayout(i: boolean, this_: number, changed: number, left: number, top: number): void; + public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; + public onLayout(changed: boolean, left: number, top: number, right: number, bottom: number): void; public getWindowAnimations(): number; - public setIconTintList(this_: globalAndroid.content.res.ColorStateList): void; + public setIconTintList(tint: globalAndroid.content.res.ColorStateList): void; public getIconTintList(): globalAndroid.content.res.ColorStateList | null; - public setItemIconSize(this_: number): void; + public setItemIconSize(iconSize: number): void; public getItemIconSize(): number; - public setItemTextColor(this_: globalAndroid.content.res.ColorStateList): void; + public setItemTextColor(color: globalAndroid.content.res.ColorStateList): void; public getItemTextColor(): globalAndroid.content.res.ColorStateList; - public setItemTextAppearanceInactive(this_: number): void; + public setItemTextAppearanceInactive(textAppearanceRes: number): void; public getItemTextAppearanceInactive(): number; - public setItemTextAppearanceActive(this_: number): void; + public setItemTextAppearanceActive(textAppearanceRes: number): void; public getItemTextAppearanceActive(): number; - public setItemBackgroundRes(this_: number): void; + public setItemBackgroundRes(background: number): void; /** @deprecated */ public getItemBackgroundRes(): number; - public setItemBackground(this_: globalAndroid.graphics.drawable.Drawable | null): void; + public setItemBackground(background: globalAndroid.graphics.drawable.Drawable | null): void; public getItemBackground(): globalAndroid.graphics.drawable.Drawable | null; public setLabelVisibilityMode(labelVisibilityMode: number): void; public getLabelVisibilityMode(): number; @@ -26168,11 +26163,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module bottomnavigation { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace bottomnavigation { export class BottomNavigationPresenter extends androidx.appcompat.view.menu.MenuPresenter { public static class: java.lang.Class; public constructor(); @@ -26201,7 +26196,7 @@ declare module com { public collapseItemActionView(param0: androidx.appcompat.view.menu.MenuBuilder, param1: androidx.appcompat.view.menu.MenuItemImpl): boolean; public onRestoreInstanceState(param0: globalAndroid.os.Parcelable): void; } - export module BottomNavigationPresenter { + export namespace BottomNavigationPresenter { export class SavedState { public static class: java.lang.Class; public static CREATOR: globalAndroid.os.Parcelable.Creator; @@ -26215,11 +26210,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module bottomnavigation { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace bottomnavigation { export class BottomNavigationView { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); @@ -26255,7 +26250,7 @@ declare module com { public onSaveInstanceState(): globalAndroid.os.Parcelable; public onRestoreInstanceState(state: globalAndroid.os.Parcelable): void; } - export module BottomNavigationView { + export namespace BottomNavigationView { export class OnNavigationItemReselectedListener { public static class: java.lang.Class; /** @@ -26294,11 +26289,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module bottomnavigation { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace bottomnavigation { export class LabelVisibilityMode { public static class: java.lang.Class; /** @@ -26307,10 +26302,10 @@ declare module com { public constructor(implementation: { }); public constructor(); - public static LABEL_VISIBILITY_AUTO: number = -1; - public static LABEL_VISIBILITY_SELECTED: number = 0; - public static LABEL_VISIBILITY_LABELED: number = 1; - public static LABEL_VISIBILITY_UNLABELED: number = 2; + public static readonly LABEL_VISIBILITY_AUTO = -1; + public static readonly LABEL_VISIBILITY_SELECTED = 0; + public static readonly LABEL_VISIBILITY_LABELED = 1; + public static readonly LABEL_VISIBILITY_UNLABELED = 2; } } } @@ -26318,26 +26313,26 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module bottomsheet { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace bottomsheet { export class BottomSheetBehavior extends androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior { public static class: java.lang.Class>; - public static STATE_DRAGGING: number = 1; - public static STATE_SETTLING: number = 2; - public static STATE_EXPANDED: number = 3; - public static STATE_COLLAPSED: number = 4; - public static STATE_HIDDEN: number = 5; - public static STATE_HALF_EXPANDED: number = 6; - public static PEEK_HEIGHT_AUTO: number = -1; + public static readonly STATE_DRAGGING = 1; + public static readonly STATE_SETTLING = 2; + public static readonly STATE_EXPANDED = 3; + public static readonly STATE_COLLAPSED = 4; + public static readonly STATE_HIDDEN = 5; + public static readonly STATE_HALF_EXPANDED = 6; + public static readonly PEEK_HEIGHT_AUTO = -1; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); public constructor(); public onSaveInstanceState(parent: androidx.coordinatorlayout.widget.CoordinatorLayout, child: any): globalAndroid.os.Parcelable; public onRestoreInstanceState(parent: androidx.coordinatorlayout.widget.CoordinatorLayout, child: any, state: globalAndroid.os.Parcelable): void; public onLayoutChild(parent: androidx.coordinatorlayout.widget.CoordinatorLayout, child: any, layoutDirection: number): boolean; - public onInterceptTouchEvent(scroll: androidx.coordinatorlayout.widget.CoordinatorLayout, this_: any, parent: globalAndroid.view.MotionEvent): boolean; + public onInterceptTouchEvent(parent: androidx.coordinatorlayout.widget.CoordinatorLayout, child: any, event: globalAndroid.view.MotionEvent): boolean; public onTouchEvent(parent: androidx.coordinatorlayout.widget.CoordinatorLayout, child: any, event: globalAndroid.view.MotionEvent): boolean; /** @deprecated */ public onStartNestedScroll(coordinatorLayout: androidx.coordinatorlayout.widget.CoordinatorLayout, child: any, directTargetChild: globalAndroid.view.View, target: globalAndroid.view.View, axes: number): boolean; @@ -26347,12 +26342,12 @@ declare module com { public onNestedPreScroll(coordinatorLayout: androidx.coordinatorlayout.widget.CoordinatorLayout, child: any, target: globalAndroid.view.View, dx: number, dy: number, consumed: androidNative.Array, type: number): void; /** @deprecated */ public onStopNestedScroll(coordinatorLayout: androidx.coordinatorlayout.widget.CoordinatorLayout, child: any, target: globalAndroid.view.View): void; - public onStopNestedScroll(targetState: androidx.coordinatorlayout.widget.CoordinatorLayout, top: any, targetState: globalAndroid.view.View, top: number): void; + public onStopNestedScroll(coordinatorLayout: androidx.coordinatorlayout.widget.CoordinatorLayout, child: any, target: globalAndroid.view.View, type: number): void; public onNestedPreFling(coordinatorLayout: androidx.coordinatorlayout.widget.CoordinatorLayout, child: any, target: globalAndroid.view.View, velocityX: number, velocityY: number): boolean; public isFitToContents(): boolean; public setFitToContents(fitToContents: boolean): void; public setPeekHeight(peekHeight: number): void; - public setPeekHeight(this_: number, peekHeight: boolean): void; + public setPeekHeight(peekHeight: number, animate: boolean): void; public getPeekHeight(): number; public setHideable(hideable: boolean): void; public isHideable(): boolean; @@ -26363,7 +26358,7 @@ declare module com { public getState(): number; public static from(view: globalAndroid.view.View): com.google.android.material.bottomsheet.BottomSheetBehavior; } - export module BottomSheetBehavior { + export namespace BottomSheetBehavior { export abstract class BottomSheetCallback { public static class: java.lang.Class; public constructor(); @@ -26400,11 +26395,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module bottomsheet { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace bottomsheet { export class BottomSheetDialog extends androidx.appcompat.app.AppCompatDialog { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, theme: number); @@ -26427,11 +26422,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module bottomsheet { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace bottomsheet { export class BottomSheetDialogFragment extends androidx.appcompat.app.AppCompatDialogFragment { public static class: java.lang.Class; public constructor(); @@ -26445,15 +26440,15 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module button { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace button { export class MaterialButton extends androidx.appcompat.widget.AppCompatButton { public static class: java.lang.Class; - public static ICON_GRAVITY_START: number = 1; - public static ICON_GRAVITY_TEXT_START: number = 2; + public static readonly ICON_GRAVITY_START = 1; + public static readonly ICON_GRAVITY_TEXT_START = 2; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet, defStyleAttr: number); public constructor(context: globalAndroid.content.Context); @@ -26509,7 +26504,7 @@ declare module com { public getAutoSizeMaxTextSize(): number; public getAutoSizeTextAvailableSizes(): androidNative.Array; } - export module MaterialButton { + export namespace MaterialButton { export class IconGravity { public static class: java.lang.Class; /** @@ -26526,14 +26521,14 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module button { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace button { export class MaterialButtonBackgroundDrawable { public static class: java.lang.Class; - public setColorFilter(layerDrawable: globalAndroid.graphics.ColorFilter): void; + public setColorFilter(colorFilter: globalAndroid.graphics.ColorFilter): void; } } } @@ -26541,11 +26536,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module button { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace button { export class MaterialButtonHelper { public static class: java.lang.Class; public constructor(button: com.google.android.material.button.MaterialButton); @@ -26557,11 +26552,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module canvas { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace canvas { export class CanvasCompat { public static class: java.lang.Class; public static saveLayerAlpha(canvas: globalAndroid.graphics.Canvas, bounds: globalAndroid.graphics.RectF, alpha: number): number; @@ -26573,15 +26568,15 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module card { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace card { export class MaterialCardView extends androidx.cardview.widget.CardView { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet | null); - public constructor(aa: globalAndroid.content.Context, themeColorBackground: globalAndroid.util.AttributeSet | null, hsv: number); + public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet | null, defStyleAttr: number); public constructor(context: globalAndroid.content.Context); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet, defStyleAttr: number); @@ -26606,11 +26601,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module card { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace card { export class MaterialCardViewHelper { public static class: java.lang.Class; public constructor(card: com.google.android.material.card.MaterialCardView); @@ -26622,11 +26617,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module checkbox { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace checkbox { export class MaterialCheckBox extends androidx.appcompat.widget.AppCompatCheckBox { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); @@ -26645,17 +26640,16 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module chip { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace chip { export class Chip extends androidx.appcompat.widget.AppCompatCheckBox implements com.google.android.material.chip.ChipDrawable.Delegate { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet, defStyleAttr: number); public constructor(context: globalAndroid.content.Context); - public constructor(this_: globalAndroid.content.Context, context: globalAndroid.util.AttributeSet, attrs: number); public onInitializeAccessibilityNodeInfo(info: globalAndroid.view.accessibility.AccessibilityNodeInfo): void; public getChipDrawable(): globalAndroid.graphics.drawable.Drawable; public setChipDrawable(drawable: com.google.android.material.chip.ChipDrawable): void; @@ -26681,7 +26675,7 @@ declare module com { public setMaxLines(maxLines: number): void; public setMaxWidth(maxWidth: number): void; public onChipDrawableSizeChange(): void; - public setChecked(this_: boolean): void; + public setChecked(checked: boolean): void; public setOnCloseIconClickListener(listener: globalAndroid.view.View.OnClickListener): void; public performCloseIconClick(): boolean; public onTouchEvent(event: globalAndroid.view.MotionEvent): boolean; @@ -26689,7 +26683,7 @@ declare module com { public dispatchHoverEvent(event: globalAndroid.view.MotionEvent): boolean; public dispatchKeyEvent(event: globalAndroid.view.KeyEvent): boolean; public onFocusChanged(focused: boolean, direction: number, previouslyFocusedRect: globalAndroid.graphics.Rect): void; - public onKeyDown(nextFocus: number, focusChangeDirection: globalAndroid.view.KeyEvent): boolean; + public onKeyDown(keyCode: number, event: globalAndroid.view.KeyEvent): boolean; public getFocusedRect(r: globalAndroid.graphics.Rect): void; public drawableStateChanged(): void; public onResolvePointerIcon(event: globalAndroid.view.MotionEvent, pointerIndex: number): any; @@ -26812,12 +26806,12 @@ declare module com { public setSupportButtonTintMode(param0: globalAndroid.graphics.PorterDuff.Mode | null): void; public getSupportButtonTintMode(): globalAndroid.graphics.PorterDuff.Mode | null; } - export module Chip { + export namespace Chip { export class ChipTouchHelper extends androidx.customview.widget.ExploreByTouchHelper { public static class: java.lang.Class; public getVirtualViewAt(x: number, y: number): number; public getVisibleVirtualViews(virtualViewIds: java.util.List): void; - public onPopulateNodeForVirtualView(closeIconContentDescription: number, this_: androidx.core.view.accessibility.AccessibilityNodeInfoCompat): void; + public onPopulateNodeForVirtualView(virtualViewId: number, node: androidx.core.view.accessibility.AccessibilityNodeInfoCompat): void; public onPopulateNodeForHost(node: androidx.core.view.accessibility.AccessibilityNodeInfoCompat): void; public onPerformActionForVirtualView(virtualViewId: number, action: number, arguments_: globalAndroid.os.Bundle): boolean; } @@ -26828,15 +26822,15 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module chip { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace chip { export class ChipDrawable extends com.google.android.material.shape.MaterialShapeDrawable implements androidx.core.graphics.drawable.TintAwareDrawable { public static class: java.lang.Class; public static createFromAttributes(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet, defStyleAttr: number, defStyleRes: number): com.google.android.material.chip.ChipDrawable; - public static createFromResource(parser: globalAndroid.content.Context, type: number): com.google.android.material.chip.ChipDrawable; + public static createFromResource(context: globalAndroid.content.Context, id: number): com.google.android.material.chip.ChipDrawable; public setUseCompatRipple(useCompatRipple: boolean): void; public getUseCompatRipple(): boolean; public setDelegate(delegate: com.google.android.material.chip.ChipDrawable.Delegate | null): void; @@ -26895,32 +26889,32 @@ declare module com { /** @deprecated */ public isChipIconEnabled(): boolean; public setChipIconVisible(id: number): void; - public setChipIconVisible(newShowsChipIcon: boolean): void; + public setChipIconVisible(chipIconVisible: boolean): void; /** @deprecated */ public setChipIconEnabledResource(id: number): void; /** @deprecated */ public setChipIconEnabled(chipIconEnabled: boolean): void; public getChipIcon(): globalAndroid.graphics.drawable.Drawable | null; public setChipIconResource(id: number): void; - public setChipIcon(newChipIconWidth: globalAndroid.graphics.drawable.Drawable | null): void; + public setChipIcon(chipIcon: globalAndroid.graphics.drawable.Drawable | null): void; public getChipIconTint(): globalAndroid.content.res.ColorStateList | null; public setChipIconTintResource(id: number): void; public setChipIconTint(chipIconTint: globalAndroid.content.res.ColorStateList | null): void; public getChipIconSize(): number; public setChipIconSizeResource(id: number): void; - public setChipIconSize(newChipIconWidth: number): void; + public setChipIconSize(chipIconSize: number): void; public isCloseIconVisible(): boolean; /** @deprecated */ public isCloseIconEnabled(): boolean; public setCloseIconVisible(id: number): void; - public setCloseIconVisible(newShowsCloseIcon: boolean): void; + public setCloseIconVisible(closeIconVisible: boolean): void; /** @deprecated */ public setCloseIconEnabledResource(id: number): void; /** @deprecated */ public setCloseIconEnabled(closeIconEnabled: boolean): void; public getCloseIcon(): globalAndroid.graphics.drawable.Drawable | null; public setCloseIconResource(id: number): void; - public setCloseIcon(newCloseIconWidth: globalAndroid.graphics.drawable.Drawable | null): void; + public setCloseIcon(closeIcon: globalAndroid.graphics.drawable.Drawable | null): void; public getCloseIconTint(): globalAndroid.content.res.ColorStateList | null; public setCloseIconTintResource(id: number): void; public setCloseIconTint(closeIconTint: globalAndroid.content.res.ColorStateList | null): void; @@ -26931,19 +26925,19 @@ declare module com { public getCloseIconContentDescription(): string | null; public isCheckable(): boolean; public setCheckableResource(id: number): void; - public setCheckable(newChipIconWidth: boolean): void; + public setCheckable(checkable: boolean): void; public isCheckedIconVisible(): boolean; /** @deprecated */ public isCheckedIconEnabled(): boolean; public setCheckedIconVisible(id: number): void; - public setCheckedIconVisible(newShowsCheckedIcon: boolean): void; + public setCheckedIconVisible(checkedIconVisible: boolean): void; /** @deprecated */ public setCheckedIconEnabledResource(id: number): void; /** @deprecated */ public setCheckedIconEnabled(checkedIconEnabled: boolean): void; public getCheckedIcon(): globalAndroid.graphics.drawable.Drawable | null; public setCheckedIconResource(id: number): void; - public setCheckedIcon(newChipIconWidth: globalAndroid.graphics.drawable.Drawable | null): void; + public setCheckedIcon(checkedIcon: globalAndroid.graphics.drawable.Drawable | null): void; public getShowMotionSpec(): com.google.android.material.animation.MotionSpec | null; public setShowMotionSpecResource(id: number): void; public setShowMotionSpec(showMotionSpec: com.google.android.material.animation.MotionSpec | null): void; @@ -26955,10 +26949,10 @@ declare module com { public setChipStartPadding(chipStartPadding: number): void; public getIconStartPadding(): number; public setIconStartPaddingResource(id: number): void; - public setIconStartPadding(newChipIconWidth: number): void; + public setIconStartPadding(iconStartPadding: number): void; public getIconEndPadding(): number; public setIconEndPaddingResource(id: number): void; - public setIconEndPadding(newChipIconWidth: number): void; + public setIconEndPadding(iconEndPadding: number): void; public getTextStartPadding(): number; public setTextStartPaddingResource(id: number): void; public setTextStartPadding(textStartPadding: number): void; @@ -26980,7 +26974,7 @@ declare module com { public setTintList(param0: globalAndroid.content.res.ColorStateList): void; public setTintMode(param0: globalAndroid.graphics.PorterDuff.Mode): void; } - export module ChipDrawable { + export namespace ChipDrawable { export class Delegate { public static class: java.lang.Class; /** @@ -26999,11 +26993,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module chip { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace chip { export class ChipGroup extends com.google.android.material.internal.FlowLayout { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); @@ -27016,7 +27010,7 @@ declare module com { public checkLayoutParams(p: globalAndroid.view.ViewGroup.LayoutParams): boolean; public setOnHierarchyChangeListener(listener: globalAndroid.view.ViewGroup.OnHierarchyChangeListener): void; public onFinishInflate(): void; - public addView(this_: globalAndroid.view.View, child: number, index: globalAndroid.view.ViewGroup.LayoutParams): void; + public addView(child: globalAndroid.view.View, index: number, params: globalAndroid.view.ViewGroup.LayoutParams): void; /** @deprecated */ public setDividerDrawableHorizontal(divider: globalAndroid.graphics.drawable.Drawable): void; /** @deprecated */ @@ -27045,7 +27039,7 @@ declare module com { public setSingleSelection(singleSelection: boolean): void; public setSingleSelection(id: number): void; } - export module ChipGroup { + export namespace ChipGroup { export class CheckedStateTracker { public static class: java.lang.Class; public onCheckedChanged(buttonView: globalAndroid.widget.CompoundButton, isChecked: boolean): void; @@ -27070,7 +27064,7 @@ declare module com { } export class PassThroughHierarchyChangeListener { public static class: java.lang.Class; - public onChildViewAdded(this_: globalAndroid.view.View, parent: globalAndroid.view.View): void; + public onChildViewAdded(parent: globalAndroid.view.View, child: globalAndroid.view.View): void; public onChildViewRemoved(parent: globalAndroid.view.View, child: globalAndroid.view.View): void; } } @@ -27080,15 +27074,15 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module circularreveal { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace circularreveal { export class CircularRevealCompat { public static class: java.lang.Class; - public static createCircularReveal(revealInfo: com.google.android.material.circularreveal.CircularRevealWidget, startRadius: number, circularRevealAnimator: number, set: number): globalAndroid.animation.Animator; - public static createCircularReveal(circularRevealAnimator: com.google.android.material.circularreveal.CircularRevealWidget, set: number, view: number, centerX: number, centerY: number): globalAndroid.animation.Animator; + public static createCircularReveal(view: com.google.android.material.circularreveal.CircularRevealWidget, centerX: number, centerY: number, endRadius: number): globalAndroid.animation.Animator; + public static createCircularReveal(view: com.google.android.material.circularreveal.CircularRevealWidget, centerX: number, centerY: number, startRadius: number, endRadius: number): globalAndroid.animation.Animator; public static createCircularRevealListener(view: com.google.android.material.circularreveal.CircularRevealWidget): globalAndroid.animation.Animator.AnimatorListener; } } @@ -27097,11 +27091,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module circularreveal { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace circularreveal { export class CircularRevealFrameLayout implements com.google.android.material.circularreveal.CircularRevealWidget { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); @@ -27130,11 +27124,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module circularreveal { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace circularreveal { export class CircularRevealGridLayout implements com.google.android.material.circularreveal.CircularRevealWidget { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); @@ -27163,16 +27157,16 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module circularreveal { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace circularreveal { export class CircularRevealHelper { public static class: java.lang.Class; - public static BITMAP_SHADER: number = 0; - public static CLIP_PATH: number = 1; - public static REVEAL_ANIMATOR: number = 2; + public static readonly BITMAP_SHADER = 0; + public static readonly CLIP_PATH = 1; + public static readonly REVEAL_ANIMATOR = 2; public static STRATEGY: number; public constructor(delegate: com.google.android.material.circularreveal.CircularRevealHelper.Delegate); public buildCircularRevealCache(): void; @@ -27183,10 +27177,10 @@ declare module com { public getCircularRevealScrimColor(): number; public getCircularRevealOverlayDrawable(): globalAndroid.graphics.drawable.Drawable | null; public setCircularRevealOverlayDrawable(drawable: globalAndroid.graphics.drawable.Drawable | null): void; - public draw(this_: globalAndroid.graphics.Canvas): void; + public draw(canvas: globalAndroid.graphics.Canvas): void; public isOpaque(): boolean; } - export module CircularRevealHelper { + export namespace CircularRevealHelper { export class Delegate { public static class: java.lang.Class; /** @@ -27216,11 +27210,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module circularreveal { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace circularreveal { export class CircularRevealLinearLayout implements com.google.android.material.circularreveal.CircularRevealWidget { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); @@ -27249,11 +27243,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module circularreveal { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace circularreveal { export class CircularRevealRelativeLayout implements com.google.android.material.circularreveal.CircularRevealWidget { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); @@ -27282,11 +27276,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module circularreveal { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace circularreveal { export class CircularRevealWidget extends com.google.android.material.circularreveal.CircularRevealHelper.Delegate { public static class: java.lang.Class; /** @@ -27320,7 +27314,7 @@ declare module com { public actualDraw(param0: globalAndroid.graphics.Canvas): void; public actualIsOpaque(): boolean; } - export module CircularRevealWidget { + export namespace CircularRevealWidget { export class CircularRevealEvaluator extends globalAndroid.animation.TypeEvaluator { public static class: java.lang.Class; public static CIRCULAR_REVEAL: globalAndroid.animation.TypeEvaluator; @@ -27341,7 +27335,7 @@ declare module com { } export class RevealInfo { public static class: java.lang.Class; - public static INVALID_RADIUS: number = 3.4028235E38; + public static readonly INVALID_RADIUS = 3.4028234663852886E38; public centerX: number; public centerY: number; public radius: number; @@ -27358,16 +27352,16 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module circularreveal { - export module cardview { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace circularreveal { + export namespace cardview { export class CircularRevealCardView extends androidx.cardview.widget.CardView implements com.google.android.material.circularreveal.CircularRevealWidget { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet | null); - public constructor(aa: globalAndroid.content.Context, themeColorBackground: globalAndroid.util.AttributeSet | null, hsv: number); + public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet | null, defStyleAttr: number); public constructor(context: globalAndroid.content.Context); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); public buildCircularRevealCache(): void; @@ -27395,16 +27389,16 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module circularreveal { - export module coordinatorlayout { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace circularreveal { + export namespace coordinatorlayout { export class CircularRevealCoordinatorLayout extends androidx.coordinatorlayout.widget.CoordinatorLayout implements com.google.android.material.circularreveal.CircularRevealWidget { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet | null); - public constructor(res: globalAndroid.content.Context, density: globalAndroid.util.AttributeSet | null, count: number); + public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet | null, defStyleAttr: number); public constructor(context: globalAndroid.content.Context); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); public buildCircularRevealCache(): void; @@ -27442,18 +27436,18 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module color { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace color { export class MaterialColors { public static class: java.lang.Class; - public static ALPHA_FULL: number = 1.0; - public static ALPHA_MEDIUM: number = 0.54; - public static ALPHA_DISABLED: number = 0.38; - public static ALPHA_LOW: number = 0.32; - public static ALPHA_DISABLED_LOW: number = 0.12; + public static readonly ALPHA_FULL = 1.0; + public static readonly ALPHA_MEDIUM = 0.5400000214576721; + public static readonly ALPHA_DISABLED = 0.3799999952316284; + public static readonly ALPHA_LOW = 0.3199999928474426; + public static readonly ALPHA_DISABLED_LOW = 0.11999999731779099; public constructor(); public static getColor(view: globalAndroid.view.View, colorAttributeResId: number): number; public static getColor(view: globalAndroid.view.View, colorAttributeResId: number, defaultValue: number): number; @@ -27468,11 +27462,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module drawable { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace drawable { export class DrawableUtils { public static class: java.lang.Class; public static updateTintFilter(drawable: globalAndroid.graphics.drawable.Drawable, tint: globalAndroid.content.res.ColorStateList | null, tintMode: globalAndroid.graphics.PorterDuff.Mode | null): globalAndroid.graphics.PorterDuffColorFilter | null; @@ -27483,11 +27477,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module expandable { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace expandable { export class ExpandableTransformationWidget extends com.google.android.material.expandable.ExpandableWidget { public static class: java.lang.Class; /** @@ -27511,11 +27505,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module expandable { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace expandable { export class ExpandableWidget { public static class: java.lang.Class; /** @@ -27535,11 +27529,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module expandable { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace expandable { export class ExpandableWidgetHelper { public static class: java.lang.Class; public constructor(widget: com.google.android.material.expandable.ExpandableWidget); @@ -27556,17 +27550,17 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module floatingactionbutton { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace floatingactionbutton { export class FloatingActionButton extends com.google.android.material.internal.VisibilityAwareImageButton implements androidx.core.view.TintableBackgroundView, androidx.core.widget.TintableImageSourceView, com.google.android.material.expandable.ExpandableTransformationWidget { public static class: java.lang.Class; - public static SIZE_MINI: number = 1; - public static SIZE_NORMAL: number = 0; - public static SIZE_AUTO: number = -1; - public static NO_CUSTOM_SIZE: number = 0; + public static readonly SIZE_MINI = 1; + public static readonly SIZE_NORMAL = 0; + public static readonly SIZE_AUTO = -1; + public static readonly NO_CUSTOM_SIZE = 0; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet, defStyleAttr: number); public constructor(context: globalAndroid.content.Context); @@ -27654,7 +27648,7 @@ declare module com { public setExpandedComponentIdHint(param0: number): void; public setExpanded(param0: boolean): boolean; } - export module FloatingActionButton { + export namespace FloatingActionButton { export class BaseBehavior extends androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior { public static class: java.lang.Class>; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); @@ -27666,7 +27660,7 @@ declare module com { public onDependentViewChanged(parent: androidx.coordinatorlayout.widget.CoordinatorLayout, child: com.google.android.material.floatingactionbutton.FloatingActionButton, dependency: globalAndroid.view.View): boolean; public setInternalAutoHideListener(listener: com.google.android.material.floatingactionbutton.FloatingActionButton.OnVisibilityChangedListener): void; public onLayoutChild(parent: androidx.coordinatorlayout.widget.CoordinatorLayout, child: any, layoutDirection: number): boolean; - public onLayoutChild(i: androidx.coordinatorlayout.widget.CoordinatorLayout, count: com.google.android.material.floatingactionbutton.FloatingActionButton, this_: number): boolean; + public onLayoutChild(parent: androidx.coordinatorlayout.widget.CoordinatorLayout, child: com.google.android.material.floatingactionbutton.FloatingActionButton, layoutDirection: number): boolean; public getInsetDodgeRect(parent: androidx.coordinatorlayout.widget.CoordinatorLayout, child: any, rect: globalAndroid.graphics.Rect): boolean; public getInsetDodgeRect(parent: androidx.coordinatorlayout.widget.CoordinatorLayout, child: com.google.android.material.floatingactionbutton.FloatingActionButton, rect: globalAndroid.graphics.Rect): boolean; } @@ -27713,17 +27707,17 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module floatingactionbutton { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace floatingactionbutton { export class FloatingActionButtonImpl { public static class: java.lang.Class; public addOnHideAnimationListener(listener: globalAndroid.animation.Animator.AnimatorListener): void; public removeOnHideAnimationListener(listener: globalAndroid.animation.Animator.AnimatorListener): void; } - export module FloatingActionButtonImpl { + export namespace FloatingActionButtonImpl { export class DisabledElevationAnimation extends com.google.android.material.floatingactionbutton.FloatingActionButtonImpl.ShadowAnimatorImpl { public static class: java.lang.Class; public getTargetShadowSize(): number; @@ -27779,16 +27773,16 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module floatingactionbutton { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace floatingactionbutton { export class FloatingActionButtonImplLollipop extends com.google.android.material.floatingactionbutton.FloatingActionButtonImpl { public static class: java.lang.Class; public getElevation(): number; } - export module FloatingActionButtonImplLollipop { + export namespace FloatingActionButtonImplLollipop { export class AlwaysStatefulGradientDrawable { public static class: java.lang.Class; public isStateful(): boolean; @@ -27800,18 +27794,18 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module internal { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace internal { export class BaselineLayout { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet, defStyleAttr: number); - public onMeasure(baseline: number, i: number): void; - public onLayout(child: boolean, width: number, height: number, childLeft: number, childTop: number): void; + public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; + public onLayout(changed: boolean, left: number, top: number, right: number, bottom: number): void; public getBaseline(): number; } } @@ -27820,11 +27814,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module internal { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace internal { export class CheckableImageButton extends androidx.appcompat.widget.AppCompatImageButton { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); @@ -27849,11 +27843,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module internal { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace internal { export class CircularBorderDrawable { public static class: java.lang.Class; public constructor(); @@ -27869,9 +27863,9 @@ declare module com { public setRotation(rotation: number): void; public onBoundsChange(bounds: globalAndroid.graphics.Rect): void; public isStateful(): boolean; - public onStateChange(this_: androidNative.Array): boolean; + public onStateChange(state: androidNative.Array): boolean; } - export module CircularBorderDrawable { + export namespace CircularBorderDrawable { export class CircularBorderState { public static class: java.lang.Class; public newDrawable(): globalAndroid.graphics.drawable.Drawable; @@ -27884,11 +27878,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module internal { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace internal { export class CircularBorderDrawableLollipop extends com.google.android.material.internal.CircularBorderDrawable { public static class: java.lang.Class; public constructor(); @@ -27900,11 +27894,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module internal { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace internal { export class CollapsingTextHelper { public static class: java.lang.Class; public constructor(view: globalAndroid.view.View); @@ -27939,7 +27933,7 @@ declare module com { public getCollapsedTextSize(): number; public getExpandedTextSize(): number; public getCurrentCollapsedTextColor(): number; - public draw(descent: globalAndroid.graphics.Canvas): void; + public draw(canvas: globalAndroid.graphics.Canvas): void; public recalculate(): void; public setText(text: string): void; public getText(): string; @@ -27952,11 +27946,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module internal { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace internal { export class ContextUtils { public static class: java.lang.Class; public constructor(); @@ -27968,11 +27962,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module internal { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace internal { export class DescendantOffsetUtils { public static class: java.lang.Class; public constructor(); @@ -27985,11 +27979,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module internal { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace internal { export class DrawableUtils { public static class: java.lang.Class; public static setContainerConstantState(drawable: globalAndroid.graphics.drawable.DrawableContainer, constantState: globalAndroid.graphics.drawable.Drawable.ConstantState): boolean; @@ -28000,11 +27994,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module internal { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace internal { export class Experimental { public static class: java.lang.Class; /** @@ -28022,11 +28016,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module internal { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace internal { export class FlowLayout { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); @@ -28039,8 +28033,8 @@ declare module com { public setItemSpacing(itemSpacing: number): void; public isSingleLine(): boolean; public setSingleLine(singleLine: boolean): void; - public onMeasure(child: number, lp: number): void; - public onLayout(child: boolean, lp: number, startMargin: number, endMargin: number, childEnd: number): void; + public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; + public onLayout(sizeChanged: boolean, left: number, top: number, right: number, bottom: number): void; } } } @@ -28048,11 +28042,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module internal { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace internal { export class ForegroundLinearLayout extends androidx.appcompat.widget.LinearLayoutCompat { public static class: java.lang.Class; public mForegroundInPadding: boolean; @@ -28061,15 +28055,15 @@ declare module com { public constructor(context: globalAndroid.content.Context); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet, defStyle: number); public getForegroundGravity(): number; - public setForegroundGravity(this_: number): void; + public setForegroundGravity(foregroundGravity: number): void; public verifyDrawable(who: globalAndroid.graphics.drawable.Drawable): boolean; public jumpDrawablesToCurrentState(): void; public drawableStateChanged(): void; - public setForeground(this_: globalAndroid.graphics.drawable.Drawable): void; + public setForeground(drawable: globalAndroid.graphics.drawable.Drawable): void; public getForeground(): globalAndroid.graphics.drawable.Drawable; public onLayout(changed: boolean, left: number, top: number, right: number, bottom: number): void; public onSizeChanged(w: number, h: number, oldw: number, oldh: number): void; - public draw(overlayBounds: globalAndroid.graphics.Canvas): void; + public draw(canvas: globalAndroid.graphics.Canvas): void; public drawableHotspotChanged(x: number, y: number): void; } } @@ -28078,11 +28072,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module internal { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace internal { export class NavigationMenu extends androidx.appcompat.view.menu.MenuBuilder { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); @@ -28098,11 +28092,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module internal { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace internal { export class NavigationMenuItemView extends com.google.android.material.internal.ForegroundLinearLayout implements androidx.appcompat.view.menu.MenuView.ItemView { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); @@ -28116,7 +28110,7 @@ declare module com { public setCheckable(checkable: boolean): void; public setChecked(checked: boolean): void; public setShortcut(showShortcut: boolean, shortcutKey: string): void; - public setIcon(this_: globalAndroid.graphics.drawable.Drawable): void; + public setIcon(icon: globalAndroid.graphics.drawable.Drawable): void; public setIconSize(iconSize: number): void; public prefersCondensedTitle(): boolean; public showsIcon(): boolean; @@ -28140,11 +28134,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module internal { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace internal { export class NavigationMenuPresenter extends androidx.appcompat.view.menu.MenuPresenter { public static class: java.lang.Class; public constructor(); @@ -28160,7 +28154,7 @@ declare module com { public getId(): number; public setId(id: number): void; public onSaveInstanceState(): globalAndroid.os.Parcelable; - public onRestoreInstanceState(hierarchy: globalAndroid.os.Parcelable): void; + public onRestoreInstanceState(parcelable: globalAndroid.os.Parcelable): void; public setCheckedItem(item: androidx.appcompat.view.menu.MenuItemImpl): void; public getCheckedItem(): androidx.appcompat.view.menu.MenuItemImpl | null; public inflateHeaderView(res: number): globalAndroid.view.View; @@ -28192,7 +28186,7 @@ declare module com { public collapseItemActionView(param0: androidx.appcompat.view.menu.MenuBuilder, param1: androidx.appcompat.view.menu.MenuItemImpl): boolean; public onRestoreInstanceState(param0: globalAndroid.os.Parcelable): void; } - export module NavigationMenuPresenter { + export namespace NavigationMenuPresenter { export class HeaderViewHolder extends com.google.android.material.internal.NavigationMenuPresenter.ViewHolder { public static class: java.lang.Class; public constructor(itemView: globalAndroid.view.View); @@ -28201,19 +28195,19 @@ declare module com { public static class: java.lang.Class; public getItemId(position: number): number; public getItemCount(): number; - public getItemViewType(this_: number): number; + public getItemViewType(position: number): number; public onCreateViewHolder(param0: globalAndroid.view.ViewGroup, param1: number): any; public onCreateViewHolder(parent: globalAndroid.view.ViewGroup, viewType: number): com.google.android.material.internal.NavigationMenuPresenter.ViewHolder; public onBindViewHolder(param0: any, param1: number): void; public onBindViewHolder(holder: any, position: number, payloads: java.util.List): void; - public onBindViewHolder(item: com.google.android.material.internal.NavigationMenuPresenter.ViewHolder, subHeader: number): void; + public onBindViewHolder(holder: com.google.android.material.internal.NavigationMenuPresenter.ViewHolder, position: number): void; public onViewRecycled(holder: any): void; public onViewRecycled(holder: com.google.android.material.internal.NavigationMenuPresenter.ViewHolder): void; public update(): void; public setCheckedItem(checkedItem: androidx.appcompat.view.menu.MenuItemImpl): void; public getCheckedItem(): androidx.appcompat.view.menu.MenuItemImpl; public createInstanceState(): globalAndroid.os.Bundle; - public restoreInstanceState(item: globalAndroid.os.Bundle): void; + public restoreInstanceState(state: globalAndroid.os.Bundle): void; public setUpdateSuspended(updateSuspended: boolean): void; } export class NavigationMenuHeaderItem extends com.google.android.material.internal.NavigationMenuPresenter.NavigationMenuItem { @@ -28264,15 +28258,15 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module internal { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace internal { export class NavigationMenuView extends androidx.recyclerview.widget.RecyclerView implements androidx.appcompat.view.menu.MenuView { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet | null); - public constructor(verticalThumbDrawable: globalAndroid.content.Context, verticalTrackDrawable: globalAndroid.util.AttributeSet | null, horizontalThumbDrawable: number); + public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet | null, defStyle: number); public constructor(context: globalAndroid.content.Context); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet, defStyleAttr: number); @@ -28302,11 +28296,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module internal { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace internal { export class NavigationSubMenu extends androidx.appcompat.view.menu.SubMenuBuilder { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, parentMenu: androidx.appcompat.view.menu.MenuBuilder, item: androidx.appcompat.view.menu.MenuItemImpl); @@ -28321,18 +28315,18 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module internal { - export class ParcelableSparseArray extends globalAndroid.util.SparseArray implements globalAndroid.os.Parcelable { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace internal { + export class ParcelableSparseArray extends globalAndroid.util.SparseArray implements globalAndroid.os.Parcelable { public static class: java.lang.Class; public static CREATOR: globalAndroid.os.Parcelable.Creator; public constructor(); - public constructor(this_: globalAndroid.os.Parcel, source: java.lang.ClassLoader); + public constructor(source: globalAndroid.os.Parcel, loader: java.lang.ClassLoader); public describeContents(): number; - public writeToParcel(this_: globalAndroid.os.Parcel, parcel: number): void; + public writeToParcel(parcel: globalAndroid.os.Parcel, flags: number): void; } } } @@ -28340,17 +28334,17 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module internal { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace internal { export class ScrimInsetsFrameLayout { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet, defStyleAttr: number); - public draw(this_: globalAndroid.graphics.Canvas): void; + public draw(canvas: globalAndroid.graphics.Canvas): void; public onAttachedToWindow(): void; public onDetachedFromWindow(): void; public onInsetsChanged(insets: androidx.core.view.WindowInsetsCompat): void; @@ -28361,19 +28355,19 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module internal { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace internal { export class StateListAnimator { public static class: java.lang.Class; public constructor(); public addState(specs: androidNative.Array, animator: globalAndroid.animation.ValueAnimator): void; - public setState(i: androidNative.Array): void; + public setState(state: androidNative.Array): void; public jumpToCurrentState(): void; } - export module StateListAnimator { + export namespace StateListAnimator { export class Tuple { public static class: java.lang.Class; } @@ -28384,11 +28378,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module internal { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace internal { export class TextScale extends androidx.transition.Transition { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); @@ -28403,11 +28397,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module internal { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace internal { export class ThemeEnforcement { public static class: java.lang.Class; public static obtainStyledAttributes(context: globalAndroid.content.Context, set: globalAndroid.util.AttributeSet, attrs: androidNative.Array, defStyleAttr: number, defStyleRes: number, textAppearanceResIndices: androidNative.Array): globalAndroid.content.res.TypedArray; @@ -28416,7 +28410,7 @@ declare module com { public static checkMaterialTheme(context: globalAndroid.content.Context): void; public static isAppCompatTheme(context: globalAndroid.content.Context): boolean; public static isMaterialTheme(context: globalAndroid.content.Context): boolean; - public static createThemedContext(androidThemeOverlayId: globalAndroid.content.Context, context: globalAndroid.util.AttributeSet, attrs: number, defStyleAttr: number): globalAndroid.content.Context; + public static createThemedContext(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet, defStyleAttr: number, defStyleRes: number): globalAndroid.content.Context; } } } @@ -28424,11 +28418,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module internal { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace internal { export class TouchDelegateGroup { public static class: java.lang.Class; public constructor(ancestor: globalAndroid.view.View); @@ -28436,7 +28430,7 @@ declare module com { public removeTouchDelegate(touchDelegate: globalAndroid.view.TouchDelegate): void; public clearTouchDelegates(): void; public getTouchDelegates(): java.util.List; - public onTouchEvent(savedX: globalAndroid.view.MotionEvent): boolean; + public onTouchEvent(event: globalAndroid.view.MotionEvent): boolean; } } } @@ -28444,17 +28438,17 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module internal { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace internal { export class TouchTargetUtils { public static class: java.lang.Class; public constructor(); public static extendViewTouchTarget(view: globalAndroid.view.View, ancestorId: number, left: number, top: number, right: number, bottom: number): void; public static extendViewTouchTarget(view: globalAndroid.view.View, nullableAncestor: globalAndroid.view.View | null, left: number, top: number, right: number, bottom: number): void; - public static getOrCreateTouchDelegateGroup(touchDelegateGroup: globalAndroid.view.View): com.google.android.material.internal.TouchDelegateGroup; + public static getOrCreateTouchDelegateGroup(ancestor: globalAndroid.view.View): com.google.android.material.internal.TouchDelegateGroup; public static findViewAncestor(view: globalAndroid.view.View, ancestorId: number): globalAndroid.view.View | null; } } @@ -28463,11 +28457,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module internal { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace internal { export class ViewUtils { public static class: java.lang.Class; public constructor(); @@ -28480,11 +28474,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module internal { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace internal { export class VisibilityAwareImageButton { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); @@ -28500,14 +28494,14 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module math { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace math { export class MathUtils { public static class: java.lang.Class; - public static DEFAULT_EPSILON: number = 1.0E-4; + public static readonly DEFAULT_EPSILON = 9.999999747378752E-5; public static dist(x1: number, y1: number, x2: number, y2: number): number; public static lerp(start: number, stop: number, amount: number): number; public static geq(a: number, b: number, epsilon: number): boolean; @@ -28519,17 +28513,16 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module navigation { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace navigation { export class NavigationView extends com.google.android.material.internal.ScrimInsetsFrameLayout { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet, defStyleAttr: number); public constructor(context: globalAndroid.content.Context); - public constructor(itemHorizontalPadding: globalAndroid.content.Context, this_: globalAndroid.util.AttributeSet, context: number); public onSaveInstanceState(): globalAndroid.os.Parcelable; public onRestoreInstanceState(savedState: globalAndroid.os.Parcelable): void; public setNavigationItemSelectedListener(listener: com.google.android.material.navigation.NavigationView.OnNavigationItemSelectedListener | null): void; @@ -28561,7 +28554,7 @@ declare module com { public setItemTextAppearance(resId: number): void; public setItemIconSize(iconSize: number): void; } - export module NavigationView { + export namespace NavigationView { export class OnNavigationItemSelectedListener { public static class: java.lang.Class; /** @@ -28589,11 +28582,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module radiobutton { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace radiobutton { export class MaterialRadioButton extends androidx.appcompat.widget.AppCompatRadioButton { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); @@ -28612,11 +28605,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module resources { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace resources { export class CancelableFontCallback extends com.google.android.material.resources.TextAppearanceFontCallback { public static class: java.lang.Class; public constructor(); @@ -28625,7 +28618,7 @@ declare module com { public onFontRetrievalFailed(reason: number): void; public cancel(): void; } - export module CancelableFontCallback { + export namespace CancelableFontCallback { export class ApplyFont { public static class: java.lang.Class; /** @@ -28644,15 +28637,15 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module resources { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace resources { export class MaterialAttributes { public static class: java.lang.Class; public constructor(); - public static resolveAttributeOrThrow(errorMessage: globalAndroid.view.View, componentView: number): globalAndroid.util.TypedValue; + public static resolveAttributeOrThrow(componentView: globalAndroid.view.View, attributeResId: number): globalAndroid.util.TypedValue; public static resolveAttribute(context: globalAndroid.content.Context, attributeResId: number): globalAndroid.util.TypedValue | null; } } @@ -28661,17 +28654,17 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module resources { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace resources { export class MaterialResources { public static class: java.lang.Class; - public static getColorStateList(value: globalAndroid.content.Context, resourceId: globalAndroid.content.res.TypedArray, color: number): globalAndroid.content.res.ColorStateList | null; - public static getColorStateList(value: globalAndroid.content.Context, resourceId: androidx.appcompat.widget.TintTypedArray, color: number): globalAndroid.content.res.ColorStateList | null; - public static getDrawable(value: globalAndroid.content.Context, resourceId: globalAndroid.content.res.TypedArray, context: number): globalAndroid.graphics.drawable.Drawable | null; - public static getTextAppearance(resourceId: globalAndroid.content.Context, context: globalAndroid.content.res.TypedArray, attributes: number): com.google.android.material.resources.TextAppearance | null; + public static getColorStateList(context: globalAndroid.content.Context, attributes: globalAndroid.content.res.TypedArray, index: number): globalAndroid.content.res.ColorStateList | null; + public static getColorStateList(context: globalAndroid.content.Context, attributes: androidx.appcompat.widget.TintTypedArray, index: number): globalAndroid.content.res.ColorStateList | null; + public static getDrawable(context: globalAndroid.content.Context, attributes: globalAndroid.content.res.TypedArray, index: number): globalAndroid.graphics.drawable.Drawable | null; + public static getTextAppearance(context: globalAndroid.content.Context, attributes: globalAndroid.content.res.TypedArray, index: number): com.google.android.material.resources.TextAppearance | null; } } } @@ -28679,11 +28672,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module resources { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace resources { export class TextAppearance { public static class: java.lang.Class; public textSize: number; @@ -28699,8 +28692,8 @@ declare module com { public shadowDy: number; public shadowRadius: number; public constructor(context: globalAndroid.content.Context, id: number); - public getFont(this_: globalAndroid.content.Context): globalAndroid.graphics.Typeface; - public getFontAsync(e: globalAndroid.content.Context, this_: com.google.android.material.resources.TextAppearanceFontCallback): void; + public getFont(context: globalAndroid.content.Context): globalAndroid.graphics.Typeface; + public getFontAsync(context: globalAndroid.content.Context, callback: com.google.android.material.resources.TextAppearanceFontCallback): void; public getFontAsync(context: globalAndroid.content.Context, textPaint: globalAndroid.text.TextPaint, callback: com.google.android.material.resources.TextAppearanceFontCallback): void; public getFallbackFont(): globalAndroid.graphics.Typeface; public updateDrawState(context: globalAndroid.content.Context, textPaint: globalAndroid.text.TextPaint, callback: com.google.android.material.resources.TextAppearanceFontCallback): void; @@ -28713,11 +28706,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module resources { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace resources { export class TextAppearanceConfig { public static class: java.lang.Class; public constructor(); @@ -28730,11 +28723,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module resources { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace resources { export abstract class TextAppearanceFontCallback { public static class: java.lang.Class; public constructor(); @@ -28747,15 +28740,15 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module ripple { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace ripple { export class RippleUtils { public static class: java.lang.Class; public static USE_FRAMEWORK_RIPPLE: boolean; - public static convertToRippleDrawableColor(size: globalAndroid.content.res.ColorStateList | null): globalAndroid.content.res.ColorStateList; + public static convertToRippleDrawableColor(rippleColor: globalAndroid.content.res.ColorStateList | null): globalAndroid.content.res.ColorStateList; } } } @@ -28763,11 +28756,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module shadow { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace shadow { export class ShadowDrawableWrapper extends androidx.appcompat.graphics.drawable.DrawableWrapper { public static class: java.lang.Class; public constructor(drawable: globalAndroid.graphics.drawable.Drawable); @@ -28797,11 +28790,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module shadow { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace shadow { export class ShadowRenderer { public static class: java.lang.Class; public constructor(); @@ -28817,11 +28810,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module shadow { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace shadow { export class ShadowViewDelegate { public static class: java.lang.Class; /** @@ -28845,11 +28838,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module shape { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace shape { export class CornerFamily { public static class: java.lang.Class; /** @@ -28858,8 +28851,8 @@ declare module com { public constructor(implementation: { }); public constructor(); - public static ROUNDED: number = 0; - public static CUT: number = 1; + public static readonly ROUNDED = 0; + public static readonly CUT = 1; } } } @@ -28867,11 +28860,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module shape { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace shape { export class CornerTreatment { public static class: java.lang.Class; public cornerSize: number; @@ -28887,11 +28880,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module shape { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace shape { export class CutCornerTreatment extends com.google.android.material.shape.CornerTreatment { public static class: java.lang.Class; public constructor(); @@ -28904,11 +28897,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module shape { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace shape { export class EdgeTreatment { public static class: java.lang.Class; public constructor(); @@ -28920,11 +28913,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module shape { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace shape { export class InterpolateOnScrollPositionChangeHelper { public static class: java.lang.Class; public constructor(shapedView: globalAndroid.view.View, materialShapeDrawable: com.google.android.material.shape.MaterialShapeDrawable, containingScrollView: globalAndroid.widget.ScrollView); @@ -28940,19 +28933,19 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module shape { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace shape { export class MaterialShapeDrawable implements androidx.core.graphics.drawable.TintAwareDrawable { public static class: java.lang.Class; - public static SHADOW_COMPAT_MODE_DEFAULT: number = 0; - public static SHADOW_COMPAT_MODE_NEVER: number = 1; - public static SHADOW_COMPAT_MODE_ALWAYS: number = 2; + public static readonly SHADOW_COMPAT_MODE_DEFAULT = 0; + public static readonly SHADOW_COMPAT_MODE_NEVER = 1; + public static readonly SHADOW_COMPAT_MODE_ALWAYS = 2; public constructor(); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet, defStyleAttr: number, defStyleRes: number); - public constructor(this_: com.google.android.material.shape.ShapeAppearanceModel); + public constructor(shapeAppearanceModel: com.google.android.material.shape.ShapeAppearanceModel); public getConstantState(): globalAndroid.graphics.drawable.Drawable.ConstantState | null; public setShapeAppearanceModel(shapeAppearanceModel: com.google.android.material.shape.ShapeAppearanceModel): void; public getShapeAppearanceModel(): com.google.android.material.shape.ShapeAppearanceModel; @@ -29012,18 +29005,18 @@ declare module com { public setStrokePaintShader(shader: globalAndroid.graphics.Shader): void; public getPaintStyle(): globalAndroid.graphics.Paint.Style; public setPaintStyle(paintStyle: globalAndroid.graphics.Paint.Style): void; - public draw(shadowCanvas: globalAndroid.graphics.Canvas): void; - public drawShape(this_: globalAndroid.graphics.Canvas, canvas: globalAndroid.graphics.Paint, paint: globalAndroid.graphics.Path, path: globalAndroid.graphics.RectF): void; + public draw(canvas: globalAndroid.graphics.Canvas): void; + public drawShape(canvas: globalAndroid.graphics.Canvas, paint: globalAndroid.graphics.Paint, path: globalAndroid.graphics.Path, bounds: globalAndroid.graphics.RectF): void; /** @deprecated */ public getPathForSize(bounds: globalAndroid.graphics.Rect, path: globalAndroid.graphics.Path): void; - public getOutline(this_: any): void; + public getOutline(outline: any): void; public isStateful(): boolean; public onStateChange(state: androidNative.Array): boolean; public setTint(param0: number): void; public setTintList(param0: globalAndroid.content.res.ColorStateList): void; public setTintMode(param0: globalAndroid.graphics.PorterDuff.Mode): void; } - export module MaterialShapeDrawable { + export namespace MaterialShapeDrawable { export class CompatibilityShadowMode { public static class: java.lang.Class; /** @@ -29045,11 +29038,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module shape { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace shape { export class MaterialShapeUtils { public static class: java.lang.Class; public constructor(); @@ -29060,11 +29053,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module shape { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace shape { export class RoundedCornerTreatment extends com.google.android.material.shape.CornerTreatment { public static class: java.lang.Class; public constructor(); @@ -29077,11 +29070,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module shape { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace shape { export class ShapeAppearanceModel { public static class: java.lang.Class; public constructor(); @@ -29121,11 +29114,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module shape { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace shape { export class ShapePath { public static class: java.lang.Class; public startX: number; @@ -29138,9 +29131,9 @@ declare module com { public lineTo(x: number, y: number): void; public quadToPoint(controlX: number, controlY: number, toX: number, toY: number): void; public addArc(left: number, top: number, right: number, bottom: number, startAngle: number, sweepAngle: number): void; - public applyToPath(i: globalAndroid.graphics.Matrix, size: globalAndroid.graphics.Path): void; + public applyToPath(transform: globalAndroid.graphics.Matrix, path: globalAndroid.graphics.Path): void; } - export module ShapePath { + export namespace ShapePath { export class ArcShadowOperation extends com.google.android.material.shape.ShapePath.ShadowCompatOperation { public static class: java.lang.Class; public constructor(operation: com.google.android.material.shape.ShapePath.PathArcOperation); @@ -29194,11 +29187,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module shape { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace shape { export class ShapePathModel extends com.google.android.material.shape.ShapeAppearanceModel { public static class: java.lang.Class; public constructor(shapeAppearanceModel: com.google.android.material.shape.ShapeAppearanceModel); @@ -29212,11 +29205,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module shape { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace shape { export class TriangleEdgeTreatment extends com.google.android.material.shape.EdgeTreatment { public static class: java.lang.Class; public constructor(); @@ -29229,18 +29222,18 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module snackbar { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace snackbar { export abstract class BaseTransientBottomBar extends java.lang.Object { public static class: java.lang.Class>; - public static ANIMATION_MODE_SLIDE: number = 0; - public static ANIMATION_MODE_FADE: number = 1; - public static LENGTH_INDEFINITE: number = -2; - public static LENGTH_SHORT: number = -1; - public static LENGTH_LONG: number = 0; + public static readonly ANIMATION_MODE_SLIDE = 0; + public static readonly ANIMATION_MODE_FADE = 1; + public static readonly LENGTH_INDEFINITE = -2; + public static readonly LENGTH_SHORT = -1; + public static readonly LENGTH_LONG = 0; public view: com.google.android.material.snackbar.BaseTransientBottomBar.SnackbarBaseLayout; public constructor(parent: globalAndroid.view.ViewGroup, content: globalAndroid.view.View, contentViewCallback: com.google.android.material.snackbar.ContentViewCallback); public getSnackbarBaseLayoutResId(): number; @@ -29265,7 +29258,7 @@ declare module com { public isShownOrQueued(): boolean; public getNewBehavior(): com.google.android.material.behavior.SwipeDismissBehavior; } - export module BaseTransientBottomBar { + export namespace BaseTransientBottomBar { export class AnimationMode { public static class: java.lang.Class; /** @@ -29277,16 +29270,16 @@ declare module com { } export abstract class BaseCallback extends java.lang.Object { public static class: java.lang.Class>; - public static DISMISS_EVENT_SWIPE: number = 0; - public static DISMISS_EVENT_ACTION: number = 1; - public static DISMISS_EVENT_TIMEOUT: number = 2; - public static DISMISS_EVENT_MANUAL: number = 3; - public static DISMISS_EVENT_CONSECUTIVE: number = 4; + public static readonly DISMISS_EVENT_SWIPE = 0; + public static readonly DISMISS_EVENT_ACTION = 1; + public static readonly DISMISS_EVENT_TIMEOUT = 2; + public static readonly DISMISS_EVENT_MANUAL = 3; + public static readonly DISMISS_EVENT_CONSECUTIVE = 4; public constructor(); public onDismissed(transientBottomBar: B, event: number): void; public onShown(transientBottomBar: B): void; } - export module BaseCallback { + export namespace BaseCallback { export class DismissEvent { public static class: java.lang.Class; /** @@ -29373,11 +29366,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module snackbar { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace snackbar { export class ContentViewCallback { public static class: java.lang.Class; /** @@ -29397,16 +29390,16 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module snackbar { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace snackbar { export class Snackbar extends com.google.android.material.snackbar.BaseTransientBottomBar { public static class: java.lang.Class; - public static LENGTH_INDEFINITE: number = -2; - public static LENGTH_SHORT: number = -1; - public static LENGTH_LONG: number = 0; + public static readonly LENGTH_INDEFINITE = -2; + public static readonly LENGTH_SHORT = -1; + public static readonly LENGTH_LONG = 0; public show(): void; public dismiss(): void; public isShown(): boolean; @@ -29423,14 +29416,14 @@ declare module com { /** @deprecated */ public setCallback(callback: com.google.android.material.snackbar.Snackbar.Callback): com.google.android.material.snackbar.Snackbar; } - export module Snackbar { + export namespace Snackbar { export class Callback extends com.google.android.material.snackbar.BaseTransientBottomBar.BaseCallback { public static class: java.lang.Class; - public static DISMISS_EVENT_SWIPE: number = 0; - public static DISMISS_EVENT_ACTION: number = 1; - public static DISMISS_EVENT_TIMEOUT: number = 2; - public static DISMISS_EVENT_MANUAL: number = 3; - public static DISMISS_EVENT_CONSECUTIVE: number = 4; + public static readonly DISMISS_EVENT_SWIPE = 0; + public static readonly DISMISS_EVENT_ACTION = 1; + public static readonly DISMISS_EVENT_TIMEOUT = 2; + public static readonly DISMISS_EVENT_MANUAL = 3; + public static readonly DISMISS_EVENT_CONSECUTIVE = 4; public constructor(); public onShown(transientBottomBar: any): void; public onShown(sb: com.google.android.material.snackbar.Snackbar): void; @@ -29450,7 +29443,7 @@ declare module com { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); public constructor(context: globalAndroid.content.Context); - public onMeasure(i: number, this_: number): void; + public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; } } } @@ -29459,11 +29452,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module snackbar { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace snackbar { export class SnackbarContentLayout implements com.google.android.material.snackbar.ContentViewCallback { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context); @@ -29471,7 +29464,7 @@ declare module com { public onFinishInflate(): void; public getMessageView(): globalAndroid.widget.TextView; public getActionView(): globalAndroid.widget.Button; - public onMeasure(this_: number, widthMeasureSpec: number): void; + public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; public animateContentIn(delay: number, duration: number): void; public animateContentOut(delay: number, duration: number): void; public animateContentIn(param0: number, param1: number): void; @@ -29483,11 +29476,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module snackbar { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace snackbar { export class SnackbarManager { public static class: java.lang.Class; public show(duration: number, callback: com.google.android.material.snackbar.SnackbarManager.Callback): void; @@ -29499,7 +29492,7 @@ declare module com { public isCurrent(callback: com.google.android.material.snackbar.SnackbarManager.Callback): boolean; public isCurrentOrNext(callback: com.google.android.material.snackbar.SnackbarManager.Callback): boolean; } - export module SnackbarManager { + export namespace SnackbarManager { export class Callback { public static class: java.lang.Class; /** @@ -29523,11 +29516,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module stateful { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace stateful { export class ExtendableSavedState extends androidx.customview.view.AbsSavedState { public static class: java.lang.Class; public extendableStates: androidx.collection.SimpleArrayMap; @@ -29535,7 +29528,7 @@ declare module com { public constructor(source: globalAndroid.os.Parcel); public constructor(source: globalAndroid.os.Parcel, loader: java.lang.ClassLoader | null); public constructor(superState: globalAndroid.os.Parcelable); - public writeToParcel(this_: globalAndroid.os.Parcel, out: number): void; + public writeToParcel(out: globalAndroid.os.Parcel, flags: number): void; public toString(): string; } } @@ -29544,18 +29537,18 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module switchmaterial { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace switchmaterial { export class SwitchMaterial extends androidx.appcompat.widget.SwitchCompat { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet, defStyleAttr: number); public constructor(context: globalAndroid.content.Context); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet | null); - public constructor(colorSecondary: globalAndroid.content.Context, colorSurface: globalAndroid.util.AttributeSet | null, this_: number); + public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet | null, defStyleAttr: number); } } } @@ -29563,11 +29556,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module tabs { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace tabs { export class TabItem { public static class: java.lang.Class; public text: string; @@ -29582,26 +29575,26 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module tabs { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace tabs { export class TabLayout { public static class: java.lang.Class; - public static MODE_SCROLLABLE: number = 0; - public static MODE_FIXED: number = 1; - public static TAB_LABEL_VISIBILITY_UNLABELED: number = 0; - public static TAB_LABEL_VISIBILITY_LABELED: number = 1; - public static GRAVITY_FILL: number = 0; - public static GRAVITY_CENTER: number = 1; - public static INDICATOR_GRAVITY_BOTTOM: number = 0; - public static INDICATOR_GRAVITY_CENTER: number = 1; - public static INDICATOR_GRAVITY_TOP: number = 2; - public static INDICATOR_GRAVITY_STRETCH: number = 3; + public static readonly MODE_SCROLLABLE = 0; + public static readonly MODE_FIXED = 1; + public static readonly TAB_LABEL_VISIBILITY_UNLABELED = 0; + public static readonly TAB_LABEL_VISIBILITY_LABELED = 1; + public static readonly GRAVITY_FILL = 0; + public static readonly GRAVITY_CENTER = 1; + public static readonly INDICATOR_GRAVITY_BOTTOM = 0; + public static readonly INDICATOR_GRAVITY_CENTER = 1; + public static readonly INDICATOR_GRAVITY_TOP = 2; + public static readonly INDICATOR_GRAVITY_STRETCH = 3; public constructor(context: globalAndroid.content.Context); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); - public constructor(this_: globalAndroid.content.Context, context: globalAndroid.util.AttributeSet, attrs: number); + public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet, defStyleAttr: number); public setSelectedTabIndicatorColor(color: number): void; /** @deprecated */ public setSelectedTabIndicatorHeight(height: number): void; @@ -29622,7 +29615,7 @@ declare module com { public getTabAt(index: number): com.google.android.material.tabs.TabLayout.Tab | null; public getSelectedTabPosition(): number; public removeTab(tab: com.google.android.material.tabs.TabLayout.Tab): void; - public removeTabAt(this_: number): void; + public removeTabAt(position: number): void; public removeAllTabs(): void; public setTabMode(mode: number): void; public getTabMode(): number; @@ -29632,10 +29625,10 @@ declare module com { public getTabIndicatorGravity(): number; public setTabIndicatorFullWidth(tabIndicatorFullWidth: boolean): void; public isTabIndicatorFullWidth(): boolean; - public setInlineLabel(i: boolean): void; + public setInlineLabel(inline: boolean): void; public setInlineLabelResource(inlineResourceId: number): void; public isInlineLabel(): boolean; - public setUnboundedRipple(i: boolean): void; + public setUnboundedRipple(unboundedRipple: boolean): void; public setUnboundedRippleResource(unboundedRippleResourceId: number): void; public hasUnboundedRipple(): boolean; public setTabTextColors(textColor: globalAndroid.content.res.ColorStateList | null): void; @@ -29645,7 +29638,7 @@ declare module com { public setTabIconTintResource(iconTintResourceId: number): void; public getTabIconTint(): globalAndroid.content.res.ColorStateList | null; public getTabRippleColor(): globalAndroid.content.res.ColorStateList | null; - public setTabRippleColor(i: globalAndroid.content.res.ColorStateList | null): void; + public setTabRippleColor(color: globalAndroid.content.res.ColorStateList | null): void; public setTabRippleColorResource(tabRippleColorResourceId: number): void; public getTabSelectedIndicator(): globalAndroid.graphics.drawable.Drawable | null; public setSelectedTabIndicator(tabSelectedIndicator: globalAndroid.graphics.drawable.Drawable | null): void; @@ -29661,11 +29654,11 @@ declare module com { public addView(child: globalAndroid.view.View, index: number): void; public addView(child: globalAndroid.view.View, params: globalAndroid.view.ViewGroup.LayoutParams): void; public addView(child: globalAndroid.view.View, index: number, params: globalAndroid.view.ViewGroup.LayoutParams): void; - public onDraw(i: globalAndroid.graphics.Canvas): void; - public onMeasure(childWidthMeasureSpec: number, child: number): void; + public onDraw(canvas: globalAndroid.graphics.Canvas): void; + public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; public generateLayoutParams(attrs: globalAndroid.util.AttributeSet): globalAndroid.widget.FrameLayout.LayoutParams; } - export module TabLayout { + export namespace TabLayout { export class AdapterChangeListener extends androidx.viewpager.widget.ViewPager.OnAdapterChangeListener { public static class: java.lang.Class; public onAdapterChanged(viewPager: androidx.viewpager.widget.ViewPager, oldAdapter: androidx.viewpager.widget.PagerAdapter | null, newAdapter: androidx.viewpager.widget.PagerAdapter | null): void; @@ -29727,13 +29720,13 @@ declare module com { export class SlidingTabIndicator { public static class: java.lang.Class; public onRtlPropertiesChanged(layoutDirection: number): void; - public onMeasure(i: number, z: number): void; - public onLayout(this_: boolean, changed: number, l: number, t: number, r: number): void; - public draw(this_: globalAndroid.graphics.Canvas): void; + public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; + public onLayout(changed: boolean, l: number, t: number, r: number, b: number): void; + public draw(canvas: globalAndroid.graphics.Canvas): void; } export class Tab { public static class: java.lang.Class; - public static INVALID_POSITION: number = -1; + public static readonly INVALID_POSITION = -1; public parent: com.google.android.material.tabs.TabLayout; public view: com.google.android.material.tabs.TabLayout.TabView; public constructor(); @@ -29778,21 +29771,21 @@ declare module com { public static class: java.lang.Class; public constructor(tabLayout: com.google.android.material.tabs.TabLayout); public onPageScrollStateChanged(state: number): void; - public onPageScrolled(updateIndicator: number, this_: number, position: number): void; - public onPageSelected(this_: number): void; + public onPageScrolled(position: number, positionOffset: number, positionOffsetPixels: number): void; + public onPageSelected(position: number): void; public onPageScrolled(param0: number, param1: number, param2: number): void; public onPageSelected(param0: number): void; public onPageScrollStateChanged(param0: number): void; } export class TabView { public static class: java.lang.Class; - public constructor(this$0: com.google.android.material.tabs.TabLayout, context: globalAndroid.content.Context); + public constructor(outer: com.google.android.material.tabs.TabLayout, context: globalAndroid.content.Context); public drawableStateChanged(): void; public performClick(): boolean; public setSelected(selected: boolean): void; public onInitializeAccessibilityEvent(event: globalAndroid.view.accessibility.AccessibilityEvent): void; public onInitializeAccessibilityNodeInfo(info: globalAndroid.view.accessibility.AccessibilityNodeInfo): void; - public onMeasure(layout: number, updateTextView: number): void; + public onMeasure(origWidthMeasureSpec: number, origHeightMeasureSpec: number): void; public getTab(): com.google.android.material.tabs.TabLayout.Tab; } export class ViewPagerOnTabSelectedListener extends com.google.android.material.tabs.TabLayout.OnTabSelectedListener { @@ -29812,11 +29805,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module textfield { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace textfield { export class CutoutDrawable { public static class: java.lang.Class; public draw(canvas: globalAndroid.graphics.Canvas): void; @@ -29827,11 +29820,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module textfield { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace textfield { export class IndicatorViewController { public static class: java.lang.Class; public constructor(textInputView: com.google.android.material.textfield.TextInputLayout); @@ -29842,11 +29835,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module textfield { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace textfield { export class TextInputEditText extends androidx.appcompat.widget.AppCompatEditText { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); @@ -29865,20 +29858,20 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module textfield { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace textfield { export class TextInputLayout { public static class: java.lang.Class; - public static BOX_BACKGROUND_NONE: number = 0; - public static BOX_BACKGROUND_FILLED: number = 1; - public static BOX_BACKGROUND_OUTLINE: number = 2; + public static readonly BOX_BACKGROUND_NONE = 0; + public static readonly BOX_BACKGROUND_FILLED = 1; + public static readonly BOX_BACKGROUND_OUTLINE = 2; public constructor(context: globalAndroid.content.Context); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet | null); public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet | null, defStyleAttr: number); - public addView(this_: globalAndroid.view.View, child: number, index: globalAndroid.view.ViewGroup.LayoutParams): void; + public addView(child: globalAndroid.view.View, index: number, params: globalAndroid.view.ViewGroup.LayoutParams): void; public setBoxBackgroundMode(boxBackgroundMode: number): void; public setBoxStrokeColor(boxStrokeColor: number): void; public getBoxStrokeColor(): number; @@ -29898,7 +29891,7 @@ declare module com { public getEditText(): globalAndroid.widget.EditText | null; public setHint(hint: string | null): void; public getHint(): string | null; - public setHintEnabled(this_: boolean): void; + public setHintEnabled(enabled: boolean): void; public isHintEnabled(): boolean; public setHintTextAppearance(resId: number): void; public setDefaultHintTextColor(textColor: globalAndroid.content.res.ColorStateList | null): void; @@ -29939,12 +29932,12 @@ declare module com { public setPasswordVisibilityToggleEnabled(enabled: boolean): void; public setPasswordVisibilityToggleTintList(tintList: globalAndroid.content.res.ColorStateList | null): void; public setPasswordVisibilityToggleTintMode(mode: globalAndroid.graphics.PorterDuff.Mode | null): void; - public passwordVisibilityToggleRequested(this_: boolean): void; + public passwordVisibilityToggleRequested(shouldSkipAnimations: boolean): void; public setTextInputAccessibilityDelegate(delegate: com.google.android.material.textfield.TextInputLayout.AccessibilityDelegate): void; - public onLayout(this_: boolean, changed: number, left: number, top: number, right: number): void; + public onLayout(changed: boolean, left: number, top: number, right: number, bottom: number): void; public drawableStateChanged(): void; } - export module TextInputLayout { + export namespace TextInputLayout { export class comgoogleandroidmaterialtextfieldTextInputLayoutAccessibilityDelegate extends androidx.core.view.AccessibilityDelegateCompat { public static class: java.lang.Class; public constructor(); @@ -29976,11 +29969,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module theme { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace theme { export class MaterialComponentsViewInflater extends androidx.appcompat.app.AppCompatViewInflater { public static class: java.lang.Class; public constructor(); @@ -29994,20 +29987,20 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module transformation { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace transformation { export abstract class ExpandableBehavior extends androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); public constructor(); public layoutDependsOn(param0: androidx.coordinatorlayout.widget.CoordinatorLayout, param1: globalAndroid.view.View, param2: globalAndroid.view.View): boolean; public onExpandedStateChange(param0: globalAndroid.view.View, param1: globalAndroid.view.View, param2: boolean, param3: boolean): boolean; - public onLayoutChild(dep: androidx.coordinatorlayout.widget.CoordinatorLayout, this_: globalAndroid.view.View, parent: number): boolean; + public onLayoutChild(parent: androidx.coordinatorlayout.widget.CoordinatorLayout, child: globalAndroid.view.View, layoutDirection: number): boolean; public onDependentViewChanged(parent: androidx.coordinatorlayout.widget.CoordinatorLayout, child: globalAndroid.view.View, dependency: globalAndroid.view.View): boolean; - public findExpandableWidget(i: androidx.coordinatorlayout.widget.CoordinatorLayout, size: globalAndroid.view.View): com.google.android.material.expandable.ExpandableWidget | null; + public findExpandableWidget(parent: androidx.coordinatorlayout.widget.CoordinatorLayout, child: globalAndroid.view.View): com.google.android.material.expandable.ExpandableWidget | null; public static from(view: globalAndroid.view.View, klass: java.lang.Class): com.google.android.material.transformation.ExpandableBehavior; } } @@ -30016,11 +30009,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module transformation { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace transformation { export abstract class ExpandableTransformationBehavior extends com.google.android.material.transformation.ExpandableBehavior { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); @@ -30034,21 +30027,21 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module transformation { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace transformation { export abstract class FabTransformationBehavior extends com.google.android.material.transformation.ExpandableTransformationBehavior { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); public constructor(); - public layoutDependsOn(this_: androidx.coordinatorlayout.widget.CoordinatorLayout, parent: globalAndroid.view.View, child: globalAndroid.view.View): boolean; + public layoutDependsOn(parent: androidx.coordinatorlayout.widget.CoordinatorLayout, child: globalAndroid.view.View, dependency: globalAndroid.view.View): boolean; public onAttachedToLayoutParams(lp: androidx.coordinatorlayout.widget.CoordinatorLayout.LayoutParams): void; - public onCreateExpandedStateChangeAnimation(count: globalAndroid.view.View, this_: globalAndroid.view.View, dependency: boolean, child: boolean): globalAndroid.animation.AnimatorSet; + public onCreateExpandedStateChangeAnimation(dependency: globalAndroid.view.View, child: globalAndroid.view.View, expanded: boolean, isAnimating: boolean): globalAndroid.animation.AnimatorSet; public onCreateMotionSpec(param0: globalAndroid.content.Context, param1: boolean): com.google.android.material.transformation.FabTransformationBehavior.FabTransformationSpec; } - export module FabTransformationBehavior { + export namespace FabTransformationBehavior { export class FabTransformationSpec { public static class: java.lang.Class; public timings: com.google.android.material.animation.MotionSpec; @@ -30062,17 +30055,17 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module transformation { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace transformation { export class FabTransformationScrimBehavior extends com.google.android.material.transformation.ExpandableTransformationBehavior { public static class: java.lang.Class; - public static EXPAND_DELAY: number = 75; - public static EXPAND_DURATION: number = 150; - public static COLLAPSE_DELAY: number = 0; - public static COLLAPSE_DURATION: number = 150; + public static readonly EXPAND_DELAY = 75; + public static readonly EXPAND_DURATION = 150; + public static readonly COLLAPSE_DELAY = 0; + public static readonly COLLAPSE_DURATION = 150; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); public constructor(); public layoutDependsOn(parent: androidx.coordinatorlayout.widget.CoordinatorLayout, child: globalAndroid.view.View, dependency: globalAndroid.view.View): boolean; @@ -30085,16 +30078,16 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module transformation { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace transformation { export class FabTransformationSheetBehavior extends com.google.android.material.transformation.FabTransformationBehavior { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); public constructor(); - public onCreateMotionSpec(this_: globalAndroid.content.Context, context: boolean): com.google.android.material.transformation.FabTransformationBehavior.FabTransformationSpec; + public onCreateMotionSpec(context: globalAndroid.content.Context, expanded: boolean): com.google.android.material.transformation.FabTransformationBehavior.FabTransformationSpec; public onExpandedStateChange(dependency: globalAndroid.view.View, child: globalAndroid.view.View, expanded: boolean, animated: boolean): boolean; } } @@ -30103,15 +30096,15 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module transformation { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace transformation { export class TransformationChildCard extends com.google.android.material.circularreveal.cardview.CircularRevealCardView { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); - public constructor(aa: globalAndroid.content.Context, themeColorBackground: globalAndroid.util.AttributeSet | null, hsv: number); + public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet | null, defStyleAttr: number); public constructor(context: globalAndroid.content.Context); public draw(param0: globalAndroid.graphics.Canvas): void; public isOpaque(): boolean; @@ -30130,11 +30123,11 @@ declare module com { } } -declare module com { - export module google { - export module android { - export module material { - export module transformation { +declare namespace com { + export namespace google { + export namespace android { + export namespace material { + export namespace transformation { export class TransformationChildLayout extends com.google.android.material.circularreveal.CircularRevealFrameLayout { public static class: java.lang.Class; public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet); diff --git a/test/expected-output/kotlin-fixture/android-declarations.d.ts b/test/expected-output/kotlin-fixture/android-declarations.d.ts new file mode 100644 index 0000000..1b3d711 --- /dev/null +++ b/test/expected-output/kotlin-fixture/android-declarations.d.ts @@ -0,0 +1,2 @@ +declare namespace androidNative { export class Array { constructor(); length: number; [index: number]: T; } } + diff --git a/test/expected-output/kotlin-fixture/android.d.ts b/test/expected-output/kotlin-fixture/android.d.ts new file mode 100644 index 0000000..466d12e --- /dev/null +++ b/test/expected-output/kotlin-fixture/android.d.ts @@ -0,0 +1,192 @@ +/* eslint-disable */ + +/// + +declare namespace fixture { + export class Bounded extends java.lang.Object { + public static class: java.lang.Class>; + public constructor(error: E); + public getError(): E; + } +} + +declare namespace fixture { + export class Cache { + public static class: java.lang.Class; + public constructor(); + } + export namespace Cache { + export class Editor { + public static class: java.lang.Class; + public constructor(outer: fixture.Cache, key: string, note: string | null); + public getKey(): string; + public getNote(): string | null; + public commit(): boolean; + } + } +} + +declare namespace fixture { + export class Callbacks { + public static class: java.lang.Class; + public constructor(); + public register(callback: any): void; + public handlers(): java.util.Map; + } +} + +declare namespace fixture { + export class Copyable extends java.lang.Object { + public static class: java.lang.Class>; + /** + * Constructs a new instance of the fixture.Copyable interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + copyOf(): T | null; + }); + public constructor(); + public copyOf(): T | null; + } +} + +declare namespace fixture { + export class Factory { + public static class: java.lang.Class; + public constructor(); + } + export namespace Factory { + export class Builder { + public static class: java.lang.Class; + public create(): fixture.Factory; + public static create(): fixture.Factory; + } + } +} + +declare namespace fixture { + export class Interceptor { + public static class: java.lang.Class; + /** + * Constructs a new instance of the fixture.Interceptor interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + intercept(param0: string): string; + }); + public constructor(); + public intercept(param0: string): string; + } + export namespace Interceptor { + export class Companion { + public static class: java.lang.Class; + public getNONE(): fixture.Interceptor; + public static getNONE(): fixture.Interceptor; + } + } +} + +declare namespace fixture { + export class JavaOuter { + public static class: java.lang.Class; + public constructor(); + public static describe(size: number, count: number, ratio: number, label: string): string; + public format(size: number, count: number, ratio: number, label: string): string; + } + export namespace JavaOuter { + export class Inner { + public static class: java.lang.Class; + public constructor(outer: fixture.JavaOuter, items: java.util.List, size: number); + public constructor(outer: fixture.JavaOuter, count: number); + } + } +} + +declare namespace fixture { + export class Limits { + public static class: java.lang.Class; + public static INSTANCE: fixture.Limits; + public static readonly MAX_COUNT = 42; + public static readonly NEGATIVE = -7; + public static readonly SAFE_LONG = 9007199254740991; + /** Constant value: 9223372036854775807 */ + public static BIG_LONG: number; + public static readonly RATIO = 0.10000000149011612; + /** Constant value: NaN */ + public static NOT_A_NUMBER: number; + public static readonly INITIAL = "x"; + public static readonly QUOTE = "\""; + public static readonly ENABLED = true; + public static readonly GREETING = "say \"hi\"\n\\ */ done"; + } +} + +declare namespace fixture { + export class MediaKind { + public static class: java.lang.Class; + public getValue(): string; + } + export namespace MediaKind { + export class Companion { + public static class: java.lang.Class; + public parse(value: string): fixture.MediaKind | null; + public static parse(value: string): fixture.MediaKind | null; + /** @deprecated */ + public "-deprecated_parse"(value: string): fixture.MediaKind | null; + /** @deprecated */ + public static "-deprecated_parse"(value: string): fixture.MediaKind | null; + } + } +} + +declare namespace fixture { + export class Outer { + public static class: java.lang.Class; + public constructor(); + } + export namespace Outer { + export class After { + public static class: java.lang.Class; + public constructor(); + } + export namespace Hidden { + export class Visible { + public static class: java.lang.Class; + public constructor(); + public ping(): number; + } + } + } +} + +declare namespace fixture { + export class Settings { + public static class: java.lang.Class; + public label: string; + public constructor(); + public getIdleCallback(): java.lang.Runnable | null; + public setIdleCallback(idleCallback: java.lang.Runnable | null): void; + public getLabel(): string; + public setLabel(label: string): void; + } +} + +declare namespace fixture { + export class Text { + public static class: java.lang.Class; + public static INSTANCE: fixture.Text; + public shout(receiver: string, times: number): string; + public tagged(receiver: string, label: string | null): string; + } +} + +declare namespace fixture { + export class Window { + public static class: java.lang.Class; + public constructor(); + public enable(scrim: number, label: string): string; + } +} + +//Generics information: +//fixture.Bounded:1 +//fixture.Copyable:1 + diff --git a/test/kotlin-fixture/build.gradle b/test/kotlin-fixture/build.gradle new file mode 100644 index 0000000..066bacd --- /dev/null +++ b/test/kotlin-fixture/build.gradle @@ -0,0 +1,20 @@ +// Bytecode that the generator's Kotlin handling is tested against. The Kotlin version is pinned: +// a newer compiler can lay out bytecode and metadata differently and change the expected output. +plugins { + id 'org.jetbrains.kotlin.jvm' version '2.2.20' +} + +repositories { + mavenCentral() +} + +java { + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 +} + +kotlin { + compilerOptions { + jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17 + } +} diff --git a/test/kotlin-fixture/settings.gradle b/test/kotlin-fixture/settings.gradle new file mode 100644 index 0000000..5a7bdef --- /dev/null +++ b/test/kotlin-fixture/settings.gradle @@ -0,0 +1 @@ +rootProject.name = 'kotlin-fixture' diff --git a/test/kotlin-fixture/src/main/java/fixture/JavaOuter.java b/test/kotlin-fixture/src/main/java/fixture/JavaOuter.java new file mode 100644 index 0000000..b0808cc --- /dev/null +++ b/test/kotlin-fixture/src/main/java/fixture/JavaOuter.java @@ -0,0 +1,23 @@ +package fixture; + +import java.util.List; + +public class JavaOuter { + // Only the constructor with generic parameter types gets a Signature, which omits the outer instance. + public class Inner { + public Inner(List items, long size) { + } + + public Inner(int count) { + } + } + + // long and double take two local variable slots. + public static String describe(long size, int count, double ratio, String label) { + return label; + } + + public String format(long size, int count, double ratio, String label) { + return label; + } +} diff --git a/test/kotlin-fixture/src/main/kotlin/fixture/Companions.kt b/test/kotlin-fixture/src/main/kotlin/fixture/Companions.kt new file mode 100644 index 0000000..a281e0b --- /dev/null +++ b/test/kotlin-fixture/src/main/kotlin/fixture/Companions.kt @@ -0,0 +1,29 @@ +package fixture + +// Companion methods are called on the instance in the static Companion field. +class MediaKind private constructor(val value: String) { + companion object { + fun parse(value: String): MediaKind? = if (value.isEmpty()) null else MediaKind(value) + + // A JVM name that is not an identifier has to stay a quoted member name. + @Deprecated("Use parse") + @JvmName("-deprecated_parse") + fun deprecatedParse(value: String): MediaKind? = parse(value) + } +} + +// A companion object that is not called Companion. +class Factory { + companion object Builder { + fun create(): Factory = Factory() + } +} + +// The companion gives the interface a static initializer. +fun interface Interceptor { + fun intercept(value: String): String + + companion object { + val NONE: Interceptor = Interceptor { it } + } +} diff --git a/test/kotlin-fixture/src/main/kotlin/fixture/Hidden.kt b/test/kotlin-fixture/src/main/kotlin/fixture/Hidden.kt new file mode 100644 index 0000000..a69e331 --- /dev/null +++ b/test/kotlin-fixture/src/main/kotlin/fixture/Hidden.kt @@ -0,0 +1,6 @@ +// A class name that is not an identifier. +@file:JvmName("-Hidden") + +package fixture + +fun hiddenHelper(): Int = 0 diff --git a/test/kotlin-fixture/src/main/kotlin/fixture/Members.kt b/test/kotlin-fixture/src/main/kotlin/fixture/Members.kt new file mode 100644 index 0000000..b2b3f64 --- /dev/null +++ b/test/kotlin-fixture/src/main/kotlin/fixture/Members.kt @@ -0,0 +1,68 @@ +package fixture + +// Kotlin names a setter's parameter . +class Settings { + var idleCallback: Runnable? = null + lateinit var label: String +} + +// Kotlin names an extension receiver $this$shout. +object Text { + fun String.shout(times: Int): String = uppercase().repeat(times) + + // The receiver is not null, the parameter after it can be. + fun String.tagged(label: String?): String = this + label +} + +// Inlined lambdas put locals ahead of the parameters in the LocalVariableTable. +class Window { + fun enable(scrim: Int, label: String): String { + val result = label.also { println(it) }.let { it + scrim } + return result + } +} + +// kotlin.* types, generic arguments and all, become any. +class Callbacks { + fun register(callback: (String) -> Boolean) {} + fun handlers(): Map Unit> = emptyMap() +} + +interface Copyable { + fun copyOf(): T? +} + +// A type parameter with two bounds. +class Bounded(val error: E) where E : Throwable, E : Copyable + +// An inner class constructor takes the outer instance first. +class Cache { + inner class Editor(val key: String, val note: String?) { + fun commit(): Boolean = true + } +} + +// A skipped class in the middle of a nesting chain. +class Outer { + internal class Hidden { + class Visible { + fun ping(): Int = 1 + } + } + + class After +} + +// Constants with and without a TypeScript literal. +object Limits { + const val MAX_COUNT = 42 + const val NEGATIVE = -7 + const val SAFE_LONG = 9007199254740991L + const val BIG_LONG = Long.MAX_VALUE + const val RATIO = 0.1f + const val NOT_A_NUMBER = Double.NaN + const val INITIAL = 'x' + const val QUOTE = '"' + const val ENABLED = true + const val GREETING = "say \"hi\"\n\\ */ done" +} diff --git a/test/typecheck/check.mjs b/test/typecheck/check.mjs new file mode 100644 index 0000000..2249247 --- /dev/null +++ b/test/typecheck/check.mjs @@ -0,0 +1,45 @@ +// Type-checks the expected output against the published Android platform typings. +// +// The generated declarations must never contain syntax or grammar errors (TS1xxx). The Kotlin +// fixture must type-check cleanly as well. The AndroidX output still has type errors the +// generator cannot avoid yet, such as a nullable return type that narrows a base class's, so only +// its syntax is checked. +import ts from "typescript"; +import path from "node:path"; +import { fileURLToPath } from "node:url"; + +const here = path.dirname(fileURLToPath(import.meta.url)); +const platform = path.join(here, "node_modules/@nativescript/types-android/lib/android"); + +const checks = [ + { file: "../expected-output/kotlin-fixture/android.d.ts", allErrors: true }, + { file: "../expected-output/android.d.ts", allErrors: false }, +]; + +let failed = false; +for (const check of checks) { + const file = path.resolve(here, check.file); + const program = ts.createProgram({ + // Each output references its own android-declarations.d.ts, which declares the same + // androidNative.Array as the platform's; only the platform's is loaded. + rootNames: [ + path.join(platform, "android-declarations.d.ts"), + path.join(platform, "android-platform-37.d.ts"), + file, + ], + options: { noEmit: true, strict: true, skipLibCheck: false, noResolve: true, lib: ["lib.es2020.d.ts"], types: [] }, + }); + const source = program.getSourceFile(file); + const diagnostics = [ + ...program.getSyntacticDiagnostics(source), + ...program.getSemanticDiagnostics(source), + ].filter((d) => check.allErrors || d.code < 2000); + + for (const d of diagnostics) { + const { line, character } = source.getLineAndCharacterOfPosition(d.start ?? 0); + console.log(`${check.file}(${line + 1},${character + 1}): TS${d.code}: ${ts.flattenDiagnosticMessageText(d.messageText, " ")}`); + } + console.log(`${check.file}: ${diagnostics.length} error(s)`); + failed ||= diagnostics.length > 0; +} +process.exit(failed ? 1 : 0); diff --git a/test/typecheck/package-lock.json b/test/typecheck/package-lock.json new file mode 100644 index 0000000..f3e11cb --- /dev/null +++ b/test/typecheck/package-lock.json @@ -0,0 +1,35 @@ +{ + "name": "dts-generator-typecheck", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "dts-generator-typecheck", + "devDependencies": { + "@nativescript/types-android": "9.1.1", + "typescript": "6.0.3" + } + }, + "node_modules/@nativescript/types-android": { + "version": "9.1.1", + "resolved": "https://registry.npmjs.org/@nativescript/types-android/-/types-android-9.1.1.tgz", + "integrity": "sha512-PGaTum9tyqyyza3QT21Z7WrRR1+nM7ITsq9EJiaShLArThJI0PD1ZuDO5IoUUvSQ+gTKU2nLiVMnFbU4s3FeeQ==", + "dev": true, + "license": "Apache-2.0" + }, + "node_modules/typescript": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz", + "integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + } + } +} diff --git a/test/typecheck/package.json b/test/typecheck/package.json new file mode 100644 index 0000000..99a669e --- /dev/null +++ b/test/typecheck/package.json @@ -0,0 +1,12 @@ +{ + "name": "dts-generator-typecheck", + "private": true, + "description": "Type-checks the expected output against the published Android platform typings.", + "devDependencies": { + "@nativescript/types-android": "9.1.1", + "typescript": "6.0.3" + }, + "scripts": { + "check": "node check.mjs" + } +}