diff options
author | Jean-Marie Henaff <jmhenaff@google.com> | 2014-05-14 10:04:22 +0200 |
---|---|---|
committer | Jean-Marie Henaff <jmhenaff@google.com> | 2014-06-05 14:38:12 +0200 |
commit | 2139ab6e49099a71ba5f6d7999b0e3d7e3794a15 (patch) | |
tree | 1e70aaa68e3c7a37bf3d5a6b037832adecd5f169 /core-stubs-mini | |
parent | 971765f73a7b0a5c4545d7bbc7d5007b4b991d19 (diff) | |
download | toolchain_jack-2139ab6e49099a71ba5f6d7999b0e3d7e3794a15.zip toolchain_jack-2139ab6e49099a71ba5f6d7999b0e3d7e3794a15.tar.gz toolchain_jack-2139ab6e49099a71ba5f6d7999b0e3d7e3794a15.tar.bz2 |
Add small core stub lib for tests.
- import sources
- compile them with ant script to create lib
- export it to jack project
- use it tests via TestTools
Change-Id: I5cd819728937bab039cf23114f22e43288e84eec
Diffstat (limited to 'core-stubs-mini')
190 files changed, 13549 insertions, 0 deletions
diff --git a/core-stubs-mini/.classpath b/core-stubs-mini/.classpath new file mode 100644 index 0000000..7cb0160 --- /dev/null +++ b/core-stubs-mini/.classpath @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="src" path="src"/> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> + <classpathentry kind="src" path=".apt_generated"> + <attributes> + <attribute name="optional" value="true"/> + </attributes> + </classpathentry> + <classpathentry kind="output" path="build"/> +</classpath> diff --git a/core-stubs-mini/.project b/core-stubs-mini/.project new file mode 100644 index 0000000..4fadf0b --- /dev/null +++ b/core-stubs-mini/.project @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>core-stubs-mini</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.jdt.core.javanature</nature> + </natures> +</projectDescription> diff --git a/core-stubs-mini/.settings/org.eclipse.jdt.core.prefs b/core-stubs-mini/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..a76c4d1 --- /dev/null +++ b/core-stubs-mini/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,426 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.annotation.inheritNullAnnotations=disabled +org.eclipse.jdt.core.compiler.annotation.missingNonNullByDefaultAnnotation=ignore +org.eclipse.jdt.core.compiler.annotation.nonnull=javax.annotation.Nonnull +org.eclipse.jdt.core.compiler.annotation.nonnullbydefault=org.eclipse.jdt.annotation.NonNullByDefault +org.eclipse.jdt.core.compiler.annotation.nullable=javax.annotation.CheckForNull +org.eclipse.jdt.core.compiler.annotation.nullanalysis=disabled +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=1.6 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=ignore +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.autoboxing=warning +org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning +org.eclipse.jdt.core.compiler.problem.deadCode=warning +org.eclipse.jdt.core.compiler.problem.deprecation=warning +org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled +org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=enabled +org.eclipse.jdt.core.compiler.problem.discouragedReference=ignore +org.eclipse.jdt.core.compiler.problem.emptyStatement=warning +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=ignore +org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore +org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled +org.eclipse.jdt.core.compiler.problem.fieldHiding=warning +org.eclipse.jdt.core.compiler.problem.finalParameterBound=ignore +org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning +org.eclipse.jdt.core.compiler.problem.includeNullInfoFromAsserts=enabled +org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning +org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning +org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore +org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore +org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning +org.eclipse.jdt.core.compiler.problem.missingDefaultCase=ignore +org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=warning +org.eclipse.jdt.core.compiler.problem.missingEnumCaseDespiteDefault=disabled +org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore +org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore +org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled +org.eclipse.jdt.core.compiler.problem.missingSerialVersion=ignore +org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore +org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning +org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning +org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore +org.eclipse.jdt.core.compiler.problem.nonnullParameterAnnotationDropped=warning +org.eclipse.jdt.core.compiler.problem.nullAnnotationInferenceConflict=error +org.eclipse.jdt.core.compiler.problem.nullReference=error +org.eclipse.jdt.core.compiler.problem.nullSpecViolation=error +org.eclipse.jdt.core.compiler.problem.nullUncheckedConversion=ignore +org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning +org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore +org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=warning +org.eclipse.jdt.core.compiler.problem.potentialNullReference=error +org.eclipse.jdt.core.compiler.problem.potentiallyUnclosedCloseable=ignore +org.eclipse.jdt.core.compiler.problem.rawTypeReference=ignore +org.eclipse.jdt.core.compiler.problem.redundantNullAnnotation=warning +org.eclipse.jdt.core.compiler.problem.redundantNullCheck=warning +org.eclipse.jdt.core.compiler.problem.redundantSpecificationOfTypeArguments=ignore +org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore +org.eclipse.jdt.core.compiler.problem.reportMethodCanBePotentiallyStatic=ignore +org.eclipse.jdt.core.compiler.problem.reportMethodCanBeStatic=ignore +org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled +org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning +org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled +org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled +org.eclipse.jdt.core.compiler.problem.syntacticNullAnalysisForFields=disabled +org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore +org.eclipse.jdt.core.compiler.problem.typeParameterHiding=ignore +org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems=enabled +org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning +org.eclipse.jdt.core.compiler.problem.unclosedCloseable=warning +org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore +org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=ignore +org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore +org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=warning +org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=enabled +org.eclipse.jdt.core.compiler.problem.unusedImport=warning +org.eclipse.jdt.core.compiler.problem.unusedLabel=warning +org.eclipse.jdt.core.compiler.problem.unusedLocal=warning +org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=ignore +org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore +org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled +org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled +org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled +org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning +org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=ignore +org.eclipse.jdt.core.compiler.problem.unusedWarningToken=ignore +org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning +org.eclipse.jdt.core.compiler.processAnnotations=enabled +org.eclipse.jdt.core.compiler.source=1.6 +org.eclipse.jdt.core.formatter.align_type_members_on_columns=false +org.eclipse.jdt.core.formatter.alignment_for_annotations_on_field=1585 +org.eclipse.jdt.core.formatter.alignment_for_annotations_on_field.count_dependent=1585|-1|1585 +org.eclipse.jdt.core.formatter.alignment_for_annotations_on_local_variable=1585 +org.eclipse.jdt.core.formatter.alignment_for_annotations_on_local_variable.count_dependent=1585|-1|1585 +org.eclipse.jdt.core.formatter.alignment_for_annotations_on_method=1585 +org.eclipse.jdt.core.formatter.alignment_for_annotations_on_method.count_dependent=1585|-1|1585 +org.eclipse.jdt.core.formatter.alignment_for_annotations_on_package=1585 +org.eclipse.jdt.core.formatter.alignment_for_annotations_on_package.count_dependent=1585|-1|1585 +org.eclipse.jdt.core.formatter.alignment_for_annotations_on_parameter=1040 +org.eclipse.jdt.core.formatter.alignment_for_annotations_on_parameter.count_dependent=1040|-1|1040 +org.eclipse.jdt.core.formatter.alignment_for_annotations_on_type=1585 +org.eclipse.jdt.core.formatter.alignment_for_annotations_on_type.count_dependent=1585|-1|1585 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression.count_dependent=16|5|80 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation.count_dependent=16|-1|16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant.count_dependent=16|-1|16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call.count_dependent=16|5|80 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation.count_dependent=16|5|80 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression.count_dependent=16|4|80 +org.eclipse.jdt.core.formatter.alignment_for_assignment=16 +org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_binary_expression.count_dependent=16|-1|16 +org.eclipse.jdt.core.formatter.alignment_for_cascading_method_invocation_with_arguments=16 +org.eclipse.jdt.core.formatter.alignment_for_cascading_method_invocation_with_arguments.count_dependent=16|-1|16 +org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 +org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80 +org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0 +org.eclipse.jdt.core.formatter.alignment_for_enum_constants.count_dependent=16|5|48 +org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 +org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer.count_dependent=16|5|80 +org.eclipse.jdt.core.formatter.alignment_for_field_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_for_statement=16 +org.eclipse.jdt.core.formatter.alignment_for_generic_type_arguments=16 +org.eclipse.jdt.core.formatter.alignment_for_generic_type_arguments.count_dependent=16|-1|16 +org.eclipse.jdt.core.formatter.alignment_for_local_variable_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0 +org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 +org.eclipse.jdt.core.formatter.alignment_for_multiple_fields.count_dependent=16|-1|16 +org.eclipse.jdt.core.formatter.alignment_for_new_anonymous_class=20 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration.count_dependent=16|5|80 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration.count_dependent=16|5|80 +org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80 +org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation.count_dependent=16|4|48 +org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration.count_dependent=16|4|49 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration.count_dependent=16|4|48 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration.count_dependent=16|4|48 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration.count_dependent=16|4|48 +org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16 +org.eclipse.jdt.core.formatter.blank_lines_after_imports=1 +org.eclipse.jdt.core.formatter.blank_lines_after_package=1 +org.eclipse.jdt.core.formatter.blank_lines_before_field=0 +org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0 +org.eclipse.jdt.core.formatter.blank_lines_before_imports=0 +org.eclipse.jdt.core.formatter.blank_lines_before_member_type=0 +org.eclipse.jdt.core.formatter.blank_lines_before_method=1 +org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1 +org.eclipse.jdt.core.formatter.blank_lines_before_package=0 +org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1 +org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=2 +org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false +org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false +org.eclipse.jdt.core.formatter.comment.format_block_comments=true +org.eclipse.jdt.core.formatter.comment.format_header=false +org.eclipse.jdt.core.formatter.comment.format_html=true +org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true +org.eclipse.jdt.core.formatter.comment.format_line_comments=true +org.eclipse.jdt.core.formatter.comment.format_source_code=true +org.eclipse.jdt.core.formatter.comment.indent_parameter_description=false +org.eclipse.jdt.core.formatter.comment.indent_root_tags=true +org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert +org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=do not insert +org.eclipse.jdt.core.formatter.comment.line_length=100 +org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true +org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true +org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false +org.eclipse.jdt.core.formatter.comment_new_line_at_start_of_html_paragraph=true +org.eclipse.jdt.core.formatter.compact_else_if=true +org.eclipse.jdt.core.formatter.continuation_indentation=2 +org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 +org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off +org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on +org.eclipse.jdt.core.formatter.force_if_else_statement_brace=true +org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false +org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true +org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_empty_lines=false +org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true +org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=true +org.eclipse.jdt.core.formatter.indentation.size=4 +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=insert +org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert +org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_comment_prefix=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert +org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert +org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert +org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.join_lines_in_comments=true +org.eclipse.jdt.core.formatter.join_wrapped_lines=true +org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false +org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false +org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false +org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false +org.eclipse.jdt.core.formatter.lineSplit=100 +org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false +org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false +org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 +org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=3 +org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=false +org.eclipse.jdt.core.formatter.tabulation.char=space +org.eclipse.jdt.core.formatter.tabulation.size=2 +org.eclipse.jdt.core.formatter.use_on_off_tags=false +org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false +org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true +org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true +org.eclipse.jdt.core.formatter.wrap_comment_inline_tags=false +org.eclipse.jdt.core.formatter.wrap_non_simple_local_variable_annotation=true +org.eclipse.jdt.core.formatter.wrap_non_simple_member_annotation=true +org.eclipse.jdt.core.formatter.wrap_non_simple_package_annotation=true +org.eclipse.jdt.core.formatter.wrap_non_simple_parameter_annotation=false +org.eclipse.jdt.core.formatter.wrap_non_simple_type_annotation=true +org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true +org.eclipse.jdt.core.formatter.wrap_prefer_two_fragments=false diff --git a/core-stubs-mini/.settings/org.eclipse.jdt.ui.prefs b/core-stubs-mini/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 0000000..d44207b --- /dev/null +++ b/core-stubs-mini/.settings/org.eclipse.jdt.ui.prefs @@ -0,0 +1,63 @@ +cleanup_settings_version=2 +eclipse.preferences.version=1 +editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true +formatter_profile=_Jack Format 100 +formatter_settings_version=13 +org.eclipse.jdt.ui.ignorelowercasenames=true +org.eclipse.jdt.ui.importorder=com.google;android;antenna;antlr;ar;asposewobfuscated;asquare;atg;au;beaver;bibtex;bmsi;bsh;ccl;cern;ChartDirector;checkers;com;COM;common;contribs;corejava;cryptix;cybervillains;dalvik;danbikel;de;EDU;eg;eu;examples;fat;fit;fitlibrary;fmpp;freemarker;gnu;groovy;groovyjarjarantlr;groovyjarjarasm;hak;hep;ie;imageinfo;info;it;jal;Jama;japa;japacheckers;jas;jasmin;javancss;javanet;javassist;javazoom;java_cup;jcifs;jetty;JFlex;jj2000;jline;jp;JSci;jsr166y;junit;jxl;jxxload_help;kawa;kea;libcore;libsvm;lti;memetic;mt;mx4j;net;netscape;nl;nu;oauth;ognl;opennlp;oracle;org;penn2dg;pennconverter;pl;prefuse;proguard;repackage;scm;se;serp;simple;soot;sqlj;src;ssa;sun;sunlabs;tcl;testdata;testshell;testsuite;twitter4j;uk;ViolinStrings;weka;wet;winstone;woolfel;wowza;;java;javax; +org.eclipse.jdt.ui.javadoc=true +org.eclipse.jdt.ui.ondemandthreshold=999 +org.eclipse.jdt.ui.staticondemandthreshold=999 +org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/*\n * Copyright (C) ${year} The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http\://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n</template><template autoinsert\="false" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment"/><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return the ${bare_field_name}\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} the ${bare_field_name} to set\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Javadoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\n</template><template autoinsert\="true" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\n${exception_var}.printStackTrace();</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated method stub\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates> +sp_cleanup.add_default_serial_version_id=true +sp_cleanup.add_generated_serial_version_id=false +sp_cleanup.add_missing_annotations=false +sp_cleanup.add_missing_deprecated_annotations=true +sp_cleanup.add_missing_methods=false +sp_cleanup.add_missing_nls_tags=false +sp_cleanup.add_missing_override_annotations=true +sp_cleanup.add_missing_override_annotations_interface_methods=true +sp_cleanup.add_serial_version_id=false +sp_cleanup.always_use_blocks=true +sp_cleanup.always_use_parentheses_in_expressions=false +sp_cleanup.always_use_this_for_non_static_field_access=false +sp_cleanup.always_use_this_for_non_static_method_access=false +sp_cleanup.convert_to_enhanced_for_loop=false +sp_cleanup.correct_indentation=false +sp_cleanup.format_source_code=false +sp_cleanup.format_source_code_changes_only=false +sp_cleanup.make_local_variable_final=false +sp_cleanup.make_parameters_final=false +sp_cleanup.make_private_fields_final=true +sp_cleanup.make_type_abstract_if_missing_method=false +sp_cleanup.make_variable_declarations_final=true +sp_cleanup.never_use_blocks=false +sp_cleanup.never_use_parentheses_in_expressions=true +sp_cleanup.on_save_use_additional_actions=true +sp_cleanup.organize_imports=true +sp_cleanup.qualify_static_field_accesses_with_declaring_class=false +sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true +sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true +sp_cleanup.qualify_static_member_accesses_with_declaring_class=false +sp_cleanup.qualify_static_method_accesses_with_declaring_class=false +sp_cleanup.remove_private_constructors=false +sp_cleanup.remove_trailing_whitespaces=true +sp_cleanup.remove_trailing_whitespaces_all=true +sp_cleanup.remove_trailing_whitespaces_ignore_empty=false +sp_cleanup.remove_unnecessary_casts=false +sp_cleanup.remove_unnecessary_nls_tags=false +sp_cleanup.remove_unused_imports=false +sp_cleanup.remove_unused_local_variables=false +sp_cleanup.remove_unused_private_fields=false +sp_cleanup.remove_unused_private_members=false +sp_cleanup.remove_unused_private_methods=false +sp_cleanup.remove_unused_private_types=false +sp_cleanup.sort_members=false +sp_cleanup.sort_members_all=false +sp_cleanup.use_blocks=false +sp_cleanup.use_blocks_only_for_return_and_throw=false +sp_cleanup.use_parentheses_in_expressions=false +sp_cleanup.use_this_for_non_static_field_access=false +sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true +sp_cleanup.use_this_for_non_static_method_access=false +sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true diff --git a/core-stubs-mini/src/java/io/Closeable.java b/core-stubs-mini/src/java/io/Closeable.java new file mode 100644 index 0000000..e655cc9 --- /dev/null +++ b/core-stubs-mini/src/java/io/Closeable.java @@ -0,0 +1,21 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.io; + +public interface Closeable { + public abstract void close() throws java.io.IOException; +} diff --git a/core-stubs-mini/src/java/io/Console.java b/core-stubs-mini/src/java/io/Console.java new file mode 100644 index 0000000..17102ff --- /dev/null +++ b/core-stubs-mini/src/java/io/Console.java @@ -0,0 +1,59 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.io; + +public final class Console implements java.io.Flushable { + Console() { + throw new RuntimeException("Stub!"); + } + + public void flush() { + throw new RuntimeException("Stub!"); + } + + public java.io.Console format(java.lang.String format, java.lang.Object... args) { + throw new RuntimeException("Stub!"); + } + + public java.io.Console printf(java.lang.String format, java.lang.Object... args) { + throw new RuntimeException("Stub!"); + } + + public java.io.Reader reader() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String readLine() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String readLine(java.lang.String format, java.lang.Object... args) { + throw new RuntimeException("Stub!"); + } + + public char[] readPassword() { + throw new RuntimeException("Stub!"); + } + + public char[] readPassword(java.lang.String format, java.lang.Object... args) { + throw new RuntimeException("Stub!"); + } + + public java.io.PrintWriter writer() { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/io/File.java b/core-stubs-mini/src/java/io/File.java new file mode 100644 index 0000000..43a9933 --- /dev/null +++ b/core-stubs-mini/src/java/io/File.java @@ -0,0 +1,245 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.io; + +public class File implements java.io.Serializable, java.lang.Comparable<java.io.File> { + public File(java.io.File dir, java.lang.String name) { + throw new RuntimeException("Stub!"); + } + + public File(java.lang.String path) { + throw new RuntimeException("Stub!"); + } + + public File(java.lang.String dirPath, java.lang.String name) { + throw new RuntimeException("Stub!"); + } + + public File(java.net.URI uri) { + throw new RuntimeException("Stub!"); + } + + public static java.io.File[] listRoots() { + throw new RuntimeException("Stub!"); + } + + public boolean canExecute() { + throw new RuntimeException("Stub!"); + } + + public boolean canRead() { + throw new RuntimeException("Stub!"); + } + + public boolean canWrite() { + throw new RuntimeException("Stub!"); + } + + public int compareTo(java.io.File another) { + throw new RuntimeException("Stub!"); + } + + public boolean delete() { + throw new RuntimeException("Stub!"); + } + + public void deleteOnExit() { + throw new RuntimeException("Stub!"); + } + + public boolean equals(java.lang.Object obj) { + throw new RuntimeException("Stub!"); + } + + public boolean exists() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getAbsolutePath() { + throw new RuntimeException("Stub!"); + } + + public java.io.File getAbsoluteFile() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getCanonicalPath() throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + public java.io.File getCanonicalFile() throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getName() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getParent() { + throw new RuntimeException("Stub!"); + } + + public java.io.File getParentFile() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getPath() { + throw new RuntimeException("Stub!"); + } + + public int hashCode() { + throw new RuntimeException("Stub!"); + } + + public boolean isAbsolute() { + throw new RuntimeException("Stub!"); + } + + public boolean isDirectory() { + throw new RuntimeException("Stub!"); + } + + public boolean isFile() { + throw new RuntimeException("Stub!"); + } + + public boolean isHidden() { + throw new RuntimeException("Stub!"); + } + + public long lastModified() { + throw new RuntimeException("Stub!"); + } + + public boolean setLastModified(long time) { + throw new RuntimeException("Stub!"); + } + + public boolean setReadOnly() { + throw new RuntimeException("Stub!"); + } + + public boolean setExecutable(boolean executable, boolean ownerOnly) { + throw new RuntimeException("Stub!"); + } + + public boolean setExecutable(boolean executable) { + throw new RuntimeException("Stub!"); + } + + public boolean setReadable(boolean readable, boolean ownerOnly) { + throw new RuntimeException("Stub!"); + } + + public boolean setReadable(boolean readable) { + throw new RuntimeException("Stub!"); + } + + public boolean setWritable(boolean writable, boolean ownerOnly) { + throw new RuntimeException("Stub!"); + } + + public boolean setWritable(boolean writable) { + throw new RuntimeException("Stub!"); + } + + public long length() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String[] list() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String[] list(java.io.FilenameFilter filter) { + throw new RuntimeException("Stub!"); + } + + public java.io.File[] listFiles() { + throw new RuntimeException("Stub!"); + } + + public java.io.File[] listFiles(java.io.FilenameFilter filter) { + throw new RuntimeException("Stub!"); + } + + public java.io.File[] listFiles(java.io.FileFilter filter) { + throw new RuntimeException("Stub!"); + } + + public boolean mkdir() { + throw new RuntimeException("Stub!"); + } + + public boolean mkdirs() { + throw new RuntimeException("Stub!"); + } + + public boolean createNewFile() throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + public static java.io.File createTempFile(java.lang.String prefix, java.lang.String suffix) + throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + public static java.io.File createTempFile(java.lang.String prefix, java.lang.String suffix, + java.io.File directory) throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + public boolean renameTo(java.io.File newPath) { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toString() { + throw new RuntimeException("Stub!"); + } + + public java.net.URI toURI() { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + public java.net.URL toURL() throws java.net.MalformedURLException { + throw new RuntimeException("Stub!"); + } + + public long getTotalSpace() { + throw new RuntimeException("Stub!"); + } + + public long getUsableSpace() { + throw new RuntimeException("Stub!"); + } + + public long getFreeSpace() { + throw new RuntimeException("Stub!"); + } + + public static final char separatorChar; + public static final java.lang.String separator; + public static final char pathSeparatorChar; + public static final java.lang.String pathSeparator; + static { + separatorChar = 0; + separator = null; + pathSeparatorChar = 0; + pathSeparator = null; + } +} diff --git a/core-stubs-mini/src/java/io/FileDescriptor.java b/core-stubs-mini/src/java/io/FileDescriptor.java new file mode 100644 index 0000000..d246e2e --- /dev/null +++ b/core-stubs-mini/src/java/io/FileDescriptor.java @@ -0,0 +1,44 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.io; + +public final class FileDescriptor { + public FileDescriptor() { + throw new RuntimeException("Stub!"); + } + + public void sync() throws java.io.SyncFailedException { + throw new RuntimeException("Stub!"); + } + + public boolean valid() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toString() { + throw new RuntimeException("Stub!"); + } + + public static final java.io.FileDescriptor in; + public static final java.io.FileDescriptor out; + public static final java.io.FileDescriptor err; + static { + in = null; + out = null; + err = null; + } +} diff --git a/core-stubs-mini/src/java/io/FileFilter.java b/core-stubs-mini/src/java/io/FileFilter.java new file mode 100644 index 0000000..a41a596 --- /dev/null +++ b/core-stubs-mini/src/java/io/FileFilter.java @@ -0,0 +1,21 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.io; + +public interface FileFilter { + public abstract boolean accept(java.io.File pathname); +} diff --git a/core-stubs-mini/src/java/io/FileNotFoundException.java b/core-stubs-mini/src/java/io/FileNotFoundException.java new file mode 100644 index 0000000..ed4ae16 --- /dev/null +++ b/core-stubs-mini/src/java/io/FileNotFoundException.java @@ -0,0 +1,27 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.io; + +public class FileNotFoundException extends java.io.IOException { + public FileNotFoundException() { + throw new RuntimeException("Stub!"); + } + + public FileNotFoundException(java.lang.String detailMessage) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/io/FilenameFilter.java b/core-stubs-mini/src/java/io/FilenameFilter.java new file mode 100644 index 0000000..124f55d --- /dev/null +++ b/core-stubs-mini/src/java/io/FilenameFilter.java @@ -0,0 +1,21 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.io; + +public interface FilenameFilter { + public abstract boolean accept(java.io.File dir, java.lang.String filename); +} diff --git a/core-stubs-mini/src/java/io/FilterOutputStream.java b/core-stubs-mini/src/java/io/FilterOutputStream.java new file mode 100644 index 0000000..7ca4c51 --- /dev/null +++ b/core-stubs-mini/src/java/io/FilterOutputStream.java @@ -0,0 +1,41 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.io; + +public class FilterOutputStream extends java.io.OutputStream { + public FilterOutputStream(java.io.OutputStream out) { + throw new RuntimeException("Stub!"); + } + + public void close() throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + public void flush() throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + public void write(byte[] buffer, int offset, int length) throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + public void write(int oneByte) throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + protected java.io.OutputStream out; +} diff --git a/core-stubs-mini/src/java/io/Flushable.java b/core-stubs-mini/src/java/io/Flushable.java new file mode 100644 index 0000000..a3405d6 --- /dev/null +++ b/core-stubs-mini/src/java/io/Flushable.java @@ -0,0 +1,21 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.io; + +public interface Flushable { + public abstract void flush() throws java.io.IOException; +} diff --git a/core-stubs-mini/src/java/io/IOException.java b/core-stubs-mini/src/java/io/IOException.java new file mode 100644 index 0000000..672f15b --- /dev/null +++ b/core-stubs-mini/src/java/io/IOException.java @@ -0,0 +1,35 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.io; + +public class IOException extends java.lang.Exception { + public IOException() { + throw new RuntimeException("Stub!"); + } + + public IOException(java.lang.String detailMessage) { + throw new RuntimeException("Stub!"); + } + + public IOException(java.lang.String message, java.lang.Throwable cause) { + throw new RuntimeException("Stub!"); + } + + public IOException(java.lang.Throwable cause) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/io/InputStream.java b/core-stubs-mini/src/java/io/InputStream.java new file mode 100644 index 0000000..052bb0f --- /dev/null +++ b/core-stubs-mini/src/java/io/InputStream.java @@ -0,0 +1,57 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.io; + +public abstract class InputStream implements java.io.Closeable { + public InputStream() { + throw new RuntimeException("Stub!"); + } + + public int available() throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + public void close() throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + public void mark(int readlimit) { + throw new RuntimeException("Stub!"); + } + + public boolean markSupported() { + throw new RuntimeException("Stub!"); + } + + public abstract int read() throws java.io.IOException; + + public int read(byte[] buffer) throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + public int read(byte[] buffer, int offset, int length) throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + public synchronized void reset() throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + public long skip(long byteCount) throws java.io.IOException { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/io/ObjectStreamException.java b/core-stubs-mini/src/java/io/ObjectStreamException.java new file mode 100644 index 0000000..dbbf2c1 --- /dev/null +++ b/core-stubs-mini/src/java/io/ObjectStreamException.java @@ -0,0 +1,27 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.io; + +public abstract class ObjectStreamException extends java.io.IOException { + protected ObjectStreamException() { + throw new RuntimeException("Stub!"); + } + + protected ObjectStreamException(java.lang.String detailMessage) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/io/OutputStream.java b/core-stubs-mini/src/java/io/OutputStream.java new file mode 100644 index 0000000..04eed1e --- /dev/null +++ b/core-stubs-mini/src/java/io/OutputStream.java @@ -0,0 +1,41 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.io; + +public abstract class OutputStream implements java.io.Closeable, java.io.Flushable { + public OutputStream() { + throw new RuntimeException("Stub!"); + } + + public void close() throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + public void flush() throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + public void write(byte[] buffer) throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + public void write(byte[] buffer, int offset, int count) throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + public abstract void write(int oneByte) throws java.io.IOException; +} diff --git a/core-stubs-mini/src/java/io/PrintStream.java b/core-stubs-mini/src/java/io/PrintStream.java new file mode 100644 index 0000000..ebbcf14 --- /dev/null +++ b/core-stubs-mini/src/java/io/PrintStream.java @@ -0,0 +1,192 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.io; + +public class PrintStream extends java.io.FilterOutputStream implements java.lang.Appendable, + java.io.Closeable { + public PrintStream(java.io.OutputStream out) { + super((java.io.OutputStream) null); + throw new RuntimeException("Stub!"); + } + + public PrintStream(java.io.OutputStream out, boolean autoFlush) { + super((java.io.OutputStream) null); + throw new RuntimeException("Stub!"); + } + + public PrintStream(java.io.OutputStream out, boolean autoFlush, java.lang.String charsetName) + throws java.io.UnsupportedEncodingException { + super((java.io.OutputStream) null); + throw new RuntimeException("Stub!"); + } + + public PrintStream(java.io.File file) throws java.io.FileNotFoundException { + super((java.io.OutputStream) null); + throw new RuntimeException("Stub!"); + } + + public PrintStream(java.io.File file, java.lang.String charsetName) + throws java.io.FileNotFoundException, java.io.UnsupportedEncodingException { + super((java.io.OutputStream) null); + throw new RuntimeException("Stub!"); + } + + public PrintStream(java.lang.String fileName) throws java.io.FileNotFoundException { + super((java.io.OutputStream) null); + throw new RuntimeException("Stub!"); + } + + public PrintStream(java.lang.String fileName, java.lang.String charsetName) + throws java.io.FileNotFoundException, java.io.UnsupportedEncodingException { + super((java.io.OutputStream) null); + throw new RuntimeException("Stub!"); + } + + public boolean checkError() { + throw new RuntimeException("Stub!"); + } + + protected void clearError() { + throw new RuntimeException("Stub!"); + } + + public synchronized void close() { + throw new RuntimeException("Stub!"); + } + + public synchronized void flush() { + throw new RuntimeException("Stub!"); + } + + public java.io.PrintStream format(java.lang.String format, java.lang.Object... args) { + throw new RuntimeException("Stub!"); + } + + public java.io.PrintStream format(java.util.Locale l, java.lang.String format, + java.lang.Object... args) { + throw new RuntimeException("Stub!"); + } + + public java.io.PrintStream printf(java.lang.String format, java.lang.Object... args) { + throw new RuntimeException("Stub!"); + } + + public java.io.PrintStream printf(java.util.Locale l, java.lang.String format, + java.lang.Object... args) { + throw new RuntimeException("Stub!"); + } + + public void print(char[] chars) { + throw new RuntimeException("Stub!"); + } + + public void print(char c) { + throw new RuntimeException("Stub!"); + } + + public void print(double d) { + throw new RuntimeException("Stub!"); + } + + public void print(float f) { + throw new RuntimeException("Stub!"); + } + + public void print(int i) { + throw new RuntimeException("Stub!"); + } + + public void print(long l) { + throw new RuntimeException("Stub!"); + } + + public void print(java.lang.Object o) { + throw new RuntimeException("Stub!"); + } + + public synchronized void print(java.lang.String str) { + throw new RuntimeException("Stub!"); + } + + public void print(boolean b) { + throw new RuntimeException("Stub!"); + } + + public void println() { + throw new RuntimeException("Stub!"); + } + + public void println(char[] chars) { + throw new RuntimeException("Stub!"); + } + + public void println(char c) { + throw new RuntimeException("Stub!"); + } + + public void println(double d) { + throw new RuntimeException("Stub!"); + } + + public void println(float f) { + throw new RuntimeException("Stub!"); + } + + public void println(int i) { + throw new RuntimeException("Stub!"); + } + + public void println(long l) { + throw new RuntimeException("Stub!"); + } + + public void println(java.lang.Object o) { + throw new RuntimeException("Stub!"); + } + + public synchronized void println(java.lang.String str) { + throw new RuntimeException("Stub!"); + } + + public void println(boolean b) { + throw new RuntimeException("Stub!"); + } + + protected void setError() { + throw new RuntimeException("Stub!"); + } + + public void write(byte[] buffer, int offset, int length) { + throw new RuntimeException("Stub!"); + } + + public synchronized void write(int oneByte) { + throw new RuntimeException("Stub!"); + } + + public java.io.PrintStream append(char c) { + throw new RuntimeException("Stub!"); + } + + public java.io.PrintStream append(java.lang.CharSequence charSequence) { + throw new RuntimeException("Stub!"); + } + + public java.io.PrintStream append(java.lang.CharSequence charSequence, int start, int end) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/io/PrintWriter.java b/core-stubs-mini/src/java/io/PrintWriter.java new file mode 100644 index 0000000..759322b --- /dev/null +++ b/core-stubs-mini/src/java/io/PrintWriter.java @@ -0,0 +1,201 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.io; + +public class PrintWriter extends java.io.Writer { + public PrintWriter(java.io.OutputStream out) { + throw new RuntimeException("Stub!"); + } + + public PrintWriter(java.io.OutputStream out, boolean autoFlush) { + throw new RuntimeException("Stub!"); + } + + public PrintWriter(java.io.Writer wr) { + throw new RuntimeException("Stub!"); + } + + public PrintWriter(java.io.Writer wr, boolean autoFlush) { + throw new RuntimeException("Stub!"); + } + + public PrintWriter(java.io.File file) throws java.io.FileNotFoundException { + throw new RuntimeException("Stub!"); + } + + public PrintWriter(java.io.File file, java.lang.String csn) throws java.io.FileNotFoundException, + java.io.UnsupportedEncodingException { + throw new RuntimeException("Stub!"); + } + + public PrintWriter(java.lang.String fileName) throws java.io.FileNotFoundException { + throw new RuntimeException("Stub!"); + } + + public PrintWriter(java.lang.String fileName, java.lang.String csn) + throws java.io.FileNotFoundException, java.io.UnsupportedEncodingException { + throw new RuntimeException("Stub!"); + } + + public boolean checkError() { + throw new RuntimeException("Stub!"); + } + + protected void clearError() { + throw new RuntimeException("Stub!"); + } + + public void close() { + throw new RuntimeException("Stub!"); + } + + public void flush() { + throw new RuntimeException("Stub!"); + } + + public java.io.PrintWriter format(java.lang.String format, java.lang.Object... args) { + throw new RuntimeException("Stub!"); + } + + public java.io.PrintWriter format(java.util.Locale l, java.lang.String format, + java.lang.Object... args) { + throw new RuntimeException("Stub!"); + } + + public java.io.PrintWriter printf(java.lang.String format, java.lang.Object... args) { + throw new RuntimeException("Stub!"); + } + + public java.io.PrintWriter printf(java.util.Locale l, java.lang.String format, + java.lang.Object... args) { + throw new RuntimeException("Stub!"); + } + + public void print(char[] charArray) { + throw new RuntimeException("Stub!"); + } + + public void print(char ch) { + throw new RuntimeException("Stub!"); + } + + public void print(double dnum) { + throw new RuntimeException("Stub!"); + } + + public void print(float fnum) { + throw new RuntimeException("Stub!"); + } + + public void print(int inum) { + throw new RuntimeException("Stub!"); + } + + public void print(long lnum) { + throw new RuntimeException("Stub!"); + } + + public void print(java.lang.Object obj) { + throw new RuntimeException("Stub!"); + } + + public void print(java.lang.String str) { + throw new RuntimeException("Stub!"); + } + + public void print(boolean bool) { + throw new RuntimeException("Stub!"); + } + + public void println() { + throw new RuntimeException("Stub!"); + } + + public void println(char[] chars) { + throw new RuntimeException("Stub!"); + } + + public void println(char c) { + throw new RuntimeException("Stub!"); + } + + public void println(double d) { + throw new RuntimeException("Stub!"); + } + + public void println(float f) { + throw new RuntimeException("Stub!"); + } + + public void println(int i) { + throw new RuntimeException("Stub!"); + } + + public void println(long l) { + throw new RuntimeException("Stub!"); + } + + public void println(java.lang.Object obj) { + throw new RuntimeException("Stub!"); + } + + public void println(java.lang.String str) { + throw new RuntimeException("Stub!"); + } + + public void println(boolean b) { + throw new RuntimeException("Stub!"); + } + + protected void setError() { + throw new RuntimeException("Stub!"); + } + + public void write(char[] buf) { + throw new RuntimeException("Stub!"); + } + + public void write(char[] buf, int offset, int count) { + throw new RuntimeException("Stub!"); + } + + public void write(int oneChar) { + throw new RuntimeException("Stub!"); + } + + public void write(java.lang.String str) { + throw new RuntimeException("Stub!"); + } + + public void write(java.lang.String str, int offset, int count) { + throw new RuntimeException("Stub!"); + } + + public java.io.PrintWriter append(char c) { + throw new RuntimeException("Stub!"); + } + + public java.io.PrintWriter append(java.lang.CharSequence csq) { + throw new RuntimeException("Stub!"); + } + + public java.io.PrintWriter append(java.lang.CharSequence csq, int start, int end) { + throw new RuntimeException("Stub!"); + } + + protected java.io.Writer out; +} diff --git a/core-stubs-mini/src/java/io/Reader.java b/core-stubs-mini/src/java/io/Reader.java new file mode 100644 index 0000000..98e2c58 --- /dev/null +++ b/core-stubs-mini/src/java/io/Reader.java @@ -0,0 +1,65 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.io; + +public abstract class Reader implements java.lang.Readable, java.io.Closeable { + protected Reader() { + throw new RuntimeException("Stub!"); + } + + protected Reader(java.lang.Object lock) { + throw new RuntimeException("Stub!"); + } + + public abstract void close() throws java.io.IOException; + + public void mark(int readLimit) throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + public boolean markSupported() { + throw new RuntimeException("Stub!"); + } + + public int read() throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + public int read(char[] buf) throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + public abstract int read(char[] buf, int offset, int count) throws java.io.IOException; + + public boolean ready() throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + public void reset() throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + public long skip(long charCount) throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + public int read(java.nio.CharBuffer target) throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + protected java.lang.Object lock; +} diff --git a/core-stubs-mini/src/java/io/Serializable.java b/core-stubs-mini/src/java/io/Serializable.java new file mode 100644 index 0000000..8905000 --- /dev/null +++ b/core-stubs-mini/src/java/io/Serializable.java @@ -0,0 +1,20 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.io; + +public interface Serializable { +} diff --git a/core-stubs-mini/src/java/io/SyncFailedException.java b/core-stubs-mini/src/java/io/SyncFailedException.java new file mode 100644 index 0000000..2252a35 --- /dev/null +++ b/core-stubs-mini/src/java/io/SyncFailedException.java @@ -0,0 +1,23 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.io; + +public class SyncFailedException extends java.io.IOException { + public SyncFailedException(java.lang.String detailMessage) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/io/UnsupportedEncodingException.java b/core-stubs-mini/src/java/io/UnsupportedEncodingException.java new file mode 100644 index 0000000..bb395ad --- /dev/null +++ b/core-stubs-mini/src/java/io/UnsupportedEncodingException.java @@ -0,0 +1,27 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.io; + +public class UnsupportedEncodingException extends java.io.IOException { + public UnsupportedEncodingException() { + throw new RuntimeException("Stub!"); + } + + public UnsupportedEncodingException(java.lang.String detailMessage) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/io/Writer.java b/core-stubs-mini/src/java/io/Writer.java new file mode 100644 index 0000000..dfbb8d7 --- /dev/null +++ b/core-stubs-mini/src/java/io/Writer.java @@ -0,0 +1,64 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.io; + +public abstract class Writer implements java.lang.Appendable, java.io.Closeable, java.io.Flushable { + protected Writer() { + throw new RuntimeException("Stub!"); + } + + protected Writer(java.lang.Object lock) { + throw new RuntimeException("Stub!"); + } + + public abstract void close() throws java.io.IOException; + + public abstract void flush() throws java.io.IOException; + + public void write(char[] buf) throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + public abstract void write(char[] buf, int offset, int count) throws java.io.IOException; + + public void write(int oneChar) throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + public void write(java.lang.String str) throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + public void write(java.lang.String str, int offset, int count) throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + public java.io.Writer append(char c) throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + public java.io.Writer append(java.lang.CharSequence csq) throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + public java.io.Writer append(java.lang.CharSequence csq, int start, int end) + throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + protected java.lang.Object lock; +} diff --git a/core-stubs-mini/src/java/lang/AbstractStringBuilder.java b/core-stubs-mini/src/java/lang/AbstractStringBuilder.java new file mode 100644 index 0000000..cfb0ee5 --- /dev/null +++ b/core-stubs-mini/src/java/lang/AbstractStringBuilder.java @@ -0,0 +1,103 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +abstract class AbstractStringBuilder { + AbstractStringBuilder() { + throw new RuntimeException("Stub!"); + } + + public int capacity() { + throw new RuntimeException("Stub!"); + } + + public char charAt(int index) { + throw new RuntimeException("Stub!"); + } + + public void ensureCapacity(int min) { + throw new RuntimeException("Stub!"); + } + + public void getChars(int start, int end, char[] dst, int dstStart) { + throw new RuntimeException("Stub!"); + } + + public int length() { + throw new RuntimeException("Stub!"); + } + + public void setCharAt(int index, char ch) { + throw new RuntimeException("Stub!"); + } + + public void setLength(int length) { + throw new RuntimeException("Stub!"); + } + + public java.lang.String substring(int start) { + throw new RuntimeException("Stub!"); + } + + public java.lang.String substring(int start, int end) { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toString() { + throw new RuntimeException("Stub!"); + } + + public java.lang.CharSequence subSequence(int start, int end) { + throw new RuntimeException("Stub!"); + } + + public int indexOf(java.lang.String string) { + throw new RuntimeException("Stub!"); + } + + public int indexOf(java.lang.String subString, int start) { + throw new RuntimeException("Stub!"); + } + + public int lastIndexOf(java.lang.String string) { + throw new RuntimeException("Stub!"); + } + + public int lastIndexOf(java.lang.String subString, int start) { + throw new RuntimeException("Stub!"); + } + + public void trimToSize() { + throw new RuntimeException("Stub!"); + } + + public int codePointAt(int index) { + throw new RuntimeException("Stub!"); + } + + public int codePointBefore(int index) { + throw new RuntimeException("Stub!"); + } + + public int codePointCount(int start, int end) { + throw new RuntimeException("Stub!"); + } + + public int offsetByCodePoints(int index, int codePointOffset) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/lang/Appendable.java b/core-stubs-mini/src/java/lang/Appendable.java new file mode 100644 index 0000000..91c3450 --- /dev/null +++ b/core-stubs-mini/src/java/lang/Appendable.java @@ -0,0 +1,27 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public interface Appendable { + public abstract java.lang.Appendable append(char c) throws java.io.IOException; + + public abstract java.lang.Appendable append(java.lang.CharSequence csq) + throws java.io.IOException; + + public abstract java.lang.Appendable append(java.lang.CharSequence csq, int start, int end) + throws java.io.IOException; +} diff --git a/core-stubs-mini/src/java/lang/ArrayIndexOutOfBoundsException.java b/core-stubs-mini/src/java/lang/ArrayIndexOutOfBoundsException.java new file mode 100644 index 0000000..f18cb81 --- /dev/null +++ b/core-stubs-mini/src/java/lang/ArrayIndexOutOfBoundsException.java @@ -0,0 +1,31 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public class ArrayIndexOutOfBoundsException extends java.lang.IndexOutOfBoundsException { + public ArrayIndexOutOfBoundsException() { + throw new RuntimeException("Stub!"); + } + + public ArrayIndexOutOfBoundsException(int index) { + throw new RuntimeException("Stub!"); + } + + public ArrayIndexOutOfBoundsException(java.lang.String detailMessage) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/lang/AssertionError.java b/core-stubs-mini/src/java/lang/AssertionError.java new file mode 100644 index 0000000..f4a8807 --- /dev/null +++ b/core-stubs-mini/src/java/lang/AssertionError.java @@ -0,0 +1,51 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public class AssertionError extends java.lang.Error { + public AssertionError() { + throw new RuntimeException("Stub!"); + } + + public AssertionError(java.lang.Object detailMessage) { + throw new RuntimeException("Stub!"); + } + + public AssertionError(boolean detailMessage) { + throw new RuntimeException("Stub!"); + } + + public AssertionError(char detailMessage) { + throw new RuntimeException("Stub!"); + } + + public AssertionError(int detailMessage) { + throw new RuntimeException("Stub!"); + } + + public AssertionError(long detailMessage) { + throw new RuntimeException("Stub!"); + } + + public AssertionError(float detailMessage) { + throw new RuntimeException("Stub!"); + } + + public AssertionError(double detailMessage) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/lang/Boolean.java b/core-stubs-mini/src/java/lang/Boolean.java new file mode 100644 index 0000000..146a299 --- /dev/null +++ b/core-stubs-mini/src/java/lang/Boolean.java @@ -0,0 +1,78 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public final class Boolean implements java.io.Serializable, + java.lang.Comparable<java.lang.Boolean> { + public Boolean(java.lang.String string) { + throw new RuntimeException("Stub!"); + } + + public Boolean(boolean value) { + throw new RuntimeException("Stub!"); + } + + public boolean booleanValue() { + throw new RuntimeException("Stub!"); + } + + public boolean equals(java.lang.Object o) { + throw new RuntimeException("Stub!"); + } + + public int compareTo(java.lang.Boolean that) { + throw new RuntimeException("Stub!"); + } + + public int hashCode() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toString() { + throw new RuntimeException("Stub!"); + } + + public static boolean getBoolean(java.lang.String string) { + throw new RuntimeException("Stub!"); + } + + public static boolean parseBoolean(java.lang.String s) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.String toString(boolean value) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.Boolean valueOf(java.lang.String string) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.Boolean valueOf(boolean b) { + throw new RuntimeException("Stub!"); + } + + @java.lang.SuppressWarnings(value = {"unchecked"}) + public static final java.lang.Class<java.lang.Boolean> TYPE; + public static final java.lang.Boolean TRUE; + public static final java.lang.Boolean FALSE; + static { + TYPE = null; + TRUE = null; + FALSE = null; + } +} diff --git a/core-stubs-mini/src/java/lang/Byte.java b/core-stubs-mini/src/java/lang/Byte.java new file mode 100644 index 0000000..0cfa717 --- /dev/null +++ b/core-stubs-mini/src/java/lang/Byte.java @@ -0,0 +1,108 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public final class Byte extends java.lang.Number implements java.lang.Comparable<java.lang.Byte> { + public Byte(byte value) { + throw new RuntimeException("Stub!"); + } + + public Byte(java.lang.String string) throws java.lang.NumberFormatException { + throw new RuntimeException("Stub!"); + } + + public byte byteValue() { + throw new RuntimeException("Stub!"); + } + + public int compareTo(java.lang.Byte object) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.Byte decode(java.lang.String string) + throws java.lang.NumberFormatException { + throw new RuntimeException("Stub!"); + } + + public double doubleValue() { + throw new RuntimeException("Stub!"); + } + + public boolean equals(java.lang.Object object) { + throw new RuntimeException("Stub!"); + } + + public float floatValue() { + throw new RuntimeException("Stub!"); + } + + public int hashCode() { + throw new RuntimeException("Stub!"); + } + + public int intValue() { + throw new RuntimeException("Stub!"); + } + + public long longValue() { + throw new RuntimeException("Stub!"); + } + + public static byte parseByte(java.lang.String string) throws java.lang.NumberFormatException { + throw new RuntimeException("Stub!"); + } + + public static byte parseByte(java.lang.String string, int radix) + throws java.lang.NumberFormatException { + throw new RuntimeException("Stub!"); + } + + public short shortValue() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toString() { + throw new RuntimeException("Stub!"); + } + + public static java.lang.String toString(byte value) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.Byte valueOf(java.lang.String string) + throws java.lang.NumberFormatException { + throw new RuntimeException("Stub!"); + } + + public static java.lang.Byte valueOf(java.lang.String string, int radix) + throws java.lang.NumberFormatException { + throw new RuntimeException("Stub!"); + } + + public static java.lang.Byte valueOf(byte b) { + throw new RuntimeException("Stub!"); + } + + public static final byte MAX_VALUE = 127; + public static final byte MIN_VALUE = -128; + public static final int SIZE = 8; + @java.lang.SuppressWarnings(value = {"unchecked"}) + public static final java.lang.Class<java.lang.Byte> TYPE; + static { + TYPE = null; + } +} diff --git a/core-stubs-mini/src/java/lang/CharSequence.java b/core-stubs-mini/src/java/lang/CharSequence.java new file mode 100644 index 0000000..f48df40 --- /dev/null +++ b/core-stubs-mini/src/java/lang/CharSequence.java @@ -0,0 +1,27 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public interface CharSequence { + public abstract int length(); + + public abstract char charAt(int index); + + public abstract java.lang.CharSequence subSequence(int start, int end); + + public abstract java.lang.String toString(); +} diff --git a/core-stubs-mini/src/java/lang/Character.java b/core-stubs-mini/src/java/lang/Character.java new file mode 100644 index 0000000..ed100a7 --- /dev/null +++ b/core-stubs-mini/src/java/lang/Character.java @@ -0,0 +1,698 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public final class Character implements java.io.Serializable, + java.lang.Comparable<java.lang.Character> { + public static class Subset { + protected Subset(java.lang.String string) { + throw new RuntimeException("Stub!"); + } + + public final boolean equals(java.lang.Object object) { + throw new RuntimeException("Stub!"); + } + + public final int hashCode() { + throw new RuntimeException("Stub!"); + } + + public final java.lang.String toString() { + throw new RuntimeException("Stub!"); + } + } + public static final class UnicodeBlock extends java.lang.Character.Subset { + UnicodeBlock() { + super((java.lang.String) null); + throw new RuntimeException("Stub!"); + } + + public static java.lang.Character.UnicodeBlock forName(java.lang.String blockName) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.Character.UnicodeBlock of(char c) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.Character.UnicodeBlock of(int codePoint) { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + public static final java.lang.Character.UnicodeBlock SURROGATES_AREA; + public static final java.lang.Character.UnicodeBlock BASIC_LATIN; + public static final java.lang.Character.UnicodeBlock LATIN_1_SUPPLEMENT; + public static final java.lang.Character.UnicodeBlock LATIN_EXTENDED_A; + public static final java.lang.Character.UnicodeBlock LATIN_EXTENDED_B; + public static final java.lang.Character.UnicodeBlock IPA_EXTENSIONS; + public static final java.lang.Character.UnicodeBlock SPACING_MODIFIER_LETTERS; + public static final java.lang.Character.UnicodeBlock COMBINING_DIACRITICAL_MARKS; + public static final java.lang.Character.UnicodeBlock GREEK; + public static final java.lang.Character.UnicodeBlock CYRILLIC; + public static final java.lang.Character.UnicodeBlock CYRILLIC_SUPPLEMENTARY; + public static final java.lang.Character.UnicodeBlock ARMENIAN; + public static final java.lang.Character.UnicodeBlock HEBREW; + public static final java.lang.Character.UnicodeBlock ARABIC; + public static final java.lang.Character.UnicodeBlock SYRIAC; + public static final java.lang.Character.UnicodeBlock THAANA; + public static final java.lang.Character.UnicodeBlock DEVANAGARI; + public static final java.lang.Character.UnicodeBlock BENGALI; + public static final java.lang.Character.UnicodeBlock GURMUKHI; + public static final java.lang.Character.UnicodeBlock GUJARATI; + public static final java.lang.Character.UnicodeBlock ORIYA; + public static final java.lang.Character.UnicodeBlock TAMIL; + public static final java.lang.Character.UnicodeBlock TELUGU; + public static final java.lang.Character.UnicodeBlock KANNADA; + public static final java.lang.Character.UnicodeBlock MALAYALAM; + public static final java.lang.Character.UnicodeBlock SINHALA; + public static final java.lang.Character.UnicodeBlock THAI; + public static final java.lang.Character.UnicodeBlock LAO; + public static final java.lang.Character.UnicodeBlock TIBETAN; + public static final java.lang.Character.UnicodeBlock MYANMAR; + public static final java.lang.Character.UnicodeBlock GEORGIAN; + public static final java.lang.Character.UnicodeBlock HANGUL_JAMO; + public static final java.lang.Character.UnicodeBlock ETHIOPIC; + public static final java.lang.Character.UnicodeBlock CHEROKEE; + public static final java.lang.Character.UnicodeBlock UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS; + public static final java.lang.Character.UnicodeBlock OGHAM; + public static final java.lang.Character.UnicodeBlock RUNIC; + public static final java.lang.Character.UnicodeBlock TAGALOG; + public static final java.lang.Character.UnicodeBlock HANUNOO; + public static final java.lang.Character.UnicodeBlock BUHID; + public static final java.lang.Character.UnicodeBlock TAGBANWA; + public static final java.lang.Character.UnicodeBlock KHMER; + public static final java.lang.Character.UnicodeBlock MONGOLIAN; + public static final java.lang.Character.UnicodeBlock LIMBU; + public static final java.lang.Character.UnicodeBlock TAI_LE; + public static final java.lang.Character.UnicodeBlock KHMER_SYMBOLS; + public static final java.lang.Character.UnicodeBlock PHONETIC_EXTENSIONS; + public static final java.lang.Character.UnicodeBlock LATIN_EXTENDED_ADDITIONAL; + public static final java.lang.Character.UnicodeBlock GREEK_EXTENDED; + public static final java.lang.Character.UnicodeBlock GENERAL_PUNCTUATION; + public static final java.lang.Character.UnicodeBlock SUPERSCRIPTS_AND_SUBSCRIPTS; + public static final java.lang.Character.UnicodeBlock CURRENCY_SYMBOLS; + public static final java.lang.Character.UnicodeBlock COMBINING_MARKS_FOR_SYMBOLS; + public static final java.lang.Character.UnicodeBlock LETTERLIKE_SYMBOLS; + public static final java.lang.Character.UnicodeBlock NUMBER_FORMS; + public static final java.lang.Character.UnicodeBlock ARROWS; + public static final java.lang.Character.UnicodeBlock MATHEMATICAL_OPERATORS; + public static final java.lang.Character.UnicodeBlock MISCELLANEOUS_TECHNICAL; + public static final java.lang.Character.UnicodeBlock CONTROL_PICTURES; + public static final java.lang.Character.UnicodeBlock OPTICAL_CHARACTER_RECOGNITION; + public static final java.lang.Character.UnicodeBlock ENCLOSED_ALPHANUMERICS; + public static final java.lang.Character.UnicodeBlock BOX_DRAWING; + public static final java.lang.Character.UnicodeBlock BLOCK_ELEMENTS; + public static final java.lang.Character.UnicodeBlock GEOMETRIC_SHAPES; + public static final java.lang.Character.UnicodeBlock MISCELLANEOUS_SYMBOLS; + public static final java.lang.Character.UnicodeBlock DINGBATS; + public static final java.lang.Character.UnicodeBlock MISCELLANEOUS_MATHEMATICAL_SYMBOLS_A; + public static final java.lang.Character.UnicodeBlock SUPPLEMENTAL_ARROWS_A; + public static final java.lang.Character.UnicodeBlock BRAILLE_PATTERNS; + public static final java.lang.Character.UnicodeBlock SUPPLEMENTAL_ARROWS_B; + public static final java.lang.Character.UnicodeBlock MISCELLANEOUS_MATHEMATICAL_SYMBOLS_B; + public static final java.lang.Character.UnicodeBlock SUPPLEMENTAL_MATHEMATICAL_OPERATORS; + public static final java.lang.Character.UnicodeBlock MISCELLANEOUS_SYMBOLS_AND_ARROWS; + public static final java.lang.Character.UnicodeBlock CJK_RADICALS_SUPPLEMENT; + public static final java.lang.Character.UnicodeBlock KANGXI_RADICALS; + public static final java.lang.Character.UnicodeBlock IDEOGRAPHIC_DESCRIPTION_CHARACTERS; + public static final java.lang.Character.UnicodeBlock CJK_SYMBOLS_AND_PUNCTUATION; + public static final java.lang.Character.UnicodeBlock HIRAGANA; + public static final java.lang.Character.UnicodeBlock KATAKANA; + public static final java.lang.Character.UnicodeBlock BOPOMOFO; + public static final java.lang.Character.UnicodeBlock HANGUL_COMPATIBILITY_JAMO; + public static final java.lang.Character.UnicodeBlock KANBUN; + public static final java.lang.Character.UnicodeBlock BOPOMOFO_EXTENDED; + public static final java.lang.Character.UnicodeBlock KATAKANA_PHONETIC_EXTENSIONS; + public static final java.lang.Character.UnicodeBlock ENCLOSED_CJK_LETTERS_AND_MONTHS; + public static final java.lang.Character.UnicodeBlock CJK_COMPATIBILITY; + public static final java.lang.Character.UnicodeBlock CJK_UNIFIED_IDEOGRAPHS_EXTENSION_A; + public static final java.lang.Character.UnicodeBlock YIJING_HEXAGRAM_SYMBOLS; + public static final java.lang.Character.UnicodeBlock CJK_UNIFIED_IDEOGRAPHS; + public static final java.lang.Character.UnicodeBlock YI_SYLLABLES; + public static final java.lang.Character.UnicodeBlock YI_RADICALS; + public static final java.lang.Character.UnicodeBlock HANGUL_SYLLABLES; + public static final java.lang.Character.UnicodeBlock HIGH_SURROGATES; + public static final java.lang.Character.UnicodeBlock HIGH_PRIVATE_USE_SURROGATES; + public static final java.lang.Character.UnicodeBlock LOW_SURROGATES; + public static final java.lang.Character.UnicodeBlock PRIVATE_USE_AREA; + public static final java.lang.Character.UnicodeBlock CJK_COMPATIBILITY_IDEOGRAPHS; + public static final java.lang.Character.UnicodeBlock ALPHABETIC_PRESENTATION_FORMS; + public static final java.lang.Character.UnicodeBlock ARABIC_PRESENTATION_FORMS_A; + public static final java.lang.Character.UnicodeBlock VARIATION_SELECTORS; + public static final java.lang.Character.UnicodeBlock COMBINING_HALF_MARKS; + public static final java.lang.Character.UnicodeBlock CJK_COMPATIBILITY_FORMS; + public static final java.lang.Character.UnicodeBlock SMALL_FORM_VARIANTS; + public static final java.lang.Character.UnicodeBlock ARABIC_PRESENTATION_FORMS_B; + public static final java.lang.Character.UnicodeBlock HALFWIDTH_AND_FULLWIDTH_FORMS; + public static final java.lang.Character.UnicodeBlock SPECIALS; + public static final java.lang.Character.UnicodeBlock LINEAR_B_SYLLABARY; + public static final java.lang.Character.UnicodeBlock LINEAR_B_IDEOGRAMS; + public static final java.lang.Character.UnicodeBlock AEGEAN_NUMBERS; + public static final java.lang.Character.UnicodeBlock OLD_ITALIC; + public static final java.lang.Character.UnicodeBlock GOTHIC; + public static final java.lang.Character.UnicodeBlock UGARITIC; + public static final java.lang.Character.UnicodeBlock DESERET; + public static final java.lang.Character.UnicodeBlock SHAVIAN; + public static final java.lang.Character.UnicodeBlock OSMANYA; + public static final java.lang.Character.UnicodeBlock CYPRIOT_SYLLABARY; + public static final java.lang.Character.UnicodeBlock BYZANTINE_MUSICAL_SYMBOLS; + public static final java.lang.Character.UnicodeBlock MUSICAL_SYMBOLS; + public static final java.lang.Character.UnicodeBlock TAI_XUAN_JING_SYMBOLS; + public static final java.lang.Character.UnicodeBlock MATHEMATICAL_ALPHANUMERIC_SYMBOLS; + public static final java.lang.Character.UnicodeBlock CJK_UNIFIED_IDEOGRAPHS_EXTENSION_B; + public static final java.lang.Character.UnicodeBlock CJK_COMPATIBILITY_IDEOGRAPHS_SUPPLEMENT; + public static final java.lang.Character.UnicodeBlock TAGS; + public static final java.lang.Character.UnicodeBlock VARIATION_SELECTORS_SUPPLEMENT; + public static final java.lang.Character.UnicodeBlock SUPPLEMENTARY_PRIVATE_USE_AREA_A; + public static final java.lang.Character.UnicodeBlock SUPPLEMENTARY_PRIVATE_USE_AREA_B; + static { + SURROGATES_AREA = null; + BASIC_LATIN = null; + LATIN_1_SUPPLEMENT = null; + LATIN_EXTENDED_A = null; + LATIN_EXTENDED_B = null; + IPA_EXTENSIONS = null; + SPACING_MODIFIER_LETTERS = null; + COMBINING_DIACRITICAL_MARKS = null; + GREEK = null; + CYRILLIC = null; + CYRILLIC_SUPPLEMENTARY = null; + ARMENIAN = null; + HEBREW = null; + ARABIC = null; + SYRIAC = null; + THAANA = null; + DEVANAGARI = null; + BENGALI = null; + GURMUKHI = null; + GUJARATI = null; + ORIYA = null; + TAMIL = null; + TELUGU = null; + KANNADA = null; + MALAYALAM = null; + SINHALA = null; + THAI = null; + LAO = null; + TIBETAN = null; + MYANMAR = null; + GEORGIAN = null; + HANGUL_JAMO = null; + ETHIOPIC = null; + CHEROKEE = null; + UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS = null; + OGHAM = null; + RUNIC = null; + TAGALOG = null; + HANUNOO = null; + BUHID = null; + TAGBANWA = null; + KHMER = null; + MONGOLIAN = null; + LIMBU = null; + TAI_LE = null; + KHMER_SYMBOLS = null; + PHONETIC_EXTENSIONS = null; + LATIN_EXTENDED_ADDITIONAL = null; + GREEK_EXTENDED = null; + GENERAL_PUNCTUATION = null; + SUPERSCRIPTS_AND_SUBSCRIPTS = null; + CURRENCY_SYMBOLS = null; + COMBINING_MARKS_FOR_SYMBOLS = null; + LETTERLIKE_SYMBOLS = null; + NUMBER_FORMS = null; + ARROWS = null; + MATHEMATICAL_OPERATORS = null; + MISCELLANEOUS_TECHNICAL = null; + CONTROL_PICTURES = null; + OPTICAL_CHARACTER_RECOGNITION = null; + ENCLOSED_ALPHANUMERICS = null; + BOX_DRAWING = null; + BLOCK_ELEMENTS = null; + GEOMETRIC_SHAPES = null; + MISCELLANEOUS_SYMBOLS = null; + DINGBATS = null; + MISCELLANEOUS_MATHEMATICAL_SYMBOLS_A = null; + SUPPLEMENTAL_ARROWS_A = null; + BRAILLE_PATTERNS = null; + SUPPLEMENTAL_ARROWS_B = null; + MISCELLANEOUS_MATHEMATICAL_SYMBOLS_B = null; + SUPPLEMENTAL_MATHEMATICAL_OPERATORS = null; + MISCELLANEOUS_SYMBOLS_AND_ARROWS = null; + CJK_RADICALS_SUPPLEMENT = null; + KANGXI_RADICALS = null; + IDEOGRAPHIC_DESCRIPTION_CHARACTERS = null; + CJK_SYMBOLS_AND_PUNCTUATION = null; + HIRAGANA = null; + KATAKANA = null; + BOPOMOFO = null; + HANGUL_COMPATIBILITY_JAMO = null; + KANBUN = null; + BOPOMOFO_EXTENDED = null; + KATAKANA_PHONETIC_EXTENSIONS = null; + ENCLOSED_CJK_LETTERS_AND_MONTHS = null; + CJK_COMPATIBILITY = null; + CJK_UNIFIED_IDEOGRAPHS_EXTENSION_A = null; + YIJING_HEXAGRAM_SYMBOLS = null; + CJK_UNIFIED_IDEOGRAPHS = null; + YI_SYLLABLES = null; + YI_RADICALS = null; + HANGUL_SYLLABLES = null; + HIGH_SURROGATES = null; + HIGH_PRIVATE_USE_SURROGATES = null; + LOW_SURROGATES = null; + PRIVATE_USE_AREA = null; + CJK_COMPATIBILITY_IDEOGRAPHS = null; + ALPHABETIC_PRESENTATION_FORMS = null; + ARABIC_PRESENTATION_FORMS_A = null; + VARIATION_SELECTORS = null; + COMBINING_HALF_MARKS = null; + CJK_COMPATIBILITY_FORMS = null; + SMALL_FORM_VARIANTS = null; + ARABIC_PRESENTATION_FORMS_B = null; + HALFWIDTH_AND_FULLWIDTH_FORMS = null; + SPECIALS = null; + LINEAR_B_SYLLABARY = null; + LINEAR_B_IDEOGRAMS = null; + AEGEAN_NUMBERS = null; + OLD_ITALIC = null; + GOTHIC = null; + UGARITIC = null; + DESERET = null; + SHAVIAN = null; + OSMANYA = null; + CYPRIOT_SYLLABARY = null; + BYZANTINE_MUSICAL_SYMBOLS = null; + MUSICAL_SYMBOLS = null; + TAI_XUAN_JING_SYMBOLS = null; + MATHEMATICAL_ALPHANUMERIC_SYMBOLS = null; + CJK_UNIFIED_IDEOGRAPHS_EXTENSION_B = null; + CJK_COMPATIBILITY_IDEOGRAPHS_SUPPLEMENT = null; + TAGS = null; + VARIATION_SELECTORS_SUPPLEMENT = null; + SUPPLEMENTARY_PRIVATE_USE_AREA_A = null; + SUPPLEMENTARY_PRIVATE_USE_AREA_B = null; + } + } + + public Character(char value) { + throw new RuntimeException("Stub!"); + } + + public char charValue() { + throw new RuntimeException("Stub!"); + } + + public int compareTo(java.lang.Character c) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.Character valueOf(char c) { + throw new RuntimeException("Stub!"); + } + + public static boolean isValidCodePoint(int codePoint) { + throw new RuntimeException("Stub!"); + } + + public static boolean isSupplementaryCodePoint(int codePoint) { + throw new RuntimeException("Stub!"); + } + + public static boolean isHighSurrogate(char ch) { + throw new RuntimeException("Stub!"); + } + + public static boolean isLowSurrogate(char ch) { + throw new RuntimeException("Stub!"); + } + + public static boolean isSurrogatePair(char high, char low) { + throw new RuntimeException("Stub!"); + } + + public static int charCount(int codePoint) { + throw new RuntimeException("Stub!"); + } + + public static int toCodePoint(char high, char low) { + throw new RuntimeException("Stub!"); + } + + public static int codePointAt(java.lang.CharSequence seq, int index) { + throw new RuntimeException("Stub!"); + } + + public static int codePointAt(char[] seq, int index) { + throw new RuntimeException("Stub!"); + } + + public static int codePointAt(char[] seq, int index, int limit) { + throw new RuntimeException("Stub!"); + } + + public static int codePointBefore(java.lang.CharSequence seq, int index) { + throw new RuntimeException("Stub!"); + } + + public static int codePointBefore(char[] seq, int index) { + throw new RuntimeException("Stub!"); + } + + public static int codePointBefore(char[] seq, int index, int start) { + throw new RuntimeException("Stub!"); + } + + public static int toChars(int codePoint, char[] dst, int dstIndex) { + throw new RuntimeException("Stub!"); + } + + public static char[] toChars(int codePoint) { + throw new RuntimeException("Stub!"); + } + + public static int codePointCount(java.lang.CharSequence seq, int beginIndex, int endIndex) { + throw new RuntimeException("Stub!"); + } + + public static int codePointCount(char[] seq, int offset, int count) { + throw new RuntimeException("Stub!"); + } + + public static int offsetByCodePoints(java.lang.CharSequence seq, int index, int codePointOffset) { + throw new RuntimeException("Stub!"); + } + + public static int offsetByCodePoints(char[] seq, int start, int count, int index, + int codePointOffset) { + throw new RuntimeException("Stub!"); + } + + public static int digit(char c, int radix) { + throw new RuntimeException("Stub!"); + } + + public static int digit(int codePoint, int radix) { + throw new RuntimeException("Stub!"); + } + + public boolean equals(java.lang.Object object) { + throw new RuntimeException("Stub!"); + } + + public static char forDigit(int digit, int radix) { + throw new RuntimeException("Stub!"); + } + + public static int getNumericValue(char c) { + throw new RuntimeException("Stub!"); + } + + public static int getNumericValue(int codePoint) { + throw new RuntimeException("Stub!"); + } + + public static int getType(char c) { + throw new RuntimeException("Stub!"); + } + + public static int getType(int codePoint) { + throw new RuntimeException("Stub!"); + } + + public static byte getDirectionality(char c) { + throw new RuntimeException("Stub!"); + } + + public static byte getDirectionality(int codePoint) { + throw new RuntimeException("Stub!"); + } + + public static boolean isMirrored(char c) { + throw new RuntimeException("Stub!"); + } + + public static boolean isMirrored(int codePoint) { + throw new RuntimeException("Stub!"); + } + + public int hashCode() { + throw new RuntimeException("Stub!"); + } + + public static boolean isDefined(char c) { + throw new RuntimeException("Stub!"); + } + + public static boolean isDefined(int codePoint) { + throw new RuntimeException("Stub!"); + } + + public static boolean isDigit(char c) { + throw new RuntimeException("Stub!"); + } + + public static boolean isDigit(int codePoint) { + throw new RuntimeException("Stub!"); + } + + public static boolean isIdentifierIgnorable(char c) { + throw new RuntimeException("Stub!"); + } + + public static boolean isIdentifierIgnorable(int codePoint) { + throw new RuntimeException("Stub!"); + } + + public static boolean isISOControl(char c) { + throw new RuntimeException("Stub!"); + } + + public static boolean isISOControl(int c) { + throw new RuntimeException("Stub!"); + } + + public static boolean isJavaIdentifierPart(char c) { + throw new RuntimeException("Stub!"); + } + + public static boolean isJavaIdentifierPart(int codePoint) { + throw new RuntimeException("Stub!"); + } + + public static boolean isJavaIdentifierStart(char c) { + throw new RuntimeException("Stub!"); + } + + public static boolean isJavaIdentifierStart(int codePoint) { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + public static boolean isJavaLetter(char c) { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + public static boolean isJavaLetterOrDigit(char c) { + throw new RuntimeException("Stub!"); + } + + public static boolean isLetter(char c) { + throw new RuntimeException("Stub!"); + } + + public static boolean isLetter(int codePoint) { + throw new RuntimeException("Stub!"); + } + + public static boolean isLetterOrDigit(char c) { + throw new RuntimeException("Stub!"); + } + + public static boolean isLetterOrDigit(int codePoint) { + throw new RuntimeException("Stub!"); + } + + public static boolean isLowerCase(char c) { + throw new RuntimeException("Stub!"); + } + + public static boolean isLowerCase(int codePoint) { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + public static boolean isSpace(char c) { + throw new RuntimeException("Stub!"); + } + + public static boolean isSpaceChar(char c) { + throw new RuntimeException("Stub!"); + } + + public static boolean isSpaceChar(int codePoint) { + throw new RuntimeException("Stub!"); + } + + public static boolean isTitleCase(char c) { + throw new RuntimeException("Stub!"); + } + + public static boolean isTitleCase(int codePoint) { + throw new RuntimeException("Stub!"); + } + + public static boolean isUnicodeIdentifierPart(char c) { + throw new RuntimeException("Stub!"); + } + + public static boolean isUnicodeIdentifierPart(int codePoint) { + throw new RuntimeException("Stub!"); + } + + public static boolean isUnicodeIdentifierStart(char c) { + throw new RuntimeException("Stub!"); + } + + public static boolean isUnicodeIdentifierStart(int codePoint) { + throw new RuntimeException("Stub!"); + } + + public static boolean isUpperCase(char c) { + throw new RuntimeException("Stub!"); + } + + public static boolean isUpperCase(int codePoint) { + throw new RuntimeException("Stub!"); + } + + public static boolean isWhitespace(char c) { + throw new RuntimeException("Stub!"); + } + + public static boolean isWhitespace(int codePoint) { + throw new RuntimeException("Stub!"); + } + + public static char reverseBytes(char c) { + throw new RuntimeException("Stub!"); + } + + public static char toLowerCase(char c) { + throw new RuntimeException("Stub!"); + } + + public static int toLowerCase(int codePoint) { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toString() { + throw new RuntimeException("Stub!"); + } + + public static java.lang.String toString(char value) { + throw new RuntimeException("Stub!"); + } + + public static char toTitleCase(char c) { + throw new RuntimeException("Stub!"); + } + + public static int toTitleCase(int codePoint) { + throw new RuntimeException("Stub!"); + } + + public static char toUpperCase(char c) { + throw new RuntimeException("Stub!"); + } + + public static int toUpperCase(int codePoint) { + throw new RuntimeException("Stub!"); + } + + public static final char MIN_VALUE = 0; + public static final char MAX_VALUE = 65535; + public static final int MIN_RADIX = 2; + public static final int MAX_RADIX = 36; + @java.lang.SuppressWarnings(value = {"unchecked"}) + public static final java.lang.Class<java.lang.Character> TYPE; + public static final byte UNASSIGNED = 0; + public static final byte UPPERCASE_LETTER = 1; + public static final byte LOWERCASE_LETTER = 2; + public static final byte TITLECASE_LETTER = 3; + public static final byte MODIFIER_LETTER = 4; + public static final byte OTHER_LETTER = 5; + public static final byte NON_SPACING_MARK = 6; + public static final byte ENCLOSING_MARK = 7; + public static final byte COMBINING_SPACING_MARK = 8; + public static final byte DECIMAL_DIGIT_NUMBER = 9; + public static final byte LETTER_NUMBER = 10; + public static final byte OTHER_NUMBER = 11; + public static final byte SPACE_SEPARATOR = 12; + public static final byte LINE_SEPARATOR = 13; + public static final byte PARAGRAPH_SEPARATOR = 14; + public static final byte CONTROL = 15; + public static final byte FORMAT = 16; + public static final byte PRIVATE_USE = 18; + public static final byte SURROGATE = 19; + public static final byte DASH_PUNCTUATION = 20; + public static final byte START_PUNCTUATION = 21; + public static final byte END_PUNCTUATION = 22; + public static final byte CONNECTOR_PUNCTUATION = 23; + public static final byte OTHER_PUNCTUATION = 24; + public static final byte MATH_SYMBOL = 25; + public static final byte CURRENCY_SYMBOL = 26; + public static final byte MODIFIER_SYMBOL = 27; + public static final byte OTHER_SYMBOL = 28; + public static final byte INITIAL_QUOTE_PUNCTUATION = 29; + public static final byte FINAL_QUOTE_PUNCTUATION = 30; + public static final byte DIRECTIONALITY_UNDEFINED = -1; + public static final byte DIRECTIONALITY_LEFT_TO_RIGHT = 0; + public static final byte DIRECTIONALITY_RIGHT_TO_LEFT = 1; + public static final byte DIRECTIONALITY_RIGHT_TO_LEFT_ARABIC = 2; + public static final byte DIRECTIONALITY_EUROPEAN_NUMBER = 3; + public static final byte DIRECTIONALITY_EUROPEAN_NUMBER_SEPARATOR = 4; + public static final byte DIRECTIONALITY_EUROPEAN_NUMBER_TERMINATOR = 5; + public static final byte DIRECTIONALITY_ARABIC_NUMBER = 6; + public static final byte DIRECTIONALITY_COMMON_NUMBER_SEPARATOR = 7; + public static final byte DIRECTIONALITY_NONSPACING_MARK = 8; + public static final byte DIRECTIONALITY_BOUNDARY_NEUTRAL = 9; + public static final byte DIRECTIONALITY_PARAGRAPH_SEPARATOR = 10; + public static final byte DIRECTIONALITY_SEGMENT_SEPARATOR = 11; + public static final byte DIRECTIONALITY_WHITESPACE = 12; + public static final byte DIRECTIONALITY_OTHER_NEUTRALS = 13; + public static final byte DIRECTIONALITY_LEFT_TO_RIGHT_EMBEDDING = 14; + public static final byte DIRECTIONALITY_LEFT_TO_RIGHT_OVERRIDE = 15; + public static final byte DIRECTIONALITY_RIGHT_TO_LEFT_EMBEDDING = 16; + public static final byte DIRECTIONALITY_RIGHT_TO_LEFT_OVERRIDE = 17; + public static final byte DIRECTIONALITY_POP_DIRECTIONAL_FORMAT = 18; + public static final char MIN_HIGH_SURROGATE = 55296; + public static final char MAX_HIGH_SURROGATE = 56319; + public static final char MIN_LOW_SURROGATE = 56320; + public static final char MAX_LOW_SURROGATE = 57343; + public static final char MIN_SURROGATE = 55296; + public static final char MAX_SURROGATE = 57343; + public static final int MIN_SUPPLEMENTARY_CODE_POINT = 65536; + public static final int MIN_CODE_POINT = 0; + public static final int MAX_CODE_POINT = 1114111; + public static final int SIZE = 16; + static { + TYPE = null; + } +} diff --git a/core-stubs-mini/src/java/lang/Class.java b/core-stubs-mini/src/java/lang/Class.java new file mode 100644 index 0000000..8e4aee3 --- /dev/null +++ b/core-stubs-mini/src/java/lang/Class.java @@ -0,0 +1,244 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public final class Class<T> + implements + java.io.Serializable, + java.lang.reflect.AnnotatedElement, + java.lang.reflect.GenericDeclaration, + java.lang.reflect.Type { + Class() { + throw new RuntimeException("Stub!"); + } + + public static java.lang.Class<?> forName(java.lang.String className) + throws java.lang.ClassNotFoundException { + throw new RuntimeException("Stub!"); + } + + public static java.lang.Class<?> forName(java.lang.String className, boolean shouldInitialize, + java.lang.ClassLoader classLoader) throws java.lang.ClassNotFoundException { + throw new RuntimeException("Stub!"); + } + + public java.lang.Class<?>[] getClasses() { + throw new RuntimeException("Stub!"); + } + + public <A extends java.lang.annotation.Annotation> A getAnnotation( + java.lang.Class<A> annotationType) { + throw new RuntimeException("Stub!"); + } + + public java.lang.annotation.Annotation[] getAnnotations() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getCanonicalName() { + throw new RuntimeException("Stub!"); + } + + public java.lang.ClassLoader getClassLoader() { + throw new RuntimeException("Stub!"); + } + + public native java.lang.Class<?> getComponentType(); + + @java.lang.SuppressWarnings(value = {"unchecked"}) + public java.lang.reflect.Constructor<T> getConstructor(java.lang.Class<?>... parameterTypes) + throws java.lang.NoSuchMethodException { + throw new RuntimeException("Stub!"); + } + + public java.lang.reflect.Constructor<?>[] getConstructors() { + throw new RuntimeException("Stub!"); + } + + public native java.lang.annotation.Annotation[] getDeclaredAnnotations(); + + public java.lang.Class<?>[] getDeclaredClasses() { + throw new RuntimeException("Stub!"); + } + + @java.lang.SuppressWarnings(value = {"unchecked"}) + public java.lang.reflect.Constructor<T> getDeclaredConstructor( + java.lang.Class<?>... parameterTypes) throws java.lang.NoSuchMethodException { + throw new RuntimeException("Stub!"); + } + + public java.lang.reflect.Constructor<?>[] getDeclaredConstructors() { + throw new RuntimeException("Stub!"); + } + + public java.lang.reflect.Field getDeclaredField(java.lang.String name) + throws java.lang.NoSuchFieldException { + throw new RuntimeException("Stub!"); + } + + public java.lang.reflect.Field[] getDeclaredFields() { + throw new RuntimeException("Stub!"); + } + + public java.lang.reflect.Method getDeclaredMethod(java.lang.String name, + java.lang.Class<?>... parameterTypes) throws java.lang.NoSuchMethodException { + throw new RuntimeException("Stub!"); + } + + public java.lang.reflect.Method[] getDeclaredMethods() { + throw new RuntimeException("Stub!"); + } + + public native java.lang.Class<?> getDeclaringClass(); + + public native java.lang.Class<?> getEnclosingClass(); + + public native java.lang.reflect.Constructor<?> getEnclosingConstructor(); + + public native java.lang.reflect.Method getEnclosingMethod(); + + @java.lang.SuppressWarnings(value = {"unchecked"}) + public T[] getEnumConstants() { + throw new RuntimeException("Stub!"); + } + + public java.lang.reflect.Field getField(java.lang.String name) + throws java.lang.NoSuchFieldException { + throw new RuntimeException("Stub!"); + } + + public java.lang.reflect.Field[] getFields() { + throw new RuntimeException("Stub!"); + } + + public java.lang.reflect.Type[] getGenericInterfaces() { + throw new RuntimeException("Stub!"); + } + + public java.lang.reflect.Type getGenericSuperclass() { + throw new RuntimeException("Stub!"); + } + + public native java.lang.Class<?>[] getInterfaces(); + + public java.lang.reflect.Method getMethod(java.lang.String name, + java.lang.Class<?>... parameterTypes) throws java.lang.NoSuchMethodException { + throw new RuntimeException("Stub!"); + } + + public java.lang.reflect.Method[] getMethods() { + throw new RuntimeException("Stub!"); + } + + public int getModifiers() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getName() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getSimpleName() { + throw new RuntimeException("Stub!"); + } + + public java.security.ProtectionDomain getProtectionDomain() { + throw new RuntimeException("Stub!"); + } + + public java.net.URL getResource(java.lang.String resourceName) { + throw new RuntimeException("Stub!"); + } + + public java.io.InputStream getResourceAsStream(java.lang.String resourceName) { + throw new RuntimeException("Stub!"); + } + + public java.lang.Object[] getSigners() { + throw new RuntimeException("Stub!"); + } + + public native java.lang.Class<? super T> getSuperclass(); + + @java.lang.SuppressWarnings(value = {"unchecked"}) + public synchronized java.lang.reflect.TypeVariable<java.lang.Class<T>>[] getTypeParameters() { + throw new RuntimeException("Stub!"); + } + + public boolean isAnnotation() { + throw new RuntimeException("Stub!"); + } + + public boolean isAnnotationPresent( + java.lang.Class<? extends java.lang.annotation.Annotation> annotationType) { + throw new RuntimeException("Stub!"); + } + + public native boolean isAnonymousClass(); + + public boolean isArray() { + throw new RuntimeException("Stub!"); + } + + public native boolean isAssignableFrom(java.lang.Class<?> c); + + public boolean isEnum() { + throw new RuntimeException("Stub!"); + } + + public native boolean isInstance(java.lang.Object object); + + public native boolean isInterface(); + + public boolean isLocalClass() { + throw new RuntimeException("Stub!"); + } + + public boolean isMemberClass() { + throw new RuntimeException("Stub!"); + } + + public native boolean isPrimitive(); + + public boolean isSynthetic() { + throw new RuntimeException("Stub!"); + } + + public T newInstance() throws java.lang.InstantiationException, java.lang.IllegalAccessException { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toString() { + throw new RuntimeException("Stub!"); + } + + public java.lang.Package getPackage() { + throw new RuntimeException("Stub!"); + } + + public native boolean desiredAssertionStatus(); + + @java.lang.SuppressWarnings(value = {"unchecked"}) + public <U> java.lang.Class<? extends U> asSubclass(java.lang.Class<U> c) { + throw new RuntimeException("Stub!"); + } + + @java.lang.SuppressWarnings(value = {"unchecked"}) + public T cast(java.lang.Object obj) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/lang/ClassCastException.java b/core-stubs-mini/src/java/lang/ClassCastException.java new file mode 100644 index 0000000..63b2b75 --- /dev/null +++ b/core-stubs-mini/src/java/lang/ClassCastException.java @@ -0,0 +1,27 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public class ClassCastException extends java.lang.RuntimeException { + public ClassCastException() { + throw new RuntimeException("Stub!"); + } + + public ClassCastException(java.lang.String detailMessage) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/lang/ClassFormatError.java b/core-stubs-mini/src/java/lang/ClassFormatError.java new file mode 100644 index 0000000..38e59dc --- /dev/null +++ b/core-stubs-mini/src/java/lang/ClassFormatError.java @@ -0,0 +1,27 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public class ClassFormatError extends java.lang.LinkageError { + public ClassFormatError() { + throw new RuntimeException("Stub!"); + } + + public ClassFormatError(java.lang.String detailMessage) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/lang/ClassLoader.java b/core-stubs-mini/src/java/lang/ClassLoader.java new file mode 100644 index 0000000..a015104 --- /dev/null +++ b/core-stubs-mini/src/java/lang/ClassLoader.java @@ -0,0 +1,165 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public abstract class ClassLoader { + protected ClassLoader() { + throw new RuntimeException("Stub!"); + } + + protected ClassLoader(java.lang.ClassLoader parentLoader) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.ClassLoader getSystemClassLoader() { + throw new RuntimeException("Stub!"); + } + + public static java.net.URL getSystemResource(java.lang.String resName) { + throw new RuntimeException("Stub!"); + } + + public static java.util.Enumeration<java.net.URL> getSystemResources(java.lang.String resName) + throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + public static java.io.InputStream getSystemResourceAsStream(java.lang.String resName) { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + protected final java.lang.Class<?> defineClass(byte[] classRep, int offset, int length) + throws java.lang.ClassFormatError { + throw new RuntimeException("Stub!"); + } + + protected final java.lang.Class<?> defineClass(java.lang.String className, byte[] classRep, + int offset, int length) throws java.lang.ClassFormatError { + throw new RuntimeException("Stub!"); + } + + protected final java.lang.Class<?> defineClass(java.lang.String className, byte[] classRep, + int offset, int length, java.security.ProtectionDomain protectionDomain) + throws java.lang.ClassFormatError { + throw new RuntimeException("Stub!"); + } + + protected final java.lang.Class<?> defineClass(java.lang.String name, java.nio.ByteBuffer b, + java.security.ProtectionDomain protectionDomain) throws java.lang.ClassFormatError { + throw new RuntimeException("Stub!"); + } + + protected java.lang.Class<?> findClass(java.lang.String className) + throws java.lang.ClassNotFoundException { + throw new RuntimeException("Stub!"); + } + + protected final java.lang.Class<?> findLoadedClass(java.lang.String className) { + throw new RuntimeException("Stub!"); + } + + protected final java.lang.Class<?> findSystemClass(java.lang.String className) + throws java.lang.ClassNotFoundException { + throw new RuntimeException("Stub!"); + } + + public final java.lang.ClassLoader getParent() { + throw new RuntimeException("Stub!"); + } + + public java.net.URL getResource(java.lang.String resName) { + throw new RuntimeException("Stub!"); + } + + @java.lang.SuppressWarnings(value = {"unchecked"}) + public java.util.Enumeration<java.net.URL> getResources(java.lang.String resName) + throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + public java.io.InputStream getResourceAsStream(java.lang.String resName) { + throw new RuntimeException("Stub!"); + } + + public java.lang.Class<?> loadClass(java.lang.String className) + throws java.lang.ClassNotFoundException { + throw new RuntimeException("Stub!"); + } + + protected java.lang.Class<?> loadClass(java.lang.String className, boolean resolve) + throws java.lang.ClassNotFoundException { + throw new RuntimeException("Stub!"); + } + + protected final void resolveClass(java.lang.Class<?> clazz) { + throw new RuntimeException("Stub!"); + } + + protected java.net.URL findResource(java.lang.String resName) { + throw new RuntimeException("Stub!"); + } + + @java.lang.SuppressWarnings(value = {"unchecked", "unused"}) + protected java.util.Enumeration<java.net.URL> findResources(java.lang.String resName) + throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + protected java.lang.String findLibrary(java.lang.String libName) { + throw new RuntimeException("Stub!"); + } + + protected java.lang.Package getPackage(java.lang.String name) { + throw new RuntimeException("Stub!"); + } + + protected java.lang.Package[] getPackages() { + throw new RuntimeException("Stub!"); + } + + protected java.lang.Package definePackage(java.lang.String name, + java.lang.String specTitle, + java.lang.String specVersion, + java.lang.String specVendor, + java.lang.String implTitle, + java.lang.String implVersion, + java.lang.String implVendor, + java.net.URL sealBase) throws java.lang.IllegalArgumentException { + throw new RuntimeException("Stub!"); + } + + protected final void setSigners(java.lang.Class<?> c, java.lang.Object[] signers) { + throw new RuntimeException("Stub!"); + } + + public void setClassAssertionStatus(java.lang.String cname, boolean enable) { + throw new RuntimeException("Stub!"); + } + + public void setPackageAssertionStatus(java.lang.String pname, boolean enable) { + throw new RuntimeException("Stub!"); + } + + public void setDefaultAssertionStatus(boolean enable) { + throw new RuntimeException("Stub!"); + } + + public void clearAssertionStatus() { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/lang/ClassNotFoundException.java b/core-stubs-mini/src/java/lang/ClassNotFoundException.java new file mode 100644 index 0000000..585bf58 --- /dev/null +++ b/core-stubs-mini/src/java/lang/ClassNotFoundException.java @@ -0,0 +1,39 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public class ClassNotFoundException extends java.lang.Exception { + public ClassNotFoundException() { + throw new RuntimeException("Stub!"); + } + + public ClassNotFoundException(java.lang.String detailMessage) { + throw new RuntimeException("Stub!"); + } + + public ClassNotFoundException(java.lang.String detailMessage, java.lang.Throwable exception) { + throw new RuntimeException("Stub!"); + } + + public java.lang.Throwable getException() { + throw new RuntimeException("Stub!"); + } + + public java.lang.Throwable getCause() { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/lang/CloneNotSupportedException.java b/core-stubs-mini/src/java/lang/CloneNotSupportedException.java new file mode 100644 index 0000000..0afadbc --- /dev/null +++ b/core-stubs-mini/src/java/lang/CloneNotSupportedException.java @@ -0,0 +1,27 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public class CloneNotSupportedException extends java.lang.Exception { + public CloneNotSupportedException() { + throw new RuntimeException("Stub!"); + } + + public CloneNotSupportedException(java.lang.String detailMessage) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/lang/Cloneable.java b/core-stubs-mini/src/java/lang/Cloneable.java new file mode 100644 index 0000000..5a8bded --- /dev/null +++ b/core-stubs-mini/src/java/lang/Cloneable.java @@ -0,0 +1,20 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public interface Cloneable { +} diff --git a/core-stubs-mini/src/java/lang/Comparable.java b/core-stubs-mini/src/java/lang/Comparable.java new file mode 100644 index 0000000..468f087 --- /dev/null +++ b/core-stubs-mini/src/java/lang/Comparable.java @@ -0,0 +1,21 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public interface Comparable<T> { + public abstract int compareTo(T another); +} diff --git a/core-stubs-mini/src/java/lang/Deprecated.java b/core-stubs-mini/src/java/lang/Deprecated.java new file mode 100644 index 0000000..0e14315 --- /dev/null +++ b/core-stubs-mini/src/java/lang/Deprecated.java @@ -0,0 +1,22 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +@java.lang.annotation.Documented() +@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME) +public @interface Deprecated { +} diff --git a/core-stubs-mini/src/java/lang/Double.java b/core-stubs-mini/src/java/lang/Double.java new file mode 100644 index 0000000..bf1a58a --- /dev/null +++ b/core-stubs-mini/src/java/lang/Double.java @@ -0,0 +1,130 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public final class Double extends java.lang.Number implements + java.lang.Comparable<java.lang.Double> { + public Double(double value) { + throw new RuntimeException("Stub!"); + } + + public Double(java.lang.String string) throws java.lang.NumberFormatException { + throw new RuntimeException("Stub!"); + } + + public int compareTo(java.lang.Double object) { + throw new RuntimeException("Stub!"); + } + + public byte byteValue() { + throw new RuntimeException("Stub!"); + } + + public static native long doubleToLongBits(double value); + + public static native long doubleToRawLongBits(double value); + + public double doubleValue() { + throw new RuntimeException("Stub!"); + } + + public boolean equals(java.lang.Object object) { + throw new RuntimeException("Stub!"); + } + + public float floatValue() { + throw new RuntimeException("Stub!"); + } + + public int hashCode() { + throw new RuntimeException("Stub!"); + } + + public int intValue() { + throw new RuntimeException("Stub!"); + } + + public boolean isInfinite() { + throw new RuntimeException("Stub!"); + } + + public static boolean isInfinite(double d) { + throw new RuntimeException("Stub!"); + } + + public boolean isNaN() { + throw new RuntimeException("Stub!"); + } + + public static boolean isNaN(double d) { + throw new RuntimeException("Stub!"); + } + + public static native double longBitsToDouble(long bits); + + public long longValue() { + throw new RuntimeException("Stub!"); + } + + public static double parseDouble(java.lang.String string) throws java.lang.NumberFormatException { + throw new RuntimeException("Stub!"); + } + + public short shortValue() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toString() { + throw new RuntimeException("Stub!"); + } + + public static java.lang.String toString(double d) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.Double valueOf(java.lang.String string) + throws java.lang.NumberFormatException { + throw new RuntimeException("Stub!"); + } + + public static int compare(double double1, double double2) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.Double valueOf(double d) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.String toHexString(double d) { + throw new RuntimeException("Stub!"); + } + + public static final double MAX_VALUE = 1.7976931348623157E308; + public static final double MIN_VALUE = 4.9E-324; + public static final double NaN = (0.0 / 0.0); + public static final double POSITIVE_INFINITY = (1.0 / 0.0); + public static final double NEGATIVE_INFINITY = (-1.0 / 0.0); + public static final double MIN_NORMAL = 2.2250738585072014E-308; + public static final int MAX_EXPONENT = 1023; + public static final int MIN_EXPONENT = -1022; + @java.lang.SuppressWarnings(value = {"unchecked"}) + public static final java.lang.Class<java.lang.Double> TYPE; + public static final int SIZE = 64; + static { + TYPE = null; + } +} diff --git a/core-stubs-mini/src/java/lang/Enum.java b/core-stubs-mini/src/java/lang/Enum.java new file mode 100644 index 0000000..72921fc --- /dev/null +++ b/core-stubs-mini/src/java/lang/Enum.java @@ -0,0 +1,67 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public abstract class Enum<E extends java.lang.Enum<E>> implements java.io.Serializable, + java.lang.Comparable<E> { + protected Enum(java.lang.String name, int ordinal) { + throw new RuntimeException("Stub!"); + } + + public final java.lang.String name() { + throw new RuntimeException("Stub!"); + } + + public final int ordinal() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toString() { + throw new RuntimeException("Stub!"); + } + + public final boolean equals(java.lang.Object other) { + throw new RuntimeException("Stub!"); + } + + public final int hashCode() { + throw new RuntimeException("Stub!"); + } + + protected final java.lang.Object clone() throws java.lang.CloneNotSupportedException { + throw new RuntimeException("Stub!"); + } + + public final int compareTo(E o) { + throw new RuntimeException("Stub!"); + } + + @java.lang.SuppressWarnings(value = {"unchecked"}) + public final java.lang.Class<E> getDeclaringClass() { + throw new RuntimeException("Stub!"); + } + + public static <T extends java.lang.Enum<T>> T valueOf(java.lang.Class<T> enumType, + java.lang.String name) { + throw new RuntimeException("Stub!"); + } + + @java.lang.SuppressWarnings(value = {"FinalizeDoesntCallSuperFinalize"}) + protected final void finalize() { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/lang/Error.java b/core-stubs-mini/src/java/lang/Error.java new file mode 100644 index 0000000..b7e2943 --- /dev/null +++ b/core-stubs-mini/src/java/lang/Error.java @@ -0,0 +1,35 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public class Error extends java.lang.Throwable { + public Error() { + throw new RuntimeException("Stub!"); + } + + public Error(java.lang.String detailMessage) { + throw new RuntimeException("Stub!"); + } + + public Error(java.lang.String detailMessage, java.lang.Throwable throwable) { + throw new RuntimeException("Stub!"); + } + + public Error(java.lang.Throwable throwable) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/lang/Exception.java b/core-stubs-mini/src/java/lang/Exception.java new file mode 100644 index 0000000..739efa9 --- /dev/null +++ b/core-stubs-mini/src/java/lang/Exception.java @@ -0,0 +1,35 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public class Exception extends java.lang.Throwable { + public Exception() { + throw new RuntimeException("Stub!"); + } + + public Exception(java.lang.String detailMessage) { + throw new RuntimeException("Stub!"); + } + + public Exception(java.lang.String detailMessage, java.lang.Throwable throwable) { + throw new RuntimeException("Stub!"); + } + + public Exception(java.lang.Throwable throwable) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/lang/Float.java b/core-stubs-mini/src/java/lang/Float.java new file mode 100644 index 0000000..ff26e89 --- /dev/null +++ b/core-stubs-mini/src/java/lang/Float.java @@ -0,0 +1,133 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public final class Float extends java.lang.Number implements java.lang.Comparable<java.lang.Float> { + public Float(float value) { + throw new RuntimeException("Stub!"); + } + + public Float(double value) { + throw new RuntimeException("Stub!"); + } + + public Float(java.lang.String string) throws java.lang.NumberFormatException { + throw new RuntimeException("Stub!"); + } + + public int compareTo(java.lang.Float object) { + throw new RuntimeException("Stub!"); + } + + public byte byteValue() { + throw new RuntimeException("Stub!"); + } + + public double doubleValue() { + throw new RuntimeException("Stub!"); + } + + public boolean equals(java.lang.Object object) { + throw new RuntimeException("Stub!"); + } + + public static native int floatToIntBits(float value); + + public static native int floatToRawIntBits(float value); + + public float floatValue() { + throw new RuntimeException("Stub!"); + } + + public int hashCode() { + throw new RuntimeException("Stub!"); + } + + public static native float intBitsToFloat(int bits); + + public int intValue() { + throw new RuntimeException("Stub!"); + } + + public boolean isInfinite() { + throw new RuntimeException("Stub!"); + } + + public static boolean isInfinite(float f) { + throw new RuntimeException("Stub!"); + } + + public boolean isNaN() { + throw new RuntimeException("Stub!"); + } + + public static boolean isNaN(float f) { + throw new RuntimeException("Stub!"); + } + + public long longValue() { + throw new RuntimeException("Stub!"); + } + + public static float parseFloat(java.lang.String string) throws java.lang.NumberFormatException { + throw new RuntimeException("Stub!"); + } + + public short shortValue() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toString() { + throw new RuntimeException("Stub!"); + } + + public static java.lang.String toString(float f) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.Float valueOf(java.lang.String string) + throws java.lang.NumberFormatException { + throw new RuntimeException("Stub!"); + } + + public static int compare(float float1, float float2) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.Float valueOf(float f) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.String toHexString(float f) { + throw new RuntimeException("Stub!"); + } + + public static final float MAX_VALUE = 3.4028235E38f; + public static final float MIN_VALUE = 1.4E-45f; + public static final float NaN = (0.0f / 0.0f); + public static final float POSITIVE_INFINITY = (1.0f / 0.0f); + public static final float NEGATIVE_INFINITY = (-1.0f / 0.0f); + public static final float MIN_NORMAL = 1.17549435E-38f; + public static final int MAX_EXPONENT = 127; + public static final int MIN_EXPONENT = -126; + @java.lang.SuppressWarnings(value = {"unchecked"}) + public static final java.lang.Class<java.lang.Float> TYPE; + public static final int SIZE = 32; + static { + TYPE = null; + } +} diff --git a/core-stubs-mini/src/java/lang/IllegalAccessException.java b/core-stubs-mini/src/java/lang/IllegalAccessException.java new file mode 100644 index 0000000..bb6f25e --- /dev/null +++ b/core-stubs-mini/src/java/lang/IllegalAccessException.java @@ -0,0 +1,27 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public class IllegalAccessException extends java.lang.Exception { + public IllegalAccessException() { + throw new RuntimeException("Stub!"); + } + + public IllegalAccessException(java.lang.String detailMessage) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/lang/IllegalArgumentException.java b/core-stubs-mini/src/java/lang/IllegalArgumentException.java new file mode 100644 index 0000000..d17b35e --- /dev/null +++ b/core-stubs-mini/src/java/lang/IllegalArgumentException.java @@ -0,0 +1,35 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public class IllegalArgumentException extends java.lang.RuntimeException { + public IllegalArgumentException() { + throw new RuntimeException("Stub!"); + } + + public IllegalArgumentException(java.lang.String detailMessage) { + throw new RuntimeException("Stub!"); + } + + public IllegalArgumentException(java.lang.String message, java.lang.Throwable cause) { + throw new RuntimeException("Stub!"); + } + + public IllegalArgumentException(java.lang.Throwable cause) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/lang/IncompatibleClassChangeError.java b/core-stubs-mini/src/java/lang/IncompatibleClassChangeError.java new file mode 100644 index 0000000..4924a44 --- /dev/null +++ b/core-stubs-mini/src/java/lang/IncompatibleClassChangeError.java @@ -0,0 +1,27 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public class IncompatibleClassChangeError extends java.lang.LinkageError { + public IncompatibleClassChangeError() { + throw new RuntimeException("Stub!"); + } + + public IncompatibleClassChangeError(java.lang.String detailMessage) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/lang/IndexOutOfBoundsException.java b/core-stubs-mini/src/java/lang/IndexOutOfBoundsException.java new file mode 100644 index 0000000..650aca0 --- /dev/null +++ b/core-stubs-mini/src/java/lang/IndexOutOfBoundsException.java @@ -0,0 +1,27 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public class IndexOutOfBoundsException extends java.lang.RuntimeException { + public IndexOutOfBoundsException() { + throw new RuntimeException("Stub!"); + } + + public IndexOutOfBoundsException(java.lang.String detailMessage) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/lang/InstantiationError.java b/core-stubs-mini/src/java/lang/InstantiationError.java new file mode 100644 index 0000000..d781d7f --- /dev/null +++ b/core-stubs-mini/src/java/lang/InstantiationError.java @@ -0,0 +1,27 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public class InstantiationError extends java.lang.IncompatibleClassChangeError { + public InstantiationError() { + throw new RuntimeException("Stub!"); + } + + public InstantiationError(java.lang.String detailMessage) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/lang/InstantiationException.java b/core-stubs-mini/src/java/lang/InstantiationException.java new file mode 100644 index 0000000..3480ebf --- /dev/null +++ b/core-stubs-mini/src/java/lang/InstantiationException.java @@ -0,0 +1,27 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public class InstantiationException extends java.lang.Exception { + public InstantiationException() { + throw new RuntimeException("Stub!"); + } + + public InstantiationException(java.lang.String detailMessage) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/lang/Integer.java b/core-stubs-mini/src/java/lang/Integer.java new file mode 100644 index 0000000..ef4119c --- /dev/null +++ b/core-stubs-mini/src/java/lang/Integer.java @@ -0,0 +1,178 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public final class Integer extends java.lang.Number implements + java.lang.Comparable<java.lang.Integer> { + public Integer(int value) { + throw new RuntimeException("Stub!"); + } + + public Integer(java.lang.String string) throws java.lang.NumberFormatException { + throw new RuntimeException("Stub!"); + } + + public byte byteValue() { + throw new RuntimeException("Stub!"); + } + + public int compareTo(java.lang.Integer object) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.Integer decode(java.lang.String string) + throws java.lang.NumberFormatException { + throw new RuntimeException("Stub!"); + } + + public double doubleValue() { + throw new RuntimeException("Stub!"); + } + + public boolean equals(java.lang.Object o) { + throw new RuntimeException("Stub!"); + } + + public float floatValue() { + throw new RuntimeException("Stub!"); + } + + public static java.lang.Integer getInteger(java.lang.String string) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.Integer getInteger(java.lang.String string, int defaultValue) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.Integer getInteger(java.lang.String string, + java.lang.Integer defaultValue) { + throw new RuntimeException("Stub!"); + } + + public int hashCode() { + throw new RuntimeException("Stub!"); + } + + public int intValue() { + throw new RuntimeException("Stub!"); + } + + public long longValue() { + throw new RuntimeException("Stub!"); + } + + public static int parseInt(java.lang.String string) throws java.lang.NumberFormatException { + throw new RuntimeException("Stub!"); + } + + public static int parseInt(java.lang.String string, int radix) + throws java.lang.NumberFormatException { + throw new RuntimeException("Stub!"); + } + + public short shortValue() { + throw new RuntimeException("Stub!"); + } + + public static java.lang.String toBinaryString(int i) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.String toHexString(int i) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.String toOctalString(int i) { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toString() { + throw new RuntimeException("Stub!"); + } + + public static java.lang.String toString(int i) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.String toString(int i, int radix) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.Integer valueOf(java.lang.String string) + throws java.lang.NumberFormatException { + throw new RuntimeException("Stub!"); + } + + public static java.lang.Integer valueOf(java.lang.String string, int radix) + throws java.lang.NumberFormatException { + throw new RuntimeException("Stub!"); + } + + public static int highestOneBit(int i) { + throw new RuntimeException("Stub!"); + } + + public static int lowestOneBit(int i) { + throw new RuntimeException("Stub!"); + } + + public static int numberOfLeadingZeros(int i) { + throw new RuntimeException("Stub!"); + } + + public static int numberOfTrailingZeros(int i) { + throw new RuntimeException("Stub!"); + } + + public static int bitCount(int i) { + throw new RuntimeException("Stub!"); + } + + public static int rotateLeft(int i, int distance) { + throw new RuntimeException("Stub!"); + } + + public static int rotateRight(int i, int distance) { + throw new RuntimeException("Stub!"); + } + + public static int reverseBytes(int i) { + throw new RuntimeException("Stub!"); + } + + public static int reverse(int i) { + throw new RuntimeException("Stub!"); + } + + public static int signum(int i) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.Integer valueOf(int i) { + throw new RuntimeException("Stub!"); + } + + public static final int MAX_VALUE = 2147483647; + public static final int MIN_VALUE = -2147483648; + public static final int SIZE = 32; + @java.lang.SuppressWarnings(value = {"unchecked"}) + public static final java.lang.Class<java.lang.Integer> TYPE; + static { + TYPE = null; + } +} diff --git a/core-stubs-mini/src/java/lang/InterruptedException.java b/core-stubs-mini/src/java/lang/InterruptedException.java new file mode 100644 index 0000000..c6922e9 --- /dev/null +++ b/core-stubs-mini/src/java/lang/InterruptedException.java @@ -0,0 +1,27 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public class InterruptedException extends java.lang.Exception { + public InterruptedException() { + throw new RuntimeException("Stub!"); + } + + public InterruptedException(java.lang.String detailMessage) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/lang/Iterable.java b/core-stubs-mini/src/java/lang/Iterable.java new file mode 100644 index 0000000..644aa19 --- /dev/null +++ b/core-stubs-mini/src/java/lang/Iterable.java @@ -0,0 +1,21 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public interface Iterable<T> { + public abstract java.util.Iterator<T> iterator(); +} diff --git a/core-stubs-mini/src/java/lang/LinkageError.java b/core-stubs-mini/src/java/lang/LinkageError.java new file mode 100644 index 0000000..02ab25a --- /dev/null +++ b/core-stubs-mini/src/java/lang/LinkageError.java @@ -0,0 +1,27 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public class LinkageError extends java.lang.Error { + public LinkageError() { + throw new RuntimeException("Stub!"); + } + + public LinkageError(java.lang.String detailMessage) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/lang/Long.java b/core-stubs-mini/src/java/lang/Long.java new file mode 100644 index 0000000..5e4fbd6 --- /dev/null +++ b/core-stubs-mini/src/java/lang/Long.java @@ -0,0 +1,176 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public final class Long extends java.lang.Number implements java.lang.Comparable<java.lang.Long> { + public Long(long value) { + throw new RuntimeException("Stub!"); + } + + public Long(java.lang.String string) throws java.lang.NumberFormatException { + throw new RuntimeException("Stub!"); + } + + public byte byteValue() { + throw new RuntimeException("Stub!"); + } + + public int compareTo(java.lang.Long object) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.Long decode(java.lang.String string) + throws java.lang.NumberFormatException { + throw new RuntimeException("Stub!"); + } + + public double doubleValue() { + throw new RuntimeException("Stub!"); + } + + public boolean equals(java.lang.Object o) { + throw new RuntimeException("Stub!"); + } + + public float floatValue() { + throw new RuntimeException("Stub!"); + } + + public static java.lang.Long getLong(java.lang.String string) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.Long getLong(java.lang.String string, long defaultValue) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.Long getLong(java.lang.String string, java.lang.Long defaultValue) { + throw new RuntimeException("Stub!"); + } + + public int hashCode() { + throw new RuntimeException("Stub!"); + } + + public int intValue() { + throw new RuntimeException("Stub!"); + } + + public long longValue() { + throw new RuntimeException("Stub!"); + } + + public static long parseLong(java.lang.String string) throws java.lang.NumberFormatException { + throw new RuntimeException("Stub!"); + } + + public static long parseLong(java.lang.String string, int radix) + throws java.lang.NumberFormatException { + throw new RuntimeException("Stub!"); + } + + public short shortValue() { + throw new RuntimeException("Stub!"); + } + + public static java.lang.String toBinaryString(long v) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.String toHexString(long v) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.String toOctalString(long v) { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toString() { + throw new RuntimeException("Stub!"); + } + + public static java.lang.String toString(long n) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.String toString(long v, int radix) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.Long valueOf(java.lang.String string) + throws java.lang.NumberFormatException { + throw new RuntimeException("Stub!"); + } + + public static java.lang.Long valueOf(java.lang.String string, int radix) + throws java.lang.NumberFormatException { + throw new RuntimeException("Stub!"); + } + + public static long highestOneBit(long v) { + throw new RuntimeException("Stub!"); + } + + public static long lowestOneBit(long v) { + throw new RuntimeException("Stub!"); + } + + public static int numberOfLeadingZeros(long v) { + throw new RuntimeException("Stub!"); + } + + public static int numberOfTrailingZeros(long v) { + throw new RuntimeException("Stub!"); + } + + public static int bitCount(long v) { + throw new RuntimeException("Stub!"); + } + + public static long rotateLeft(long v, int distance) { + throw new RuntimeException("Stub!"); + } + + public static long rotateRight(long v, int distance) { + throw new RuntimeException("Stub!"); + } + + public static long reverseBytes(long v) { + throw new RuntimeException("Stub!"); + } + + public static long reverse(long v) { + throw new RuntimeException("Stub!"); + } + + public static int signum(long v) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.Long valueOf(long v) { + throw new RuntimeException("Stub!"); + } + + public static final long MAX_VALUE = 9223372036854775807L; + public static final long MIN_VALUE = -9223372036854775808L; + @java.lang.SuppressWarnings(value = {"unchecked"}) + public static final java.lang.Class<java.lang.Long> TYPE; + public static final int SIZE = 64; + static { + TYPE = null; + } +} diff --git a/core-stubs-mini/src/java/lang/Math.java b/core-stubs-mini/src/java/lang/Math.java new file mode 100644 index 0000000..9395a75 --- /dev/null +++ b/core-stubs-mini/src/java/lang/Math.java @@ -0,0 +1,184 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public final class Math { + Math() { + throw new RuntimeException("Stub!"); + } + + public static native double abs(double d); + + public static native float abs(float f); + + public static native int abs(int i); + + public static native long abs(long l); + + public static native double acos(double d); + + public static native double asin(double d); + + public static native double atan(double d); + + public static native double atan2(double y, double x); + + public static native double cbrt(double d); + + public static native double ceil(double d); + + public static native double cos(double d); + + public static native double cosh(double d); + + public static native double exp(double d); + + public static native double expm1(double d); + + public static native double floor(double d); + + public static native double hypot(double x, double y); + + public static native double IEEEremainder(double x, double y); + + public static native double log(double d); + + public static native double log10(double d); + + public static native double log1p(double d); + + public static double max(double d1, double d2) { + throw new RuntimeException("Stub!"); + } + + public static float max(float f1, float f2) { + throw new RuntimeException("Stub!"); + } + + public static native int max(int i1, int i2); + + public static long max(long l1, long l2) { + throw new RuntimeException("Stub!"); + } + + public static double min(double d1, double d2) { + throw new RuntimeException("Stub!"); + } + + public static float min(float f1, float f2) { + throw new RuntimeException("Stub!"); + } + + public static native int min(int i1, int i2); + + public static long min(long l1, long l2) { + throw new RuntimeException("Stub!"); + } + + public static native double pow(double x, double y); + + public static native double rint(double d); + + public static long round(double d) { + throw new RuntimeException("Stub!"); + } + + public static int round(float f) { + throw new RuntimeException("Stub!"); + } + + public static double signum(double d) { + throw new RuntimeException("Stub!"); + } + + public static float signum(float f) { + throw new RuntimeException("Stub!"); + } + + public static native double sin(double d); + + public static native double sinh(double d); + + public static native double sqrt(double d); + + public static native double tan(double d); + + public static native double tanh(double d); + + public static synchronized double random() { + throw new RuntimeException("Stub!"); + } + + public static double toRadians(double angdeg) { + throw new RuntimeException("Stub!"); + } + + public static double toDegrees(double angrad) { + throw new RuntimeException("Stub!"); + } + + public static double ulp(double d) { + throw new RuntimeException("Stub!"); + } + + public static float ulp(float f) { + throw new RuntimeException("Stub!"); + } + + public static double copySign(double magnitude, double sign) { + throw new RuntimeException("Stub!"); + } + + public static float copySign(float magnitude, float sign) { + throw new RuntimeException("Stub!"); + } + + public static int getExponent(float f) { + throw new RuntimeException("Stub!"); + } + + public static int getExponent(double d) { + throw new RuntimeException("Stub!"); + } + + public static double nextAfter(double start, double direction) { + throw new RuntimeException("Stub!"); + } + + public static float nextAfter(float start, double direction) { + throw new RuntimeException("Stub!"); + } + + public static double nextUp(double d) { + throw new RuntimeException("Stub!"); + } + + public static float nextUp(float f) { + throw new RuntimeException("Stub!"); + } + + public static double scalb(double d, int scaleFactor) { + throw new RuntimeException("Stub!"); + } + + public static float scalb(float d, int scaleFactor) { + throw new RuntimeException("Stub!"); + } + + public static final double E = 2.718281828459045; + public static final double PI = 3.141592653589793; +} diff --git a/core-stubs-mini/src/java/lang/NoSuchFieldError.java b/core-stubs-mini/src/java/lang/NoSuchFieldError.java new file mode 100644 index 0000000..bc78fc8 --- /dev/null +++ b/core-stubs-mini/src/java/lang/NoSuchFieldError.java @@ -0,0 +1,27 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public class NoSuchFieldError extends java.lang.IncompatibleClassChangeError { + public NoSuchFieldError() { + throw new RuntimeException("Stub!"); + } + + public NoSuchFieldError(java.lang.String detailMessage) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/lang/NoSuchFieldException.java b/core-stubs-mini/src/java/lang/NoSuchFieldException.java new file mode 100644 index 0000000..a26f78c --- /dev/null +++ b/core-stubs-mini/src/java/lang/NoSuchFieldException.java @@ -0,0 +1,27 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public class NoSuchFieldException extends java.lang.Exception { + public NoSuchFieldException() { + throw new RuntimeException("Stub!"); + } + + public NoSuchFieldException(java.lang.String detailMessage) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/lang/NoSuchMethodException.java b/core-stubs-mini/src/java/lang/NoSuchMethodException.java new file mode 100644 index 0000000..35b4847 --- /dev/null +++ b/core-stubs-mini/src/java/lang/NoSuchMethodException.java @@ -0,0 +1,27 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public class NoSuchMethodException extends java.lang.Exception { + public NoSuchMethodException() { + throw new RuntimeException("Stub!"); + } + + public NoSuchMethodException(java.lang.String detailMessage) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/lang/NullPointerException.java b/core-stubs-mini/src/java/lang/NullPointerException.java new file mode 100644 index 0000000..19f6453 --- /dev/null +++ b/core-stubs-mini/src/java/lang/NullPointerException.java @@ -0,0 +1,27 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public class NullPointerException extends java.lang.RuntimeException { + public NullPointerException() { + throw new RuntimeException("Stub!"); + } + + public NullPointerException(java.lang.String detailMessage) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/lang/Number.java b/core-stubs-mini/src/java/lang/Number.java new file mode 100644 index 0000000..950b12d --- /dev/null +++ b/core-stubs-mini/src/java/lang/Number.java @@ -0,0 +1,39 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public abstract class Number implements java.io.Serializable { + public Number() { + throw new RuntimeException("Stub!"); + } + + public byte byteValue() { + throw new RuntimeException("Stub!"); + } + + public abstract double doubleValue(); + + public abstract float floatValue(); + + public abstract int intValue(); + + public abstract long longValue(); + + public short shortValue() { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/lang/NumberFormatException.java b/core-stubs-mini/src/java/lang/NumberFormatException.java new file mode 100644 index 0000000..94ec1aa --- /dev/null +++ b/core-stubs-mini/src/java/lang/NumberFormatException.java @@ -0,0 +1,27 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public class NumberFormatException extends java.lang.IllegalArgumentException { + public NumberFormatException() { + throw new RuntimeException("Stub!"); + } + + public NumberFormatException(java.lang.String detailMessage) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/lang/Object.java b/core-stubs-mini/src/java/lang/Object.java new file mode 100644 index 0000000..1c59dec --- /dev/null +++ b/core-stubs-mini/src/java/lang/Object.java @@ -0,0 +1,57 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public class Object { + public Object() { + throw new RuntimeException("Stub!"); + } + + protected java.lang.Object clone() throws java.lang.CloneNotSupportedException { + throw new RuntimeException("Stub!"); + } + + public boolean equals(java.lang.Object o) { + throw new RuntimeException("Stub!"); + } + + protected void finalize() throws java.lang.Throwable { + throw new RuntimeException("Stub!"); + } + + public final native java.lang.Class<?> getClass(); + + public native int hashCode(); + + public final native void notify(); + + public final native void notifyAll(); + + public java.lang.String toString() { + throw new RuntimeException("Stub!"); + } + + public final void wait() throws java.lang.InterruptedException { + throw new RuntimeException("Stub!"); + } + + public final void wait(long millis) throws java.lang.InterruptedException { + throw new RuntimeException("Stub!"); + } + + public final native void wait(long millis, int nanos) throws java.lang.InterruptedException; +} diff --git a/core-stubs-mini/src/java/lang/OutOfMemoryError.java b/core-stubs-mini/src/java/lang/OutOfMemoryError.java new file mode 100644 index 0000000..5b055de --- /dev/null +++ b/core-stubs-mini/src/java/lang/OutOfMemoryError.java @@ -0,0 +1,27 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public class OutOfMemoryError extends java.lang.VirtualMachineError { + public OutOfMemoryError() { + throw new RuntimeException("Stub!"); + } + + public OutOfMemoryError(java.lang.String detailMessage) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/lang/Override.java b/core-stubs-mini/src/java/lang/Override.java new file mode 100644 index 0000000..6f1872e --- /dev/null +++ b/core-stubs-mini/src/java/lang/Override.java @@ -0,0 +1,22 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +@java.lang.annotation.Target(value = {java.lang.annotation.ElementType.METHOD}) +@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.SOURCE) +public @interface Override { +} diff --git a/core-stubs-mini/src/java/lang/Package.java b/core-stubs-mini/src/java/lang/Package.java new file mode 100644 index 0000000..e3e283b --- /dev/null +++ b/core-stubs-mini/src/java/lang/Package.java @@ -0,0 +1,98 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public class Package implements java.lang.reflect.AnnotatedElement { + Package() { + throw new RuntimeException("Stub!"); + } + + @java.lang.SuppressWarnings(value = {"unchecked"}) + public <A extends java.lang.annotation.Annotation> A getAnnotation( + java.lang.Class<A> annotationType) { + throw new RuntimeException("Stub!"); + } + + public java.lang.annotation.Annotation[] getAnnotations() { + throw new RuntimeException("Stub!"); + } + + public java.lang.annotation.Annotation[] getDeclaredAnnotations() { + throw new RuntimeException("Stub!"); + } + + public boolean isAnnotationPresent( + java.lang.Class<? extends java.lang.annotation.Annotation> annotationType) { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getImplementationTitle() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getImplementationVendor() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getImplementationVersion() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getName() { + throw new RuntimeException("Stub!"); + } + + public static java.lang.Package getPackage(java.lang.String packageName) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.Package[] getPackages() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getSpecificationTitle() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getSpecificationVendor() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getSpecificationVersion() { + throw new RuntimeException("Stub!"); + } + + public int hashCode() { + throw new RuntimeException("Stub!"); + } + + public boolean isCompatibleWith(java.lang.String version) throws java.lang.NumberFormatException { + throw new RuntimeException("Stub!"); + } + + public boolean isSealed() { + throw new RuntimeException("Stub!"); + } + + public boolean isSealed(java.net.URL url) { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toString() { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/lang/Readable.java b/core-stubs-mini/src/java/lang/Readable.java new file mode 100644 index 0000000..96566ef --- /dev/null +++ b/core-stubs-mini/src/java/lang/Readable.java @@ -0,0 +1,21 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public interface Readable { + public abstract int read(java.nio.CharBuffer cb) throws java.io.IOException; +} diff --git a/core-stubs-mini/src/java/lang/Runnable.java b/core-stubs-mini/src/java/lang/Runnable.java new file mode 100644 index 0000000..e904328 --- /dev/null +++ b/core-stubs-mini/src/java/lang/Runnable.java @@ -0,0 +1,21 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public interface Runnable { + public abstract void run(); +} diff --git a/core-stubs-mini/src/java/lang/RuntimeException.java b/core-stubs-mini/src/java/lang/RuntimeException.java new file mode 100644 index 0000000..51a7ee6 --- /dev/null +++ b/core-stubs-mini/src/java/lang/RuntimeException.java @@ -0,0 +1,35 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public class RuntimeException extends java.lang.Exception { + public RuntimeException() { + throw new RuntimeException("Stub!"); + } + + public RuntimeException(java.lang.String detailMessage) { + throw new RuntimeException("Stub!"); + } + + public RuntimeException(java.lang.String detailMessage, java.lang.Throwable throwable) { + throw new RuntimeException("Stub!"); + } + + public RuntimeException(java.lang.Throwable throwable) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/lang/SecurityException.java b/core-stubs-mini/src/java/lang/SecurityException.java new file mode 100644 index 0000000..dde85a7 --- /dev/null +++ b/core-stubs-mini/src/java/lang/SecurityException.java @@ -0,0 +1,35 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public class SecurityException extends java.lang.RuntimeException { + public SecurityException() { + throw new RuntimeException("Stub!"); + } + + public SecurityException(java.lang.String detailMessage) { + throw new RuntimeException("Stub!"); + } + + public SecurityException(java.lang.String message, java.lang.Throwable cause) { + throw new RuntimeException("Stub!"); + } + + public SecurityException(java.lang.Throwable cause) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/lang/SecurityManager.java b/core-stubs-mini/src/java/lang/SecurityManager.java new file mode 100644 index 0000000..e779a0b --- /dev/null +++ b/core-stubs-mini/src/java/lang/SecurityManager.java @@ -0,0 +1,198 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public class SecurityManager { + public SecurityManager() { + throw new RuntimeException("Stub!"); + } + + public void checkAccept(java.lang.String host, int port) { + throw new RuntimeException("Stub!"); + } + + public void checkAccess(java.lang.Thread thread) { + throw new RuntimeException("Stub!"); + } + + public void checkAccess(java.lang.ThreadGroup group) { + throw new RuntimeException("Stub!"); + } + + public void checkConnect(java.lang.String host, int port) { + throw new RuntimeException("Stub!"); + } + + public void checkConnect(java.lang.String host, int port, java.lang.Object context) { + throw new RuntimeException("Stub!"); + } + + public void checkCreateClassLoader() { + throw new RuntimeException("Stub!"); + } + + public void checkDelete(java.lang.String file) { + throw new RuntimeException("Stub!"); + } + + public void checkExec(java.lang.String cmd) { + throw new RuntimeException("Stub!"); + } + + public void checkExit(int status) { + throw new RuntimeException("Stub!"); + } + + public void checkLink(java.lang.String libName) { + throw new RuntimeException("Stub!"); + } + + public void checkListen(int port) { + throw new RuntimeException("Stub!"); + } + + public void checkMemberAccess(java.lang.Class<?> cls, int type) { + throw new RuntimeException("Stub!"); + } + + public void checkMulticast(java.net.InetAddress maddr) { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + public void checkMulticast(java.net.InetAddress maddr, byte ttl) { + throw new RuntimeException("Stub!"); + } + + public void checkPackageAccess(java.lang.String packageName) { + throw new RuntimeException("Stub!"); + } + + public void checkPackageDefinition(java.lang.String packageName) { + throw new RuntimeException("Stub!"); + } + + public void checkPropertiesAccess() { + throw new RuntimeException("Stub!"); + } + + public void checkPropertyAccess(java.lang.String key) { + throw new RuntimeException("Stub!"); + } + + public void checkRead(java.io.FileDescriptor fd) { + throw new RuntimeException("Stub!"); + } + + public void checkRead(java.lang.String file) { + throw new RuntimeException("Stub!"); + } + + public void checkRead(java.lang.String file, java.lang.Object context) { + throw new RuntimeException("Stub!"); + } + + public void checkSecurityAccess(java.lang.String target) { + throw new RuntimeException("Stub!"); + } + + public void checkSetFactory() { + throw new RuntimeException("Stub!"); + } + + public boolean checkTopLevelWindow(java.lang.Object window) { + throw new RuntimeException("Stub!"); + } + + public void checkSystemClipboardAccess() { + throw new RuntimeException("Stub!"); + } + + public void checkAwtEventQueueAccess() { + throw new RuntimeException("Stub!"); + } + + public void checkPrintJobAccess() { + throw new RuntimeException("Stub!"); + } + + public void checkWrite(java.io.FileDescriptor fd) { + throw new RuntimeException("Stub!"); + } + + public void checkWrite(java.lang.String file) { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + public boolean getInCheck() { + throw new RuntimeException("Stub!"); + } + + protected java.lang.Class[] getClassContext() { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + protected java.lang.ClassLoader currentClassLoader() { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + protected int classLoaderDepth() { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + protected java.lang.Class<?> currentLoadedClass() { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + protected int classDepth(java.lang.String name) { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + protected boolean inClass(java.lang.String name) { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + protected boolean inClassLoader() { + throw new RuntimeException("Stub!"); + } + + public java.lang.ThreadGroup getThreadGroup() { + throw new RuntimeException("Stub!"); + } + + public java.lang.Object getSecurityContext() { + throw new RuntimeException("Stub!"); + } + + public void checkPermission(java.security.Permission permission) { + throw new RuntimeException("Stub!"); + } + + public void checkPermission(java.security.Permission permission, java.lang.Object context) { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + protected boolean inCheck; +} diff --git a/core-stubs-mini/src/java/lang/Short.java b/core-stubs-mini/src/java/lang/Short.java new file mode 100644 index 0000000..a3cec1b --- /dev/null +++ b/core-stubs-mini/src/java/lang/Short.java @@ -0,0 +1,112 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public final class Short extends java.lang.Number implements java.lang.Comparable<java.lang.Short> { + public Short(java.lang.String string) throws java.lang.NumberFormatException { + throw new RuntimeException("Stub!"); + } + + public Short(short value) { + throw new RuntimeException("Stub!"); + } + + public byte byteValue() { + throw new RuntimeException("Stub!"); + } + + public int compareTo(java.lang.Short object) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.Short decode(java.lang.String string) + throws java.lang.NumberFormatException { + throw new RuntimeException("Stub!"); + } + + public double doubleValue() { + throw new RuntimeException("Stub!"); + } + + public boolean equals(java.lang.Object object) { + throw new RuntimeException("Stub!"); + } + + public float floatValue() { + throw new RuntimeException("Stub!"); + } + + public int hashCode() { + throw new RuntimeException("Stub!"); + } + + public int intValue() { + throw new RuntimeException("Stub!"); + } + + public long longValue() { + throw new RuntimeException("Stub!"); + } + + public static short parseShort(java.lang.String string) throws java.lang.NumberFormatException { + throw new RuntimeException("Stub!"); + } + + public static short parseShort(java.lang.String string, int radix) + throws java.lang.NumberFormatException { + throw new RuntimeException("Stub!"); + } + + public short shortValue() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toString() { + throw new RuntimeException("Stub!"); + } + + public static java.lang.String toString(short value) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.Short valueOf(java.lang.String string) + throws java.lang.NumberFormatException { + throw new RuntimeException("Stub!"); + } + + public static java.lang.Short valueOf(java.lang.String string, int radix) + throws java.lang.NumberFormatException { + throw new RuntimeException("Stub!"); + } + + public static short reverseBytes(short s) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.Short valueOf(short s) { + throw new RuntimeException("Stub!"); + } + + public static final short MAX_VALUE = 32767; + public static final short MIN_VALUE = -32768; + public static final int SIZE = 16; + @java.lang.SuppressWarnings(value = {"unchecked"}) + public static final java.lang.Class<java.lang.Short> TYPE; + static { + TYPE = null; + } +} diff --git a/core-stubs-mini/src/java/lang/StackTraceElement.java b/core-stubs-mini/src/java/lang/StackTraceElement.java new file mode 100644 index 0000000..3ad751b --- /dev/null +++ b/core-stubs-mini/src/java/lang/StackTraceElement.java @@ -0,0 +1,56 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public final class StackTraceElement implements java.io.Serializable { + public StackTraceElement(java.lang.String cls, java.lang.String method, java.lang.String file, + int line) { + throw new RuntimeException("Stub!"); + } + + public boolean equals(java.lang.Object obj) { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getClassName() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getFileName() { + throw new RuntimeException("Stub!"); + } + + public int getLineNumber() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getMethodName() { + throw new RuntimeException("Stub!"); + } + + public int hashCode() { + throw new RuntimeException("Stub!"); + } + + public boolean isNativeMethod() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toString() { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/lang/String.java b/core-stubs-mini/src/java/lang/String.java new file mode 100644 index 0000000..6f7f565 --- /dev/null +++ b/core-stubs-mini/src/java/lang/String.java @@ -0,0 +1,343 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public final class String implements java.io.Serializable, java.lang.Comparable<java.lang.String>, + java.lang.CharSequence { + public String() { + throw new RuntimeException("Stub!"); + } + + public String(byte[] data) { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + public String(byte[] data, int high) { + throw new RuntimeException("Stub!"); + } + + public String(byte[] data, int offset, int byteCount) { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + public String(byte[] data, int high, int offset, int byteCount) { + throw new RuntimeException("Stub!"); + } + + public String(byte[] data, int offset, int byteCount, java.lang.String charsetName) + throws java.io.UnsupportedEncodingException { + throw new RuntimeException("Stub!"); + } + + public String(byte[] data, java.lang.String charsetName) + throws java.io.UnsupportedEncodingException { + throw new RuntimeException("Stub!"); + } + + public String(byte[] data, int offset, int byteCount, java.nio.charset.Charset charset) { + throw new RuntimeException("Stub!"); + } + + public String(byte[] data, java.nio.charset.Charset charset) { + throw new RuntimeException("Stub!"); + } + + public String(char[] data) { + throw new RuntimeException("Stub!"); + } + + public String(char[] data, int offset, int charCount) { + throw new RuntimeException("Stub!"); + } + + public String(java.lang.String toCopy) { + throw new RuntimeException("Stub!"); + } + + public String(java.lang.StringBuffer stringBuffer) { + throw new RuntimeException("Stub!"); + } + + public String(int[] codePoints, int offset, int count) { + throw new RuntimeException("Stub!"); + } + + public String(java.lang.StringBuilder stringBuilder) { + throw new RuntimeException("Stub!"); + } + + public native char charAt(int index); + + public native int compareTo(java.lang.String string); + + public int compareToIgnoreCase(java.lang.String string) { + throw new RuntimeException("Stub!"); + } + + public java.lang.String concat(java.lang.String string) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.String copyValueOf(char[] data) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.String copyValueOf(char[] data, int start, int length) { + throw new RuntimeException("Stub!"); + } + + public boolean endsWith(java.lang.String suffix) { + throw new RuntimeException("Stub!"); + } + + public native boolean equals(java.lang.Object object); + + public boolean equalsIgnoreCase(java.lang.String string) { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + public void getBytes(int start, int end, byte[] data, int index) { + throw new RuntimeException("Stub!"); + } + + public byte[] getBytes() { + throw new RuntimeException("Stub!"); + } + + public byte[] getBytes(java.lang.String charsetName) throws java.io.UnsupportedEncodingException { + throw new RuntimeException("Stub!"); + } + + public byte[] getBytes(java.nio.charset.Charset charset) { + throw new RuntimeException("Stub!"); + } + + public void getChars(int start, int end, char[] buffer, int index) { + throw new RuntimeException("Stub!"); + } + + public int hashCode() { + throw new RuntimeException("Stub!"); + } + + public int indexOf(int c) { + throw new RuntimeException("Stub!"); + } + + public int indexOf(int c, int start) { + throw new RuntimeException("Stub!"); + } + + public int indexOf(java.lang.String string) { + throw new RuntimeException("Stub!"); + } + + public int indexOf(java.lang.String subString, int start) { + throw new RuntimeException("Stub!"); + } + + public native java.lang.String intern(); + + public native boolean isEmpty(); + + public int lastIndexOf(int c) { + throw new RuntimeException("Stub!"); + } + + public int lastIndexOf(int c, int start) { + throw new RuntimeException("Stub!"); + } + + public int lastIndexOf(java.lang.String string) { + throw new RuntimeException("Stub!"); + } + + public int lastIndexOf(java.lang.String subString, int start) { + throw new RuntimeException("Stub!"); + } + + public native int length(); + + public boolean regionMatches(int thisStart, java.lang.String string, int start, int length) { + throw new RuntimeException("Stub!"); + } + + public boolean regionMatches(boolean ignoreCase, int thisStart, java.lang.String string, + int start, int length) { + throw new RuntimeException("Stub!"); + } + + public java.lang.String replace(char oldChar, char newChar) { + throw new RuntimeException("Stub!"); + } + + public java.lang.String replace(java.lang.CharSequence target, + java.lang.CharSequence replacement) { + throw new RuntimeException("Stub!"); + } + + public boolean startsWith(java.lang.String prefix) { + throw new RuntimeException("Stub!"); + } + + public boolean startsWith(java.lang.String prefix, int start) { + throw new RuntimeException("Stub!"); + } + + public java.lang.String substring(int start) { + throw new RuntimeException("Stub!"); + } + + public java.lang.String substring(int start, int end) { + throw new RuntimeException("Stub!"); + } + + public char[] toCharArray() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toLowerCase() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toLowerCase(java.util.Locale locale) { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toString() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toUpperCase() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toUpperCase(java.util.Locale locale) { + throw new RuntimeException("Stub!"); + } + + public java.lang.String trim() { + throw new RuntimeException("Stub!"); + } + + public static java.lang.String valueOf(char[] data) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.String valueOf(char[] data, int start, int length) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.String valueOf(char value) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.String valueOf(double value) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.String valueOf(float value) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.String valueOf(int value) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.String valueOf(long value) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.String valueOf(java.lang.Object value) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.String valueOf(boolean value) { + throw new RuntimeException("Stub!"); + } + + public boolean contentEquals(java.lang.StringBuffer strbuf) { + throw new RuntimeException("Stub!"); + } + + public boolean contentEquals(java.lang.CharSequence cs) { + throw new RuntimeException("Stub!"); + } + + public boolean matches(java.lang.String regularExpression) { + throw new RuntimeException("Stub!"); + } + + public java.lang.String replaceAll(java.lang.String regularExpression, + java.lang.String replacement) { + throw new RuntimeException("Stub!"); + } + + public java.lang.String replaceFirst(java.lang.String regularExpression, + java.lang.String replacement) { + throw new RuntimeException("Stub!"); + } + + public java.lang.String[] split(java.lang.String regularExpression) { + throw new RuntimeException("Stub!"); + } + + public java.lang.String[] split(java.lang.String regularExpression, int limit) { + throw new RuntimeException("Stub!"); + } + + public java.lang.CharSequence subSequence(int start, int end) { + throw new RuntimeException("Stub!"); + } + + public int codePointAt(int index) { + throw new RuntimeException("Stub!"); + } + + public int codePointBefore(int index) { + throw new RuntimeException("Stub!"); + } + + public int codePointCount(int start, int end) { + throw new RuntimeException("Stub!"); + } + + public boolean contains(java.lang.CharSequence cs) { + throw new RuntimeException("Stub!"); + } + + public int offsetByCodePoints(int index, int codePointOffset) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.String format(java.lang.String format, java.lang.Object... args) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.String format(java.util.Locale locale, java.lang.String format, + java.lang.Object... args) { + throw new RuntimeException("Stub!"); + } + + public static final java.util.Comparator<java.lang.String> CASE_INSENSITIVE_ORDER; + static { + CASE_INSENSITIVE_ORDER = null; + } +} diff --git a/core-stubs-mini/src/java/lang/StringBuffer.java b/core-stubs-mini/src/java/lang/StringBuffer.java new file mode 100644 index 0000000..62ccb19 --- /dev/null +++ b/core-stubs-mini/src/java/lang/StringBuffer.java @@ -0,0 +1,222 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public final class StringBuffer extends java.lang.AbstractStringBuilder implements + java.lang.Appendable, java.io.Serializable, java.lang.CharSequence { + public StringBuffer() { + throw new RuntimeException("Stub!"); + } + + public StringBuffer(int capacity) { + throw new RuntimeException("Stub!"); + } + + public StringBuffer(java.lang.String string) { + throw new RuntimeException("Stub!"); + } + + public StringBuffer(java.lang.CharSequence cs) { + throw new RuntimeException("Stub!"); + } + + public java.lang.StringBuffer append(boolean b) { + throw new RuntimeException("Stub!"); + } + + public synchronized java.lang.StringBuffer append(char ch) { + throw new RuntimeException("Stub!"); + } + + public java.lang.StringBuffer append(double d) { + throw new RuntimeException("Stub!"); + } + + public java.lang.StringBuffer append(float f) { + throw new RuntimeException("Stub!"); + } + + public java.lang.StringBuffer append(int i) { + throw new RuntimeException("Stub!"); + } + + public java.lang.StringBuffer append(long l) { + throw new RuntimeException("Stub!"); + } + + public synchronized java.lang.StringBuffer append(java.lang.Object obj) { + throw new RuntimeException("Stub!"); + } + + public synchronized java.lang.StringBuffer append(java.lang.String string) { + throw new RuntimeException("Stub!"); + } + + public synchronized java.lang.StringBuffer append(java.lang.StringBuffer sb) { + throw new RuntimeException("Stub!"); + } + + public synchronized java.lang.StringBuffer append(char[] chars) { + throw new RuntimeException("Stub!"); + } + + public synchronized java.lang.StringBuffer append(char[] chars, int start, int length) { + throw new RuntimeException("Stub!"); + } + + public synchronized java.lang.StringBuffer append(java.lang.CharSequence s) { + throw new RuntimeException("Stub!"); + } + + public synchronized java.lang.StringBuffer append(java.lang.CharSequence s, int start, int end) { + throw new RuntimeException("Stub!"); + } + + public java.lang.StringBuffer appendCodePoint(int codePoint) { + throw new RuntimeException("Stub!"); + } + + public synchronized char charAt(int index) { + throw new RuntimeException("Stub!"); + } + + public synchronized int codePointAt(int index) { + throw new RuntimeException("Stub!"); + } + + public synchronized int codePointBefore(int index) { + throw new RuntimeException("Stub!"); + } + + public synchronized int codePointCount(int beginIndex, int endIndex) { + throw new RuntimeException("Stub!"); + } + + public synchronized java.lang.StringBuffer delete(int start, int end) { + throw new RuntimeException("Stub!"); + } + + public synchronized java.lang.StringBuffer deleteCharAt(int location) { + throw new RuntimeException("Stub!"); + } + + public synchronized void ensureCapacity(int min) { + throw new RuntimeException("Stub!"); + } + + public synchronized void getChars(int start, int end, char[] buffer, int idx) { + throw new RuntimeException("Stub!"); + } + + public synchronized int indexOf(java.lang.String subString, int start) { + throw new RuntimeException("Stub!"); + } + + public synchronized java.lang.StringBuffer insert(int index, char ch) { + throw new RuntimeException("Stub!"); + } + + public java.lang.StringBuffer insert(int index, boolean b) { + throw new RuntimeException("Stub!"); + } + + public java.lang.StringBuffer insert(int index, int i) { + throw new RuntimeException("Stub!"); + } + + public java.lang.StringBuffer insert(int index, long l) { + throw new RuntimeException("Stub!"); + } + + public java.lang.StringBuffer insert(int index, double d) { + throw new RuntimeException("Stub!"); + } + + public java.lang.StringBuffer insert(int index, float f) { + throw new RuntimeException("Stub!"); + } + + public java.lang.StringBuffer insert(int index, java.lang.Object obj) { + throw new RuntimeException("Stub!"); + } + + public synchronized java.lang.StringBuffer insert(int index, java.lang.String string) { + throw new RuntimeException("Stub!"); + } + + public synchronized java.lang.StringBuffer insert(int index, char[] chars) { + throw new RuntimeException("Stub!"); + } + + public synchronized java.lang.StringBuffer insert(int index, char[] chars, int start, + int length) { + throw new RuntimeException("Stub!"); + } + + public synchronized java.lang.StringBuffer insert(int index, java.lang.CharSequence s) { + throw new RuntimeException("Stub!"); + } + + public synchronized java.lang.StringBuffer insert(int index, java.lang.CharSequence s, int start, + int end) { + throw new RuntimeException("Stub!"); + } + + public synchronized int lastIndexOf(java.lang.String subString, int start) { + throw new RuntimeException("Stub!"); + } + + public synchronized int offsetByCodePoints(int index, int codePointOffset) { + throw new RuntimeException("Stub!"); + } + + public synchronized java.lang.StringBuffer replace(int start, int end, java.lang.String string) { + throw new RuntimeException("Stub!"); + } + + public synchronized java.lang.StringBuffer reverse() { + throw new RuntimeException("Stub!"); + } + + public synchronized void setCharAt(int index, char ch) { + throw new RuntimeException("Stub!"); + } + + public synchronized void setLength(int length) { + throw new RuntimeException("Stub!"); + } + + public synchronized java.lang.CharSequence subSequence(int start, int end) { + throw new RuntimeException("Stub!"); + } + + public synchronized java.lang.String substring(int start) { + throw new RuntimeException("Stub!"); + } + + public synchronized java.lang.String substring(int start, int end) { + throw new RuntimeException("Stub!"); + } + + public synchronized java.lang.String toString() { + throw new RuntimeException("Stub!"); + } + + public synchronized void trimToSize() { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/lang/StringBuilder.java b/core-stubs-mini/src/java/lang/StringBuilder.java new file mode 100644 index 0000000..f4de7b9 --- /dev/null +++ b/core-stubs-mini/src/java/lang/StringBuilder.java @@ -0,0 +1,160 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public final class StringBuilder extends java.lang.AbstractStringBuilder implements + java.lang.Appendable, java.lang.CharSequence, java.io.Serializable { + public StringBuilder() { + throw new RuntimeException("Stub!"); + } + + public StringBuilder(int capacity) { + throw new RuntimeException("Stub!"); + } + + public StringBuilder(java.lang.CharSequence seq) { + throw new RuntimeException("Stub!"); + } + + public StringBuilder(java.lang.String str) { + throw new RuntimeException("Stub!"); + } + + public java.lang.StringBuilder append(boolean b) { + throw new RuntimeException("Stub!"); + } + + public java.lang.StringBuilder append(char c) { + throw new RuntimeException("Stub!"); + } + + public java.lang.StringBuilder append(int i) { + throw new RuntimeException("Stub!"); + } + + public java.lang.StringBuilder append(long l) { + throw new RuntimeException("Stub!"); + } + + public java.lang.StringBuilder append(float f) { + throw new RuntimeException("Stub!"); + } + + public java.lang.StringBuilder append(double d) { + throw new RuntimeException("Stub!"); + } + + public java.lang.StringBuilder append(java.lang.Object obj) { + throw new RuntimeException("Stub!"); + } + + public java.lang.StringBuilder append(java.lang.String str) { + throw new RuntimeException("Stub!"); + } + + public java.lang.StringBuilder append(java.lang.StringBuffer sb) { + throw new RuntimeException("Stub!"); + } + + public java.lang.StringBuilder append(char[] chars) { + throw new RuntimeException("Stub!"); + } + + public java.lang.StringBuilder append(char[] str, int offset, int len) { + throw new RuntimeException("Stub!"); + } + + public java.lang.StringBuilder append(java.lang.CharSequence csq) { + throw new RuntimeException("Stub!"); + } + + public java.lang.StringBuilder append(java.lang.CharSequence csq, int start, int end) { + throw new RuntimeException("Stub!"); + } + + public java.lang.StringBuilder appendCodePoint(int codePoint) { + throw new RuntimeException("Stub!"); + } + + public java.lang.StringBuilder delete(int start, int end) { + throw new RuntimeException("Stub!"); + } + + public java.lang.StringBuilder deleteCharAt(int index) { + throw new RuntimeException("Stub!"); + } + + public java.lang.StringBuilder insert(int offset, boolean b) { + throw new RuntimeException("Stub!"); + } + + public java.lang.StringBuilder insert(int offset, char c) { + throw new RuntimeException("Stub!"); + } + + public java.lang.StringBuilder insert(int offset, int i) { + throw new RuntimeException("Stub!"); + } + + public java.lang.StringBuilder insert(int offset, long l) { + throw new RuntimeException("Stub!"); + } + + public java.lang.StringBuilder insert(int offset, float f) { + throw new RuntimeException("Stub!"); + } + + public java.lang.StringBuilder insert(int offset, double d) { + throw new RuntimeException("Stub!"); + } + + public java.lang.StringBuilder insert(int offset, java.lang.Object obj) { + throw new RuntimeException("Stub!"); + } + + public java.lang.StringBuilder insert(int offset, java.lang.String str) { + throw new RuntimeException("Stub!"); + } + + public java.lang.StringBuilder insert(int offset, char[] ch) { + throw new RuntimeException("Stub!"); + } + + public java.lang.StringBuilder insert(int offset, char[] str, int strOffset, int strLen) { + throw new RuntimeException("Stub!"); + } + + public java.lang.StringBuilder insert(int offset, java.lang.CharSequence s) { + throw new RuntimeException("Stub!"); + } + + public java.lang.StringBuilder insert(int offset, java.lang.CharSequence s, int start, int end) { + throw new RuntimeException("Stub!"); + } + + public java.lang.StringBuilder replace(int start, int end, java.lang.String string) { + throw new RuntimeException("Stub!"); + } + + public java.lang.StringBuilder reverse() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toString() { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/lang/SuppressWarnings.java b/core-stubs-mini/src/java/lang/SuppressWarnings.java new file mode 100644 index 0000000..dd874fa --- /dev/null +++ b/core-stubs-mini/src/java/lang/SuppressWarnings.java @@ -0,0 +1,28 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +@java.lang.annotation.Target(value = {java.lang.annotation.ElementType.TYPE, + java.lang.annotation.ElementType.FIELD, + java.lang.annotation.ElementType.METHOD, + java.lang.annotation.ElementType.PARAMETER, + java.lang.annotation.ElementType.CONSTRUCTOR, + java.lang.annotation.ElementType.LOCAL_VARIABLE}) +@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.SOURCE) +public @interface SuppressWarnings { + java.lang.String[] value(); +} diff --git a/core-stubs-mini/src/java/lang/System.java b/core-stubs-mini/src/java/lang/System.java new file mode 100644 index 0000000..6ec6018 --- /dev/null +++ b/core-stubs-mini/src/java/lang/System.java @@ -0,0 +1,129 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public final class System { + System() { + throw new RuntimeException("Stub!"); + } + + public static void setIn(java.io.InputStream newIn) { + throw new RuntimeException("Stub!"); + } + + public static void setOut(java.io.PrintStream newOut) { + throw new RuntimeException("Stub!"); + } + + public static void setErr(java.io.PrintStream newErr) { + throw new RuntimeException("Stub!"); + } + + public static native void arraycopy(java.lang.Object src, int srcPos, java.lang.Object dst, + int dstPos, int length); + + public static native long currentTimeMillis(); + + public static native long nanoTime(); + + public static void exit(int code) { + throw new RuntimeException("Stub!"); + } + + public static void gc() { + throw new RuntimeException("Stub!"); + } + + public static java.lang.String getenv(java.lang.String name) { + throw new RuntimeException("Stub!"); + } + + public static java.util.Map<java.lang.String, java.lang.String> getenv() { + throw new RuntimeException("Stub!"); + } + + public static java.nio.channels.Channel inheritedChannel() throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + public static java.util.Properties getProperties() { + throw new RuntimeException("Stub!"); + } + + public static java.lang.String getProperty(java.lang.String propertyName) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.String getProperty(java.lang.String name, java.lang.String defaultValue) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.String setProperty(java.lang.String name, java.lang.String value) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.String clearProperty(java.lang.String name) { + throw new RuntimeException("Stub!"); + } + + public static java.io.Console console() { + throw new RuntimeException("Stub!"); + } + + public static java.lang.SecurityManager getSecurityManager() { + throw new RuntimeException("Stub!"); + } + + public static native int identityHashCode(java.lang.Object anObject); + + public static void load(java.lang.String pathName) { + throw new RuntimeException("Stub!"); + } + + public static void loadLibrary(java.lang.String libName) { + throw new RuntimeException("Stub!"); + } + + public static void runFinalization() { + throw new RuntimeException("Stub!"); + } + + @java.lang.SuppressWarnings(value = {"deprecation"}) + @java.lang.Deprecated() + public static void runFinalizersOnExit(boolean flag) { + throw new RuntimeException("Stub!"); + } + + public static void setProperties(java.util.Properties p) { + throw new RuntimeException("Stub!"); + } + + public static void setSecurityManager(java.lang.SecurityManager sm) { + throw new RuntimeException("Stub!"); + } + + public static native java.lang.String mapLibraryName(java.lang.String userLibName); + + public static final java.io.InputStream in; + public static final java.io.PrintStream out; + public static final java.io.PrintStream err; + static { + in = null; + out = null; + err = null; + } +} diff --git a/core-stubs-mini/src/java/lang/Thread.java b/core-stubs-mini/src/java/lang/Thread.java new file mode 100644 index 0000000..d9c034a --- /dev/null +++ b/core-stubs-mini/src/java/lang/Thread.java @@ -0,0 +1,239 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public class Thread implements java.lang.Runnable { + public static enum State { + BLOCKED(), NEW(), RUNNABLE(), TERMINATED(), TIMED_WAITING(), WAITING(); + } + public static interface UncaughtExceptionHandler { + public abstract void uncaughtException(java.lang.Thread thread, java.lang.Throwable ex); + } + + public Thread() { + throw new RuntimeException("Stub!"); + } + + public Thread(java.lang.Runnable runnable) { + throw new RuntimeException("Stub!"); + } + + public Thread(java.lang.Runnable runnable, java.lang.String threadName) { + throw new RuntimeException("Stub!"); + } + + public Thread(java.lang.String threadName) { + throw new RuntimeException("Stub!"); + } + + public Thread(java.lang.ThreadGroup group, java.lang.Runnable runnable) { + throw new RuntimeException("Stub!"); + } + + public Thread(java.lang.ThreadGroup group, java.lang.Runnable runnable, + java.lang.String threadName) { + throw new RuntimeException("Stub!"); + } + + public Thread(java.lang.ThreadGroup group, java.lang.String threadName) { + throw new RuntimeException("Stub!"); + } + + public Thread(java.lang.ThreadGroup group, java.lang.Runnable runnable, + java.lang.String threadName, long stackSize) { + throw new RuntimeException("Stub!"); + } + + public static int activeCount() { + throw new RuntimeException("Stub!"); + } + + public final void checkAccess() { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + public int countStackFrames() { + throw new RuntimeException("Stub!"); + } + + public static java.lang.Thread currentThread() { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + public void destroy() { + throw new RuntimeException("Stub!"); + } + + public static void dumpStack() { + throw new RuntimeException("Stub!"); + } + + public static int enumerate(java.lang.Thread[] threads) { + throw new RuntimeException("Stub!"); + } + + public static java.util.Map<java.lang.Thread, java.lang.StackTraceElement[]> getAllStackTraces() { + throw new RuntimeException("Stub!"); + } + + public java.lang.ClassLoader getContextClassLoader() { + throw new RuntimeException("Stub!"); + } + + public static java.lang.Thread.UncaughtExceptionHandler getDefaultUncaughtExceptionHandler() { + throw new RuntimeException("Stub!"); + } + + public long getId() { + throw new RuntimeException("Stub!"); + } + + public final java.lang.String getName() { + throw new RuntimeException("Stub!"); + } + + public final int getPriority() { + throw new RuntimeException("Stub!"); + } + + public java.lang.StackTraceElement[] getStackTrace() { + throw new RuntimeException("Stub!"); + } + + public java.lang.Thread.State getState() { + throw new RuntimeException("Stub!"); + } + + public final java.lang.ThreadGroup getThreadGroup() { + throw new RuntimeException("Stub!"); + } + + public java.lang.Thread.UncaughtExceptionHandler getUncaughtExceptionHandler() { + throw new RuntimeException("Stub!"); + } + + public void interrupt() { + throw new RuntimeException("Stub!"); + } + + public static boolean interrupted() { + throw new RuntimeException("Stub!"); + } + + public final boolean isAlive() { + throw new RuntimeException("Stub!"); + } + + public final boolean isDaemon() { + throw new RuntimeException("Stub!"); + } + + public boolean isInterrupted() { + throw new RuntimeException("Stub!"); + } + + public final void join() throws java.lang.InterruptedException { + throw new RuntimeException("Stub!"); + } + + public final void join(long millis) throws java.lang.InterruptedException { + throw new RuntimeException("Stub!"); + } + + public final void join(long millis, int nanos) throws java.lang.InterruptedException { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + public final void resume() { + throw new RuntimeException("Stub!"); + } + + public void run() { + throw new RuntimeException("Stub!"); + } + + public void setContextClassLoader(java.lang.ClassLoader cl) { + throw new RuntimeException("Stub!"); + } + + public final void setDaemon(boolean isDaemon) { + throw new RuntimeException("Stub!"); + } + + public static void setDefaultUncaughtExceptionHandler( + java.lang.Thread.UncaughtExceptionHandler handler) { + throw new RuntimeException("Stub!"); + } + + public final void setName(java.lang.String threadName) { + throw new RuntimeException("Stub!"); + } + + public final void setPriority(int priority) { + throw new RuntimeException("Stub!"); + } + + public void setUncaughtExceptionHandler(java.lang.Thread.UncaughtExceptionHandler handler) { + throw new RuntimeException("Stub!"); + } + + public static void sleep(long time) throws java.lang.InterruptedException { + throw new RuntimeException("Stub!"); + } + + public static void sleep(long millis, int nanos) throws java.lang.InterruptedException { + throw new RuntimeException("Stub!"); + } + + public synchronized void start() { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + public final void stop() { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + public final synchronized void stop(java.lang.Throwable throwable) { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + public final void suspend() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toString() { + throw new RuntimeException("Stub!"); + } + + public static void yield() { + throw new RuntimeException("Stub!"); + } + + public static boolean holdsLock(java.lang.Object object) { + throw new RuntimeException("Stub!"); + } + + public static final int MAX_PRIORITY = 10; + public static final int MIN_PRIORITY = 1; + public static final int NORM_PRIORITY = 5; +} diff --git a/core-stubs-mini/src/java/lang/ThreadGroup.java b/core-stubs-mini/src/java/lang/ThreadGroup.java new file mode 100644 index 0000000..7e38d02 --- /dev/null +++ b/core-stubs-mini/src/java/lang/ThreadGroup.java @@ -0,0 +1,130 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public class ThreadGroup implements java.lang.Thread.UncaughtExceptionHandler { + public ThreadGroup(java.lang.String name) { + throw new RuntimeException("Stub!"); + } + + public ThreadGroup(java.lang.ThreadGroup parent, java.lang.String name) { + throw new RuntimeException("Stub!"); + } + + public int activeCount() { + throw new RuntimeException("Stub!"); + } + + public int activeGroupCount() { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + public boolean allowThreadSuspension(boolean b) { + throw new RuntimeException("Stub!"); + } + + public final void checkAccess() { + throw new RuntimeException("Stub!"); + } + + public final void destroy() { + throw new RuntimeException("Stub!"); + } + + public int enumerate(java.lang.Thread[] threads) { + throw new RuntimeException("Stub!"); + } + + public int enumerate(java.lang.Thread[] threads, boolean recurse) { + throw new RuntimeException("Stub!"); + } + + public int enumerate(java.lang.ThreadGroup[] groups) { + throw new RuntimeException("Stub!"); + } + + public int enumerate(java.lang.ThreadGroup[] groups, boolean recurse) { + throw new RuntimeException("Stub!"); + } + + public final int getMaxPriority() { + throw new RuntimeException("Stub!"); + } + + public final java.lang.String getName() { + throw new RuntimeException("Stub!"); + } + + public final java.lang.ThreadGroup getParent() { + throw new RuntimeException("Stub!"); + } + + public final void interrupt() { + throw new RuntimeException("Stub!"); + } + + public final boolean isDaemon() { + throw new RuntimeException("Stub!"); + } + + public synchronized boolean isDestroyed() { + throw new RuntimeException("Stub!"); + } + + public void list() { + throw new RuntimeException("Stub!"); + } + + public final boolean parentOf(java.lang.ThreadGroup g) { + throw new RuntimeException("Stub!"); + } + + @java.lang.SuppressWarnings(value = {"deprecation"}) + @java.lang.Deprecated() + public final void resume() { + throw new RuntimeException("Stub!"); + } + + public final void setDaemon(boolean isDaemon) { + throw new RuntimeException("Stub!"); + } + + public final void setMaxPriority(int newMax) { + throw new RuntimeException("Stub!"); + } + + @java.lang.SuppressWarnings(value = {"deprecation"}) + @java.lang.Deprecated() + public final void stop() { + throw new RuntimeException("Stub!"); + } + + @java.lang.SuppressWarnings(value = {"deprecation"}) + @java.lang.Deprecated() + public final void suspend() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toString() { + throw new RuntimeException("Stub!"); + } + + public void uncaughtException(java.lang.Thread t, java.lang.Throwable e) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/lang/ThreadLocal.java b/core-stubs-mini/src/java/lang/ThreadLocal.java new file mode 100644 index 0000000..d78be0c --- /dev/null +++ b/core-stubs-mini/src/java/lang/ThreadLocal.java @@ -0,0 +1,40 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public class ThreadLocal<T> { + public ThreadLocal() { + throw new RuntimeException("Stub!"); + } + + @java.lang.SuppressWarnings(value = {"unchecked"}) + public T get() { + throw new RuntimeException("Stub!"); + } + + protected T initialValue() { + throw new RuntimeException("Stub!"); + } + + public void set(T value) { + throw new RuntimeException("Stub!"); + } + + public void remove() { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/lang/Throwable.java b/core-stubs-mini/src/java/lang/Throwable.java new file mode 100644 index 0000000..8dcc67c --- /dev/null +++ b/core-stubs-mini/src/java/lang/Throwable.java @@ -0,0 +1,79 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public class Throwable implements java.io.Serializable { + public Throwable() { + throw new RuntimeException("Stub!"); + } + + public Throwable(java.lang.String detailMessage) { + throw new RuntimeException("Stub!"); + } + + public Throwable(java.lang.String detailMessage, java.lang.Throwable throwable) { + throw new RuntimeException("Stub!"); + } + + public Throwable(java.lang.Throwable throwable) { + throw new RuntimeException("Stub!"); + } + + public java.lang.Throwable fillInStackTrace() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getMessage() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getLocalizedMessage() { + throw new RuntimeException("Stub!"); + } + + public java.lang.StackTraceElement[] getStackTrace() { + throw new RuntimeException("Stub!"); + } + + public void setStackTrace(java.lang.StackTraceElement[] trace) { + throw new RuntimeException("Stub!"); + } + + public void printStackTrace() { + throw new RuntimeException("Stub!"); + } + + public void printStackTrace(java.io.PrintStream err) { + throw new RuntimeException("Stub!"); + } + + public void printStackTrace(java.io.PrintWriter err) { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toString() { + throw new RuntimeException("Stub!"); + } + + public java.lang.Throwable initCause(java.lang.Throwable throwable) { + throw new RuntimeException("Stub!"); + } + + public java.lang.Throwable getCause() { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/lang/UnsupportedOperationException.java b/core-stubs-mini/src/java/lang/UnsupportedOperationException.java new file mode 100644 index 0000000..df3bbf0 --- /dev/null +++ b/core-stubs-mini/src/java/lang/UnsupportedOperationException.java @@ -0,0 +1,35 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public class UnsupportedOperationException extends java.lang.RuntimeException { + public UnsupportedOperationException() { + throw new RuntimeException("Stub!"); + } + + public UnsupportedOperationException(java.lang.String detailMessage) { + throw new RuntimeException("Stub!"); + } + + public UnsupportedOperationException(java.lang.String message, java.lang.Throwable cause) { + throw new RuntimeException("Stub!"); + } + + public UnsupportedOperationException(java.lang.Throwable cause) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/lang/VirtualMachineError.java b/core-stubs-mini/src/java/lang/VirtualMachineError.java new file mode 100644 index 0000000..17ac3b3 --- /dev/null +++ b/core-stubs-mini/src/java/lang/VirtualMachineError.java @@ -0,0 +1,27 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public abstract class VirtualMachineError extends java.lang.Error { + public VirtualMachineError() { + throw new RuntimeException("Stub!"); + } + + public VirtualMachineError(java.lang.String detailMessage) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/lang/Void.java b/core-stubs-mini/src/java/lang/Void.java new file mode 100644 index 0000000..f5bdcc0 --- /dev/null +++ b/core-stubs-mini/src/java/lang/Void.java @@ -0,0 +1,28 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang; + +public final class Void { + Void() { + throw new RuntimeException("Stub!"); + } + + public static final java.lang.Class<java.lang.Void> TYPE; + static { + TYPE = null; + } +} diff --git a/core-stubs-mini/src/java/lang/annotation/Annotation.java b/core-stubs-mini/src/java/lang/annotation/Annotation.java new file mode 100644 index 0000000..1aa37ac --- /dev/null +++ b/core-stubs-mini/src/java/lang/annotation/Annotation.java @@ -0,0 +1,27 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang.annotation; + +public interface Annotation { + public abstract java.lang.Class<? extends java.lang.annotation.Annotation> annotationType(); + + public abstract boolean equals(java.lang.Object obj); + + public abstract int hashCode(); + + public abstract java.lang.String toString(); +} diff --git a/core-stubs-mini/src/java/lang/annotation/Documented.java b/core-stubs-mini/src/java/lang/annotation/Documented.java new file mode 100644 index 0000000..86cbce6 --- /dev/null +++ b/core-stubs-mini/src/java/lang/annotation/Documented.java @@ -0,0 +1,23 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang.annotation; + +@java.lang.annotation.Documented() +@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME) +@java.lang.annotation.Target(value = {java.lang.annotation.ElementType.ANNOTATION_TYPE}) +public @interface Documented { +} diff --git a/core-stubs-mini/src/java/lang/annotation/ElementType.java b/core-stubs-mini/src/java/lang/annotation/ElementType.java new file mode 100644 index 0000000..9ec27ce --- /dev/null +++ b/core-stubs-mini/src/java/lang/annotation/ElementType.java @@ -0,0 +1,28 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang.annotation; + +public enum ElementType { + ANNOTATION_TYPE(), + CONSTRUCTOR(), + FIELD(), + LOCAL_VARIABLE(), + METHOD(), + PACKAGE(), + PARAMETER(), + TYPE(); +} diff --git a/core-stubs-mini/src/java/lang/annotation/Retention.java b/core-stubs-mini/src/java/lang/annotation/Retention.java new file mode 100644 index 0000000..64bbb79 --- /dev/null +++ b/core-stubs-mini/src/java/lang/annotation/Retention.java @@ -0,0 +1,24 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang.annotation; + +@java.lang.annotation.Documented() +@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME) +@java.lang.annotation.Target(value = {java.lang.annotation.ElementType.ANNOTATION_TYPE}) +public @interface Retention { + java.lang.annotation.RetentionPolicy value(); +} diff --git a/core-stubs-mini/src/java/lang/annotation/RetentionPolicy.java b/core-stubs-mini/src/java/lang/annotation/RetentionPolicy.java new file mode 100644 index 0000000..a955dc0 --- /dev/null +++ b/core-stubs-mini/src/java/lang/annotation/RetentionPolicy.java @@ -0,0 +1,21 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang.annotation; + +public enum RetentionPolicy { + CLASS(), RUNTIME(), SOURCE(); +} diff --git a/core-stubs-mini/src/java/lang/annotation/Target.java b/core-stubs-mini/src/java/lang/annotation/Target.java new file mode 100644 index 0000000..6754682 --- /dev/null +++ b/core-stubs-mini/src/java/lang/annotation/Target.java @@ -0,0 +1,24 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang.annotation; + +@java.lang.annotation.Documented() +@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME) +@java.lang.annotation.Target(value = {java.lang.annotation.ElementType.ANNOTATION_TYPE}) +public @interface Target { + java.lang.annotation.ElementType[] value(); +} diff --git a/core-stubs-mini/src/java/lang/reflect/AccessibleObject.java b/core-stubs-mini/src/java/lang/reflect/AccessibleObject.java new file mode 100644 index 0000000..8af9de1 --- /dev/null +++ b/core-stubs-mini/src/java/lang/reflect/AccessibleObject.java @@ -0,0 +1,53 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang.reflect; + +public class AccessibleObject implements java.lang.reflect.AnnotatedElement { + protected AccessibleObject() { + throw new RuntimeException("Stub!"); + } + + public static void setAccessible(java.lang.reflect.AccessibleObject[] objects, boolean flag) { + throw new RuntimeException("Stub!"); + } + + public boolean isAccessible() { + throw new RuntimeException("Stub!"); + } + + public void setAccessible(boolean flag) { + throw new RuntimeException("Stub!"); + } + + public boolean isAnnotationPresent( + java.lang.Class<? extends java.lang.annotation.Annotation> annotationType) { + throw new RuntimeException("Stub!"); + } + + public java.lang.annotation.Annotation[] getDeclaredAnnotations() { + throw new RuntimeException("Stub!"); + } + + public java.lang.annotation.Annotation[] getAnnotations() { + throw new RuntimeException("Stub!"); + } + + public <T extends java.lang.annotation.Annotation> T getAnnotation( + java.lang.Class<T> annotationType) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/lang/reflect/AnnotatedElement.java b/core-stubs-mini/src/java/lang/reflect/AnnotatedElement.java new file mode 100644 index 0000000..6187539 --- /dev/null +++ b/core-stubs-mini/src/java/lang/reflect/AnnotatedElement.java @@ -0,0 +1,29 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang.reflect; + +public interface AnnotatedElement { + public abstract <T extends java.lang.annotation.Annotation> T getAnnotation( + java.lang.Class<T> annotationType); + + public abstract java.lang.annotation.Annotation[] getAnnotations(); + + public abstract java.lang.annotation.Annotation[] getDeclaredAnnotations(); + + public abstract boolean isAnnotationPresent( + java.lang.Class<? extends java.lang.annotation.Annotation> annotationType); +} diff --git a/core-stubs-mini/src/java/lang/reflect/Constructor.java b/core-stubs-mini/src/java/lang/reflect/Constructor.java new file mode 100644 index 0000000..bd30d4b --- /dev/null +++ b/core-stubs-mini/src/java/lang/reflect/Constructor.java @@ -0,0 +1,104 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang.reflect; + +public final class Constructor<T> extends java.lang.reflect.AccessibleObject implements + java.lang.reflect.GenericDeclaration, java.lang.reflect.Member { + Constructor() { + throw new RuntimeException("Stub!"); + } + + public java.lang.reflect.TypeVariable<java.lang.reflect.Constructor<T>>[] getTypeParameters() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toGenericString() { + throw new RuntimeException("Stub!"); + } + + public java.lang.reflect.Type[] getGenericParameterTypes() { + throw new RuntimeException("Stub!"); + } + + public java.lang.reflect.Type[] getGenericExceptionTypes() { + throw new RuntimeException("Stub!"); + } + + public java.lang.annotation.Annotation[] getDeclaredAnnotations() { + throw new RuntimeException("Stub!"); + } + + public <A extends java.lang.annotation.Annotation> A getAnnotation( + java.lang.Class<A> annotationType) { + throw new RuntimeException("Stub!"); + } + + public boolean isAnnotationPresent( + java.lang.Class<? extends java.lang.annotation.Annotation> annotationType) { + throw new RuntimeException("Stub!"); + } + + public java.lang.annotation.Annotation[][] getParameterAnnotations() { + throw new RuntimeException("Stub!"); + } + + public boolean isVarArgs() { + throw new RuntimeException("Stub!"); + } + + public boolean isSynthetic() { + throw new RuntimeException("Stub!"); + } + + public boolean equals(java.lang.Object object) { + throw new RuntimeException("Stub!"); + } + + public java.lang.Class<T> getDeclaringClass() { + throw new RuntimeException("Stub!"); + } + + public java.lang.Class<?>[] getExceptionTypes() { + throw new RuntimeException("Stub!"); + } + + public int getModifiers() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getName() { + throw new RuntimeException("Stub!"); + } + + public java.lang.Class<?>[] getParameterTypes() { + throw new RuntimeException("Stub!"); + } + + public int hashCode() { + throw new RuntimeException("Stub!"); + } + + public T newInstance(java.lang.Object... args) throws java.lang.InstantiationException, + java.lang.IllegalAccessException, java.lang.IllegalArgumentException, + java.lang.reflect.InvocationTargetException { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toString() { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/lang/reflect/Field.java b/core-stubs-mini/src/java/lang/reflect/Field.java new file mode 100644 index 0000000..ddf153d --- /dev/null +++ b/core-stubs-mini/src/java/lang/reflect/Field.java @@ -0,0 +1,172 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang.reflect; + +public final class Field extends java.lang.reflect.AccessibleObject implements + java.lang.reflect.Member { + Field() { + throw new RuntimeException("Stub!"); + } + + public boolean isSynthetic() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toGenericString() { + throw new RuntimeException("Stub!"); + } + + public boolean isEnumConstant() { + throw new RuntimeException("Stub!"); + } + + public java.lang.reflect.Type getGenericType() { + throw new RuntimeException("Stub!"); + } + + public java.lang.annotation.Annotation[] getDeclaredAnnotations() { + throw new RuntimeException("Stub!"); + } + + public <A extends java.lang.annotation.Annotation> A getAnnotation( + java.lang.Class<A> annotationType) { + throw new RuntimeException("Stub!"); + } + + public boolean isAnnotationPresent( + java.lang.Class<? extends java.lang.annotation.Annotation> annotationType) { + throw new RuntimeException("Stub!"); + } + + public boolean equals(java.lang.Object object) { + throw new RuntimeException("Stub!"); + } + + public java.lang.Object get(java.lang.Object object) throws java.lang.IllegalAccessException, + java.lang.IllegalArgumentException { + throw new RuntimeException("Stub!"); + } + + public boolean getBoolean(java.lang.Object object) throws java.lang.IllegalAccessException, + java.lang.IllegalArgumentException { + throw new RuntimeException("Stub!"); + } + + public byte getByte(java.lang.Object object) throws java.lang.IllegalAccessException, + java.lang.IllegalArgumentException { + throw new RuntimeException("Stub!"); + } + + public char getChar(java.lang.Object object) throws java.lang.IllegalAccessException, + java.lang.IllegalArgumentException { + throw new RuntimeException("Stub!"); + } + + public java.lang.Class<?> getDeclaringClass() { + throw new RuntimeException("Stub!"); + } + + public double getDouble(java.lang.Object object) throws java.lang.IllegalAccessException, + java.lang.IllegalArgumentException { + throw new RuntimeException("Stub!"); + } + + public float getFloat(java.lang.Object object) throws java.lang.IllegalAccessException, + java.lang.IllegalArgumentException { + throw new RuntimeException("Stub!"); + } + + public int getInt(java.lang.Object object) throws java.lang.IllegalAccessException, + java.lang.IllegalArgumentException { + throw new RuntimeException("Stub!"); + } + + public long getLong(java.lang.Object object) throws java.lang.IllegalAccessException, + java.lang.IllegalArgumentException { + throw new RuntimeException("Stub!"); + } + + public int getModifiers() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getName() { + throw new RuntimeException("Stub!"); + } + + public short getShort(java.lang.Object object) throws java.lang.IllegalAccessException, + java.lang.IllegalArgumentException { + throw new RuntimeException("Stub!"); + } + + public java.lang.Class<?> getType() { + throw new RuntimeException("Stub!"); + } + + public int hashCode() { + throw new RuntimeException("Stub!"); + } + + public void set(java.lang.Object object, java.lang.Object value) + throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException { + throw new RuntimeException("Stub!"); + } + + public void setBoolean(java.lang.Object object, boolean value) + throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException { + throw new RuntimeException("Stub!"); + } + + public void setByte(java.lang.Object object, byte value) throws java.lang.IllegalAccessException, + java.lang.IllegalArgumentException { + throw new RuntimeException("Stub!"); + } + + public void setChar(java.lang.Object object, char value) throws java.lang.IllegalAccessException, + java.lang.IllegalArgumentException { + throw new RuntimeException("Stub!"); + } + + public void setDouble(java.lang.Object object, double value) + throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException { + throw new RuntimeException("Stub!"); + } + + public void setFloat(java.lang.Object object, float value) + throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException { + throw new RuntimeException("Stub!"); + } + + public void setInt(java.lang.Object object, int value) throws java.lang.IllegalAccessException, + java.lang.IllegalArgumentException { + throw new RuntimeException("Stub!"); + } + + public void setLong(java.lang.Object object, long value) throws java.lang.IllegalAccessException, + java.lang.IllegalArgumentException { + throw new RuntimeException("Stub!"); + } + + public void setShort(java.lang.Object object, short value) + throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toString() { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/lang/reflect/GenericDeclaration.java b/core-stubs-mini/src/java/lang/reflect/GenericDeclaration.java new file mode 100644 index 0000000..79a1a21 --- /dev/null +++ b/core-stubs-mini/src/java/lang/reflect/GenericDeclaration.java @@ -0,0 +1,21 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang.reflect; + +public interface GenericDeclaration { + public abstract java.lang.reflect.TypeVariable<?>[] getTypeParameters(); +} diff --git a/core-stubs-mini/src/java/lang/reflect/InvocationTargetException.java b/core-stubs-mini/src/java/lang/reflect/InvocationTargetException.java new file mode 100644 index 0000000..9d8a35a --- /dev/null +++ b/core-stubs-mini/src/java/lang/reflect/InvocationTargetException.java @@ -0,0 +1,39 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang.reflect; + +public class InvocationTargetException extends java.lang.Exception { + protected InvocationTargetException() { + throw new RuntimeException("Stub!"); + } + + public InvocationTargetException(java.lang.Throwable exception) { + throw new RuntimeException("Stub!"); + } + + public InvocationTargetException(java.lang.Throwable exception, java.lang.String detailMessage) { + throw new RuntimeException("Stub!"); + } + + public java.lang.Throwable getTargetException() { + throw new RuntimeException("Stub!"); + } + + public java.lang.Throwable getCause() { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/lang/reflect/Member.java b/core-stubs-mini/src/java/lang/reflect/Member.java new file mode 100644 index 0000000..b8d897b --- /dev/null +++ b/core-stubs-mini/src/java/lang/reflect/Member.java @@ -0,0 +1,31 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang.reflect; + +public interface Member { + @java.lang.SuppressWarnings(value = {"unchecked"}) + public abstract java.lang.Class<?> getDeclaringClass(); + + public abstract int getModifiers(); + + public abstract java.lang.String getName(); + + public abstract boolean isSynthetic(); + + public static final int PUBLIC = 0; + public static final int DECLARED = 1; +} diff --git a/core-stubs-mini/src/java/lang/reflect/Method.java b/core-stubs-mini/src/java/lang/reflect/Method.java new file mode 100644 index 0000000..998c9e7 --- /dev/null +++ b/core-stubs-mini/src/java/lang/reflect/Method.java @@ -0,0 +1,120 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang.reflect; + +public final class Method extends java.lang.reflect.AccessibleObject implements + java.lang.reflect.GenericDeclaration, java.lang.reflect.Member { + Method() { + throw new RuntimeException("Stub!"); + } + + public java.lang.reflect.TypeVariable<java.lang.reflect.Method>[] getTypeParameters() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toGenericString() { + throw new RuntimeException("Stub!"); + } + + public java.lang.reflect.Type[] getGenericParameterTypes() { + throw new RuntimeException("Stub!"); + } + + public java.lang.reflect.Type[] getGenericExceptionTypes() { + throw new RuntimeException("Stub!"); + } + + public java.lang.reflect.Type getGenericReturnType() { + throw new RuntimeException("Stub!"); + } + + public java.lang.annotation.Annotation[] getDeclaredAnnotations() { + throw new RuntimeException("Stub!"); + } + + public <A extends java.lang.annotation.Annotation> A getAnnotation( + java.lang.Class<A> annotationType) { + throw new RuntimeException("Stub!"); + } + + public boolean isAnnotationPresent( + java.lang.Class<? extends java.lang.annotation.Annotation> annotationType) { + throw new RuntimeException("Stub!"); + } + + public java.lang.annotation.Annotation[][] getParameterAnnotations() { + throw new RuntimeException("Stub!"); + } + + public boolean isVarArgs() { + throw new RuntimeException("Stub!"); + } + + public boolean isBridge() { + throw new RuntimeException("Stub!"); + } + + public boolean isSynthetic() { + throw new RuntimeException("Stub!"); + } + + public java.lang.Object getDefaultValue() { + throw new RuntimeException("Stub!"); + } + + public boolean equals(java.lang.Object object) { + throw new RuntimeException("Stub!"); + } + + public java.lang.Class<?> getDeclaringClass() { + throw new RuntimeException("Stub!"); + } + + public java.lang.Class<?>[] getExceptionTypes() { + throw new RuntimeException("Stub!"); + } + + public int getModifiers() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getName() { + throw new RuntimeException("Stub!"); + } + + public java.lang.Class<?>[] getParameterTypes() { + throw new RuntimeException("Stub!"); + } + + public java.lang.Class<?> getReturnType() { + throw new RuntimeException("Stub!"); + } + + public int hashCode() { + throw new RuntimeException("Stub!"); + } + + public java.lang.Object invoke(java.lang.Object receiver, java.lang.Object... args) + throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException, + java.lang.reflect.InvocationTargetException { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toString() { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/lang/reflect/Type.java b/core-stubs-mini/src/java/lang/reflect/Type.java new file mode 100644 index 0000000..de75b50 --- /dev/null +++ b/core-stubs-mini/src/java/lang/reflect/Type.java @@ -0,0 +1,20 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang.reflect; + +public interface Type { +} diff --git a/core-stubs-mini/src/java/lang/reflect/TypeVariable.java b/core-stubs-mini/src/java/lang/reflect/TypeVariable.java new file mode 100644 index 0000000..8aeeebe --- /dev/null +++ b/core-stubs-mini/src/java/lang/reflect/TypeVariable.java @@ -0,0 +1,26 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.lang.reflect; + +public interface TypeVariable<D extends java.lang.reflect.GenericDeclaration> extends + java.lang.reflect.Type { + public abstract java.lang.reflect.Type[] getBounds(); + + public abstract D getGenericDeclaration(); + + public abstract java.lang.String getName(); +} diff --git a/core-stubs-mini/src/java/math/BigInteger.java b/core-stubs-mini/src/java/math/BigInteger.java new file mode 100644 index 0000000..bd3892a --- /dev/null +++ b/core-stubs-mini/src/java/math/BigInteger.java @@ -0,0 +1,229 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.math; + +public class BigInteger extends java.lang.Number implements + java.lang.Comparable<java.math.BigInteger>, java.io.Serializable { + public BigInteger(int numBits, java.util.Random random) { + throw new RuntimeException("Stub!"); + } + + public BigInteger(int bitLength, int certainty, java.util.Random unused) { + throw new RuntimeException("Stub!"); + } + + public BigInteger(java.lang.String value) { + throw new RuntimeException("Stub!"); + } + + public BigInteger(java.lang.String value, int radix) { + throw new RuntimeException("Stub!"); + } + + public BigInteger(int signum, byte[] magnitude) { + throw new RuntimeException("Stub!"); + } + + public BigInteger(byte[] value) { + throw new RuntimeException("Stub!"); + } + + public static java.math.BigInteger valueOf(long value) { + throw new RuntimeException("Stub!"); + } + + public byte[] toByteArray() { + throw new RuntimeException("Stub!"); + } + + public java.math.BigInteger abs() { + throw new RuntimeException("Stub!"); + } + + public java.math.BigInteger negate() { + throw new RuntimeException("Stub!"); + } + + public java.math.BigInteger add(java.math.BigInteger value) { + throw new RuntimeException("Stub!"); + } + + public java.math.BigInteger subtract(java.math.BigInteger value) { + throw new RuntimeException("Stub!"); + } + + public int signum() { + throw new RuntimeException("Stub!"); + } + + public java.math.BigInteger shiftRight(int n) { + throw new RuntimeException("Stub!"); + } + + public java.math.BigInteger shiftLeft(int n) { + throw new RuntimeException("Stub!"); + } + + public int bitLength() { + throw new RuntimeException("Stub!"); + } + + public boolean testBit(int n) { + throw new RuntimeException("Stub!"); + } + + public java.math.BigInteger setBit(int n) { + throw new RuntimeException("Stub!"); + } + + public java.math.BigInteger clearBit(int n) { + throw new RuntimeException("Stub!"); + } + + public java.math.BigInteger flipBit(int n) { + throw new RuntimeException("Stub!"); + } + + public int getLowestSetBit() { + throw new RuntimeException("Stub!"); + } + + public int bitCount() { + throw new RuntimeException("Stub!"); + } + + public java.math.BigInteger not() { + throw new RuntimeException("Stub!"); + } + + public java.math.BigInteger and(java.math.BigInteger value) { + throw new RuntimeException("Stub!"); + } + + public java.math.BigInteger or(java.math.BigInteger value) { + throw new RuntimeException("Stub!"); + } + + public java.math.BigInteger xor(java.math.BigInteger value) { + throw new RuntimeException("Stub!"); + } + + public java.math.BigInteger andNot(java.math.BigInteger value) { + throw new RuntimeException("Stub!"); + } + + public int intValue() { + throw new RuntimeException("Stub!"); + } + + public long longValue() { + throw new RuntimeException("Stub!"); + } + + public float floatValue() { + throw new RuntimeException("Stub!"); + } + + public double doubleValue() { + throw new RuntimeException("Stub!"); + } + + public int compareTo(java.math.BigInteger value) { + throw new RuntimeException("Stub!"); + } + + public java.math.BigInteger min(java.math.BigInteger value) { + throw new RuntimeException("Stub!"); + } + + public java.math.BigInteger max(java.math.BigInteger value) { + throw new RuntimeException("Stub!"); + } + + public int hashCode() { + throw new RuntimeException("Stub!"); + } + + public boolean equals(java.lang.Object x) { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toString() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toString(int radix) { + throw new RuntimeException("Stub!"); + } + + public java.math.BigInteger gcd(java.math.BigInteger value) { + throw new RuntimeException("Stub!"); + } + + public java.math.BigInteger multiply(java.math.BigInteger value) { + throw new RuntimeException("Stub!"); + } + + public java.math.BigInteger pow(int exp) { + throw new RuntimeException("Stub!"); + } + + public java.math.BigInteger[] divideAndRemainder(java.math.BigInteger divisor) { + throw new RuntimeException("Stub!"); + } + + public java.math.BigInteger divide(java.math.BigInteger divisor) { + throw new RuntimeException("Stub!"); + } + + public java.math.BigInteger remainder(java.math.BigInteger divisor) { + throw new RuntimeException("Stub!"); + } + + public java.math.BigInteger modInverse(java.math.BigInteger m) { + throw new RuntimeException("Stub!"); + } + + public java.math.BigInteger modPow(java.math.BigInteger exponent, java.math.BigInteger m) { + throw new RuntimeException("Stub!"); + } + + public java.math.BigInteger mod(java.math.BigInteger m) { + throw new RuntimeException("Stub!"); + } + + public boolean isProbablePrime(int certainty) { + throw new RuntimeException("Stub!"); + } + + public java.math.BigInteger nextProbablePrime() { + throw new RuntimeException("Stub!"); + } + + public static java.math.BigInteger probablePrime(int bitLength, java.util.Random unused) { + throw new RuntimeException("Stub!"); + } + + public static final java.math.BigInteger ZERO; + public static final java.math.BigInteger ONE; + public static final java.math.BigInteger TEN; + static { + ZERO = null; + ONE = null; + TEN = null; + } +} diff --git a/core-stubs-mini/src/java/net/ContentHandler.java b/core-stubs-mini/src/java/net/ContentHandler.java new file mode 100644 index 0000000..759e180 --- /dev/null +++ b/core-stubs-mini/src/java/net/ContentHandler.java @@ -0,0 +1,32 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.net; + +public abstract class ContentHandler { + public ContentHandler() { + throw new RuntimeException("Stub!"); + } + + public abstract java.lang.Object getContent(java.net.URLConnection uConn) + throws java.io.IOException; + + @java.lang.SuppressWarnings(value = {"unchecked"}) + public java.lang.Object getContent(java.net.URLConnection uConn, java.lang.Class[] types) + throws java.io.IOException { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/net/ContentHandlerFactory.java b/core-stubs-mini/src/java/net/ContentHandlerFactory.java new file mode 100644 index 0000000..9d57637 --- /dev/null +++ b/core-stubs-mini/src/java/net/ContentHandlerFactory.java @@ -0,0 +1,21 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.net; + +public interface ContentHandlerFactory { + public abstract java.net.ContentHandler createContentHandler(java.lang.String contentType); +} diff --git a/core-stubs-mini/src/java/net/FileNameMap.java b/core-stubs-mini/src/java/net/FileNameMap.java new file mode 100644 index 0000000..b7b0a3a --- /dev/null +++ b/core-stubs-mini/src/java/net/FileNameMap.java @@ -0,0 +1,21 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.net; + +public interface FileNameMap { + public abstract java.lang.String getContentTypeFor(java.lang.String filename); +} diff --git a/core-stubs-mini/src/java/net/Inet4Address.java b/core-stubs-mini/src/java/net/Inet4Address.java new file mode 100644 index 0000000..f10d8a9 --- /dev/null +++ b/core-stubs-mini/src/java/net/Inet4Address.java @@ -0,0 +1,63 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.net; + +public final class Inet4Address extends java.net.InetAddress { + Inet4Address() { + throw new RuntimeException("Stub!"); + } + + public boolean isAnyLocalAddress() { + throw new RuntimeException("Stub!"); + } + + public boolean isLinkLocalAddress() { + throw new RuntimeException("Stub!"); + } + + public boolean isLoopbackAddress() { + throw new RuntimeException("Stub!"); + } + + public boolean isMCGlobal() { + throw new RuntimeException("Stub!"); + } + + public boolean isMCLinkLocal() { + throw new RuntimeException("Stub!"); + } + + public boolean isMCNodeLocal() { + throw new RuntimeException("Stub!"); + } + + public boolean isMCOrgLocal() { + throw new RuntimeException("Stub!"); + } + + public boolean isMCSiteLocal() { + throw new RuntimeException("Stub!"); + } + + public boolean isMulticastAddress() { + throw new RuntimeException("Stub!"); + } + + public boolean isSiteLocalAddress() { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/net/InetAddress.java b/core-stubs-mini/src/java/net/InetAddress.java new file mode 100644 index 0000000..06f62ee --- /dev/null +++ b/core-stubs-mini/src/java/net/InetAddress.java @@ -0,0 +1,124 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.net; + +public class InetAddress implements java.io.Serializable { + InetAddress() { + throw new RuntimeException("Stub!"); + } + + public boolean equals(java.lang.Object obj) { + throw new RuntimeException("Stub!"); + } + + public byte[] getAddress() { + throw new RuntimeException("Stub!"); + } + + public static java.net.InetAddress[] getAllByName(java.lang.String host) + throws java.net.UnknownHostException { + throw new RuntimeException("Stub!"); + } + + public static java.net.InetAddress getByName(java.lang.String host) + throws java.net.UnknownHostException { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getHostAddress() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getHostName() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getCanonicalHostName() { + throw new RuntimeException("Stub!"); + } + + public static java.net.InetAddress getLocalHost() throws java.net.UnknownHostException { + throw new RuntimeException("Stub!"); + } + + public int hashCode() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toString() { + throw new RuntimeException("Stub!"); + } + + public boolean isAnyLocalAddress() { + throw new RuntimeException("Stub!"); + } + + public boolean isLinkLocalAddress() { + throw new RuntimeException("Stub!"); + } + + public boolean isLoopbackAddress() { + throw new RuntimeException("Stub!"); + } + + public boolean isMCGlobal() { + throw new RuntimeException("Stub!"); + } + + public boolean isMCLinkLocal() { + throw new RuntimeException("Stub!"); + } + + public boolean isMCNodeLocal() { + throw new RuntimeException("Stub!"); + } + + public boolean isMCOrgLocal() { + throw new RuntimeException("Stub!"); + } + + public boolean isMCSiteLocal() { + throw new RuntimeException("Stub!"); + } + + public boolean isMulticastAddress() { + throw new RuntimeException("Stub!"); + } + + public boolean isSiteLocalAddress() { + throw new RuntimeException("Stub!"); + } + + public boolean isReachable(int timeout) throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + public boolean isReachable(java.net.NetworkInterface networkInterface, int ttl, int timeout) + throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + public static java.net.InetAddress getByAddress(byte[] ipAddress) + throws java.net.UnknownHostException { + throw new RuntimeException("Stub!"); + } + + public static java.net.InetAddress getByAddress(java.lang.String hostName, byte[] ipAddress) + throws java.net.UnknownHostException { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/net/InterfaceAddress.java b/core-stubs-mini/src/java/net/InterfaceAddress.java new file mode 100644 index 0000000..f419873 --- /dev/null +++ b/core-stubs-mini/src/java/net/InterfaceAddress.java @@ -0,0 +1,47 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.net; + +public class InterfaceAddress { + InterfaceAddress() { + throw new RuntimeException("Stub!"); + } + + public boolean equals(java.lang.Object obj) { + throw new RuntimeException("Stub!"); + } + + public int hashCode() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toString() { + throw new RuntimeException("Stub!"); + } + + public java.net.InetAddress getAddress() { + throw new RuntimeException("Stub!"); + } + + public java.net.InetAddress getBroadcast() { + throw new RuntimeException("Stub!"); + } + + public short getNetworkPrefixLength() { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/net/MalformedURLException.java b/core-stubs-mini/src/java/net/MalformedURLException.java new file mode 100644 index 0000000..88436ea --- /dev/null +++ b/core-stubs-mini/src/java/net/MalformedURLException.java @@ -0,0 +1,27 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.net; + +public class MalformedURLException extends java.io.IOException { + public MalformedURLException() { + throw new RuntimeException("Stub!"); + } + + public MalformedURLException(java.lang.String detailMessage) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/net/NetworkInterface.java b/core-stubs-mini/src/java/net/NetworkInterface.java new file mode 100644 index 0000000..8cf8b97 --- /dev/null +++ b/core-stubs-mini/src/java/net/NetworkInterface.java @@ -0,0 +1,102 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.net; + +public final class NetworkInterface { + NetworkInterface() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getName() { + throw new RuntimeException("Stub!"); + } + + public java.util.Enumeration<java.net.InetAddress> getInetAddresses() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getDisplayName() { + throw new RuntimeException("Stub!"); + } + + public static java.net.NetworkInterface getByName(java.lang.String interfaceName) + throws java.net.SocketException { + throw new RuntimeException("Stub!"); + } + + public static java.net.NetworkInterface getByInetAddress(java.net.InetAddress address) + throws java.net.SocketException { + throw new RuntimeException("Stub!"); + } + + public static java.util.Enumeration<java.net.NetworkInterface> getNetworkInterfaces() + throws java.net.SocketException { + throw new RuntimeException("Stub!"); + } + + public boolean equals(java.lang.Object obj) { + throw new RuntimeException("Stub!"); + } + + public int hashCode() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toString() { + throw new RuntimeException("Stub!"); + } + + public java.util.List<java.net.InterfaceAddress> getInterfaceAddresses() { + throw new RuntimeException("Stub!"); + } + + public java.util.Enumeration<java.net.NetworkInterface> getSubInterfaces() { + throw new RuntimeException("Stub!"); + } + + public java.net.NetworkInterface getParent() { + throw new RuntimeException("Stub!"); + } + + public boolean isUp() throws java.net.SocketException { + throw new RuntimeException("Stub!"); + } + + public boolean isLoopback() throws java.net.SocketException { + throw new RuntimeException("Stub!"); + } + + public boolean isPointToPoint() throws java.net.SocketException { + throw new RuntimeException("Stub!"); + } + + public boolean supportsMulticast() throws java.net.SocketException { + throw new RuntimeException("Stub!"); + } + + public byte[] getHardwareAddress() throws java.net.SocketException { + throw new RuntimeException("Stub!"); + } + + public int getMTU() throws java.net.SocketException { + throw new RuntimeException("Stub!"); + } + + public boolean isVirtual() { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/net/Proxy.java b/core-stubs-mini/src/java/net/Proxy.java new file mode 100644 index 0000000..35fae4a --- /dev/null +++ b/core-stubs-mini/src/java/net/Proxy.java @@ -0,0 +1,52 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.net; + +public class Proxy { + public static enum Type { + DIRECT(), HTTP(), SOCKS(); + } + + public Proxy(java.net.Proxy.Type type, java.net.SocketAddress sa) { + throw new RuntimeException("Stub!"); + } + + public java.net.Proxy.Type type() { + throw new RuntimeException("Stub!"); + } + + public java.net.SocketAddress address() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toString() { + throw new RuntimeException("Stub!"); + } + + public final boolean equals(java.lang.Object obj) { + throw new RuntimeException("Stub!"); + } + + public final int hashCode() { + throw new RuntimeException("Stub!"); + } + + public static final java.net.Proxy NO_PROXY; + static { + NO_PROXY = null; + } +} diff --git a/core-stubs-mini/src/java/net/SocketAddress.java b/core-stubs-mini/src/java/net/SocketAddress.java new file mode 100644 index 0000000..5d0e858 --- /dev/null +++ b/core-stubs-mini/src/java/net/SocketAddress.java @@ -0,0 +1,23 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.net; + +public abstract class SocketAddress implements java.io.Serializable { + public SocketAddress() { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/net/SocketException.java b/core-stubs-mini/src/java/net/SocketException.java new file mode 100644 index 0000000..d2e22da --- /dev/null +++ b/core-stubs-mini/src/java/net/SocketException.java @@ -0,0 +1,27 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.net; + +public class SocketException extends java.io.IOException { + public SocketException() { + throw new RuntimeException("Stub!"); + } + + public SocketException(java.lang.String detailMessage) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/net/URI.java b/core-stubs-mini/src/java/net/URI.java new file mode 100644 index 0000000..c087d7e --- /dev/null +++ b/core-stubs-mini/src/java/net/URI.java @@ -0,0 +1,164 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.net; + +public final class URI implements java.lang.Comparable<java.net.URI>, java.io.Serializable { + public URI(java.lang.String spec) throws java.net.URISyntaxException { + throw new RuntimeException("Stub!"); + } + + public URI(java.lang.String scheme, java.lang.String schemeSpecificPart, + java.lang.String fragment) throws java.net.URISyntaxException { + throw new RuntimeException("Stub!"); + } + + public URI(java.lang.String scheme, + java.lang.String userInfo, + java.lang.String host, + int port, + java.lang.String path, + java.lang.String query, + java.lang.String fragment) throws java.net.URISyntaxException { + throw new RuntimeException("Stub!"); + } + + public URI(java.lang.String scheme, java.lang.String host, java.lang.String path, + java.lang.String fragment) throws java.net.URISyntaxException { + throw new RuntimeException("Stub!"); + } + + public URI(java.lang.String scheme, java.lang.String authority, java.lang.String path, + java.lang.String query, java.lang.String fragment) throws java.net.URISyntaxException { + throw new RuntimeException("Stub!"); + } + + public int compareTo(java.net.URI uri) { + throw new RuntimeException("Stub!"); + } + + public static java.net.URI create(java.lang.String uri) { + throw new RuntimeException("Stub!"); + } + + public boolean equals(java.lang.Object o) { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getScheme() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getSchemeSpecificPart() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getRawSchemeSpecificPart() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getAuthority() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getRawAuthority() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getUserInfo() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getRawUserInfo() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getHost() { + throw new RuntimeException("Stub!"); + } + + public int getPort() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getPath() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getRawPath() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getQuery() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getRawQuery() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getFragment() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getRawFragment() { + throw new RuntimeException("Stub!"); + } + + public int hashCode() { + throw new RuntimeException("Stub!"); + } + + public boolean isAbsolute() { + throw new RuntimeException("Stub!"); + } + + public boolean isOpaque() { + throw new RuntimeException("Stub!"); + } + + public java.net.URI normalize() { + throw new RuntimeException("Stub!"); + } + + public java.net.URI parseServerAuthority() throws java.net.URISyntaxException { + throw new RuntimeException("Stub!"); + } + + public java.net.URI relativize(java.net.URI relative) { + throw new RuntimeException("Stub!"); + } + + public java.net.URI resolve(java.net.URI relative) { + throw new RuntimeException("Stub!"); + } + + public java.net.URI resolve(java.lang.String relative) { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toASCIIString() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toString() { + throw new RuntimeException("Stub!"); + } + + public java.net.URL toURL() throws java.net.MalformedURLException { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/net/URISyntaxException.java b/core-stubs-mini/src/java/net/URISyntaxException.java new file mode 100644 index 0000000..e44fd83 --- /dev/null +++ b/core-stubs-mini/src/java/net/URISyntaxException.java @@ -0,0 +1,43 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.net; + +public class URISyntaxException extends java.lang.Exception { + public URISyntaxException(java.lang.String input, java.lang.String reason, int index) { + throw new RuntimeException("Stub!"); + } + + public URISyntaxException(java.lang.String input, java.lang.String reason) { + throw new RuntimeException("Stub!"); + } + + public int getIndex() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getReason() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getInput() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getMessage() { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/net/URL.java b/core-stubs-mini/src/java/net/URL.java new file mode 100644 index 0000000..2fe7b42 --- /dev/null +++ b/core-stubs-mini/src/java/net/URL.java @@ -0,0 +1,153 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.net; + +public final class URL implements java.io.Serializable { + public URL(java.lang.String spec) throws java.net.MalformedURLException { + throw new RuntimeException("Stub!"); + } + + public URL(java.net.URL context, java.lang.String spec) throws java.net.MalformedURLException { + throw new RuntimeException("Stub!"); + } + + public URL(java.net.URL context, java.lang.String spec, java.net.URLStreamHandler handler) + throws java.net.MalformedURLException { + throw new RuntimeException("Stub!"); + } + + public URL(java.lang.String protocol, java.lang.String host, java.lang.String file) + throws java.net.MalformedURLException { + throw new RuntimeException("Stub!"); + } + + public URL(java.lang.String protocol, java.lang.String host, int port, java.lang.String file) + throws java.net.MalformedURLException { + throw new RuntimeException("Stub!"); + } + + public URL(java.lang.String protocol, java.lang.String host, int port, java.lang.String file, + java.net.URLStreamHandler handler) throws java.net.MalformedURLException { + throw new RuntimeException("Stub!"); + } + + public static synchronized void setURLStreamHandlerFactory( + java.net.URLStreamHandlerFactory factory) { + throw new RuntimeException("Stub!"); + } + + protected void set(java.lang.String protocol, java.lang.String host, int port, + java.lang.String file, java.lang.String ref) { + throw new RuntimeException("Stub!"); + } + + public boolean equals(java.lang.Object o) { + throw new RuntimeException("Stub!"); + } + + public boolean sameFile(java.net.URL otherURL) { + throw new RuntimeException("Stub!"); + } + + public int hashCode() { + throw new RuntimeException("Stub!"); + } + + public final java.lang.Object getContent() throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + @java.lang.SuppressWarnings(value = {"unchecked"}) + public final java.lang.Object getContent(java.lang.Class[] types) throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + public final java.io.InputStream openStream() throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + public java.net.URLConnection openConnection() throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + public java.net.URLConnection openConnection(java.net.Proxy proxy) throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + public java.net.URI toURI() throws java.net.URISyntaxException { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toString() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toExternalForm() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getProtocol() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getAuthority() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getUserInfo() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getHost() { + throw new RuntimeException("Stub!"); + } + + public int getPort() { + throw new RuntimeException("Stub!"); + } + + public int getDefaultPort() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getFile() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getPath() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getQuery() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getRef() { + throw new RuntimeException("Stub!"); + } + + protected void set(java.lang.String protocol, + java.lang.String host, + int port, + java.lang.String authority, + java.lang.String userInfo, + java.lang.String path, + java.lang.String query, + java.lang.String ref) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/net/URLConnection.java b/core-stubs-mini/src/java/net/URLConnection.java new file mode 100644 index 0000000..f5eff25 --- /dev/null +++ b/core-stubs-mini/src/java/net/URLConnection.java @@ -0,0 +1,231 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.net; + +public abstract class URLConnection { + protected URLConnection(java.net.URL url) { + throw new RuntimeException("Stub!"); + } + + public abstract void connect() throws java.io.IOException; + + public boolean getAllowUserInteraction() { + throw new RuntimeException("Stub!"); + } + + public java.lang.Object getContent() throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + @java.lang.SuppressWarnings(value = {"unchecked"}) + public java.lang.Object getContent(java.lang.Class[] types) throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getContentEncoding() { + throw new RuntimeException("Stub!"); + } + + public int getContentLength() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getContentType() { + throw new RuntimeException("Stub!"); + } + + public long getDate() { + throw new RuntimeException("Stub!"); + } + + public static boolean getDefaultAllowUserInteraction() { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + public static java.lang.String getDefaultRequestProperty(java.lang.String field) { + throw new RuntimeException("Stub!"); + } + + public boolean getDefaultUseCaches() { + throw new RuntimeException("Stub!"); + } + + public boolean getDoInput() { + throw new RuntimeException("Stub!"); + } + + public boolean getDoOutput() { + throw new RuntimeException("Stub!"); + } + + public long getExpiration() { + throw new RuntimeException("Stub!"); + } + + public static java.net.FileNameMap getFileNameMap() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getHeaderField(int pos) { + throw new RuntimeException("Stub!"); + } + + public java.util.Map<java.lang.String, java.util.List<java.lang.String>> getHeaderFields() { + throw new RuntimeException("Stub!"); + } + + public java.util.Map<java.lang.String, java.util.List<java.lang.String>> getRequestProperties() { + throw new RuntimeException("Stub!"); + } + + public void addRequestProperty(java.lang.String field, java.lang.String newValue) { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getHeaderField(java.lang.String key) { + throw new RuntimeException("Stub!"); + } + + @java.lang.SuppressWarnings(value = {"deprecation"}) + public long getHeaderFieldDate(java.lang.String field, long defaultValue) { + throw new RuntimeException("Stub!"); + } + + public int getHeaderFieldInt(java.lang.String field, int defaultValue) { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getHeaderFieldKey(int posn) { + throw new RuntimeException("Stub!"); + } + + public long getIfModifiedSince() { + throw new RuntimeException("Stub!"); + } + + public java.io.InputStream getInputStream() throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + public long getLastModified() { + throw new RuntimeException("Stub!"); + } + + public java.io.OutputStream getOutputStream() throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + public java.security.Permission getPermission() throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getRequestProperty(java.lang.String field) { + throw new RuntimeException("Stub!"); + } + + public java.net.URL getURL() { + throw new RuntimeException("Stub!"); + } + + public boolean getUseCaches() { + throw new RuntimeException("Stub!"); + } + + public static java.lang.String guessContentTypeFromName(java.lang.String url) { + throw new RuntimeException("Stub!"); + } + + public static java.lang.String guessContentTypeFromStream(java.io.InputStream is) + throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + public void setAllowUserInteraction(boolean newValue) { + throw new RuntimeException("Stub!"); + } + + public static synchronized void setContentHandlerFactory( + java.net.ContentHandlerFactory contentFactory) { + throw new RuntimeException("Stub!"); + } + + public static void setDefaultAllowUserInteraction(boolean allows) { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + public static void setDefaultRequestProperty(java.lang.String field, java.lang.String value) { + throw new RuntimeException("Stub!"); + } + + public void setDefaultUseCaches(boolean newValue) { + throw new RuntimeException("Stub!"); + } + + public void setDoInput(boolean newValue) { + throw new RuntimeException("Stub!"); + } + + public void setDoOutput(boolean newValue) { + throw new RuntimeException("Stub!"); + } + + public static void setFileNameMap(java.net.FileNameMap map) { + throw new RuntimeException("Stub!"); + } + + public void setIfModifiedSince(long newValue) { + throw new RuntimeException("Stub!"); + } + + public void setRequestProperty(java.lang.String field, java.lang.String newValue) { + throw new RuntimeException("Stub!"); + } + + public void setUseCaches(boolean newValue) { + throw new RuntimeException("Stub!"); + } + + public void setConnectTimeout(int timeoutMillis) { + throw new RuntimeException("Stub!"); + } + + public int getConnectTimeout() { + throw new RuntimeException("Stub!"); + } + + public void setReadTimeout(int timeoutMillis) { + throw new RuntimeException("Stub!"); + } + + public int getReadTimeout() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toString() { + throw new RuntimeException("Stub!"); + } + + protected java.net.URL url; + protected long ifModifiedSince; + protected boolean useCaches; + protected boolean connected; + protected boolean doOutput; + protected boolean doInput; + protected boolean allowUserInteraction; +} diff --git a/core-stubs-mini/src/java/net/URLStreamHandler.java b/core-stubs-mini/src/java/net/URLStreamHandler.java new file mode 100644 index 0000000..3161b23 --- /dev/null +++ b/core-stubs-mini/src/java/net/URLStreamHandler.java @@ -0,0 +1,85 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.net; + +public abstract class URLStreamHandler { + public URLStreamHandler() { + throw new RuntimeException("Stub!"); + } + + protected abstract java.net.URLConnection openConnection(java.net.URL u) + throws java.io.IOException; + + protected java.net.URLConnection openConnection(java.net.URL u, java.net.Proxy proxy) + throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + protected void parseURL(java.net.URL url, java.lang.String spec, int start, int end) { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + protected void setURL(java.net.URL u, + java.lang.String protocol, + java.lang.String host, + int port, + java.lang.String file, + java.lang.String ref) { + throw new RuntimeException("Stub!"); + } + + protected void setURL(java.net.URL u, + java.lang.String protocol, + java.lang.String host, + int port, + java.lang.String authority, + java.lang.String userInfo, + java.lang.String path, + java.lang.String query, + java.lang.String ref) { + throw new RuntimeException("Stub!"); + } + + protected java.lang.String toExternalForm(java.net.URL url) { + throw new RuntimeException("Stub!"); + } + + protected boolean equals(java.net.URL a, java.net.URL b) { + throw new RuntimeException("Stub!"); + } + + protected int getDefaultPort() { + throw new RuntimeException("Stub!"); + } + + protected java.net.InetAddress getHostAddress(java.net.URL url) { + throw new RuntimeException("Stub!"); + } + + protected int hashCode(java.net.URL url) { + throw new RuntimeException("Stub!"); + } + + protected boolean hostsEqual(java.net.URL a, java.net.URL b) { + throw new RuntimeException("Stub!"); + } + + protected boolean sameFile(java.net.URL a, java.net.URL b) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/net/URLStreamHandlerFactory.java b/core-stubs-mini/src/java/net/URLStreamHandlerFactory.java new file mode 100644 index 0000000..d21025f --- /dev/null +++ b/core-stubs-mini/src/java/net/URLStreamHandlerFactory.java @@ -0,0 +1,21 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.net; + +public interface URLStreamHandlerFactory { + public abstract java.net.URLStreamHandler createURLStreamHandler(java.lang.String protocol); +} diff --git a/core-stubs-mini/src/java/net/UnknownHostException.java b/core-stubs-mini/src/java/net/UnknownHostException.java new file mode 100644 index 0000000..a7890ac --- /dev/null +++ b/core-stubs-mini/src/java/net/UnknownHostException.java @@ -0,0 +1,27 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.net; + +public class UnknownHostException extends java.io.IOException { + public UnknownHostException() { + throw new RuntimeException("Stub!"); + } + + public UnknownHostException(java.lang.String detailMessage) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/nio/Buffer.java b/core-stubs-mini/src/java/nio/Buffer.java new file mode 100644 index 0000000..8be53b4 --- /dev/null +++ b/core-stubs-mini/src/java/nio/Buffer.java @@ -0,0 +1,85 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.nio; + +public abstract class Buffer { + Buffer() { + throw new RuntimeException("Stub!"); + } + + public abstract java.lang.Object array(); + + public abstract int arrayOffset(); + + public final int capacity() { + throw new RuntimeException("Stub!"); + } + + public final java.nio.Buffer clear() { + throw new RuntimeException("Stub!"); + } + + public final java.nio.Buffer flip() { + throw new RuntimeException("Stub!"); + } + + public abstract boolean hasArray(); + + public final boolean hasRemaining() { + throw new RuntimeException("Stub!"); + } + + public abstract boolean isDirect(); + + public abstract boolean isReadOnly(); + + public final int limit() { + throw new RuntimeException("Stub!"); + } + + public final java.nio.Buffer limit(int newLimit) { + throw new RuntimeException("Stub!"); + } + + public final java.nio.Buffer mark() { + throw new RuntimeException("Stub!"); + } + + public final int position() { + throw new RuntimeException("Stub!"); + } + + public final java.nio.Buffer position(int newPosition) { + throw new RuntimeException("Stub!"); + } + + public final int remaining() { + throw new RuntimeException("Stub!"); + } + + public final java.nio.Buffer reset() { + throw new RuntimeException("Stub!"); + } + + public final java.nio.Buffer rewind() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toString() { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/nio/BufferOverflowException.java b/core-stubs-mini/src/java/nio/BufferOverflowException.java new file mode 100644 index 0000000..673ad58 --- /dev/null +++ b/core-stubs-mini/src/java/nio/BufferOverflowException.java @@ -0,0 +1,23 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.nio; + +public class BufferOverflowException extends java.lang.RuntimeException { + public BufferOverflowException() { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/nio/BufferUnderflowException.java b/core-stubs-mini/src/java/nio/BufferUnderflowException.java new file mode 100644 index 0000000..03995e9 --- /dev/null +++ b/core-stubs-mini/src/java/nio/BufferUnderflowException.java @@ -0,0 +1,23 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.nio; + +public class BufferUnderflowException extends java.lang.RuntimeException { + public BufferUnderflowException() { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/nio/ByteBuffer.java b/core-stubs-mini/src/java/nio/ByteBuffer.java new file mode 100644 index 0000000..df1179c --- /dev/null +++ b/core-stubs-mini/src/java/nio/ByteBuffer.java @@ -0,0 +1,170 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.nio; + +public abstract class ByteBuffer extends java.nio.Buffer implements + java.lang.Comparable<java.nio.ByteBuffer> { + ByteBuffer() { + throw new RuntimeException("Stub!"); + } + + public static java.nio.ByteBuffer allocate(int capacity) { + throw new RuntimeException("Stub!"); + } + + public static java.nio.ByteBuffer allocateDirect(int capacity) { + throw new RuntimeException("Stub!"); + } + + public static java.nio.ByteBuffer wrap(byte[] array) { + throw new RuntimeException("Stub!"); + } + + public static java.nio.ByteBuffer wrap(byte[] array, int start, int byteCount) { + throw new RuntimeException("Stub!"); + } + + public final byte[] array() { + throw new RuntimeException("Stub!"); + } + + public final int arrayOffset() { + throw new RuntimeException("Stub!"); + } + + public abstract java.nio.CharBuffer asCharBuffer(); + + public abstract java.nio.DoubleBuffer asDoubleBuffer(); + + public abstract java.nio.FloatBuffer asFloatBuffer(); + + public abstract java.nio.IntBuffer asIntBuffer(); + + public abstract java.nio.LongBuffer asLongBuffer(); + + public abstract java.nio.ByteBuffer asReadOnlyBuffer(); + + public abstract java.nio.ShortBuffer asShortBuffer(); + + public abstract java.nio.ByteBuffer compact(); + + public int compareTo(java.nio.ByteBuffer otherBuffer) { + throw new RuntimeException("Stub!"); + } + + public abstract java.nio.ByteBuffer duplicate(); + + public boolean equals(java.lang.Object other) { + throw new RuntimeException("Stub!"); + } + + public abstract byte get(); + + public java.nio.ByteBuffer get(byte[] dst) { + throw new RuntimeException("Stub!"); + } + + public java.nio.ByteBuffer get(byte[] dst, int dstOffset, int byteCount) { + throw new RuntimeException("Stub!"); + } + + public abstract byte get(int index); + + public abstract char getChar(); + + public abstract char getChar(int index); + + public abstract double getDouble(); + + public abstract double getDouble(int index); + + public abstract float getFloat(); + + public abstract float getFloat(int index); + + public abstract int getInt(); + + public abstract int getInt(int index); + + public abstract long getLong(); + + public abstract long getLong(int index); + + public abstract short getShort(); + + public abstract short getShort(int index); + + public final boolean hasArray() { + throw new RuntimeException("Stub!"); + } + + public int hashCode() { + throw new RuntimeException("Stub!"); + } + + public abstract boolean isDirect(); + + public final java.nio.ByteOrder order() { + throw new RuntimeException("Stub!"); + } + + public final java.nio.ByteBuffer order(java.nio.ByteOrder byteOrder) { + throw new RuntimeException("Stub!"); + } + + public abstract java.nio.ByteBuffer put(byte b); + + public final java.nio.ByteBuffer put(byte[] src) { + throw new RuntimeException("Stub!"); + } + + public java.nio.ByteBuffer put(byte[] src, int srcOffset, int byteCount) { + throw new RuntimeException("Stub!"); + } + + public java.nio.ByteBuffer put(java.nio.ByteBuffer src) { + throw new RuntimeException("Stub!"); + } + + public abstract java.nio.ByteBuffer put(int index, byte b); + + public abstract java.nio.ByteBuffer putChar(char value); + + public abstract java.nio.ByteBuffer putChar(int index, char value); + + public abstract java.nio.ByteBuffer putDouble(double value); + + public abstract java.nio.ByteBuffer putDouble(int index, double value); + + public abstract java.nio.ByteBuffer putFloat(float value); + + public abstract java.nio.ByteBuffer putFloat(int index, float value); + + public abstract java.nio.ByteBuffer putInt(int value); + + public abstract java.nio.ByteBuffer putInt(int index, int value); + + public abstract java.nio.ByteBuffer putLong(long value); + + public abstract java.nio.ByteBuffer putLong(int index, long value); + + public abstract java.nio.ByteBuffer putShort(short value); + + public abstract java.nio.ByteBuffer putShort(int index, short value); + + public abstract java.nio.ByteBuffer slice(); +} diff --git a/core-stubs-mini/src/java/nio/ByteOrder.java b/core-stubs-mini/src/java/nio/ByteOrder.java new file mode 100644 index 0000000..4f9ab19 --- /dev/null +++ b/core-stubs-mini/src/java/nio/ByteOrder.java @@ -0,0 +1,38 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.nio; + +public final class ByteOrder { + ByteOrder() { + throw new RuntimeException("Stub!"); + } + + public static java.nio.ByteOrder nativeOrder() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toString() { + throw new RuntimeException("Stub!"); + } + + public static final java.nio.ByteOrder BIG_ENDIAN; + public static final java.nio.ByteOrder LITTLE_ENDIAN; + static { + BIG_ENDIAN = null; + LITTLE_ENDIAN = null; + } +} diff --git a/core-stubs-mini/src/java/nio/CharBuffer.java b/core-stubs-mini/src/java/nio/CharBuffer.java new file mode 100644 index 0000000..6a4a707 --- /dev/null +++ b/core-stubs-mini/src/java/nio/CharBuffer.java @@ -0,0 +1,150 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.nio; + +public abstract class CharBuffer extends java.nio.Buffer + implements + java.lang.Comparable<java.nio.CharBuffer>, + java.lang.CharSequence, + java.lang.Appendable, + java.lang.Readable { + CharBuffer() { + throw new RuntimeException("Stub!"); + } + + public static java.nio.CharBuffer allocate(int capacity) { + throw new RuntimeException("Stub!"); + } + + public static java.nio.CharBuffer wrap(char[] array) { + throw new RuntimeException("Stub!"); + } + + public static java.nio.CharBuffer wrap(char[] array, int start, int charCount) { + throw new RuntimeException("Stub!"); + } + + public static java.nio.CharBuffer wrap(java.lang.CharSequence chseq) { + throw new RuntimeException("Stub!"); + } + + public static java.nio.CharBuffer wrap(java.lang.CharSequence cs, int start, int end) { + throw new RuntimeException("Stub!"); + } + + public final char[] array() { + throw new RuntimeException("Stub!"); + } + + public final int arrayOffset() { + throw new RuntimeException("Stub!"); + } + + public abstract java.nio.CharBuffer asReadOnlyBuffer(); + + public final char charAt(int index) { + throw new RuntimeException("Stub!"); + } + + public abstract java.nio.CharBuffer compact(); + + public int compareTo(java.nio.CharBuffer otherBuffer) { + throw new RuntimeException("Stub!"); + } + + public abstract java.nio.CharBuffer duplicate(); + + public boolean equals(java.lang.Object other) { + throw new RuntimeException("Stub!"); + } + + public abstract char get(); + + public java.nio.CharBuffer get(char[] dst) { + throw new RuntimeException("Stub!"); + } + + public java.nio.CharBuffer get(char[] dst, int dstOffset, int charCount) { + throw new RuntimeException("Stub!"); + } + + public abstract char get(int index); + + public final boolean hasArray() { + throw new RuntimeException("Stub!"); + } + + public int hashCode() { + throw new RuntimeException("Stub!"); + } + + public abstract boolean isDirect(); + + public final int length() { + throw new RuntimeException("Stub!"); + } + + public abstract java.nio.ByteOrder order(); + + public abstract java.nio.CharBuffer put(char c); + + public final java.nio.CharBuffer put(char[] src) { + throw new RuntimeException("Stub!"); + } + + public java.nio.CharBuffer put(char[] src, int srcOffset, int charCount) { + throw new RuntimeException("Stub!"); + } + + public java.nio.CharBuffer put(java.nio.CharBuffer src) { + throw new RuntimeException("Stub!"); + } + + public abstract java.nio.CharBuffer put(int index, char c); + + public final java.nio.CharBuffer put(java.lang.String str) { + throw new RuntimeException("Stub!"); + } + + public java.nio.CharBuffer put(java.lang.String str, int start, int end) { + throw new RuntimeException("Stub!"); + } + + public abstract java.nio.CharBuffer slice(); + + public abstract java.lang.CharSequence subSequence(int start, int end); + + public java.lang.String toString() { + throw new RuntimeException("Stub!"); + } + + public java.nio.CharBuffer append(char c) { + throw new RuntimeException("Stub!"); + } + + public java.nio.CharBuffer append(java.lang.CharSequence csq) { + throw new RuntimeException("Stub!"); + } + + public java.nio.CharBuffer append(java.lang.CharSequence csq, int start, int end) { + throw new RuntimeException("Stub!"); + } + + public int read(java.nio.CharBuffer target) throws java.io.IOException { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/nio/DoubleBuffer.java b/core-stubs-mini/src/java/nio/DoubleBuffer.java new file mode 100644 index 0000000..f66f228 --- /dev/null +++ b/core-stubs-mini/src/java/nio/DoubleBuffer.java @@ -0,0 +1,100 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.nio; + +public abstract class DoubleBuffer extends java.nio.Buffer implements + java.lang.Comparable<java.nio.DoubleBuffer> { + DoubleBuffer() { + throw new RuntimeException("Stub!"); + } + + public static java.nio.DoubleBuffer allocate(int capacity) { + throw new RuntimeException("Stub!"); + } + + public static java.nio.DoubleBuffer wrap(double[] array) { + throw new RuntimeException("Stub!"); + } + + public static java.nio.DoubleBuffer wrap(double[] array, int start, int doubleCount) { + throw new RuntimeException("Stub!"); + } + + public final double[] array() { + throw new RuntimeException("Stub!"); + } + + public final int arrayOffset() { + throw new RuntimeException("Stub!"); + } + + public abstract java.nio.DoubleBuffer asReadOnlyBuffer(); + + public abstract java.nio.DoubleBuffer compact(); + + public int compareTo(java.nio.DoubleBuffer otherBuffer) { + throw new RuntimeException("Stub!"); + } + + public abstract java.nio.DoubleBuffer duplicate(); + + public boolean equals(java.lang.Object other) { + throw new RuntimeException("Stub!"); + } + + public abstract double get(); + + public java.nio.DoubleBuffer get(double[] dst) { + throw new RuntimeException("Stub!"); + } + + public java.nio.DoubleBuffer get(double[] dst, int dstOffset, int doubleCount) { + throw new RuntimeException("Stub!"); + } + + public abstract double get(int index); + + public final boolean hasArray() { + throw new RuntimeException("Stub!"); + } + + public int hashCode() { + throw new RuntimeException("Stub!"); + } + + public abstract boolean isDirect(); + + public abstract java.nio.ByteOrder order(); + + public abstract java.nio.DoubleBuffer put(double d); + + public final java.nio.DoubleBuffer put(double[] src) { + throw new RuntimeException("Stub!"); + } + + public java.nio.DoubleBuffer put(double[] src, int srcOffset, int doubleCount) { + throw new RuntimeException("Stub!"); + } + + public java.nio.DoubleBuffer put(java.nio.DoubleBuffer src) { + throw new RuntimeException("Stub!"); + } + + public abstract java.nio.DoubleBuffer put(int index, double d); + + public abstract java.nio.DoubleBuffer slice(); +} diff --git a/core-stubs-mini/src/java/nio/FloatBuffer.java b/core-stubs-mini/src/java/nio/FloatBuffer.java new file mode 100644 index 0000000..f470940 --- /dev/null +++ b/core-stubs-mini/src/java/nio/FloatBuffer.java @@ -0,0 +1,100 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.nio; + +public abstract class FloatBuffer extends java.nio.Buffer implements + java.lang.Comparable<java.nio.FloatBuffer> { + FloatBuffer() { + throw new RuntimeException("Stub!"); + } + + public static java.nio.FloatBuffer allocate(int capacity) { + throw new RuntimeException("Stub!"); + } + + public static java.nio.FloatBuffer wrap(float[] array) { + throw new RuntimeException("Stub!"); + } + + public static java.nio.FloatBuffer wrap(float[] array, int start, int floatCount) { + throw new RuntimeException("Stub!"); + } + + public final float[] array() { + throw new RuntimeException("Stub!"); + } + + public final int arrayOffset() { + throw new RuntimeException("Stub!"); + } + + public abstract java.nio.FloatBuffer asReadOnlyBuffer(); + + public abstract java.nio.FloatBuffer compact(); + + public int compareTo(java.nio.FloatBuffer otherBuffer) { + throw new RuntimeException("Stub!"); + } + + public abstract java.nio.FloatBuffer duplicate(); + + public boolean equals(java.lang.Object other) { + throw new RuntimeException("Stub!"); + } + + public abstract float get(); + + public java.nio.FloatBuffer get(float[] dst) { + throw new RuntimeException("Stub!"); + } + + public java.nio.FloatBuffer get(float[] dst, int dstOffset, int floatCount) { + throw new RuntimeException("Stub!"); + } + + public abstract float get(int index); + + public final boolean hasArray() { + throw new RuntimeException("Stub!"); + } + + public int hashCode() { + throw new RuntimeException("Stub!"); + } + + public abstract boolean isDirect(); + + public abstract java.nio.ByteOrder order(); + + public abstract java.nio.FloatBuffer put(float f); + + public final java.nio.FloatBuffer put(float[] src) { + throw new RuntimeException("Stub!"); + } + + public java.nio.FloatBuffer put(float[] src, int srcOffset, int floatCount) { + throw new RuntimeException("Stub!"); + } + + public java.nio.FloatBuffer put(java.nio.FloatBuffer src) { + throw new RuntimeException("Stub!"); + } + + public abstract java.nio.FloatBuffer put(int index, float f); + + public abstract java.nio.FloatBuffer slice(); +} diff --git a/core-stubs-mini/src/java/nio/IntBuffer.java b/core-stubs-mini/src/java/nio/IntBuffer.java new file mode 100644 index 0000000..a1f4d7d --- /dev/null +++ b/core-stubs-mini/src/java/nio/IntBuffer.java @@ -0,0 +1,100 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.nio; + +public abstract class IntBuffer extends java.nio.Buffer implements + java.lang.Comparable<java.nio.IntBuffer> { + IntBuffer() { + throw new RuntimeException("Stub!"); + } + + public static java.nio.IntBuffer allocate(int capacity) { + throw new RuntimeException("Stub!"); + } + + public static java.nio.IntBuffer wrap(int[] array) { + throw new RuntimeException("Stub!"); + } + + public static java.nio.IntBuffer wrap(int[] array, int start, int intCount) { + throw new RuntimeException("Stub!"); + } + + public final int[] array() { + throw new RuntimeException("Stub!"); + } + + public final int arrayOffset() { + throw new RuntimeException("Stub!"); + } + + public abstract java.nio.IntBuffer asReadOnlyBuffer(); + + public abstract java.nio.IntBuffer compact(); + + public int compareTo(java.nio.IntBuffer otherBuffer) { + throw new RuntimeException("Stub!"); + } + + public abstract java.nio.IntBuffer duplicate(); + + public boolean equals(java.lang.Object other) { + throw new RuntimeException("Stub!"); + } + + public abstract int get(); + + public java.nio.IntBuffer get(int[] dst) { + throw new RuntimeException("Stub!"); + } + + public java.nio.IntBuffer get(int[] dst, int dstOffset, int intCount) { + throw new RuntimeException("Stub!"); + } + + public abstract int get(int index); + + public final boolean hasArray() { + throw new RuntimeException("Stub!"); + } + + public int hashCode() { + throw new RuntimeException("Stub!"); + } + + public abstract boolean isDirect(); + + public abstract java.nio.ByteOrder order(); + + public abstract java.nio.IntBuffer put(int i); + + public final java.nio.IntBuffer put(int[] src) { + throw new RuntimeException("Stub!"); + } + + public java.nio.IntBuffer put(int[] src, int srcOffset, int intCount) { + throw new RuntimeException("Stub!"); + } + + public java.nio.IntBuffer put(java.nio.IntBuffer src) { + throw new RuntimeException("Stub!"); + } + + public abstract java.nio.IntBuffer put(int index, int i); + + public abstract java.nio.IntBuffer slice(); +} diff --git a/core-stubs-mini/src/java/nio/LongBuffer.java b/core-stubs-mini/src/java/nio/LongBuffer.java new file mode 100644 index 0000000..50fc5ee --- /dev/null +++ b/core-stubs-mini/src/java/nio/LongBuffer.java @@ -0,0 +1,100 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.nio; + +public abstract class LongBuffer extends java.nio.Buffer implements + java.lang.Comparable<java.nio.LongBuffer> { + LongBuffer() { + throw new RuntimeException("Stub!"); + } + + public static java.nio.LongBuffer allocate(int capacity) { + throw new RuntimeException("Stub!"); + } + + public static java.nio.LongBuffer wrap(long[] array) { + throw new RuntimeException("Stub!"); + } + + public static java.nio.LongBuffer wrap(long[] array, int start, int longCount) { + throw new RuntimeException("Stub!"); + } + + public final long[] array() { + throw new RuntimeException("Stub!"); + } + + public final int arrayOffset() { + throw new RuntimeException("Stub!"); + } + + public abstract java.nio.LongBuffer asReadOnlyBuffer(); + + public abstract java.nio.LongBuffer compact(); + + public int compareTo(java.nio.LongBuffer otherBuffer) { + throw new RuntimeException("Stub!"); + } + + public abstract java.nio.LongBuffer duplicate(); + + public boolean equals(java.lang.Object other) { + throw new RuntimeException("Stub!"); + } + + public abstract long get(); + + public java.nio.LongBuffer get(long[] dst) { + throw new RuntimeException("Stub!"); + } + + public java.nio.LongBuffer get(long[] dst, int dstOffset, int longCount) { + throw new RuntimeException("Stub!"); + } + + public abstract long get(int index); + + public final boolean hasArray() { + throw new RuntimeException("Stub!"); + } + + public int hashCode() { + throw new RuntimeException("Stub!"); + } + + public abstract boolean isDirect(); + + public abstract java.nio.ByteOrder order(); + + public abstract java.nio.LongBuffer put(long l); + + public final java.nio.LongBuffer put(long[] src) { + throw new RuntimeException("Stub!"); + } + + public java.nio.LongBuffer put(long[] src, int srcOffset, int longCount) { + throw new RuntimeException("Stub!"); + } + + public java.nio.LongBuffer put(java.nio.LongBuffer src) { + throw new RuntimeException("Stub!"); + } + + public abstract java.nio.LongBuffer put(int index, long l); + + public abstract java.nio.LongBuffer slice(); +} diff --git a/core-stubs-mini/src/java/nio/ShortBuffer.java b/core-stubs-mini/src/java/nio/ShortBuffer.java new file mode 100644 index 0000000..6123d65 --- /dev/null +++ b/core-stubs-mini/src/java/nio/ShortBuffer.java @@ -0,0 +1,100 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.nio; + +public abstract class ShortBuffer extends java.nio.Buffer implements + java.lang.Comparable<java.nio.ShortBuffer> { + ShortBuffer() { + throw new RuntimeException("Stub!"); + } + + public static java.nio.ShortBuffer allocate(int capacity) { + throw new RuntimeException("Stub!"); + } + + public static java.nio.ShortBuffer wrap(short[] array) { + throw new RuntimeException("Stub!"); + } + + public static java.nio.ShortBuffer wrap(short[] array, int start, int shortCount) { + throw new RuntimeException("Stub!"); + } + + public final short[] array() { + throw new RuntimeException("Stub!"); + } + + public final int arrayOffset() { + throw new RuntimeException("Stub!"); + } + + public abstract java.nio.ShortBuffer asReadOnlyBuffer(); + + public abstract java.nio.ShortBuffer compact(); + + public int compareTo(java.nio.ShortBuffer otherBuffer) { + throw new RuntimeException("Stub!"); + } + + public abstract java.nio.ShortBuffer duplicate(); + + public boolean equals(java.lang.Object other) { + throw new RuntimeException("Stub!"); + } + + public abstract short get(); + + public java.nio.ShortBuffer get(short[] dst) { + throw new RuntimeException("Stub!"); + } + + public java.nio.ShortBuffer get(short[] dst, int dstOffset, int shortCount) { + throw new RuntimeException("Stub!"); + } + + public abstract short get(int index); + + public final boolean hasArray() { + throw new RuntimeException("Stub!"); + } + + public int hashCode() { + throw new RuntimeException("Stub!"); + } + + public abstract boolean isDirect(); + + public abstract java.nio.ByteOrder order(); + + public abstract java.nio.ShortBuffer put(short s); + + public final java.nio.ShortBuffer put(short[] src) { + throw new RuntimeException("Stub!"); + } + + public java.nio.ShortBuffer put(short[] src, int srcOffset, int shortCount) { + throw new RuntimeException("Stub!"); + } + + public java.nio.ShortBuffer put(java.nio.ShortBuffer src) { + throw new RuntimeException("Stub!"); + } + + public abstract java.nio.ShortBuffer put(int index, short s); + + public abstract java.nio.ShortBuffer slice(); +} diff --git a/core-stubs-mini/src/java/nio/channels/Channel.java b/core-stubs-mini/src/java/nio/channels/Channel.java new file mode 100644 index 0000000..b6c6dc3 --- /dev/null +++ b/core-stubs-mini/src/java/nio/channels/Channel.java @@ -0,0 +1,23 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.nio.channels; + +public interface Channel extends java.io.Closeable { + public abstract boolean isOpen(); + + public abstract void close() throws java.io.IOException; +} diff --git a/core-stubs-mini/src/java/nio/charset/CharacterCodingException.java b/core-stubs-mini/src/java/nio/charset/CharacterCodingException.java new file mode 100644 index 0000000..990b4da --- /dev/null +++ b/core-stubs-mini/src/java/nio/charset/CharacterCodingException.java @@ -0,0 +1,23 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.nio.charset; + +public class CharacterCodingException extends java.io.IOException { + public CharacterCodingException() { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/nio/charset/Charset.java b/core-stubs-mini/src/java/nio/charset/Charset.java new file mode 100644 index 0000000..2028c72 --- /dev/null +++ b/core-stubs-mini/src/java/nio/charset/Charset.java @@ -0,0 +1,97 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.nio.charset; + +public abstract class Charset implements java.lang.Comparable<java.nio.charset.Charset> { + protected Charset(java.lang.String canonicalName, java.lang.String[] aliases) { + throw new RuntimeException("Stub!"); + } + + public static java.util.SortedMap<java.lang.String, java.nio.charset.Charset> availableCharsets() { + throw new RuntimeException("Stub!"); + } + + public static java.nio.charset.Charset forName(java.lang.String charsetName) { + throw new RuntimeException("Stub!"); + } + + public static boolean isSupported(java.lang.String charsetName) { + throw new RuntimeException("Stub!"); + } + + public abstract boolean contains(java.nio.charset.Charset charset); + + public abstract java.nio.charset.CharsetEncoder newEncoder(); + + public abstract java.nio.charset.CharsetDecoder newDecoder(); + + public final java.lang.String name() { + throw new RuntimeException("Stub!"); + } + + public final java.util.Set<java.lang.String> aliases() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String displayName() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String displayName(java.util.Locale l) { + throw new RuntimeException("Stub!"); + } + + public final boolean isRegistered() { + throw new RuntimeException("Stub!"); + } + + public boolean canEncode() { + throw new RuntimeException("Stub!"); + } + + public final java.nio.ByteBuffer encode(java.nio.CharBuffer buffer) { + throw new RuntimeException("Stub!"); + } + + public final java.nio.ByteBuffer encode(java.lang.String s) { + throw new RuntimeException("Stub!"); + } + + public final java.nio.CharBuffer decode(java.nio.ByteBuffer buffer) { + throw new RuntimeException("Stub!"); + } + + public final int compareTo(java.nio.charset.Charset charset) { + throw new RuntimeException("Stub!"); + } + + public final boolean equals(java.lang.Object obj) { + throw new RuntimeException("Stub!"); + } + + public final int hashCode() { + throw new RuntimeException("Stub!"); + } + + public final java.lang.String toString() { + throw new RuntimeException("Stub!"); + } + + public static java.nio.charset.Charset defaultCharset() { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/nio/charset/CharsetDecoder.java b/core-stubs-mini/src/java/nio/charset/CharsetDecoder.java new file mode 100644 index 0000000..ae487b5 --- /dev/null +++ b/core-stubs-mini/src/java/nio/charset/CharsetDecoder.java @@ -0,0 +1,115 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.nio.charset; + +public abstract class CharsetDecoder { + protected CharsetDecoder(java.nio.charset.Charset charset, float averageCharsPerByte, + float maxCharsPerByte) { + throw new RuntimeException("Stub!"); + } + + public final float averageCharsPerByte() { + throw new RuntimeException("Stub!"); + } + + public final java.nio.charset.Charset charset() { + throw new RuntimeException("Stub!"); + } + + public final java.nio.CharBuffer decode(java.nio.ByteBuffer in) + throws java.nio.charset.CharacterCodingException { + throw new RuntimeException("Stub!"); + } + + public final java.nio.charset.CoderResult decode(java.nio.ByteBuffer in, java.nio.CharBuffer out, + boolean endOfInput) { + throw new RuntimeException("Stub!"); + } + + protected abstract java.nio.charset.CoderResult decodeLoop(java.nio.ByteBuffer in, + java.nio.CharBuffer out); + + public java.nio.charset.Charset detectedCharset() { + throw new RuntimeException("Stub!"); + } + + public final java.nio.charset.CoderResult flush(java.nio.CharBuffer out) { + throw new RuntimeException("Stub!"); + } + + protected java.nio.charset.CoderResult implFlush(java.nio.CharBuffer out) { + throw new RuntimeException("Stub!"); + } + + protected void implOnMalformedInput(java.nio.charset.CodingErrorAction newAction) { + throw new RuntimeException("Stub!"); + } + + protected void implOnUnmappableCharacter(java.nio.charset.CodingErrorAction newAction) { + throw new RuntimeException("Stub!"); + } + + protected void implReplaceWith(java.lang.String newReplacement) { + throw new RuntimeException("Stub!"); + } + + protected void implReset() { + throw new RuntimeException("Stub!"); + } + + public boolean isAutoDetecting() { + throw new RuntimeException("Stub!"); + } + + public boolean isCharsetDetected() { + throw new RuntimeException("Stub!"); + } + + public java.nio.charset.CodingErrorAction malformedInputAction() { + throw new RuntimeException("Stub!"); + } + + public final float maxCharsPerByte() { + throw new RuntimeException("Stub!"); + } + + public final java.nio.charset.CharsetDecoder onMalformedInput( + java.nio.charset.CodingErrorAction newAction) { + throw new RuntimeException("Stub!"); + } + + public final java.nio.charset.CharsetDecoder onUnmappableCharacter( + java.nio.charset.CodingErrorAction newAction) { + throw new RuntimeException("Stub!"); + } + + public final java.lang.String replacement() { + throw new RuntimeException("Stub!"); + } + + public final java.nio.charset.CharsetDecoder replaceWith(java.lang.String replacement) { + throw new RuntimeException("Stub!"); + } + + public final java.nio.charset.CharsetDecoder reset() { + throw new RuntimeException("Stub!"); + } + + public java.nio.charset.CodingErrorAction unmappableCharacterAction() { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/nio/charset/CharsetEncoder.java b/core-stubs-mini/src/java/nio/charset/CharsetEncoder.java new file mode 100644 index 0000000..cf9e6e4 --- /dev/null +++ b/core-stubs-mini/src/java/nio/charset/CharsetEncoder.java @@ -0,0 +1,120 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.nio.charset; + +public abstract class CharsetEncoder { + protected CharsetEncoder(java.nio.charset.Charset cs, float averageBytesPerChar, + float maxBytesPerChar) { + throw new RuntimeException("Stub!"); + } + + protected CharsetEncoder(java.nio.charset.Charset cs, float averageBytesPerChar, + float maxBytesPerChar, byte[] replacement) { + throw new RuntimeException("Stub!"); + } + + public final float averageBytesPerChar() { + throw new RuntimeException("Stub!"); + } + + public boolean canEncode(char c) { + throw new RuntimeException("Stub!"); + } + + public boolean canEncode(java.lang.CharSequence sequence) { + throw new RuntimeException("Stub!"); + } + + public final java.nio.charset.Charset charset() { + throw new RuntimeException("Stub!"); + } + + public final java.nio.ByteBuffer encode(java.nio.CharBuffer in) + throws java.nio.charset.CharacterCodingException { + throw new RuntimeException("Stub!"); + } + + public final java.nio.charset.CoderResult encode(java.nio.CharBuffer in, java.nio.ByteBuffer out, + boolean endOfInput) { + throw new RuntimeException("Stub!"); + } + + protected abstract java.nio.charset.CoderResult encodeLoop(java.nio.CharBuffer in, + java.nio.ByteBuffer out); + + public final java.nio.charset.CoderResult flush(java.nio.ByteBuffer out) { + throw new RuntimeException("Stub!"); + } + + protected java.nio.charset.CoderResult implFlush(java.nio.ByteBuffer out) { + throw new RuntimeException("Stub!"); + } + + protected void implOnMalformedInput(java.nio.charset.CodingErrorAction newAction) { + throw new RuntimeException("Stub!"); + } + + protected void implOnUnmappableCharacter(java.nio.charset.CodingErrorAction newAction) { + throw new RuntimeException("Stub!"); + } + + protected void implReplaceWith(byte[] newReplacement) { + throw new RuntimeException("Stub!"); + } + + protected void implReset() { + throw new RuntimeException("Stub!"); + } + + public boolean isLegalReplacement(byte[] replacement) { + throw new RuntimeException("Stub!"); + } + + public java.nio.charset.CodingErrorAction malformedInputAction() { + throw new RuntimeException("Stub!"); + } + + public final float maxBytesPerChar() { + throw new RuntimeException("Stub!"); + } + + public final java.nio.charset.CharsetEncoder onMalformedInput( + java.nio.charset.CodingErrorAction newAction) { + throw new RuntimeException("Stub!"); + } + + public final java.nio.charset.CharsetEncoder onUnmappableCharacter( + java.nio.charset.CodingErrorAction newAction) { + throw new RuntimeException("Stub!"); + } + + public final byte[] replacement() { + throw new RuntimeException("Stub!"); + } + + public final java.nio.charset.CharsetEncoder replaceWith(byte[] replacement) { + throw new RuntimeException("Stub!"); + } + + public final java.nio.charset.CharsetEncoder reset() { + throw new RuntimeException("Stub!"); + } + + public java.nio.charset.CodingErrorAction unmappableCharacterAction() { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/nio/charset/CoderResult.java b/core-stubs-mini/src/java/nio/charset/CoderResult.java new file mode 100644 index 0000000..55cee35 --- /dev/null +++ b/core-stubs-mini/src/java/nio/charset/CoderResult.java @@ -0,0 +1,77 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.nio.charset; + +public class CoderResult { + CoderResult() { + throw new RuntimeException("Stub!"); + } + + public static synchronized java.nio.charset.CoderResult malformedForLength(int length) + throws java.lang.IllegalArgumentException { + throw new RuntimeException("Stub!"); + } + + public static synchronized java.nio.charset.CoderResult unmappableForLength(int length) + throws java.lang.IllegalArgumentException { + throw new RuntimeException("Stub!"); + } + + public boolean isUnderflow() { + throw new RuntimeException("Stub!"); + } + + public boolean isError() { + throw new RuntimeException("Stub!"); + } + + public boolean isMalformed() { + throw new RuntimeException("Stub!"); + } + + public boolean isOverflow() { + throw new RuntimeException("Stub!"); + } + + public boolean isUnmappable() { + throw new RuntimeException("Stub!"); + } + + public int length() throws java.lang.UnsupportedOperationException { + throw new RuntimeException("Stub!"); + } + + public void throwException() + throws java.nio.BufferUnderflowException, + java.nio.BufferOverflowException, + java.nio.charset.UnmappableCharacterException, + java.nio.charset.MalformedInputException, + java.nio.charset.CharacterCodingException { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toString() { + throw new RuntimeException("Stub!"); + } + + public static final java.nio.charset.CoderResult UNDERFLOW; + public static final java.nio.charset.CoderResult OVERFLOW; + static { + UNDERFLOW = null; + OVERFLOW = null; + } +} diff --git a/core-stubs-mini/src/java/nio/charset/CodingErrorAction.java b/core-stubs-mini/src/java/nio/charset/CodingErrorAction.java new file mode 100644 index 0000000..59518a4 --- /dev/null +++ b/core-stubs-mini/src/java/nio/charset/CodingErrorAction.java @@ -0,0 +1,36 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.nio.charset; + +public class CodingErrorAction { + CodingErrorAction() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toString() { + throw new RuntimeException("Stub!"); + } + + public static final java.nio.charset.CodingErrorAction IGNORE; + public static final java.nio.charset.CodingErrorAction REPLACE; + public static final java.nio.charset.CodingErrorAction REPORT; + static { + IGNORE = null; + REPLACE = null; + REPORT = null; + } +} diff --git a/core-stubs-mini/src/java/nio/charset/MalformedInputException.java b/core-stubs-mini/src/java/nio/charset/MalformedInputException.java new file mode 100644 index 0000000..c63bf94 --- /dev/null +++ b/core-stubs-mini/src/java/nio/charset/MalformedInputException.java @@ -0,0 +1,31 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.nio.charset; + +public class MalformedInputException extends java.nio.charset.CharacterCodingException { + public MalformedInputException(int length) { + throw new RuntimeException("Stub!"); + } + + public int getInputLength() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getMessage() { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/nio/charset/UnmappableCharacterException.java b/core-stubs-mini/src/java/nio/charset/UnmappableCharacterException.java new file mode 100644 index 0000000..a749142 --- /dev/null +++ b/core-stubs-mini/src/java/nio/charset/UnmappableCharacterException.java @@ -0,0 +1,31 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.nio.charset; + +public class UnmappableCharacterException extends java.nio.charset.CharacterCodingException { + public UnmappableCharacterException(int length) { + throw new RuntimeException("Stub!"); + } + + public int getInputLength() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getMessage() { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/security/CodeSigner.java b/core-stubs-mini/src/java/security/CodeSigner.java new file mode 100644 index 0000000..42bd8d5 --- /dev/null +++ b/core-stubs-mini/src/java/security/CodeSigner.java @@ -0,0 +1,43 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.security; + +public final class CodeSigner implements java.io.Serializable { + public CodeSigner(java.security.cert.CertPath signerCertPath, java.security.Timestamp timestamp) { + throw new RuntimeException("Stub!"); + } + + public boolean equals(java.lang.Object obj) { + throw new RuntimeException("Stub!"); + } + + public java.security.cert.CertPath getSignerCertPath() { + throw new RuntimeException("Stub!"); + } + + public java.security.Timestamp getTimestamp() { + throw new RuntimeException("Stub!"); + } + + public int hashCode() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toString() { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/security/CodeSource.java b/core-stubs-mini/src/java/security/CodeSource.java new file mode 100644 index 0000000..59fa6c6 --- /dev/null +++ b/core-stubs-mini/src/java/security/CodeSource.java @@ -0,0 +1,43 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.security; + +public class CodeSource implements java.io.Serializable { + public CodeSource(java.net.URL location, java.security.cert.Certificate[] certs) { + throw new RuntimeException("Stub!"); + } + + public CodeSource(java.net.URL location, java.security.CodeSigner[] signers) { + throw new RuntimeException("Stub!"); + } + + public final java.security.cert.Certificate[] getCertificates() { + throw new RuntimeException("Stub!"); + } + + public final java.security.CodeSigner[] getCodeSigners() { + throw new RuntimeException("Stub!"); + } + + public final java.net.URL getLocation() { + throw new RuntimeException("Stub!"); + } + + public boolean implies(java.security.CodeSource cs) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/security/GeneralSecurityException.java b/core-stubs-mini/src/java/security/GeneralSecurityException.java new file mode 100644 index 0000000..e1fd9ac --- /dev/null +++ b/core-stubs-mini/src/java/security/GeneralSecurityException.java @@ -0,0 +1,35 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.security; + +public class GeneralSecurityException extends java.lang.Exception { + public GeneralSecurityException(java.lang.String msg) { + throw new RuntimeException("Stub!"); + } + + public GeneralSecurityException() { + throw new RuntimeException("Stub!"); + } + + public GeneralSecurityException(java.lang.String message, java.lang.Throwable cause) { + throw new RuntimeException("Stub!"); + } + + public GeneralSecurityException(java.lang.Throwable cause) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/security/Guard.java b/core-stubs-mini/src/java/security/Guard.java new file mode 100644 index 0000000..19b3828 --- /dev/null +++ b/core-stubs-mini/src/java/security/Guard.java @@ -0,0 +1,21 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.security; + +public interface Guard { + public abstract void checkGuard(java.lang.Object object) throws java.lang.SecurityException; +} diff --git a/core-stubs-mini/src/java/security/InvalidKeyException.java b/core-stubs-mini/src/java/security/InvalidKeyException.java new file mode 100644 index 0000000..c56dd2d --- /dev/null +++ b/core-stubs-mini/src/java/security/InvalidKeyException.java @@ -0,0 +1,35 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.security; + +public class InvalidKeyException extends java.security.KeyException { + public InvalidKeyException(java.lang.String msg) { + throw new RuntimeException("Stub!"); + } + + public InvalidKeyException() { + throw new RuntimeException("Stub!"); + } + + public InvalidKeyException(java.lang.String message, java.lang.Throwable cause) { + throw new RuntimeException("Stub!"); + } + + public InvalidKeyException(java.lang.Throwable cause) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/security/Key.java b/core-stubs-mini/src/java/security/Key.java new file mode 100644 index 0000000..373a931 --- /dev/null +++ b/core-stubs-mini/src/java/security/Key.java @@ -0,0 +1,27 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.security; + +public interface Key extends java.io.Serializable { + public abstract java.lang.String getAlgorithm(); + + public abstract java.lang.String getFormat(); + + public abstract byte[] getEncoded(); + + public static final long serialVersionUID = 6603384152749567654L; +} diff --git a/core-stubs-mini/src/java/security/KeyException.java b/core-stubs-mini/src/java/security/KeyException.java new file mode 100644 index 0000000..8e2a69f --- /dev/null +++ b/core-stubs-mini/src/java/security/KeyException.java @@ -0,0 +1,35 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.security; + +public class KeyException extends java.security.GeneralSecurityException { + public KeyException(java.lang.String msg) { + throw new RuntimeException("Stub!"); + } + + public KeyException() { + throw new RuntimeException("Stub!"); + } + + public KeyException(java.lang.String message, java.lang.Throwable cause) { + throw new RuntimeException("Stub!"); + } + + public KeyException(java.lang.Throwable cause) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/security/NoSuchAlgorithmException.java b/core-stubs-mini/src/java/security/NoSuchAlgorithmException.java new file mode 100644 index 0000000..b3ebf67 --- /dev/null +++ b/core-stubs-mini/src/java/security/NoSuchAlgorithmException.java @@ -0,0 +1,35 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.security; + +public class NoSuchAlgorithmException extends java.security.GeneralSecurityException { + public NoSuchAlgorithmException(java.lang.String msg) { + throw new RuntimeException("Stub!"); + } + + public NoSuchAlgorithmException() { + throw new RuntimeException("Stub!"); + } + + public NoSuchAlgorithmException(java.lang.String message, java.lang.Throwable cause) { + throw new RuntimeException("Stub!"); + } + + public NoSuchAlgorithmException(java.lang.Throwable cause) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/security/NoSuchProviderException.java b/core-stubs-mini/src/java/security/NoSuchProviderException.java new file mode 100644 index 0000000..85c783f --- /dev/null +++ b/core-stubs-mini/src/java/security/NoSuchProviderException.java @@ -0,0 +1,27 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.security; + +public class NoSuchProviderException extends java.security.GeneralSecurityException { + public NoSuchProviderException(java.lang.String msg) { + throw new RuntimeException("Stub!"); + } + + public NoSuchProviderException() { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/security/Permission.java b/core-stubs-mini/src/java/security/Permission.java new file mode 100644 index 0000000..3524b2e --- /dev/null +++ b/core-stubs-mini/src/java/security/Permission.java @@ -0,0 +1,39 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.security; + +public abstract class Permission implements java.security.Guard, java.io.Serializable { + public Permission(java.lang.String name) { + throw new RuntimeException("Stub!"); + } + + public final java.lang.String getName() { + throw new RuntimeException("Stub!"); + } + + public void checkGuard(java.lang.Object obj) throws java.lang.SecurityException { + throw new RuntimeException("Stub!"); + } + + public java.security.PermissionCollection newPermissionCollection() { + throw new RuntimeException("Stub!"); + } + + public abstract java.lang.String getActions(); + + public abstract boolean implies(java.security.Permission permission); +} diff --git a/core-stubs-mini/src/java/security/PermissionCollection.java b/core-stubs-mini/src/java/security/PermissionCollection.java new file mode 100644 index 0000000..07b2218 --- /dev/null +++ b/core-stubs-mini/src/java/security/PermissionCollection.java @@ -0,0 +1,37 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.security; + +public abstract class PermissionCollection implements java.io.Serializable { + public PermissionCollection() { + throw new RuntimeException("Stub!"); + } + + public abstract void add(java.security.Permission permission); + + public abstract java.util.Enumeration<java.security.Permission> elements(); + + public abstract boolean implies(java.security.Permission permission); + + public boolean isReadOnly() { + throw new RuntimeException("Stub!"); + } + + public void setReadOnly() { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/security/Principal.java b/core-stubs-mini/src/java/security/Principal.java new file mode 100644 index 0000000..5cda5e0 --- /dev/null +++ b/core-stubs-mini/src/java/security/Principal.java @@ -0,0 +1,27 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.security; + +public interface Principal { + public abstract boolean equals(java.lang.Object obj); + + public abstract java.lang.String getName(); + + public abstract int hashCode(); + + public abstract java.lang.String toString(); +} diff --git a/core-stubs-mini/src/java/security/ProtectionDomain.java b/core-stubs-mini/src/java/security/ProtectionDomain.java new file mode 100644 index 0000000..d6b3684 --- /dev/null +++ b/core-stubs-mini/src/java/security/ProtectionDomain.java @@ -0,0 +1,50 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.security; + +public class ProtectionDomain { + public ProtectionDomain(java.security.CodeSource cs, + java.security.PermissionCollection permissions) { + throw new RuntimeException("Stub!"); + } + + public ProtectionDomain(java.security.CodeSource cs, + java.security.PermissionCollection permissions, java.lang.ClassLoader cl, + java.security.Principal[] principals) { + throw new RuntimeException("Stub!"); + } + + public final java.lang.ClassLoader getClassLoader() { + throw new RuntimeException("Stub!"); + } + + public final java.security.CodeSource getCodeSource() { + throw new RuntimeException("Stub!"); + } + + public final java.security.PermissionCollection getPermissions() { + throw new RuntimeException("Stub!"); + } + + public final java.security.Principal[] getPrincipals() { + throw new RuntimeException("Stub!"); + } + + public boolean implies(java.security.Permission permission) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/security/PublicKey.java b/core-stubs-mini/src/java/security/PublicKey.java new file mode 100644 index 0000000..dbf8809 --- /dev/null +++ b/core-stubs-mini/src/java/security/PublicKey.java @@ -0,0 +1,21 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.security; + +public interface PublicKey extends java.security.Key { + public static final long serialVersionUID = 7187392471159151072L; +} diff --git a/core-stubs-mini/src/java/security/SignatureException.java b/core-stubs-mini/src/java/security/SignatureException.java new file mode 100644 index 0000000..20b4aae --- /dev/null +++ b/core-stubs-mini/src/java/security/SignatureException.java @@ -0,0 +1,35 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.security; + +public class SignatureException extends java.security.GeneralSecurityException { + public SignatureException(java.lang.String msg) { + throw new RuntimeException("Stub!"); + } + + public SignatureException() { + throw new RuntimeException("Stub!"); + } + + public SignatureException(java.lang.String message, java.lang.Throwable cause) { + throw new RuntimeException("Stub!"); + } + + public SignatureException(java.lang.Throwable cause) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/security/Timestamp.java b/core-stubs-mini/src/java/security/Timestamp.java new file mode 100644 index 0000000..394f7bc --- /dev/null +++ b/core-stubs-mini/src/java/security/Timestamp.java @@ -0,0 +1,43 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.security; + +public final class Timestamp implements java.io.Serializable { + public Timestamp(java.util.Date timestamp, java.security.cert.CertPath signerCertPath) { + throw new RuntimeException("Stub!"); + } + + public boolean equals(java.lang.Object obj) { + throw new RuntimeException("Stub!"); + } + + public java.security.cert.CertPath getSignerCertPath() { + throw new RuntimeException("Stub!"); + } + + public java.util.Date getTimestamp() { + throw new RuntimeException("Stub!"); + } + + public int hashCode() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toString() { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/security/cert/CertPath.java b/core-stubs-mini/src/java/security/cert/CertPath.java new file mode 100644 index 0000000..ce1cc0b --- /dev/null +++ b/core-stubs-mini/src/java/security/cert/CertPath.java @@ -0,0 +1,62 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.security.cert; + +public abstract class CertPath implements java.io.Serializable { + protected static class CertPathRep implements java.io.Serializable { + protected CertPathRep(java.lang.String type, byte[] data) { + throw new RuntimeException("Stub!"); + } + + protected java.lang.Object readResolve() throws java.io.ObjectStreamException { + throw new RuntimeException("Stub!"); + } + } + + protected CertPath(java.lang.String type) { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getType() { + throw new RuntimeException("Stub!"); + } + + public boolean equals(java.lang.Object other) { + throw new RuntimeException("Stub!"); + } + + public int hashCode() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toString() { + throw new RuntimeException("Stub!"); + } + + public abstract java.util.List<? extends java.security.cert.Certificate> getCertificates(); + + public abstract byte[] getEncoded() throws java.security.cert.CertificateEncodingException; + + public abstract byte[] getEncoded(java.lang.String encoding) + throws java.security.cert.CertificateEncodingException; + + public abstract java.util.Iterator<java.lang.String> getEncodings(); + + protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/security/cert/Certificate.java b/core-stubs-mini/src/java/security/cert/Certificate.java new file mode 100644 index 0000000..b764760 --- /dev/null +++ b/core-stubs-mini/src/java/security/cert/Certificate.java @@ -0,0 +1,69 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.security.cert; + +public abstract class Certificate implements java.io.Serializable { + protected static class CertificateRep implements java.io.Serializable { + protected CertificateRep(java.lang.String type, byte[] data) { + throw new RuntimeException("Stub!"); + } + + protected java.lang.Object readResolve() throws java.io.ObjectStreamException { + throw new RuntimeException("Stub!"); + } + } + + protected Certificate(java.lang.String type) { + throw new RuntimeException("Stub!"); + } + + public final java.lang.String getType() { + throw new RuntimeException("Stub!"); + } + + public boolean equals(java.lang.Object other) { + throw new RuntimeException("Stub!"); + } + + public int hashCode() { + throw new RuntimeException("Stub!"); + } + + public abstract byte[] getEncoded() throws java.security.cert.CertificateEncodingException; + + public abstract void verify(java.security.PublicKey key) + throws java.security.cert.CertificateException, + java.security.NoSuchAlgorithmException, + java.security.InvalidKeyException, + java.security.NoSuchProviderException, + java.security.SignatureException; + + public abstract void verify(java.security.PublicKey key, java.lang.String sigProvider) + throws java.security.cert.CertificateException, + java.security.NoSuchAlgorithmException, + java.security.InvalidKeyException, + java.security.NoSuchProviderException, + java.security.SignatureException; + + public abstract java.lang.String toString(); + + public abstract java.security.PublicKey getPublicKey(); + + protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/security/cert/CertificateEncodingException.java b/core-stubs-mini/src/java/security/cert/CertificateEncodingException.java new file mode 100644 index 0000000..a202536 --- /dev/null +++ b/core-stubs-mini/src/java/security/cert/CertificateEncodingException.java @@ -0,0 +1,35 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.security.cert; + +public class CertificateEncodingException extends java.security.cert.CertificateException { + public CertificateEncodingException(java.lang.String msg) { + throw new RuntimeException("Stub!"); + } + + public CertificateEncodingException() { + throw new RuntimeException("Stub!"); + } + + public CertificateEncodingException(java.lang.String message, java.lang.Throwable cause) { + throw new RuntimeException("Stub!"); + } + + public CertificateEncodingException(java.lang.Throwable cause) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/security/cert/CertificateException.java b/core-stubs-mini/src/java/security/cert/CertificateException.java new file mode 100644 index 0000000..bf2b67a --- /dev/null +++ b/core-stubs-mini/src/java/security/cert/CertificateException.java @@ -0,0 +1,35 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.security.cert; + +public class CertificateException extends java.security.GeneralSecurityException { + public CertificateException(java.lang.String msg) { + throw new RuntimeException("Stub!"); + } + + public CertificateException() { + throw new RuntimeException("Stub!"); + } + + public CertificateException(java.lang.String message, java.lang.Throwable cause) { + throw new RuntimeException("Stub!"); + } + + public CertificateException(java.lang.Throwable cause) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/text/CharacterIterator.java b/core-stubs-mini/src/java/text/CharacterIterator.java new file mode 100644 index 0000000..da6dafe --- /dev/null +++ b/core-stubs-mini/src/java/text/CharacterIterator.java @@ -0,0 +1,41 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.text; + +public interface CharacterIterator extends java.lang.Cloneable { + public abstract java.lang.Object clone(); + + public abstract char current(); + + public abstract char first(); + + public abstract int getBeginIndex(); + + public abstract int getEndIndex(); + + public abstract int getIndex(); + + public abstract char last(); + + public abstract char next(); + + public abstract char previous(); + + public abstract char setIndex(int location); + + public static final char DONE = 65535; +} diff --git a/core-stubs-mini/src/java/util/AbstractCollection.java b/core-stubs-mini/src/java/util/AbstractCollection.java new file mode 100644 index 0000000..780bf98 --- /dev/null +++ b/core-stubs-mini/src/java/util/AbstractCollection.java @@ -0,0 +1,75 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.util; + +public abstract class AbstractCollection<E> implements java.util.Collection<E> { + protected AbstractCollection() { + throw new RuntimeException("Stub!"); + } + + public boolean add(E object) { + throw new RuntimeException("Stub!"); + } + + public boolean addAll(java.util.Collection<? extends E> collection) { + throw new RuntimeException("Stub!"); + } + + public void clear() { + throw new RuntimeException("Stub!"); + } + + public boolean contains(java.lang.Object object) { + throw new RuntimeException("Stub!"); + } + + public boolean containsAll(java.util.Collection<?> collection) { + throw new RuntimeException("Stub!"); + } + + public boolean isEmpty() { + throw new RuntimeException("Stub!"); + } + + public abstract java.util.Iterator<E> iterator(); + + public boolean remove(java.lang.Object object) { + throw new RuntimeException("Stub!"); + } + + public boolean removeAll(java.util.Collection<?> collection) { + throw new RuntimeException("Stub!"); + } + + public boolean retainAll(java.util.Collection<?> collection) { + throw new RuntimeException("Stub!"); + } + + public abstract int size(); + + public java.lang.Object[] toArray() { + throw new RuntimeException("Stub!"); + } + + public <T> T[] toArray(T[] contents) { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toString() { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/util/AbstractList.java b/core-stubs-mini/src/java/util/AbstractList.java new file mode 100644 index 0000000..eceaf89 --- /dev/null +++ b/core-stubs-mini/src/java/util/AbstractList.java @@ -0,0 +1,88 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.util; + +public abstract class AbstractList<E> extends java.util.AbstractCollection<E> implements + java.util.List<E> { + protected AbstractList() { + throw new RuntimeException("Stub!"); + } + + public void add(int location, E object) { + throw new RuntimeException("Stub!"); + } + + public boolean add(E object) { + throw new RuntimeException("Stub!"); + } + + public boolean addAll(int location, java.util.Collection<? extends E> collection) { + throw new RuntimeException("Stub!"); + } + + public void clear() { + throw new RuntimeException("Stub!"); + } + + public boolean equals(java.lang.Object object) { + throw new RuntimeException("Stub!"); + } + + public abstract E get(int location); + + public int hashCode() { + throw new RuntimeException("Stub!"); + } + + public int indexOf(java.lang.Object object) { + throw new RuntimeException("Stub!"); + } + + public java.util.Iterator<E> iterator() { + throw new RuntimeException("Stub!"); + } + + public int lastIndexOf(java.lang.Object object) { + throw new RuntimeException("Stub!"); + } + + public java.util.ListIterator<E> listIterator() { + throw new RuntimeException("Stub!"); + } + + public java.util.ListIterator<E> listIterator(int location) { + throw new RuntimeException("Stub!"); + } + + public E remove(int location) { + throw new RuntimeException("Stub!"); + } + + protected void removeRange(int start, int end) { + throw new RuntimeException("Stub!"); + } + + public E set(int location, E object) { + throw new RuntimeException("Stub!"); + } + + public java.util.List<E> subList(int start, int end) { + throw new RuntimeException("Stub!"); + } + + protected transient int modCount; +} diff --git a/core-stubs-mini/src/java/util/AbstractMap.java b/core-stubs-mini/src/java/util/AbstractMap.java new file mode 100644 index 0000000..4702181 --- /dev/null +++ b/core-stubs-mini/src/java/util/AbstractMap.java @@ -0,0 +1,154 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.util; + +public abstract class AbstractMap<K, V> implements java.util.Map<K, V> { + public static class SimpleImmutableEntry<K, V> implements java.util.Map.Entry<K, V>, + java.io.Serializable { + public SimpleImmutableEntry(K theKey, V theValue) { + throw new RuntimeException("Stub!"); + } + + public SimpleImmutableEntry(java.util.Map.Entry<? extends K, ? extends V> copyFrom) { + throw new RuntimeException("Stub!"); + } + + public K getKey() { + throw new RuntimeException("Stub!"); + } + + public V getValue() { + throw new RuntimeException("Stub!"); + } + + public V setValue(V object) { + throw new RuntimeException("Stub!"); + } + + public boolean equals(java.lang.Object object) { + throw new RuntimeException("Stub!"); + } + + public int hashCode() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toString() { + throw new RuntimeException("Stub!"); + } + } + public static class SimpleEntry<K, V> implements java.util.Map.Entry<K, V>, java.io.Serializable { + public SimpleEntry(K theKey, V theValue) { + throw new RuntimeException("Stub!"); + } + + public SimpleEntry(java.util.Map.Entry<? extends K, ? extends V> copyFrom) { + throw new RuntimeException("Stub!"); + } + + public K getKey() { + throw new RuntimeException("Stub!"); + } + + public V getValue() { + throw new RuntimeException("Stub!"); + } + + public V setValue(V object) { + throw new RuntimeException("Stub!"); + } + + public boolean equals(java.lang.Object object) { + throw new RuntimeException("Stub!"); + } + + public int hashCode() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toString() { + throw new RuntimeException("Stub!"); + } + } + + protected AbstractMap() { + throw new RuntimeException("Stub!"); + } + + public void clear() { + throw new RuntimeException("Stub!"); + } + + public boolean containsKey(java.lang.Object key) { + throw new RuntimeException("Stub!"); + } + + public boolean containsValue(java.lang.Object value) { + throw new RuntimeException("Stub!"); + } + + public abstract java.util.Set<java.util.Map.Entry<K, V>> entrySet(); + + public boolean equals(java.lang.Object object) { + throw new RuntimeException("Stub!"); + } + + public V get(java.lang.Object key) { + throw new RuntimeException("Stub!"); + } + + public int hashCode() { + throw new RuntimeException("Stub!"); + } + + public boolean isEmpty() { + throw new RuntimeException("Stub!"); + } + + public java.util.Set<K> keySet() { + throw new RuntimeException("Stub!"); + } + + public V put(K key, V value) { + throw new RuntimeException("Stub!"); + } + + public void putAll(java.util.Map<? extends K, ? extends V> map) { + throw new RuntimeException("Stub!"); + } + + public V remove(java.lang.Object key) { + throw new RuntimeException("Stub!"); + } + + public int size() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toString() { + throw new RuntimeException("Stub!"); + } + + public java.util.Collection<V> values() { + throw new RuntimeException("Stub!"); + } + + @java.lang.SuppressWarnings(value = {"unchecked"}) + protected java.lang.Object clone() throws java.lang.CloneNotSupportedException { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/util/AbstractSequentialList.java b/core-stubs-mini/src/java/util/AbstractSequentialList.java new file mode 100644 index 0000000..fa533c6 --- /dev/null +++ b/core-stubs-mini/src/java/util/AbstractSequentialList.java @@ -0,0 +1,49 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.util; + +public abstract class AbstractSequentialList<E> extends java.util.AbstractList<E> { + protected AbstractSequentialList() { + throw new RuntimeException("Stub!"); + } + + public void add(int location, E object) { + throw new RuntimeException("Stub!"); + } + + public boolean addAll(int location, java.util.Collection<? extends E> collection) { + throw new RuntimeException("Stub!"); + } + + public E get(int location) { + throw new RuntimeException("Stub!"); + } + + public java.util.Iterator<E> iterator() { + throw new RuntimeException("Stub!"); + } + + public abstract java.util.ListIterator<E> listIterator(int location); + + public E remove(int location) { + throw new RuntimeException("Stub!"); + } + + public E set(int location, E object) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/util/Collection.java b/core-stubs-mini/src/java/util/Collection.java new file mode 100644 index 0000000..63a242d --- /dev/null +++ b/core-stubs-mini/src/java/util/Collection.java @@ -0,0 +1,49 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.util; + +public interface Collection<E> extends java.lang.Iterable<E> { + public abstract boolean add(E object); + + public abstract boolean addAll(java.util.Collection<? extends E> collection); + + public abstract void clear(); + + public abstract boolean contains(java.lang.Object object); + + public abstract boolean containsAll(java.util.Collection<?> collection); + + public abstract boolean equals(java.lang.Object object); + + public abstract int hashCode(); + + public abstract boolean isEmpty(); + + public abstract java.util.Iterator<E> iterator(); + + public abstract boolean remove(java.lang.Object object); + + public abstract boolean removeAll(java.util.Collection<?> collection); + + public abstract boolean retainAll(java.util.Collection<?> collection); + + public abstract int size(); + + public abstract java.lang.Object[] toArray(); + + public abstract <T> T[] toArray(T[] array); +} diff --git a/core-stubs-mini/src/java/util/Comparator.java b/core-stubs-mini/src/java/util/Comparator.java new file mode 100644 index 0000000..c195bbd --- /dev/null +++ b/core-stubs-mini/src/java/util/Comparator.java @@ -0,0 +1,23 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.util; + +public interface Comparator<T> { + public abstract int compare(T lhs, T rhs); + + public abstract boolean equals(java.lang.Object object); +} diff --git a/core-stubs-mini/src/java/util/Date.java b/core-stubs-mini/src/java/util/Date.java new file mode 100644 index 0000000..21c8375 --- /dev/null +++ b/core-stubs-mini/src/java/util/Date.java @@ -0,0 +1,174 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.util; + +public class Date implements java.io.Serializable, java.lang.Cloneable, + java.lang.Comparable<java.util.Date> { + public Date() { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + public Date(int year, int month, int day) { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + public Date(int year, int month, int day, int hour, int minute) { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + public Date(int year, int month, int day, int hour, int minute, int second) { + throw new RuntimeException("Stub!"); + } + + public Date(long milliseconds) { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + public Date(java.lang.String string) { + throw new RuntimeException("Stub!"); + } + + public boolean after(java.util.Date date) { + throw new RuntimeException("Stub!"); + } + + public boolean before(java.util.Date date) { + throw new RuntimeException("Stub!"); + } + + public java.lang.Object clone() { + throw new RuntimeException("Stub!"); + } + + public int compareTo(java.util.Date date) { + throw new RuntimeException("Stub!"); + } + + public boolean equals(java.lang.Object object) { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + public int getDate() { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + public int getDay() { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + public int getHours() { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + public int getMinutes() { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + public int getMonth() { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + public int getSeconds() { + throw new RuntimeException("Stub!"); + } + + public long getTime() { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + public int getTimezoneOffset() { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + public int getYear() { + throw new RuntimeException("Stub!"); + } + + public int hashCode() { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + public static long parse(java.lang.String string) { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + public void setDate(int day) { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + public void setHours(int hour) { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + public void setMinutes(int minute) { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + public void setMonth(int month) { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + public void setSeconds(int second) { + throw new RuntimeException("Stub!"); + } + + public void setTime(long milliseconds) { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + public void setYear(int year) { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + public java.lang.String toGMTString() { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + public java.lang.String toLocaleString() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String toString() { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + public static long UTC(int year, int month, int day, int hour, int minute, int second) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/util/Deque.java b/core-stubs-mini/src/java/util/Deque.java new file mode 100644 index 0000000..f0ffdfb --- /dev/null +++ b/core-stubs-mini/src/java/util/Deque.java @@ -0,0 +1,73 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.util; + +public interface Deque<E> extends java.util.Queue<E> { + public abstract void addFirst(E e); + + public abstract void addLast(E e); + + public abstract boolean offerFirst(E e); + + public abstract boolean offerLast(E e); + + public abstract E removeFirst(); + + public abstract E removeLast(); + + public abstract E pollFirst(); + + public abstract E pollLast(); + + public abstract E getFirst(); + + public abstract E getLast(); + + public abstract E peekFirst(); + + public abstract E peekLast(); + + public abstract boolean removeFirstOccurrence(java.lang.Object o); + + public abstract boolean removeLastOccurrence(java.lang.Object o); + + public abstract boolean add(E e); + + public abstract boolean offer(E e); + + public abstract E remove(); + + public abstract E poll(); + + public abstract E element(); + + public abstract E peek(); + + public abstract void push(E e); + + public abstract E pop(); + + public abstract boolean remove(java.lang.Object o); + + public abstract boolean contains(java.lang.Object o); + + public abstract int size(); + + public abstract java.util.Iterator<E> iterator(); + + public abstract java.util.Iterator<E> descendingIterator(); +} diff --git a/core-stubs-mini/src/java/util/Dictionary.java b/core-stubs-mini/src/java/util/Dictionary.java new file mode 100644 index 0000000..45cc6c3 --- /dev/null +++ b/core-stubs-mini/src/java/util/Dictionary.java @@ -0,0 +1,37 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.util; + +public abstract class Dictionary<K, V> { + public Dictionary() { + throw new RuntimeException("Stub!"); + } + + public abstract java.util.Enumeration<V> elements(); + + public abstract V get(java.lang.Object key); + + public abstract boolean isEmpty(); + + public abstract java.util.Enumeration<K> keys(); + + public abstract V put(K key, V value); + + public abstract V remove(java.lang.Object key); + + public abstract int size(); +} diff --git a/core-stubs-mini/src/java/util/Enumeration.java b/core-stubs-mini/src/java/util/Enumeration.java new file mode 100644 index 0000000..dd05983 --- /dev/null +++ b/core-stubs-mini/src/java/util/Enumeration.java @@ -0,0 +1,23 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.util; + +public interface Enumeration<E> { + public abstract boolean hasMoreElements(); + + public abstract E nextElement(); +} diff --git a/core-stubs-mini/src/java/util/HashMap.java b/core-stubs-mini/src/java/util/HashMap.java new file mode 100644 index 0000000..29454ea --- /dev/null +++ b/core-stubs-mini/src/java/util/HashMap.java @@ -0,0 +1,90 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.util; + +public class HashMap<K, V> extends java.util.AbstractMap<K, V> implements java.lang.Cloneable, + java.io.Serializable { + @java.lang.SuppressWarnings(value = {"unchecked"}) + public HashMap() { + throw new RuntimeException("Stub!"); + } + + public HashMap(int capacity) { + throw new RuntimeException("Stub!"); + } + + public HashMap(int capacity, float loadFactor) { + throw new RuntimeException("Stub!"); + } + + public HashMap(java.util.Map<? extends K, ? extends V> map) { + throw new RuntimeException("Stub!"); + } + + @java.lang.SuppressWarnings(value = {"unchecked"}) + public java.lang.Object clone() { + throw new RuntimeException("Stub!"); + } + + public boolean isEmpty() { + throw new RuntimeException("Stub!"); + } + + public int size() { + throw new RuntimeException("Stub!"); + } + + public V get(java.lang.Object key) { + throw new RuntimeException("Stub!"); + } + + public boolean containsKey(java.lang.Object key) { + throw new RuntimeException("Stub!"); + } + + public boolean containsValue(java.lang.Object value) { + throw new RuntimeException("Stub!"); + } + + public V put(K key, V value) { + throw new RuntimeException("Stub!"); + } + + public void putAll(java.util.Map<? extends K, ? extends V> map) { + throw new RuntimeException("Stub!"); + } + + public V remove(java.lang.Object key) { + throw new RuntimeException("Stub!"); + } + + public void clear() { + throw new RuntimeException("Stub!"); + } + + public java.util.Set<K> keySet() { + throw new RuntimeException("Stub!"); + } + + public java.util.Collection<V> values() { + throw new RuntimeException("Stub!"); + } + + public java.util.Set<java.util.Map.Entry<K, V>> entrySet() { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/util/Hashtable.java b/core-stubs-mini/src/java/util/Hashtable.java new file mode 100644 index 0000000..4c72313 --- /dev/null +++ b/core-stubs-mini/src/java/util/Hashtable.java @@ -0,0 +1,118 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.util; + +public class Hashtable<K, V> extends java.util.Dictionary<K, V> implements java.util.Map<K, V>, + java.lang.Cloneable, java.io.Serializable { + @java.lang.SuppressWarnings(value = {"unchecked"}) + public Hashtable() { + throw new RuntimeException("Stub!"); + } + + public Hashtable(int capacity) { + throw new RuntimeException("Stub!"); + } + + public Hashtable(int capacity, float loadFactor) { + throw new RuntimeException("Stub!"); + } + + public Hashtable(java.util.Map<? extends K, ? extends V> map) { + throw new RuntimeException("Stub!"); + } + + @java.lang.SuppressWarnings(value = {"unchecked"}) + public synchronized java.lang.Object clone() { + throw new RuntimeException("Stub!"); + } + + public synchronized boolean isEmpty() { + throw new RuntimeException("Stub!"); + } + + public synchronized int size() { + throw new RuntimeException("Stub!"); + } + + public synchronized V get(java.lang.Object key) { + throw new RuntimeException("Stub!"); + } + + public synchronized boolean containsKey(java.lang.Object key) { + throw new RuntimeException("Stub!"); + } + + public synchronized boolean containsValue(java.lang.Object value) { + throw new RuntimeException("Stub!"); + } + + public boolean contains(java.lang.Object value) { + throw new RuntimeException("Stub!"); + } + + public synchronized V put(K key, V value) { + throw new RuntimeException("Stub!"); + } + + public synchronized void putAll(java.util.Map<? extends K, ? extends V> map) { + throw new RuntimeException("Stub!"); + } + + protected void rehash() { + throw new RuntimeException("Stub!"); + } + + public synchronized V remove(java.lang.Object key) { + throw new RuntimeException("Stub!"); + } + + public synchronized void clear() { + throw new RuntimeException("Stub!"); + } + + public synchronized java.util.Set<K> keySet() { + throw new RuntimeException("Stub!"); + } + + public synchronized java.util.Collection<V> values() { + throw new RuntimeException("Stub!"); + } + + public synchronized java.util.Set<java.util.Map.Entry<K, V>> entrySet() { + throw new RuntimeException("Stub!"); + } + + public synchronized java.util.Enumeration<K> keys() { + throw new RuntimeException("Stub!"); + } + + public synchronized java.util.Enumeration<V> elements() { + throw new RuntimeException("Stub!"); + } + + public synchronized boolean equals(java.lang.Object object) { + throw new RuntimeException("Stub!"); + } + + public synchronized int hashCode() { + throw new RuntimeException("Stub!"); + } + + public synchronized java.lang.String toString() { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/util/InvalidPropertiesFormatException.java b/core-stubs-mini/src/java/util/InvalidPropertiesFormatException.java new file mode 100644 index 0000000..d34991b --- /dev/null +++ b/core-stubs-mini/src/java/util/InvalidPropertiesFormatException.java @@ -0,0 +1,27 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.util; + +public class InvalidPropertiesFormatException extends java.io.IOException { + public InvalidPropertiesFormatException(java.lang.String m) { + throw new RuntimeException("Stub!"); + } + + public InvalidPropertiesFormatException(java.lang.Throwable c) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/util/Iterator.java b/core-stubs-mini/src/java/util/Iterator.java new file mode 100644 index 0000000..d4f0e6c --- /dev/null +++ b/core-stubs-mini/src/java/util/Iterator.java @@ -0,0 +1,25 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.util; + +public interface Iterator<E> { + public abstract boolean hasNext(); + + public abstract E next(); + + public abstract void remove(); +} diff --git a/core-stubs-mini/src/java/util/LinkedList.java b/core-stubs-mini/src/java/util/LinkedList.java new file mode 100644 index 0000000..f9e9d08 --- /dev/null +++ b/core-stubs-mini/src/java/util/LinkedList.java @@ -0,0 +1,191 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.util; + +public class LinkedList<E> extends java.util.AbstractSequentialList<E> + implements + java.util.List<E>, + java.util.Deque<E>, + java.util.Queue<E>, + java.lang.Cloneable, + java.io.Serializable { + public LinkedList() { + throw new RuntimeException("Stub!"); + } + + public LinkedList(java.util.Collection<? extends E> collection) { + throw new RuntimeException("Stub!"); + } + + public void add(int location, E object) { + throw new RuntimeException("Stub!"); + } + + public boolean add(E object) { + throw new RuntimeException("Stub!"); + } + + public boolean addAll(int location, java.util.Collection<? extends E> collection) { + throw new RuntimeException("Stub!"); + } + + public boolean addAll(java.util.Collection<? extends E> collection) { + throw new RuntimeException("Stub!"); + } + + public void addFirst(E object) { + throw new RuntimeException("Stub!"); + } + + public void addLast(E object) { + throw new RuntimeException("Stub!"); + } + + public void clear() { + throw new RuntimeException("Stub!"); + } + + @java.lang.SuppressWarnings(value = {"unchecked"}) + public java.lang.Object clone() { + throw new RuntimeException("Stub!"); + } + + public boolean contains(java.lang.Object object) { + throw new RuntimeException("Stub!"); + } + + public E get(int location) { + throw new RuntimeException("Stub!"); + } + + public E getFirst() { + throw new RuntimeException("Stub!"); + } + + public E getLast() { + throw new RuntimeException("Stub!"); + } + + public int indexOf(java.lang.Object object) { + throw new RuntimeException("Stub!"); + } + + public int lastIndexOf(java.lang.Object object) { + throw new RuntimeException("Stub!"); + } + + public java.util.ListIterator<E> listIterator(int location) { + throw new RuntimeException("Stub!"); + } + + public E remove(int location) { + throw new RuntimeException("Stub!"); + } + + public boolean remove(java.lang.Object object) { + throw new RuntimeException("Stub!"); + } + + public E removeFirst() { + throw new RuntimeException("Stub!"); + } + + public E removeLast() { + throw new RuntimeException("Stub!"); + } + + public java.util.Iterator<E> descendingIterator() { + throw new RuntimeException("Stub!"); + } + + public boolean offerFirst(E e) { + throw new RuntimeException("Stub!"); + } + + public boolean offerLast(E e) { + throw new RuntimeException("Stub!"); + } + + public E peekFirst() { + throw new RuntimeException("Stub!"); + } + + public E peekLast() { + throw new RuntimeException("Stub!"); + } + + public E pollFirst() { + throw new RuntimeException("Stub!"); + } + + public E pollLast() { + throw new RuntimeException("Stub!"); + } + + public E pop() { + throw new RuntimeException("Stub!"); + } + + public void push(E e) { + throw new RuntimeException("Stub!"); + } + + public boolean removeFirstOccurrence(java.lang.Object o) { + throw new RuntimeException("Stub!"); + } + + public boolean removeLastOccurrence(java.lang.Object o) { + throw new RuntimeException("Stub!"); + } + + public E set(int location, E object) { + throw new RuntimeException("Stub!"); + } + + public int size() { + throw new RuntimeException("Stub!"); + } + + public boolean offer(E o) { + throw new RuntimeException("Stub!"); + } + + public E poll() { + throw new RuntimeException("Stub!"); + } + + public E remove() { + throw new RuntimeException("Stub!"); + } + + public E peek() { + throw new RuntimeException("Stub!"); + } + + public E element() { + throw new RuntimeException("Stub!"); + } + + public java.lang.Object[] toArray() { + throw new RuntimeException("Stub!"); + } + + @java.lang.SuppressWarnings(value = {"unchecked"}) + public <T> T[] toArray(T[] contents) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/util/List.java b/core-stubs-mini/src/java/util/List.java new file mode 100644 index 0000000..486f6ff --- /dev/null +++ b/core-stubs-mini/src/java/util/List.java @@ -0,0 +1,69 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.util; + +public interface List<E> extends java.util.Collection<E> { + public abstract void add(int location, E object); + + public abstract boolean add(E object); + + public abstract boolean addAll(int location, java.util.Collection<? extends E> collection); + + public abstract boolean addAll(java.util.Collection<? extends E> collection); + + public abstract void clear(); + + public abstract boolean contains(java.lang.Object object); + + public abstract boolean containsAll(java.util.Collection<?> collection); + + public abstract boolean equals(java.lang.Object object); + + public abstract E get(int location); + + public abstract int hashCode(); + + public abstract int indexOf(java.lang.Object object); + + public abstract boolean isEmpty(); + + public abstract java.util.Iterator<E> iterator(); + + public abstract int lastIndexOf(java.lang.Object object); + + public abstract java.util.ListIterator<E> listIterator(); + + public abstract java.util.ListIterator<E> listIterator(int location); + + public abstract E remove(int location); + + public abstract boolean remove(java.lang.Object object); + + public abstract boolean removeAll(java.util.Collection<?> collection); + + public abstract boolean retainAll(java.util.Collection<?> collection); + + public abstract E set(int location, E object); + + public abstract int size(); + + public abstract java.util.List<E> subList(int start, int end); + + public abstract java.lang.Object[] toArray(); + + public abstract <T> T[] toArray(T[] array); +} diff --git a/core-stubs-mini/src/java/util/ListIterator.java b/core-stubs-mini/src/java/util/ListIterator.java new file mode 100644 index 0000000..b0a5e19 --- /dev/null +++ b/core-stubs-mini/src/java/util/ListIterator.java @@ -0,0 +1,37 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.util; + +public interface ListIterator<E> extends java.util.Iterator<E> { + public abstract void add(E object); + + public abstract boolean hasNext(); + + public abstract boolean hasPrevious(); + + public abstract E next(); + + public abstract int nextIndex(); + + public abstract E previous(); + + public abstract int previousIndex(); + + public abstract void remove(); + + public abstract void set(E object); +} diff --git a/core-stubs-mini/src/java/util/Locale.java b/core-stubs-mini/src/java/util/Locale.java new file mode 100644 index 0000000..a27c52c --- /dev/null +++ b/core-stubs-mini/src/java/util/Locale.java @@ -0,0 +1,166 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.util; + +public final class Locale implements java.lang.Cloneable, java.io.Serializable { + public Locale(java.lang.String language) { + throw new RuntimeException("Stub!"); + } + + public Locale(java.lang.String language, java.lang.String country) { + throw new RuntimeException("Stub!"); + } + + public Locale(java.lang.String language, java.lang.String country, java.lang.String variant) { + throw new RuntimeException("Stub!"); + } + + public java.lang.Object clone() { + throw new RuntimeException("Stub!"); + } + + public boolean equals(java.lang.Object object) { + throw new RuntimeException("Stub!"); + } + + public static java.util.Locale[] getAvailableLocales() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getCountry() { + throw new RuntimeException("Stub!"); + } + + public static java.util.Locale getDefault() { + throw new RuntimeException("Stub!"); + } + + public final java.lang.String getDisplayCountry() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getDisplayCountry(java.util.Locale locale) { + throw new RuntimeException("Stub!"); + } + + public final java.lang.String getDisplayLanguage() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getDisplayLanguage(java.util.Locale locale) { + throw new RuntimeException("Stub!"); + } + + public final java.lang.String getDisplayName() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getDisplayName(java.util.Locale locale) { + throw new RuntimeException("Stub!"); + } + + public final java.lang.String getDisplayVariant() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getDisplayVariant(java.util.Locale locale) { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getISO3Country() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getISO3Language() { + throw new RuntimeException("Stub!"); + } + + public static java.lang.String[] getISOCountries() { + throw new RuntimeException("Stub!"); + } + + public static java.lang.String[] getISOLanguages() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getLanguage() { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getVariant() { + throw new RuntimeException("Stub!"); + } + + public synchronized int hashCode() { + throw new RuntimeException("Stub!"); + } + + public static synchronized void setDefault(java.util.Locale locale) { + throw new RuntimeException("Stub!"); + } + + public final java.lang.String toString() { + throw new RuntimeException("Stub!"); + } + + public static final java.util.Locale CANADA; + public static final java.util.Locale CANADA_FRENCH; + public static final java.util.Locale CHINA; + public static final java.util.Locale CHINESE; + public static final java.util.Locale ENGLISH; + public static final java.util.Locale FRANCE; + public static final java.util.Locale FRENCH; + public static final java.util.Locale GERMAN; + public static final java.util.Locale GERMANY; + public static final java.util.Locale ITALIAN; + public static final java.util.Locale ITALY; + public static final java.util.Locale JAPAN; + public static final java.util.Locale JAPANESE; + public static final java.util.Locale KOREA; + public static final java.util.Locale KOREAN; + public static final java.util.Locale PRC; + public static final java.util.Locale ROOT; + public static final java.util.Locale SIMPLIFIED_CHINESE; + public static final java.util.Locale TAIWAN; + public static final java.util.Locale TRADITIONAL_CHINESE; + public static final java.util.Locale UK; + public static final java.util.Locale US; + static { + CANADA = null; + CANADA_FRENCH = null; + CHINA = null; + CHINESE = null; + ENGLISH = null; + FRANCE = null; + FRENCH = null; + GERMAN = null; + GERMANY = null; + ITALIAN = null; + ITALY = null; + JAPAN = null; + JAPANESE = null; + KOREA = null; + KOREAN = null; + PRC = null; + ROOT = null; + SIMPLIFIED_CHINESE = null; + TAIWAN = null; + TRADITIONAL_CHINESE = null; + UK = null; + US = null; + } +} diff --git a/core-stubs-mini/src/java/util/Map.java b/core-stubs-mini/src/java/util/Map.java new file mode 100644 index 0000000..ce4b4cc --- /dev/null +++ b/core-stubs-mini/src/java/util/Map.java @@ -0,0 +1,59 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.util; + +public interface Map<K, V> { + public static interface Entry<K, V> { + public abstract boolean equals(java.lang.Object object); + + public abstract K getKey(); + + public abstract V getValue(); + + public abstract int hashCode(); + + public abstract V setValue(V object); + } + + public abstract void clear(); + + public abstract boolean containsKey(java.lang.Object key); + + public abstract boolean containsValue(java.lang.Object value); + + public abstract java.util.Set<java.util.Map.Entry<K, V>> entrySet(); + + public abstract boolean equals(java.lang.Object object); + + public abstract V get(java.lang.Object key); + + public abstract int hashCode(); + + public abstract boolean isEmpty(); + + public abstract java.util.Set<K> keySet(); + + public abstract V put(K key, V value); + + public abstract void putAll(java.util.Map<? extends K, ? extends V> map); + + public abstract V remove(java.lang.Object key); + + public abstract int size(); + + public abstract java.util.Collection<V> values(); +} diff --git a/core-stubs-mini/src/java/util/Properties.java b/core-stubs-mini/src/java/util/Properties.java new file mode 100644 index 0000000..ec85ac7 --- /dev/null +++ b/core-stubs-mini/src/java/util/Properties.java @@ -0,0 +1,96 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.util; + +public class Properties extends java.util.Hashtable<java.lang.Object, java.lang.Object> { + public Properties() { + throw new RuntimeException("Stub!"); + } + + public Properties(java.util.Properties properties) { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getProperty(java.lang.String name) { + throw new RuntimeException("Stub!"); + } + + public java.lang.String getProperty(java.lang.String name, java.lang.String defaultValue) { + throw new RuntimeException("Stub!"); + } + + public void list(java.io.PrintStream out) { + throw new RuntimeException("Stub!"); + } + + public void list(java.io.PrintWriter out) { + throw new RuntimeException("Stub!"); + } + + public synchronized void load(java.io.InputStream in) throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + @java.lang.SuppressWarnings(value = {"fallthrough"}) + public synchronized void load(java.io.Reader in) throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + public java.util.Enumeration<?> propertyNames() { + throw new RuntimeException("Stub!"); + } + + public java.util.Set<java.lang.String> stringPropertyNames() { + throw new RuntimeException("Stub!"); + } + + @java.lang.Deprecated() + public void save(java.io.OutputStream out, java.lang.String comment) { + throw new RuntimeException("Stub!"); + } + + public java.lang.Object setProperty(java.lang.String name, java.lang.String value) { + throw new RuntimeException("Stub!"); + } + + public synchronized void store(java.io.OutputStream out, java.lang.String comment) + throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + public synchronized void store(java.io.Writer writer, java.lang.String comment) + throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + public synchronized void loadFromXML(java.io.InputStream in) throws java.io.IOException, + java.util.InvalidPropertiesFormatException { + throw new RuntimeException("Stub!"); + } + + public void storeToXML(java.io.OutputStream os, java.lang.String comment) + throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + public synchronized void storeToXML(java.io.OutputStream os, java.lang.String comment, + java.lang.String encoding) throws java.io.IOException { + throw new RuntimeException("Stub!"); + } + + protected java.util.Properties defaults; +} diff --git a/core-stubs-mini/src/java/util/Queue.java b/core-stubs-mini/src/java/util/Queue.java new file mode 100644 index 0000000..b890544 --- /dev/null +++ b/core-stubs-mini/src/java/util/Queue.java @@ -0,0 +1,31 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.util; + +public interface Queue<E> extends java.util.Collection<E> { + public abstract boolean add(E e); + + public abstract boolean offer(E e); + + public abstract E remove(); + + public abstract E poll(); + + public abstract E element(); + + public abstract E peek(); +} diff --git a/core-stubs-mini/src/java/util/Random.java b/core-stubs-mini/src/java/util/Random.java new file mode 100644 index 0000000..4c4b11e --- /dev/null +++ b/core-stubs-mini/src/java/util/Random.java @@ -0,0 +1,67 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.util; + +public class Random implements java.io.Serializable { + public Random() { + throw new RuntimeException("Stub!"); + } + + public Random(long seed) { + throw new RuntimeException("Stub!"); + } + + protected synchronized int next(int bits) { + throw new RuntimeException("Stub!"); + } + + public boolean nextBoolean() { + throw new RuntimeException("Stub!"); + } + + public void nextBytes(byte[] buf) { + throw new RuntimeException("Stub!"); + } + + public double nextDouble() { + throw new RuntimeException("Stub!"); + } + + public float nextFloat() { + throw new RuntimeException("Stub!"); + } + + public synchronized double nextGaussian() { + throw new RuntimeException("Stub!"); + } + + public int nextInt() { + throw new RuntimeException("Stub!"); + } + + public int nextInt(int n) { + throw new RuntimeException("Stub!"); + } + + public long nextLong() { + throw new RuntimeException("Stub!"); + } + + public synchronized void setSeed(long seed) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/util/Set.java b/core-stubs-mini/src/java/util/Set.java new file mode 100644 index 0000000..0b06889 --- /dev/null +++ b/core-stubs-mini/src/java/util/Set.java @@ -0,0 +1,49 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.util; + +public interface Set<E> extends java.util.Collection<E> { + public abstract boolean add(E object); + + public abstract boolean addAll(java.util.Collection<? extends E> collection); + + public abstract void clear(); + + public abstract boolean contains(java.lang.Object object); + + public abstract boolean containsAll(java.util.Collection<?> collection); + + public abstract boolean equals(java.lang.Object object); + + public abstract int hashCode(); + + public abstract boolean isEmpty(); + + public abstract java.util.Iterator<E> iterator(); + + public abstract boolean remove(java.lang.Object object); + + public abstract boolean removeAll(java.util.Collection<?> collection); + + public abstract boolean retainAll(java.util.Collection<?> collection); + + public abstract int size(); + + public abstract java.lang.Object[] toArray(); + + public abstract <T> T[] toArray(T[] array); +} diff --git a/core-stubs-mini/src/java/util/SortedMap.java b/core-stubs-mini/src/java/util/SortedMap.java new file mode 100644 index 0000000..4ea30f4 --- /dev/null +++ b/core-stubs-mini/src/java/util/SortedMap.java @@ -0,0 +1,31 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.util; + +public interface SortedMap<K, V> extends java.util.Map<K, V> { + public abstract java.util.Comparator<? super K> comparator(); + + public abstract K firstKey(); + + public abstract java.util.SortedMap<K, V> headMap(K endKey); + + public abstract K lastKey(); + + public abstract java.util.SortedMap<K, V> subMap(K startKey, K endKey); + + public abstract java.util.SortedMap<K, V> tailMap(K startKey); +} diff --git a/core-stubs-mini/src/java/util/concurrent/atomic/AtomicIntegerFieldUpdater.java b/core-stubs-mini/src/java/util/concurrent/atomic/AtomicIntegerFieldUpdater.java new file mode 100644 index 0000000..35ea368 --- /dev/null +++ b/core-stubs-mini/src/java/util/concurrent/atomic/AtomicIntegerFieldUpdater.java @@ -0,0 +1,66 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.util.concurrent.atomic; + +public abstract class AtomicIntegerFieldUpdater<T> { + protected AtomicIntegerFieldUpdater() { + throw new RuntimeException("Stub!"); + } + + public static <U> java.util.concurrent.atomic.AtomicIntegerFieldUpdater<U> newUpdater( + java.lang.Class<U> tclass, java.lang.String fieldName) { + throw new RuntimeException("Stub!"); + } + + public abstract boolean compareAndSet(T obj, int expect, int update); + + public abstract boolean weakCompareAndSet(T obj, int expect, int update); + + public abstract void set(T obj, int newValue); + + public abstract void lazySet(T obj, int newValue); + + public abstract int get(T obj); + + public int getAndSet(T obj, int newValue) { + throw new RuntimeException("Stub!"); + } + + public int getAndIncrement(T obj) { + throw new RuntimeException("Stub!"); + } + + public int getAndDecrement(T obj) { + throw new RuntimeException("Stub!"); + } + + public int getAndAdd(T obj, int delta) { + throw new RuntimeException("Stub!"); + } + + public int incrementAndGet(T obj) { + throw new RuntimeException("Stub!"); + } + + public int decrementAndGet(T obj) { + throw new RuntimeException("Stub!"); + } + + public int addAndGet(T obj, int delta) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/util/concurrent/atomic/AtomicLongFieldUpdater.java b/core-stubs-mini/src/java/util/concurrent/atomic/AtomicLongFieldUpdater.java new file mode 100644 index 0000000..d74dfbe --- /dev/null +++ b/core-stubs-mini/src/java/util/concurrent/atomic/AtomicLongFieldUpdater.java @@ -0,0 +1,66 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.util.concurrent.atomic; + +public abstract class AtomicLongFieldUpdater<T> { + protected AtomicLongFieldUpdater() { + throw new RuntimeException("Stub!"); + } + + public static <U> java.util.concurrent.atomic.AtomicLongFieldUpdater<U> newUpdater( + java.lang.Class<U> tclass, java.lang.String fieldName) { + throw new RuntimeException("Stub!"); + } + + public abstract boolean compareAndSet(T obj, long expect, long update); + + public abstract boolean weakCompareAndSet(T obj, long expect, long update); + + public abstract void set(T obj, long newValue); + + public abstract void lazySet(T obj, long newValue); + + public abstract long get(T obj); + + public long getAndSet(T obj, long newValue) { + throw new RuntimeException("Stub!"); + } + + public long getAndIncrement(T obj) { + throw new RuntimeException("Stub!"); + } + + public long getAndDecrement(T obj) { + throw new RuntimeException("Stub!"); + } + + public long getAndAdd(T obj, long delta) { + throw new RuntimeException("Stub!"); + } + + public long incrementAndGet(T obj) { + throw new RuntimeException("Stub!"); + } + + public long decrementAndGet(T obj) { + throw new RuntimeException("Stub!"); + } + + public long addAndGet(T obj, long delta) { + throw new RuntimeException("Stub!"); + } +} diff --git a/core-stubs-mini/src/java/util/concurrent/atomic/AtomicReferenceFieldUpdater.java b/core-stubs-mini/src/java/util/concurrent/atomic/AtomicReferenceFieldUpdater.java new file mode 100644 index 0000000..332e65f --- /dev/null +++ b/core-stubs-mini/src/java/util/concurrent/atomic/AtomicReferenceFieldUpdater.java @@ -0,0 +1,42 @@ +/* +* Copyright (C) 2014 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package java.util.concurrent.atomic; + +public abstract class AtomicReferenceFieldUpdater<T, V> { + protected AtomicReferenceFieldUpdater() { + throw new RuntimeException("Stub!"); + } + + public static <U, W> java.util.concurrent.atomic.AtomicReferenceFieldUpdater<U, W> newUpdater( + java.lang.Class<U> tclass, java.lang.Class<W> vclass, java.lang.String fieldName) { + throw new RuntimeException("Stub!"); + } + + public abstract boolean compareAndSet(T obj, V expect, V update); + + public abstract boolean weakCompareAndSet(T obj, V expect, V update); + + public abstract void set(T obj, V newValue); + + public abstract void lazySet(T obj, V newValue); + + public abstract V get(T obj); + + public V getAndSet(T obj, V newValue) { + throw new RuntimeException("Stub!"); + } +} |