├── .gitignore ├── target ├── board │ ├── sim │ │ ├── AndroidBoard.mk │ │ └── BoardConfig.mk │ ├── generic │ │ ├── system.prop │ │ ├── AndroidBoard.mk │ │ ├── README.txt │ │ ├── BoardConfig.mk │ │ └── tuttle2.kl │ ├── generic_x86 │ │ ├── buildspec-generic_x86.mk │ │ ├── AndroidBoard.mk │ │ ├── BoardConfig.mk │ │ ├── disk_layout.conf │ │ └── README.txt │ ├── emulator │ │ ├── AndroidBoard.mk │ │ ├── BoardConfig.mk │ │ ├── README.txt │ │ └── tuttle2.kl │ └── Android.mk └── product │ ├── security │ ├── media.pk8 │ ├── shared.pk8 │ ├── testkey.pk8 │ ├── platform.pk8 │ ├── superuser.pk8 │ ├── superuser.x509.pem │ ├── media.x509.pem │ ├── platform.x509.pem │ ├── shared.x509.pem │ ├── testkey.x509.pem │ └── README │ ├── sim.mk │ ├── generic_x86.mk │ ├── languages_small.mk │ ├── AndroidProducts.mk │ ├── generic.mk │ ├── languages_full.mk │ └── full.mk ├── core ├── process_wrapper_gdb.cmds ├── raw_static_library.mk ├── root.mk ├── apicheck_msg_last.txt ├── combo │ ├── arch │ │ └── arm │ │ │ ├── armv5te-vfp.mk │ │ │ ├── armv5te.mk │ │ │ ├── armv7-a.mk │ │ │ ├── armv7-a-neon.mk │ │ │ └── armv4t.mk │ ├── javac.mk │ └── HOST_linux-x86.mk ├── filter_symbols.sh ├── find-jdk-tools-jar.sh ├── apicheck_msg_current.txt ├── process_wrapper.sh ├── proguard_tests.flags ├── host_executable.mk ├── host_prebuilt.mk ├── process_wrapper_gdb.sh ├── host_static_library.mk ├── copy_headers.mk ├── key_char_map.mk ├── static_library.mk ├── raw_executable.mk ├── host_shared_library.mk ├── static_java_library.mk ├── executable.mk ├── build_id.mk └── tasks │ └── product-graph.mk ├── tools ├── droiddoc │ ├── templates-pdk │ │ ├── assets │ │ │ ├── placeholder │ │ │ ├── favicon.ico │ │ │ └── images │ │ │ │ └── rebox-gradient.gif │ │ ├── data.hdf │ │ └── head_tag.cs │ ├── templates-sdk │ │ ├── assets-sdk │ │ │ └── placeholder │ │ └── data.hdf │ ├── templates │ │ ├── doctype.cs │ │ ├── navtree_data.cs │ │ ├── header.cs │ │ ├── package-list.cs │ │ ├── assets │ │ │ ├── jdiff_logo.gif │ │ │ ├── images │ │ │ │ ├── bg_fade.jpg │ │ │ │ ├── bg_logo.png │ │ │ │ ├── left_on.jpg │ │ │ │ ├── slide_1.jpg │ │ │ │ ├── slide_2.jpg │ │ │ │ ├── slide_3.jpg │ │ │ │ ├── spacer.gif │ │ │ │ ├── home │ │ │ │ │ ├── tv_l.png │ │ │ │ │ ├── tv_s.png │ │ │ │ │ ├── IO-logo.png │ │ │ │ │ ├── adc2_l.png │ │ │ │ │ ├── adc2_s.png │ │ │ │ │ ├── gdc-logo.png │ │ │ │ │ ├── io-large.png │ │ │ │ │ ├── io-small.png │ │ │ │ │ ├── maps-large.png │ │ │ │ │ ├── maps-small.png │ │ │ │ │ ├── sdk-large.png │ │ │ │ │ ├── sdk-small.png │ │ │ │ │ ├── android_adc.png │ │ │ │ │ ├── gingerdroid.png │ │ │ │ │ ├── market-large.png │ │ │ │ │ ├── market-small.png │ │ │ │ │ ├── bg_home_bottom.jpg │ │ │ │ │ ├── devphone-large.png │ │ │ │ │ ├── devphone-small.png │ │ │ │ │ ├── donut-android.png │ │ │ │ │ ├── eclair-android.png │ │ │ │ │ ├── froyo-android.png │ │ │ │ │ ├── Android_Dev_Lab_l.png │ │ │ │ │ ├── bg_home_carousel.png │ │ │ │ │ ├── bg_home_announcement.png │ │ │ │ │ ├── bg_home_carousel_board.png │ │ │ │ │ ├── bg_home_carousel_wheel.png │ │ │ │ │ └── carousel_buttons_sprite.png │ │ │ │ ├── icon_robot.jpg │ │ │ │ ├── icon_world.jpg │ │ │ │ ├── left_off.jpg │ │ │ │ ├── right_off.jpg │ │ │ │ ├── right_on.jpg │ │ │ │ ├── slide_off.jpg │ │ │ │ ├── slide_on.jpg │ │ │ │ ├── grad-rule-qv.png │ │ │ │ ├── hr_gray_main.jpg │ │ │ │ ├── hr_gray_side.jpg │ │ │ │ ├── icon_market.jpg │ │ │ │ ├── open_source.png │ │ │ │ ├── preliminary.png │ │ │ │ ├── resizable-e.gif │ │ │ │ ├── resizable-e2.gif │ │ │ │ ├── resizable-eg.gif │ │ │ │ ├── resizable-s.gif │ │ │ │ ├── resizable-s2.gif │ │ │ │ ├── resizable-sg.gif │ │ │ │ ├── sidenav-rule.png │ │ │ │ ├── video-droid.png │ │ │ │ ├── android_wrench.png │ │ │ │ ├── arrow_left_off.jpg │ │ │ │ ├── arrow_left_on.jpg │ │ │ │ ├── arrow_right_off.jpg │ │ │ │ ├── arrow_right_on.jpg │ │ │ │ ├── body-gradient.png │ │ │ │ ├── developers-logo.png │ │ │ │ ├── icon_contribute.jpg │ │ │ │ ├── icon_download.jpg │ │ │ │ ├── icon_download2.jpg │ │ │ │ ├── slide_large_1.jpg │ │ │ │ ├── slide_large_2.jpg │ │ │ │ ├── slide_large_3.jpg │ │ │ │ ├── triangle-closed.png │ │ │ │ ├── triangle-opened.png │ │ │ │ ├── uiguidelines1.png │ │ │ │ ├── arrow_bluelink_up.png │ │ │ │ ├── bg_images_sprite.png │ │ │ │ ├── body-gradient-tab.png │ │ │ │ ├── logo_breadcrumbz.jpg │ │ │ │ ├── arrow_bluelink_down.png │ │ │ │ ├── bg_community_leftDiv.jpg │ │ │ │ ├── icon_guidelines_logo.png │ │ │ │ ├── triangle-closed-small.png │ │ │ │ ├── triangle-opened-small.png │ │ │ │ └── android-developers-logo.png │ │ │ ├── triangle-none.gif │ │ │ └── android-developer-docs-devguide.css │ │ ├── index.cs │ │ ├── lists.cs │ │ ├── footer.cs │ │ ├── nosidenavpage.cs │ │ ├── trailer.cs │ │ ├── sample.cs │ │ ├── package-descr.cs │ │ ├── keywords.cs │ │ ├── docpage.cs │ │ ├── packages.cs │ │ ├── customization.cs │ │ ├── classes.cs │ │ ├── head_tag.cs │ │ ├── package.cs │ │ ├── sampleindex.cs │ │ └── hierarchy.cs │ ├── test │ │ ├── stubs │ │ │ ├── expected │ │ │ │ └── com │ │ │ │ │ └── android │ │ │ │ │ └── stubs │ │ │ │ │ ├── a │ │ │ │ │ ├── SomeInterface.java │ │ │ │ │ └── A.java │ │ │ │ │ ├── SomeEnum.java │ │ │ │ │ ├── b │ │ │ │ │ └── B.java │ │ │ │ │ ├── InterfaceEnum.java │ │ │ │ │ ├── Annot.java │ │ │ │ │ ├── Parent.java │ │ │ │ │ └── Types.java │ │ │ ├── src │ │ │ │ └── com │ │ │ │ │ └── android │ │ │ │ │ └── stubs │ │ │ │ │ ├── SomeEnum.java │ │ │ │ │ ├── a │ │ │ │ │ ├── SomeInterface.java │ │ │ │ │ └── A.java │ │ │ │ │ ├── hidden │ │ │ │ │ ├── PackagePrivate.java │ │ │ │ │ ├── Hidden.java │ │ │ │ │ └── HiddenOuter.java │ │ │ │ │ ├── b │ │ │ │ │ └── B.java │ │ │ │ │ ├── InterfaceEnum.java │ │ │ │ │ └── Annot.java │ │ │ ├── Android.mk │ │ │ └── run.sh │ │ └── generics │ │ │ ├── src │ │ │ └── com │ │ │ │ └── android │ │ │ │ └── generics │ │ │ │ ├── Adapter.java │ │ │ │ ├── Iface.java │ │ │ │ ├── ListAdapter.java │ │ │ │ ├── TestComparable.java │ │ │ │ ├── AdapterView.java │ │ │ │ ├── Bar.java │ │ │ │ ├── AbsListView.java │ │ │ │ ├── TestEnum.java │ │ │ │ ├── Foo.java │ │ │ │ └── FooBar.java │ │ │ └── Android.mk │ ├── Android.mk │ └── src │ │ ├── ContainerInfo.java │ │ ├── Scoped.java │ │ ├── TextTagInfo.java │ │ ├── InheritedTags.java │ │ ├── Sorter.java │ │ ├── LiteralTagInfo.java │ │ ├── KeywordEntry.java │ │ ├── DocInfo.java │ │ ├── Android.mk │ │ └── AnnotationInstanceInfo.java ├── signapk │ ├── SignApk.mf │ ├── test │ │ └── run │ └── Android.mk ├── apicheck │ ├── src │ │ ├── MANIFEST.mf │ │ ├── com │ │ │ └── android │ │ │ │ └── apicheck │ │ │ │ ├── AbstractMethodInfo.java │ │ │ │ └── ParameterInfo.java │ │ └── Android.mk │ ├── etc │ │ └── apicheck │ └── Android.mk ├── print_module_licenses.sh ├── fs_get_stats │ ├── Android.mk │ └── fs_get_stats.c ├── isprelinked │ ├── prelink_info.h │ ├── common.h │ ├── Android.mk │ └── debug.c ├── lsd │ ├── lsd.h │ ├── cmdline.h │ ├── common.h │ ├── hash.h │ ├── hash.c │ ├── Android.mk │ └── debug.c ├── atree │ ├── fs.h │ ├── options.h │ ├── Android.mk │ └── files.h ├── apriori │ ├── prelink_info.h │ ├── prelinkmap.h │ ├── hash.h │ ├── apriori.h │ ├── tweak.h │ ├── cmdline.h │ ├── source.c │ ├── common.h │ ├── hash.c │ ├── debug.c │ └── Android.mk ├── soslim │ ├── prelink_info.h │ ├── cmdline.h │ ├── soslim.h │ ├── common.c │ ├── debug.c │ ├── Android.mk │ ├── common.h │ └── symfilter.h ├── kcm │ └── Android.mk ├── fixlinebreaks.sh ├── rgb2565 │ └── Android.mk ├── iself │ ├── Android.mk │ └── iself.c ├── acp │ ├── Android.mk │ └── README ├── zipalign │ ├── Android.mk │ └── README.txt ├── bin2asm │ ├── Android.mk │ ├── data │ └── icudata.c ├── Android.mk ├── fs_config │ └── Android.mk ├── check_prereq │ ├── Android.mk │ └── check_prereq.c ├── fileslist.py ├── mktarball.sh └── buildinfo.sh ├── .DS_Store └── libs └── host ├── include └── host │ ├── pseudolocalize.h │ ├── Directories.h │ └── CopyFile.h ├── Android.mk └── list.java /.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | -------------------------------------------------------------------------------- /target/board/sim/AndroidBoard.mk: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /core/process_wrapper_gdb.cmds: -------------------------------------------------------------------------------- 1 | run 2 | -------------------------------------------------------------------------------- /tools/droiddoc/templates-pdk/assets/placeholder: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tools/droiddoc/templates-sdk/assets-sdk/placeholder: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tools/droiddoc/templates/doctype.cs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tools/signapk/SignApk.mf: -------------------------------------------------------------------------------- 1 | Main-Class: com.android.signapk.SignApk 2 | -------------------------------------------------------------------------------- /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/.DS_Store -------------------------------------------------------------------------------- /tools/droiddoc/templates-pdk/data.hdf: -------------------------------------------------------------------------------- 1 | template { 2 | which = normal 3 | } 4 | 5 | -------------------------------------------------------------------------------- /tools/droiddoc/templates-sdk/data.hdf: -------------------------------------------------------------------------------- 1 | template { 2 | which = normal 3 | } 4 | 5 | -------------------------------------------------------------------------------- /tools/apicheck/src/MANIFEST.mf: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Main-Class: com.android.apicheck.ApiCheck 3 | -------------------------------------------------------------------------------- /tools/droiddoc/templates/navtree_data.cs: -------------------------------------------------------------------------------- 1 | var NAVTREE_DATA = 2 | 3 | ; 4 | 5 | -------------------------------------------------------------------------------- /core/raw_static_library.mk: -------------------------------------------------------------------------------- 1 | 2 | LOCAL_RAW_STATIC_LIBRARY:=true 3 | 4 | include $(BUILD_STATIC_LIBRARY) 5 | 6 | -------------------------------------------------------------------------------- /core/root.mk: -------------------------------------------------------------------------------- 1 | ### DO NOT EDIT THIS FILE ### 2 | include build/core/main.mk 3 | ### DO NOT EDIT THIS FILE ### 4 | -------------------------------------------------------------------------------- /tools/droiddoc/templates/header.cs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /tools/droiddoc/templates/package-list.cs: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /target/product/security/media.pk8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/target/product/security/media.pk8 -------------------------------------------------------------------------------- /target/product/security/shared.pk8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/target/product/security/shared.pk8 -------------------------------------------------------------------------------- /target/product/security/testkey.pk8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/target/product/security/testkey.pk8 -------------------------------------------------------------------------------- /target/product/security/platform.pk8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/target/product/security/platform.pk8 -------------------------------------------------------------------------------- /target/product/security/superuser.pk8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/target/product/security/superuser.pk8 -------------------------------------------------------------------------------- /tools/droiddoc/templates-pdk/assets/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates-pdk/assets/favicon.ico -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/jdiff_logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/jdiff_logo.gif -------------------------------------------------------------------------------- /tools/droiddoc/test/stubs/expected/com/android/stubs/a/SomeInterface.java: -------------------------------------------------------------------------------- 1 | package com.android.stubs.a; 2 | public interface SomeInterface 3 | { 4 | } 5 | -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/bg_fade.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/bg_fade.jpg -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/bg_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/bg_logo.png -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/left_on.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/left_on.jpg -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/slide_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/slide_1.jpg -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/slide_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/slide_2.jpg -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/slide_3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/slide_3.jpg -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/spacer.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/spacer.gif -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/triangle-none.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/triangle-none.gif -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/home/tv_l.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/home/tv_l.png -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/home/tv_s.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/home/tv_s.png -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/icon_robot.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/icon_robot.jpg -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/icon_world.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/icon_world.jpg -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/left_off.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/left_off.jpg -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/right_off.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/right_off.jpg -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/right_on.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/right_on.jpg -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/slide_off.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/slide_off.jpg -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/slide_on.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/slide_on.jpg -------------------------------------------------------------------------------- /tools/droiddoc/test/stubs/expected/com/android/stubs/SomeEnum.java: -------------------------------------------------------------------------------- 1 | package com.android.stubs; 2 | public enum SomeEnum 3 | { 4 | A(), 5 | B(), 6 | C(); 7 | } 8 | -------------------------------------------------------------------------------- /target/board/generic/system.prop: -------------------------------------------------------------------------------- 1 | # 2 | # system.prop for generic sdk 3 | # 4 | 5 | rild.libpath=/system/lib/libreference-ril.so 6 | rild.libargs=-d /dev/ttyS0 7 | -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/grad-rule-qv.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/grad-rule-qv.png -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/home/IO-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/home/IO-logo.png -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/home/adc2_l.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/home/adc2_l.png -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/home/adc2_s.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/home/adc2_s.png -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/hr_gray_main.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/hr_gray_main.jpg -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/hr_gray_side.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/hr_gray_side.jpg -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/icon_market.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/icon_market.jpg -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/open_source.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/open_source.png -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/preliminary.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/preliminary.png -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/resizable-e.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/resizable-e.gif -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/resizable-e2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/resizable-e2.gif -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/resizable-eg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/resizable-eg.gif -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/resizable-s.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/resizable-s.gif -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/resizable-s2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/resizable-s2.gif -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/resizable-sg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/resizable-sg.gif -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/sidenav-rule.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/sidenav-rule.png -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/video-droid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/video-droid.png -------------------------------------------------------------------------------- /tools/print_module_licenses.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | find . -name MODULE_LICENSE_\* | sed 's/\/MODULE_LICENSE_/\ /' | sed 's/\.\///' | awk '{ print $2 " " $1; }' | sort 3 | -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/android_wrench.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/android_wrench.png -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/arrow_left_off.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/arrow_left_off.jpg -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/arrow_left_on.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/arrow_left_on.jpg -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/arrow_right_off.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/arrow_right_off.jpg -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/arrow_right_on.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/arrow_right_on.jpg -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/body-gradient.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/body-gradient.png -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/developers-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/developers-logo.png -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/home/gdc-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/home/gdc-logo.png -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/home/io-large.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/home/io-large.png -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/home/io-small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/home/io-small.png -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/home/maps-large.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/home/maps-large.png -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/home/maps-small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/home/maps-small.png -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/home/sdk-large.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/home/sdk-large.png -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/home/sdk-small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/home/sdk-small.png -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/icon_contribute.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/icon_contribute.jpg -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/icon_download.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/icon_download.jpg -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/icon_download2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/icon_download2.jpg -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/slide_large_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/slide_large_1.jpg -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/slide_large_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/slide_large_2.jpg -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/slide_large_3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/slide_large_3.jpg -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/triangle-closed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/triangle-closed.png -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/triangle-opened.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/triangle-opened.png -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/uiguidelines1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/uiguidelines1.png -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/arrow_bluelink_up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/arrow_bluelink_up.png -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/bg_images_sprite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/bg_images_sprite.png -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/body-gradient-tab.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/body-gradient-tab.png -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/home/android_adc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/home/android_adc.png -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/home/gingerdroid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/home/gingerdroid.png -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/home/market-large.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/home/market-large.png -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/home/market-small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/home/market-small.png -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/logo_breadcrumbz.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/logo_breadcrumbz.jpg -------------------------------------------------------------------------------- /tools/droiddoc/templates-pdk/assets/images/rebox-gradient.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates-pdk/assets/images/rebox-gradient.gif -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/arrow_bluelink_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/arrow_bluelink_down.png -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/bg_community_leftDiv.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/bg_community_leftDiv.jpg -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/home/bg_home_bottom.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/home/bg_home_bottom.jpg -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/home/devphone-large.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/home/devphone-large.png -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/home/devphone-small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/home/devphone-small.png -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/home/donut-android.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/home/donut-android.png -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/home/eclair-android.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/home/eclair-android.png -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/home/froyo-android.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/home/froyo-android.png -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/icon_guidelines_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/icon_guidelines_logo.png -------------------------------------------------------------------------------- /tools/droiddoc/test/stubs/expected/com/android/stubs/b/B.java: -------------------------------------------------------------------------------- 1 | package com.android.stubs.b; 2 | public class B 3 | { 4 | public B() { throw new RuntimeException("Stub!"); } 5 | } 6 | -------------------------------------------------------------------------------- /target/product/sim.mk: -------------------------------------------------------------------------------- 1 | $(call inherit-product, $(SRC_TARGET_DIR)/product/generic.mk) 2 | 3 | # Overrides 4 | PRODUCT_NAME := sim 5 | PRODUCT_DEVICE := sim 6 | PRODUCT_LOCALES := en_US 7 | -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/home/Android_Dev_Lab_l.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/home/Android_Dev_Lab_l.png -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/home/bg_home_carousel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/home/bg_home_carousel.png -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/triangle-closed-small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/triangle-closed-small.png -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/triangle-opened-small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/triangle-opened-small.png -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/android-developers-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/android-developers-logo.png -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/home/bg_home_announcement.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/home/bg_home_announcement.png -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/home/bg_home_carousel_board.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/home/bg_home_carousel_board.png -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/home/bg_home_carousel_wheel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/home/bg_home_carousel_wheel.png -------------------------------------------------------------------------------- /tools/droiddoc/templates/index.cs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/images/home/carousel_buttons_sprite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redux/android_build/master/tools/droiddoc/templates/assets/images/home/carousel_buttons_sprite.png -------------------------------------------------------------------------------- /tools/fs_get_stats/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | 3 | include $(CLEAR_VARS) 4 | 5 | LOCAL_SRC_FILES := fs_get_stats.c 6 | 7 | LOCAL_MODULE := fs_get_stats 8 | 9 | include $(BUILD_HOST_EXECUTABLE) 10 | -------------------------------------------------------------------------------- /core/apicheck_msg_last.txt: -------------------------------------------------------------------------------- 1 | 2 | ****************************** 3 | You have tried to change the API from what has been previously released in 4 | an SDK. Please fix the errors listed above. 5 | ****************************** 6 | 7 | 8 | -------------------------------------------------------------------------------- /tools/isprelinked/prelink_info.h: -------------------------------------------------------------------------------- 1 | #ifndef PRELINK_INFO_H 2 | #define PRELINK_INFO_H 3 | #ifdef SUPPORT_ANDROID_PRELINK_TAGS 4 | 5 | int check_prelinked(const char *fname, int elf_little, long *prelink_addr); 6 | 7 | #endif 8 | #endif/*PRELINK_INFO_H*/ 9 | -------------------------------------------------------------------------------- /tools/lsd/lsd.h: -------------------------------------------------------------------------------- 1 | #ifndef LSD_H 2 | #define LSD_H 3 | 4 | void lsd(char **execs, int num_execs, 5 | int list_needed_libs, 6 | int print_info, 7 | char **lib_lookup_dirs, 8 | int num_lib_lookup_dirs); 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /libs/host/include/host/pseudolocalize.h: -------------------------------------------------------------------------------- 1 | #ifndef HOST_PSEUDOLOCALIZE_H 2 | #define HOST_PSEUDOLOCALIZE_H 3 | 4 | #include 5 | 6 | std::string pseudolocalize_string(const std::string& source); 7 | 8 | #endif // HOST_PSEUDOLOCALIZE_H 9 | 10 | -------------------------------------------------------------------------------- /libs/host/include/host/Directories.h: -------------------------------------------------------------------------------- 1 | #ifndef HOST_MKDIRS_H 2 | #define HOST_MKDIRS_H 3 | 4 | #include 5 | 6 | std::string parent_dir(const std::string& path); 7 | 8 | extern "C" int mkdirs(const char* path); 9 | 10 | #endif // HOST_MKDIRS_H 11 | -------------------------------------------------------------------------------- /tools/droiddoc/templates/lists.cs: -------------------------------------------------------------------------------- 1 | var DATA = [ 2 | { id:, label:"", link:"", type:"" }, 4 | 5 | ]; 6 | -------------------------------------------------------------------------------- /target/board/generic_x86/buildspec-generic_x86.mk: -------------------------------------------------------------------------------- 1 | BUILD_ENV_SEQUENCE_NUMBER := 9 2 | DISABLE_DEXPREOPT := true 3 | TARGET_ARCH := x86 4 | 5 | # The eth0 device should be started with dhcp on boot. 6 | # Useful for emulators that don't provide a wifi connection. 7 | NET_ETH0_STARTONBOOT := true 8 | -------------------------------------------------------------------------------- /tools/atree/fs.h: -------------------------------------------------------------------------------- 1 | #ifndef FS_H 2 | #define FS_H 3 | 4 | #include 5 | 6 | using namespace std; 7 | 8 | int remove_recursively(const string& path); 9 | int mkdir_recursively(const string& path); 10 | int copy_file(const string& src, const string& dst); 11 | 12 | #endif // FS_H 13 | -------------------------------------------------------------------------------- /core/combo/arch/arm/armv5te-vfp.mk: -------------------------------------------------------------------------------- 1 | # At the moment, use the same settings than the one 2 | # for armv5te, since TARGET_ARCH_VARIANT := armv5te-vfp 3 | # will only be used to select an optimized VFP-capable assembly 4 | # interpreter loop for Dalvik. 5 | # 6 | include $(BUILD_COMBOS)/arch/arm/armv5te.mk 7 | 8 | -------------------------------------------------------------------------------- /tools/apriori/prelink_info.h: -------------------------------------------------------------------------------- 1 | #ifndef PRELINK_INFO_H 2 | #define PRELINK_INFO_H 3 | #ifdef SUPPORT_ANDROID_PRELINK_TAGS 4 | 5 | int check_prelinked(const char *fname, int elf_little, long *prelink_addr); 6 | void setup_prelink_info(const char *fname, int elf_little, long base); 7 | 8 | #endif 9 | #endif/*PRELINK_INFO_H*/ 10 | -------------------------------------------------------------------------------- /tools/atree/options.h: -------------------------------------------------------------------------------- 1 | #ifndef OPTIONS_H 2 | #define OPTIONS_H 3 | 4 | #include 5 | #include 6 | 7 | using namespace std; 8 | 9 | extern vector g_listFiles; 10 | extern vector g_inputBases; 11 | extern string g_outputBase; 12 | extern bool g_useHardLinks; 13 | 14 | #endif // OPTIONS_H 15 | -------------------------------------------------------------------------------- /tools/soslim/prelink_info.h: -------------------------------------------------------------------------------- 1 | #ifndef PRELINK_INFO_H 2 | #define PRELINK_INFO_H 3 | #ifdef SUPPORT_ANDROID_PRELINK_TAGS 4 | 5 | int check_prelinked(const char *fname, int elf_little, long *prelink_addr); 6 | void setup_prelink_info(const char *fname, int elf_little, long base); 7 | 8 | #endif 9 | #endif/*PRELINK_INFO_H*/ 10 | -------------------------------------------------------------------------------- /tools/lsd/cmdline.h: -------------------------------------------------------------------------------- 1 | #ifndef CMDLINE_H 2 | #define CMDLINE_H 3 | 4 | void print_help(void); 5 | 6 | int get_options(int argc, char **argv, 7 | int *list_needed_libs, 8 | int *info, 9 | char ***dirs, 10 | int *num_dirs, 11 | int *verbose); 12 | 13 | #endif/*CMDLINE_H*/ 14 | -------------------------------------------------------------------------------- /target/board/emulator/AndroidBoard.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | file := $(TARGET_OUT_KEYLAYOUT)/tuttle2.kl 4 | ALL_PREBUILT += $(file) 5 | $(file) : $(LOCAL_PATH)/tuttle2.kl | $(ACP) 6 | $(transform-prebuilt-to-target) 7 | 8 | include $(CLEAR_VARS) 9 | LOCAL_SRC_FILES := tuttle2.kcm 10 | include $(BUILD_KEY_CHAR_MAP) 11 | -------------------------------------------------------------------------------- /target/board/generic/AndroidBoard.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | file := $(TARGET_OUT_KEYLAYOUT)/tuttle2.kl 4 | ALL_PREBUILT += $(file) 5 | $(file) : $(LOCAL_PATH)/tuttle2.kl | $(ACP) 6 | $(transform-prebuilt-to-target) 7 | 8 | include $(CLEAR_VARS) 9 | LOCAL_SRC_FILES := tuttle2.kcm 10 | include $(BUILD_KEY_CHAR_MAP) 11 | -------------------------------------------------------------------------------- /tools/apriori/prelinkmap.h: -------------------------------------------------------------------------------- 1 | #ifndef PRELINKMAP_H 2 | #define PRELINKMAP_H 3 | 4 | #include 5 | 6 | extern void pm_init(const char *file); 7 | extern void pm_report_library_size_in_memory(const char *name, off_t fsize); 8 | extern unsigned pm_get_next_link_address(const char *name); 9 | 10 | #endif/*PRELINKMAP_H*/ 11 | -------------------------------------------------------------------------------- /tools/lsd/common.h: -------------------------------------------------------------------------------- 1 | #ifndef COMMON_H 2 | #define COMMON_H 3 | 4 | #include 5 | #include 6 | 7 | #define unlikely(expr) __builtin_expect (expr, 0) 8 | #define likely(expr) __builtin_expect (expr, 1) 9 | 10 | #define MIN(a,b) ((a)<(b)?(a):(b)) /* no side effects in arguments allowed! */ 11 | 12 | #endif/*COMMON_H*/ 13 | -------------------------------------------------------------------------------- /tools/kcm/Android.mk: -------------------------------------------------------------------------------- 1 | # Copyright 2007 The Android Open Source Project 2 | # 3 | # Copies files into the directory structure described by a manifest 4 | 5 | LOCAL_PATH:= $(call my-dir) 6 | include $(CLEAR_VARS) 7 | 8 | LOCAL_SRC_FILES := \ 9 | kcm.cpp 10 | 11 | LOCAL_MODULE := kcm 12 | 13 | include $(BUILD_HOST_EXECUTABLE) 14 | 15 | 16 | -------------------------------------------------------------------------------- /target/board/emulator/BoardConfig.mk: -------------------------------------------------------------------------------- 1 | # config.mk 2 | # 3 | # Product-specific compile-time definitions. 4 | # 5 | 6 | # The generic product target doesn't have any hardware-specific pieces. 7 | TARGET_NO_BOOTLOADER := true 8 | TARGET_NO_KERNEL := true 9 | HAVE_HTC_AUDIO_DRIVER := true 10 | 11 | # no hardware camera 12 | USE_CAMERA_STUB := true 13 | -------------------------------------------------------------------------------- /tools/droiddoc/test/stubs/expected/com/android/stubs/InterfaceEnum.java: -------------------------------------------------------------------------------- 1 | package com.android.stubs; 2 | public enum InterfaceEnum 3 | implements com.android.stubs.Parent.Interface 4 | { 5 | VAL(); 6 | public void method() { throw new RuntimeException("Stub!"); } 7 | public static final java.lang.Object OBJECT; 8 | static { OBJECT = null; } 9 | } 10 | -------------------------------------------------------------------------------- /tools/lsd/hash.h: -------------------------------------------------------------------------------- 1 | #ifndef HASH_H 2 | #define HASH_H 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | int hash_lookup(Elf *elf, 9 | Elf_Data *hash, 10 | Elf_Data *symtab, 11 | Elf_Data *symstr, 12 | const char *symname); 13 | 14 | #endif/*HASH_H*/ 15 | -------------------------------------------------------------------------------- /tools/apriori/hash.h: -------------------------------------------------------------------------------- 1 | #ifndef HASH_H 2 | #define HASH_H 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | int hash_lookup(Elf *elf, 9 | Elf_Data *hash, 10 | Elf_Data *symtab, 11 | Elf_Data *symstr, 12 | const char *symname); 13 | 14 | #endif/*HASH_H*/ 15 | -------------------------------------------------------------------------------- /tools/droiddoc/test/stubs/expected/com/android/stubs/Annot.java: -------------------------------------------------------------------------------- 1 | package com.android.stubs; 2 | @java.lang.annotation.Documented() 3 | @java.lang.annotation.Retention(value=java.lang.annotation.RetentionPolicy.RUNTIME) 4 | @java.lang.annotation.Target(value={java.lang.annotation.ElementType.TYPE}) 5 | public @interface Annot 6 | { 7 | java.lang.String value() default "yo\u1234"; 8 | } 9 | -------------------------------------------------------------------------------- /tools/droiddoc/templates/assets/android-developer-docs-devguide.css: -------------------------------------------------------------------------------- 1 | 2 | @import url("android-developer-docs.css"); 3 | 4 | /* Page title */ 5 | 6 | #jd-header h1 { 7 | padding: 8px 0 0 0; 8 | } 9 | 10 | /* Page content container */ 11 | 12 | #jd-header table { 13 | margin: 0 0 1em 1em; 14 | } 15 | 16 | #jd-content table table, 17 | #jd-content table img { 18 | margin:1em 0; 19 | } -------------------------------------------------------------------------------- /target/board/generic/README.txt: -------------------------------------------------------------------------------- 1 | The "generic" product defines a non-hardware-specific target 2 | without a kernel or bootloader. 3 | 4 | It can be used to build the entire user-level system, and 5 | will work with the emulator, though sound will not work 6 | (see the "emulator" product for that). 7 | 8 | It is not a product "base class"; no other products inherit 9 | from it or use it in any way. 10 | -------------------------------------------------------------------------------- /target/board/generic/BoardConfig.mk: -------------------------------------------------------------------------------- 1 | # config.mk 2 | # 3 | # Product-specific compile-time definitions. 4 | # 5 | 6 | # The generic product target doesn't have any hardware-specific pieces. 7 | TARGET_NO_BOOTLOADER := true 8 | TARGET_NO_KERNEL := true 9 | TARGET_CPU_ABI := armeabi 10 | HAVE_HTC_AUDIO_DRIVER := true 11 | BOARD_USES_GENERIC_AUDIO := true 12 | 13 | # no hardware camera 14 | USE_CAMERA_STUB := true 15 | -------------------------------------------------------------------------------- /tools/fixlinebreaks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Convert EOL convention on source files from CRLF to LF. 4 | # 5 | 6 | echo "Scanning..." 7 | FILES=`find . \( -iname '*.c' -o -iname '*.cpp' -o -iname '*.h' -o -iname '*.mk' -o -iname '*.html' -o -iname '*.css' \) -print` 8 | 9 | echo "Converting..." 10 | for file in $FILES ; do 11 | echo $file 12 | tr -d \\r < $file > _temp_file 13 | mv _temp_file $file 14 | done 15 | exit 0 16 | 17 | -------------------------------------------------------------------------------- /tools/rgb2565/Android.mk: -------------------------------------------------------------------------------- 1 | # Copyright 2008 The Android Open Source Project 2 | # 3 | # Android.mk for rgb2565 4 | # 5 | 6 | LOCAL_PATH:= $(call my-dir) 7 | 8 | # rgb2565 host tool 9 | # ========================================================= 10 | include $(CLEAR_VARS) 11 | 12 | LOCAL_SRC_FILES := to565.c 13 | 14 | LOCAL_CFLAGS += -O2 -Wall -Wno-unused-parameter 15 | LOCAL_MODULE := rgb2565 16 | 17 | include $(BUILD_HOST_EXECUTABLE) 18 | -------------------------------------------------------------------------------- /target/board/emulator/README.txt: -------------------------------------------------------------------------------- 1 | The "emulator" product defines an almost non-hardware-specific target 2 | without a kernel or bootloader, except that it defines the 3 | HAVE_HTC_AUDIO_DRIVER constant, since that is what the emulator 4 | emulates currently. 5 | 6 | It can be used to build the entire user-level system, and 7 | will work with the emulator. 8 | 9 | It is not a product "base class"; no other products inherit 10 | from it or use it in any way. 11 | -------------------------------------------------------------------------------- /tools/soslim/cmdline.h: -------------------------------------------------------------------------------- 1 | #ifndef CMDLINE_H 2 | #define CMDLINE_H 3 | 4 | void print_help(void); 5 | 6 | int get_options(int argc, char **argv, 7 | char **outfile, 8 | char **symsfile, 9 | int *print_symtab, 10 | int *verbose, 11 | int *quiet, 12 | int *shady, 13 | int *dry_run, 14 | int *strip_debug); 15 | 16 | #endif/*CMDLINE_H*/ 17 | -------------------------------------------------------------------------------- /core/filter_symbols.sh: -------------------------------------------------------------------------------- 1 | NM=$1 2 | 3 | shift 4 | 5 | PREFIX=$1 6 | 7 | shift 8 | 9 | SUFFIX=$1 10 | 11 | shift 12 | 13 | while test "$1" != "" 14 | do 15 | $NM -g -fp $1 | while read -a line 16 | do 17 | type=${line[1]} 18 | # if [[ "$type" != "V" && "$type" != "U" ]]; then 19 | #if [[ "$type" != "W" && "$type" != "V" && "$type" != "U" ]]; then 20 | echo "$PREFIX${line[0]}$SUFFIX # ${line[1]}" 21 | #fi 22 | done 23 | 24 | shift 25 | done 26 | -------------------------------------------------------------------------------- /tools/atree/Android.mk: -------------------------------------------------------------------------------- 1 | # Copyright 2007 The Android Open Source Project 2 | # 3 | # Copies files into the directory structure described by a manifest 4 | 5 | LOCAL_PATH:= $(call my-dir) 6 | include $(CLEAR_VARS) 7 | 8 | LOCAL_SRC_FILES := \ 9 | atree.cpp \ 10 | files.cpp \ 11 | fs.cpp 12 | 13 | LOCAL_STATIC_LIBRARIES := \ 14 | libhost 15 | LOCAL_C_INCLUDES := build/libs/host/include 16 | 17 | LOCAL_MODULE := atree 18 | 19 | include $(BUILD_HOST_EXECUTABLE) 20 | 21 | -------------------------------------------------------------------------------- /target/board/generic_x86/AndroidBoard.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | include $(CLEAR_VARS) 4 | LOCAL_MODULE := init.rc 5 | LOCAL_SRC_FILES := init.rc 6 | LOCAL_MODULE_CLASS := SHARED_LIBRARIES 7 | LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) 8 | include $(BUILD_PREBUILT) 9 | 10 | ifeq ($(TARGET_PREBUILT_KERNEL),) 11 | LOCAL_KERNEL := prebuilt/android-x86/kernel/kernel 12 | else 13 | LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL) 14 | endif 15 | 16 | PRODUCT_COPY_FILES += \ 17 | $(LOCAL_KERNEL):kernel 18 | -------------------------------------------------------------------------------- /tools/apriori/apriori.h: -------------------------------------------------------------------------------- 1 | #ifndef LSD_H 2 | #define LSD_H 3 | 4 | void apriori(char **execs, int num_execs, 5 | char *output, 6 | void (*set_next_link_address)(const char *name, off_t fsize), 7 | int (*get_next_link_address)(const char *name), 8 | int locals_only, 9 | int dry_run, 10 | char **lib_lookup_dirs, int num_lib_lookup_dirs, 11 | char **default_libs, int num_default_libs, 12 | char *mapfile); 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /tools/droiddoc/templates/footer.cs: -------------------------------------------------------------------------------- 1 | 20 | -------------------------------------------------------------------------------- /tools/droiddoc/templates/nosidenavpage.cs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 |
11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /tools/iself/Android.mk: -------------------------------------------------------------------------------- 1 | # Copyright 2005 The Android Open Source Project 2 | # 3 | # Android.mk for iself 4 | # 5 | 6 | LOCAL_PATH:= $(call my-dir) 7 | 8 | include $(CLEAR_VARS) 9 | 10 | LOCAL_CFLAGS += -O2 -g 11 | LOCAL_CFLAGS += -fno-function-sections -fno-data-sections -fno-inline 12 | LOCAL_CFLAGS += -Wall -Wno-unused-function #-Werror 13 | LOCAL_CFLAGS += -DDEBUG 14 | 15 | LOCAL_C_INCLUDES:= \ 16 | $(LOCAL_PATH)/ 17 | 18 | LOCAL_SRC_FILES := \ 19 | iself.c 20 | 21 | LOCAL_MODULE := iself 22 | 23 | include $(BUILD_HOST_EXECUTABLE) 24 | -------------------------------------------------------------------------------- /core/find-jdk-tools-jar.sh: -------------------------------------------------------------------------------- 1 | if [ "x$ANDROID_JAVA_HOME" != x ] && [ -e "$ANDROID_JAVA_HOME/lib/tools.jar" ] ; then 2 | echo $ANDROID_JAVA_HOME/lib/tools.jar 3 | else 4 | JAVAC=$(which javac) 5 | if [ -z "$JAVAC" ] ; then 6 | echo "Please-install-JDK-6.0,-which-you-can-download-from-java.sun.com" 7 | exit 1 8 | fi 9 | while [ -L $JAVAC ] ; do 10 | LSLINE=$(ls -l $JAVAC) 11 | JAVAC=$(echo -n $LSLINE | sed -e "s/.* -> //") 12 | done 13 | echo $JAVAC | sed -e "s:\(.*\)/bin/javac.*:\\1/lib/tools.jar:" 14 | fi 15 | -------------------------------------------------------------------------------- /tools/droiddoc/templates/trailer.cs: -------------------------------------------------------------------------------- 1 |
2 | 3 | 8 | -------------------------------------------------------------------------------- /core/apicheck_msg_current.txt: -------------------------------------------------------------------------------- 1 | 2 | ****************************** 3 | You have tried to change the API from what has been previously approved. 4 | 5 | To make these errors go away, you have two choices: 6 | 1) You can add "@hide" javadoc comments to the methods, etc. listed in the 7 | errors above. 8 | 9 | 2) You can update current.xml by executing the following command: 10 | make update-api 11 | 12 | To submit the revised current.xml to the main Android repository, 13 | you will need approval. 14 | ****************************** 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /libs/host/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | include $(CLEAR_VARS) 3 | 4 | LOCAL_SRC_FILES:= \ 5 | CopyFile.c \ 6 | pseudolocalize.cpp 7 | 8 | ifeq ($(HOST_OS),cygwin) 9 | LOCAL_CFLAGS += -DWIN32_EXE 10 | endif 11 | ifeq ($(HOST_OS),darwin) 12 | LOCAL_CFLAGS += -DMACOSX_RSRC 13 | endif 14 | ifeq ($(HOST_OS),linux) 15 | endif 16 | 17 | LOCAL_MODULE:= libhost 18 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/include 19 | 20 | # acp uses libhost, so we can't use 21 | # acp to install libhost. 22 | LOCAL_ACP_UNAVAILABLE:= true 23 | 24 | include $(BUILD_HOST_STATIC_LIBRARY) 25 | 26 | -------------------------------------------------------------------------------- /tools/acp/Android.mk: -------------------------------------------------------------------------------- 1 | # Copyright 2005 The Android Open Source Project 2 | # 3 | # Custom version of cp. 4 | 5 | LOCAL_PATH:= $(call my-dir) 6 | include $(CLEAR_VARS) 7 | 8 | LOCAL_SRC_FILES := \ 9 | acp.c 10 | 11 | ifeq ($(HOST_OS),cygwin) 12 | LOCAL_CFLAGS += -DWIN32_EXE 13 | endif 14 | ifeq ($(HOST_OS),darwin) 15 | LOCAL_CFLAGS += -DMACOSX_RSRC 16 | endif 17 | ifeq ($(HOST_OS),linux) 18 | endif 19 | 20 | LOCAL_STATIC_LIBRARIES := libhost 21 | LOCAL_C_INCLUDES := build/libs/host/include 22 | LOCAL_MODULE := acp 23 | LOCAL_ACP_UNAVAILABLE := true 24 | 25 | include $(BUILD_HOST_EXECUTABLE) 26 | 27 | -------------------------------------------------------------------------------- /core/process_wrapper.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # When using a process wrapper, this is the top-level 4 | # command that is executed instead of the server 5 | # command. It starts a new xterm in which the user can 6 | # interact with the new process. 7 | # 8 | # Inside of the xterm is a gdb session, through which 9 | # the user can debug the new process. 10 | 11 | # Save away these variables, since we may loose them 12 | # when starting in the xterm. 13 | export PREV_LD_LIBRARY_PATH=$LD_LIBRARY_PATH 14 | export PREV_PATH=$PATH 15 | 16 | gnome-terminal -t "Wrapper: $1" --disable-factory -x $2/process_wrapper_gdb.sh "$@" 17 | 18 | -------------------------------------------------------------------------------- /tools/apriori/tweak.h: -------------------------------------------------------------------------------- 1 | #ifndef TWEAK_H 2 | #define TWEAK_H 3 | 4 | #include 5 | 6 | /* This function will break up the .bss section into multiple subsegments, 7 | depending on whether the .bss segment contains copy-relocated symbols. This 8 | will produce a nonstandard ELF file (with multiple .bss sections), tht the 9 | linker will need to know how to handle. The return value is the number of 10 | segments that the .bss segment was broken into (zero if the .bss segment was 11 | not modified. */ 12 | 13 | int tweak_bss_if_necessary(source_t *source); 14 | 15 | #endif/*TWEAK_H*/ 16 | -------------------------------------------------------------------------------- /core/proguard_tests.flags: -------------------------------------------------------------------------------- 1 | # Keep everything for tests 2 | -dontshrink -dontobfuscate 3 | 4 | #-keep class * extends junit.framework.TestCase { 5 | # public void test*(); 6 | #} 7 | 8 | #-keepclasseswithmembers class * { 9 | # public static void run(); 10 | # public static junit.framework.Test suite(); 11 | #} 12 | 13 | # some AllTests don't include run(). 14 | #-keepclasseswithmembers class * { 15 | # public static junit.framework.Test suite(); 16 | #} 17 | 18 | #-keep class * extends junit.framework.TestSuite 19 | #-keep class * extends android.app.Instrumentation 20 | #-keep class * extends android.test.TestSuiteProvider 21 | 22 | -------------------------------------------------------------------------------- /tools/apriori/cmdline.h: -------------------------------------------------------------------------------- 1 | #ifndef CMDLINE_H 2 | #define CMDLINE_H 3 | 4 | void print_help(const char *executable_name); 5 | 6 | int get_options(int argc, char **argv, 7 | int *start_addr, 8 | int *addr_increment, 9 | int *locals_only, 10 | int *quiet, 11 | int *dry_run, 12 | char ***dirs, 13 | int *num_dirs, 14 | char ***defaults, 15 | int *num_defaults, 16 | int *verbose, 17 | char **mapfile, 18 | char **output, 19 | char **prelinkmap); 20 | 21 | #endif/*CMDLINE_H*/ 22 | -------------------------------------------------------------------------------- /tools/zipalign/Android.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright 2008 The Android Open Source Project 3 | # 4 | # Zip alignment tool 5 | # 6 | 7 | LOCAL_PATH:= $(call my-dir) 8 | include $(CLEAR_VARS) 9 | 10 | LOCAL_SRC_FILES := \ 11 | ZipAlign.cpp \ 12 | ZipEntry.cpp \ 13 | ZipFile.cpp 14 | 15 | LOCAL_C_INCLUDES += external/zlib 16 | 17 | LOCAL_STATIC_LIBRARIES := \ 18 | libutils \ 19 | libcutils 20 | 21 | ifeq ($(HOST_OS),linux) 22 | LOCAL_LDLIBS += -lrt 23 | endif 24 | 25 | ifneq ($(strip $(USE_MINGW)),) 26 | LOCAL_STATIC_LIBRARIES += libz 27 | else 28 | LOCAL_LDLIBS += -lz 29 | endif 30 | 31 | LOCAL_MODULE := zipalign 32 | 33 | include $(BUILD_HOST_EXECUTABLE) 34 | 35 | -------------------------------------------------------------------------------- /tools/apriori/source.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void find_section(source_t *source, Elf64_Addr address, 4 | Elf_Scn **scn, 5 | GElf_Shdr *shdr, 6 | Elf_Data **data) 7 | { 8 | range_t *range = find_range(source->sorted_sections, address); 9 | FAILIF(NULL == range, 10 | "Cannot match address %lld to any range in [%s]!\n", 11 | address, 12 | source->name); 13 | *scn = (Elf_Scn *)range->user; 14 | ASSERT(*scn); 15 | FAILIF_LIBELF(NULL == gelf_getshdr(*scn, shdr), gelf_getshdr); 16 | *data = elf_getdata(*scn, NULL); 17 | FAILIF_LIBELF(NULL == *data, elf_getdata); 18 | } 19 | -------------------------------------------------------------------------------- /core/host_executable.mk: -------------------------------------------------------------------------------- 1 | ########################################################### 2 | ## Standard rules for building an executable file. 3 | ## 4 | ## Additional inputs from base_rules.make: 5 | ## None. 6 | ########################################################### 7 | 8 | LOCAL_IS_HOST_MODULE := true 9 | ifeq ($(strip $(LOCAL_MODULE_CLASS)),) 10 | LOCAL_MODULE_CLASS := EXECUTABLES 11 | endif 12 | ifeq ($(strip $(LOCAL_MODULE_SUFFIX)),) 13 | LOCAL_MODULE_SUFFIX := $(HOST_EXECUTABLE_SUFFIX) 14 | endif 15 | 16 | include $(BUILD_SYSTEM)/binary.mk 17 | 18 | $(LOCAL_BUILT_MODULE): $(all_objects) $(all_libraries) 19 | $(transform-host-o-to-executable) 20 | $(PRIVATE_POST_PROCESS_COMMAND) 21 | -------------------------------------------------------------------------------- /tools/droiddoc/test/stubs/expected/com/android/stubs/a/A.java: -------------------------------------------------------------------------------- 1 | package com.android.stubs.a; 2 | public abstract class A 3 | extends com.android.stubs.Parent 4 | implements com.android.stubs.Parent.Interface, com.android.stubs.a.SomeInterface 5 | { 6 | public class Inner 7 | { 8 | public Inner() { throw new RuntimeException("Stub!"); } 9 | } 10 | protected A(int a) { throw new RuntimeException("Stub!"); } 11 | public com.android.stubs.a.A varargs(com.android.stubs.Parent[]... args) { throw new RuntimeException("Stub!"); } 12 | public void method() { throw new RuntimeException("Stub!"); } 13 | public abstract java.lang.String[] stringArrayMethod() throws java.io.IOException; 14 | } 15 | -------------------------------------------------------------------------------- /core/combo/arch/arm/armv5te.mk: -------------------------------------------------------------------------------- 1 | # Configuration for Linux on ARM. 2 | # Generating binaries for the ARMv5TE architecture and higher 3 | # 4 | ARCH_ARM_HAVE_THUMB_SUPPORT := true 5 | ARCH_ARM_HAVE_FAST_INTERWORKING := true 6 | ARCH_ARM_HAVE_64BIT_DATA := true 7 | ARCH_ARM_HAVE_HALFWORD_MULTIPLY := true 8 | ARCH_ARM_HAVE_CLZ := true 9 | ARCH_ARM_HAVE_FFS := true 10 | 11 | # Note: Hard coding the 'tune' value here is probably not ideal, 12 | # and a better solution should be found in the future. 13 | # 14 | arch_variant_cflags := \ 15 | -march=armv5te \ 16 | -mtune=xscale \ 17 | -D__ARM_ARCH_5__ \ 18 | -D__ARM_ARCH_5T__ \ 19 | -D__ARM_ARCH_5E__ \ 20 | -D__ARM_ARCH_5TE__ 21 | 22 | -------------------------------------------------------------------------------- /core/host_prebuilt.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2008 The Android Open Source Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | LOCAL_IS_HOST_MODULE := true 18 | include $(BUILD_MULTI_PREBUILT) 19 | -------------------------------------------------------------------------------- /core/process_wrapper_gdb.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # This is the command running inside the xterm of our 4 | # debug wrapper. It needs to take care of starting 5 | # the server command, so it can attach to the parent 6 | # process. In addition, here we run the command inside 7 | # of a gdb session to allow for debugging. 8 | 9 | # On some systems, running xterm will cause LD_LIBRARY_PATH 10 | # to be cleared, so restore it and PATH to be safe. 11 | export PATH=$PREV_PATH 12 | export LD_LIBRARY_PATH=$PREV_LD_LIBRARY_PATH 13 | 14 | # Start binderproc (or whatever sub-command is being run) 15 | # inside of gdb, giving gdb an initial command script to 16 | # automatically run the process without user intervention. 17 | gdb -q -x $2/process_wrapper_gdb.cmds --args "$@" 18 | -------------------------------------------------------------------------------- /tools/droiddoc/Android.mk: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2008 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | LOCAL_PATH := $(call my-dir) 16 | 17 | include $(LOCAL_PATH)/src/Android.mk 18 | 19 | -------------------------------------------------------------------------------- /tools/apriori/common.h: -------------------------------------------------------------------------------- 1 | #ifndef COMMON_H 2 | #define COMMON_H 3 | 4 | #include 5 | #include 6 | 7 | #define unlikely(expr) __builtin_expect (expr, 0) 8 | #define likely(expr) __builtin_expect (expr, 1) 9 | 10 | #define MIN(a,b) ((a)<(b)?(a):(b)) /* no side effects in arguments allowed! */ 11 | 12 | static inline int is_host_little(void) 13 | { 14 | short val = 0x10; 15 | return ((char *)&val)[0] != 0; 16 | } 17 | 18 | static inline long switch_endianness(long val) 19 | { 20 | long newval; 21 | ((char *)&newval)[3] = ((char *)&val)[0]; 22 | ((char *)&newval)[2] = ((char *)&val)[1]; 23 | ((char *)&newval)[1] = ((char *)&val)[2]; 24 | ((char *)&newval)[0] = ((char *)&val)[3]; 25 | return newval; 26 | } 27 | 28 | #endif/*COMMON_H*/ 29 | -------------------------------------------------------------------------------- /tools/isprelinked/common.h: -------------------------------------------------------------------------------- 1 | #ifndef COMMON_H 2 | #define COMMON_H 3 | 4 | #include 5 | #include 6 | 7 | #define unlikely(expr) __builtin_expect (expr, 0) 8 | #define likely(expr) __builtin_expect (expr, 1) 9 | 10 | #define MIN(a,b) ((a)<(b)?(a):(b)) /* no side effects in arguments allowed! */ 11 | 12 | static inline int is_host_little(void) 13 | { 14 | short val = 0x10; 15 | return ((char *)&val)[0] != 0; 16 | } 17 | 18 | static inline long switch_endianness(long val) 19 | { 20 | long newval; 21 | ((char *)&newval)[3] = ((char *)&val)[0]; 22 | ((char *)&newval)[2] = ((char *)&val)[1]; 23 | ((char *)&newval)[1] = ((char *)&val)[2]; 24 | ((char *)&newval)[0] = ((char *)&val)[3]; 25 | return newval; 26 | } 27 | 28 | #endif/*COMMON_H*/ 29 | -------------------------------------------------------------------------------- /core/host_static_library.mk: -------------------------------------------------------------------------------- 1 | ########################################################### 2 | ## Standard rules for building a static library for the host. 3 | ## 4 | ## Additional inputs from base_rules.make: 5 | ## None. 6 | ## 7 | ## LOCAL_MODULE_SUFFIX will be set for you. 8 | ########################################################### 9 | 10 | ifeq ($(strip $(LOCAL_MODULE_CLASS)),) 11 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES 12 | endif 13 | ifeq ($(strip $(LOCAL_MODULE_SUFFIX)),) 14 | LOCAL_MODULE_SUFFIX := .a 15 | endif 16 | LOCAL_UNINSTALLABLE_MODULE := true 17 | 18 | LOCAL_IS_HOST_MODULE := true 19 | 20 | include $(BUILD_SYSTEM)/binary.mk 21 | 22 | $(LOCAL_BUILT_MODULE): $(built_whole_libraries) 23 | $(LOCAL_BUILT_MODULE): $(all_objects) 24 | $(transform-host-o-to-static-lib) 25 | -------------------------------------------------------------------------------- /core/combo/arch/arm/armv7-a.mk: -------------------------------------------------------------------------------- 1 | # Configuration for Linux on ARM. 2 | # Generating binaries for the ARMv7-a architecture and higher 3 | # 4 | ARCH_ARM_HAVE_THUMB_SUPPORT := true 5 | ARCH_ARM_HAVE_FAST_INTERWORKING := true 6 | ARCH_ARM_HAVE_64BIT_DATA := true 7 | ARCH_ARM_HAVE_HALFWORD_MULTIPLY := true 8 | ARCH_ARM_HAVE_CLZ := true 9 | ARCH_ARM_HAVE_FFS := true 10 | ARCH_ARM_HAVE_ARMV7A := true 11 | ARCH_ARM_HAVE_VFP := true 12 | 13 | # Note: Hard coding the 'tune' value here is probably not ideal, 14 | # and a better solution should be found in the future. 15 | # 16 | arch_variant_cflags := \ 17 | -march=armv7-a \ 18 | -mfloat-abi=softfp \ 19 | -mfpu=vfpv3-d16 20 | 21 | arch_variant_ldflags := \ 22 | -Wl,--fix-cortex-a8 23 | -------------------------------------------------------------------------------- /tools/droiddoc/test/generics/src/com/android/generics/Adapter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.android.generics; 18 | 19 | public class Adapter { 20 | } 21 | -------------------------------------------------------------------------------- /tools/droiddoc/test/generics/src/com/android/generics/Iface.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.android.generics; 18 | 19 | public interface Iface { 20 | } 21 | -------------------------------------------------------------------------------- /tools/droiddoc/test/stubs/src/com/android/stubs/SomeEnum.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.android.stubs; 18 | 19 | public enum SomeEnum { 20 | A, B, C 21 | } 22 | -------------------------------------------------------------------------------- /tools/droiddoc/test/stubs/src/com/android/stubs/a/SomeInterface.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.android.stubs.a; 18 | 19 | public interface SomeInterface { 20 | } 21 | 22 | -------------------------------------------------------------------------------- /tools/droiddoc/test/stubs/src/com/android/stubs/hidden/PackagePrivate.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.android.stubs.c; 18 | 19 | class PackagePrivate { 20 | 21 | } 22 | 23 | -------------------------------------------------------------------------------- /core/copy_headers.mk: -------------------------------------------------------------------------------- 1 | ########################################################### 2 | ## Copy headers to the install tree 3 | ########################################################### 4 | ifneq ($(strip $(LOCAL_IS_HOST_MODULE)),) 5 | my_prefix := HOST_ 6 | else 7 | my_prefix := TARGET_ 8 | endif 9 | 10 | # Create a rule to copy each header, and make the 11 | # all_copied_headers phony target depend on each 12 | # destination header. copy-one-header defines the 13 | # actual rule. 14 | # 15 | $(foreach header,$(LOCAL_COPY_HEADERS), \ 16 | $(eval _chFrom := $(LOCAL_PATH)/$(header)) \ 17 | $(eval _chTo := \ 18 | $($(my_prefix)OUT_HEADERS)/$(LOCAL_COPY_HEADERS_TO)/$(notdir $(header))) \ 19 | $(eval $(call copy-one-header,$(_chFrom),$(_chTo))) \ 20 | $(eval all_copied_headers: $(_chTo)) \ 21 | ) 22 | _chFrom := 23 | _chTo := 24 | -------------------------------------------------------------------------------- /tools/droiddoc/src/ContainerInfo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | public interface ContainerInfo 18 | { 19 | public String qualifiedName(); 20 | public boolean checkLevel(); 21 | } 22 | -------------------------------------------------------------------------------- /tools/droiddoc/test/generics/src/com/android/generics/ListAdapter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.android.generics; 18 | 19 | public class ListAdapter extends Adapter { 20 | } 21 | -------------------------------------------------------------------------------- /tools/droiddoc/test/generics/src/com/android/generics/TestComparable.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.android.generics; 18 | 19 | public interface TestComparable { 20 | } 21 | -------------------------------------------------------------------------------- /tools/droiddoc/test/stubs/src/com/android/stubs/hidden/Hidden.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.android.stubs.c; 18 | 19 | /** @hide */ 20 | public class Hidden { 21 | 22 | } 23 | 24 | -------------------------------------------------------------------------------- /core/key_char_map.mk: -------------------------------------------------------------------------------- 1 | ########################################################### 2 | ## Standard rules for building an executable file. 3 | ## 4 | ## Additional inputs from base_rules.make: 5 | ## None. 6 | ########################################################### 7 | 8 | ifeq ($(strip $(LOCAL_MODULE_CLASS)),) 9 | LOCAL_MODULE_CLASS := KEYCHARS 10 | endif 11 | ifeq ($(strip $(LOCAL_MODULE_SUFFIX)),) 12 | LOCAL_MODULE_SUFFIX := .bin 13 | endif 14 | 15 | LOCAL_MODULE := $(LOCAL_SRC_FILES) 16 | 17 | include $(BUILD_SYSTEM)/base_rules.mk 18 | 19 | full_src_files := $(addprefix $(LOCAL_PATH)/,$(LOCAL_SRC_FILES)) 20 | 21 | $(LOCAL_BUILT_MODULE) : PRIVATE_SRC_FILES := $(full_src_files) 22 | 23 | $(LOCAL_BUILT_MODULE) : $(full_src_files) $(KCM) 24 | @echo KeyCharMap: $@ 25 | @mkdir -p $(dir $@) 26 | $(hide) $(KCM) $(PRIVATE_SRC_FILES) $@ 27 | 28 | -------------------------------------------------------------------------------- /tools/droiddoc/test/generics/src/com/android/generics/AdapterView.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.android.generics; 18 | 19 | public interface AdapterView { 20 | } 21 | 22 | -------------------------------------------------------------------------------- /tools/droiddoc/test/generics/src/com/android/generics/Bar.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.android.generics; 18 | 19 | public interface Bar { 20 | public K bar(K arg); 21 | } 22 | 23 | -------------------------------------------------------------------------------- /tools/droiddoc/test/generics/src/com/android/generics/AbsListView.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.android.generics; 18 | 19 | public class AbsListView implements AdapterView { 20 | } 21 | -------------------------------------------------------------------------------- /tools/bin2asm/Android.mk: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2008 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | LOCAL_PATH:= $(call my-dir) 16 | include $(CLEAR_VARS) 17 | 18 | LOCAL_SRC_FILES := \ 19 | icudata.c 20 | 21 | LOCAL_MODULE := icudata 22 | 23 | include $(BUILD_HOST_EXECUTABLE) 24 | 25 | -------------------------------------------------------------------------------- /tools/apriori/hash.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | #include 6 | 7 | int hash_lookup(Elf *elf, 8 | Elf_Data *hash, 9 | Elf_Data *symtab, 10 | Elf_Data *symstr, 11 | const char *symname) { 12 | Elf32_Word *hash_data = (Elf32_Word *)hash->d_buf; 13 | Elf32_Word index; 14 | Elf32_Word nbuckets = *hash_data++; 15 | Elf32_Word *buckets = ++hash_data; 16 | Elf32_Word *chains = hash_data + nbuckets; 17 | 18 | index = buckets[elf_hash(symname) % nbuckets]; 19 | while (index != STN_UNDEF && 20 | strcmp((char *)symstr->d_buf + 21 | ((Elf32_Sym *)symtab->d_buf)[index].st_name, 22 | symname)) { 23 | index = chains[index]; 24 | } 25 | 26 | return index; 27 | } 28 | -------------------------------------------------------------------------------- /tools/droiddoc/test/generics/src/com/android/generics/TestEnum.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.android.generics; 18 | 19 | public class TestEnum> implements TestComparable { 20 | } 21 | 22 | -------------------------------------------------------------------------------- /tools/lsd/hash.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | #include 6 | 7 | int hash_lookup(Elf *elf, 8 | Elf_Data *hash, 9 | Elf_Data *symtab, 10 | Elf_Data *symstr, 11 | const char *symname) 12 | { 13 | Elf32_Word *hash_data = (Elf32_Word *)hash->d_buf; 14 | Elf32_Word index; 15 | Elf32_Word nbuckets = *hash_data++; 16 | Elf32_Word *buckets = ++hash_data; 17 | Elf32_Word *chains = hash_data + nbuckets; 18 | 19 | index = buckets[elf_hash(symname) % nbuckets]; 20 | while(index != STN_UNDEF && 21 | strcmp((char *)symstr->d_buf + 22 | ((Elf32_Sym *)symtab->d_buf)[index].st_name, 23 | symname)) 24 | { 25 | index = chains[index]; 26 | } 27 | 28 | return index; 29 | } 30 | -------------------------------------------------------------------------------- /tools/signapk/test/run: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | 3 | package := NotePad.apk 4 | 5 | all: out/signed-$(package) 6 | 7 | clean: 8 | rm -rf out 9 | 10 | .PHONY: FORCE 11 | 12 | DSAPARAM := out/dsaparam 13 | $(DSAPARAM): 14 | mkdir -p $(dir $@) 15 | umask 0077 && openssl dsaparam -out $@ 1024 16 | 17 | %.pem: $(DSAPARAM) FORCE 18 | mkdir -p $(dir $@) 19 | umask 0077 && openssl gendsa -out $@.pk~ $(DSAPARAM) 20 | umask 0077 && openssl pkcs8 -topk8 -nocrypt \ 21 | -in $@.pk~ -out $@.pk 22 | umask 0077 && openssl req -new -x509 -key $@.pk -out $@ -days 1095 \ 23 | -subj "/C=US/ST=California/L=Mountain View/O=Android/OU=Android/CN=Android/emailAddress=android@android.com" 24 | 25 | cert := out/key1.pem 26 | out/signed-$(package): $(package) $(cert) 27 | mkdir -p $(dir $@) 28 | SIGNAPK_DEBUG=1 \ 29 | signapk -input $< -output $@ \ 30 | -key $(cert).pk -cert $(cert) -tempdir out 31 | -------------------------------------------------------------------------------- /core/combo/arch/arm/armv7-a-neon.mk: -------------------------------------------------------------------------------- 1 | # Configuration for Linux on ARM. 2 | # Generating binaries for the ARMv7-a architecture and higher with NEON 3 | # 4 | ARCH_ARM_HAVE_THUMB_SUPPORT := true 5 | ARCH_ARM_HAVE_FAST_INTERWORKING := true 6 | ARCH_ARM_HAVE_64BIT_DATA := true 7 | ARCH_ARM_HAVE_HALFWORD_MULTIPLY := true 8 | ARCH_ARM_HAVE_CLZ := true 9 | ARCH_ARM_HAVE_FFS := true 10 | ARCH_ARM_HAVE_ARMV7A := true 11 | ARCH_ARM_HAVE_VFP := true 12 | ARCH_ARM_HAVE_VFP_D32 := true 13 | ARCH_ARM_HAVE_NEON := true 14 | 15 | # Note: Hard coding the 'tune' value here is probably not ideal, 16 | # and a better solution should be found in the future. 17 | # 18 | arch_variant_cflags := \ 19 | -march=armv7-a \ 20 | -mfloat-abi=softfp \ 21 | -mfpu=neon 22 | 23 | arch_variant_ldflags := \ 24 | -Wl,--fix-cortex-a8 25 | -------------------------------------------------------------------------------- /tools/droiddoc/src/Scoped.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | public interface Scoped { 18 | boolean isPublic(); 19 | boolean isProtected(); 20 | boolean isPackagePrivate(); 21 | boolean isPrivate(); 22 | boolean isHidden(); 23 | } 24 | -------------------------------------------------------------------------------- /tools/droiddoc/src/TextTagInfo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | public class TextTagInfo extends TagInfo { 18 | TextTagInfo(String n, String k, String t, SourcePositionInfo p) { 19 | super(n, k, DroidDoc.escape(t), p); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /tools/droiddoc/test/stubs/src/com/android/stubs/hidden/HiddenOuter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.android.stubs.c; 18 | 19 | /** @hide */ 20 | public class HiddenOuter { 21 | 22 | public class NotHiddenInner { 23 | } 24 | } 25 | 26 | -------------------------------------------------------------------------------- /tools/iself/iself.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | 11 | int 12 | main(int argc, char **argv) 13 | { 14 | char *fname; 15 | int fd; 16 | char magic[4]; 17 | 18 | argc--, argv++; 19 | FAILIF(argc != 1, "Expecting a file name!\n"); 20 | fname = *argv; 21 | 22 | fd = open(fname, O_RDONLY); 23 | FAILIF(fd < 0, "Error opening %s for reading: %s (%d)!\n", 24 | fname, strerror(errno), errno); 25 | 26 | FAILIF(4 != read(fd, magic, 4), 27 | "Could not read first 4 bytes from %s: %s (%d)!\n", 28 | fname, strerror(errno), errno); 29 | 30 | if (magic[0] != 0x7f) return 1; 31 | if (magic[1] != 'E') return 1; 32 | if (magic[2] != 'L') return 1; 33 | if (magic[3] != 'F') return 1; 34 | 35 | return 0; 36 | } 37 | -------------------------------------------------------------------------------- /target/board/generic_x86/BoardConfig.mk: -------------------------------------------------------------------------------- 1 | TARGET_COMPRESS_MODULE_SYMBOLS := false 2 | TARGET_PRELINK_MODULE := false 3 | TARGET_NO_RECOVERY := true 4 | TARGET_HARDWARE_3D := false 5 | BOARD_USES_GENERIC_AUDIO := true 6 | USE_CAMERA_STUB := true 7 | TARGET_PROVIDES_INIT_RC := true 8 | USE_CUSTOM_RUNTIME_HEAP_MAX := "32M" 9 | TARGET_CPU_ABI := x86 10 | TARGET_USERIMAGES_USE_EXT2 := true 11 | TARGET_BOOTIMAGE_USE_EXT2 := true 12 | 13 | # For VirtualBox and likely other emulators 14 | BOARD_INSTALLER_CMDLINE := init=/init console=ttyS0 console=tty0 androidboot.hardware=generic_x86 vga=788 verbose 15 | BOARD_KERNEL_CMDLINE := init=/init console=tty0 console=ttyS0 androidboot.hardware=generic_x86 vga=788 16 | TARGET_USE_DISKINSTALLER := true 17 | TARGET_DISK_LAYOUT_CONFIG := build/target/board/generic_x86/disk_layout.conf 18 | BOARD_BOOTIMAGE_MAX_SIZE := 8388608 19 | BOARD_SYSLOADER_MAX_SIZE := 7340032 20 | BOARD_FLASH_BLOCK_SIZE := 512 21 | -------------------------------------------------------------------------------- /tools/droiddoc/test/generics/src/com/android/generics/Foo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.android.generics; 18 | 19 | public class Foo { 20 | public Foo(V v) { 21 | } 22 | 23 | public V foo(V arg) { 24 | return null; 25 | } 26 | } 27 | 28 | 29 | -------------------------------------------------------------------------------- /tools/soslim/soslim.h: -------------------------------------------------------------------------------- 1 | #ifndef ELFCOPY_H 2 | #define ELFCOPY_H 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | 9 | /* 10 | symbol_filter: 11 | On input: symbol_filter[i] indicates whether to keep a symbol (1) or to 12 | remove it from the symbol table. 13 | On output: symbol_filter[i] indicates whether a symbol was removed (0) or 14 | kept (1) in the symbol table. 15 | */ 16 | 17 | void clone_elf(Elf *elf, Elf *newelf, 18 | const char *elf_name, 19 | const char *newelf_name, 20 | bool *symbol_filter, 21 | int num_symbols, 22 | int shady 23 | #ifdef SUPPORT_ANDROID_PRELINK_TAGS 24 | , int *prelinked, 25 | int *elf_little, 26 | long *prelink_addr 27 | #endif 28 | , bool rebuild_shstrtab, 29 | bool strip_debug, 30 | bool dry_run); 31 | 32 | #endif/*ELFCOPY_H*/ 33 | -------------------------------------------------------------------------------- /tools/Android.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2010 The Android Open Source Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | LOCAL_PATH := $(my-dir) 18 | 19 | # If we're building only unbundled apps, this is the only tool we need. 20 | ifneq ($(TARGET_BUILD_APPS),) 21 | include $(LOCAL_PATH)/signapk/Android.mk 22 | else 23 | include $(call first-makefiles-under,$(LOCAL_PATH)) 24 | endif 25 | -------------------------------------------------------------------------------- /tools/apicheck/src/com/android/apicheck/AbstractMethodInfo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.android.apicheck; 18 | 19 | public interface AbstractMethodInfo { 20 | 21 | public void addException(String exec); 22 | public void addParameter(ParameterInfo p); 23 | 24 | } 25 | -------------------------------------------------------------------------------- /tools/droiddoc/src/InheritedTags.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | import org.clearsilver.HDF; 18 | import org.clearsilver.CS; 19 | import java.util.*; 20 | import java.io.*; 21 | 22 | public interface InheritedTags 23 | { 24 | TagInfo[] tags(); 25 | InheritedTags inherited(); 26 | } 27 | 28 | -------------------------------------------------------------------------------- /tools/droiddoc/test/stubs/src/com/android/stubs/b/B.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.android.stubs.b; 18 | 19 | import com.android.stubs.Parent; 20 | import com.android.stubs.a.A; 21 | 22 | public class B { 23 | Parent method(Parent p) { 24 | return null; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /tools/droiddoc/test/stubs/src/com/android/stubs/InterfaceEnum.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.android.stubs; 18 | 19 | public enum InterfaceEnum implements Parent.Interface { 20 | VAL; 21 | public static final Object OBJECT = new Object(); 22 | public void method() { } 23 | } 24 | -------------------------------------------------------------------------------- /tools/droiddoc/templates/sample.cs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 |
13 |   14 |

15 |
16 | 17 |
18 | 19 |

The file containing the source code shown below is located in the corresponding directory in <sdk>/platforms/android-<version>/samples/...

20 | 21 | 22 |
23 | 24 | 25 | 26 |
27 |
28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /target/board/sim/BoardConfig.mk: -------------------------------------------------------------------------------- 1 | # config.mk 2 | # 3 | # Product-specific compile-time definitions. 4 | # 5 | 6 | # Don't try prelinking or compressing the shared libraries 7 | # used by the simulator. The host OS won't know what to do 8 | # with them, and they may not even be ELF files. 9 | # 10 | # These definitions override the defaults in config/config.make. 11 | TARGET_COMPRESS_MODULE_SYMBOLS := false 12 | TARGET_PRELINK_MODULE := false 13 | 14 | # Don't try to build a bootloader. 15 | TARGET_NO_BOOTLOADER := true 16 | 17 | # Don't bother with a kernel 18 | TARGET_NO_KERNEL := true 19 | 20 | # The simulator does not support native code at all 21 | TARGET_CPU_ABI := none 22 | 23 | # But it is very likely SMP. 24 | TARGET_CPU_SMP := true 25 | 26 | #the simulator partially emulates the original HTC /dev/eac audio interface 27 | HAVE_HTC_AUDIO_DRIVER := true 28 | BOARD_USES_GENERIC_AUDIO := true 29 | 30 | # no hardware camera 31 | USE_CAMERA_STUB := true 32 | -------------------------------------------------------------------------------- /tools/soslim/common.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | void map_over_sections(Elf *elf, 6 | section_match_fn_t match, 7 | void *user_data) 8 | { 9 | Elf_Scn* section = NULL; 10 | while ((section = elf_nextscn(elf, section)) != NULL) { 11 | if (match(elf, section, user_data)) 12 | return; 13 | } 14 | } 15 | 16 | void map_over_segments(Elf *elf, 17 | segment_match_fn_t match, 18 | void *user_data) 19 | { 20 | Elf32_Ehdr *ehdr; 21 | Elf32_Phdr *phdr; 22 | int index; 23 | 24 | ehdr = elf32_getehdr(elf); 25 | phdr = elf32_getphdr(elf); 26 | 27 | INFO("Scanning over %d program segments...\n", 28 | ehdr->e_phnum); 29 | 30 | for (index = ehdr->e_phnum; index; index--) { 31 | if (match(elf, phdr++, user_data)) 32 | return; 33 | } 34 | } 35 | 36 | -------------------------------------------------------------------------------- /tools/fs_config/Android.mk: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2008 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | LOCAL_PATH := $(call my-dir) 16 | include $(CLEAR_VARS) 17 | 18 | ifneq ($(TARGET_SIMULATOR),true) 19 | 20 | LOCAL_SRC_FILES := fs_config.c 21 | LOCAL_MODULE := fs_config 22 | LOCAL_FORCE_STATIC_EXECUTABLE := true 23 | LOCAL_MODULE_TAGS := eng 24 | 25 | include $(BUILD_HOST_EXECUTABLE) 26 | 27 | endif # !TARGET_SIMULATOR 28 | -------------------------------------------------------------------------------- /tools/droiddoc/test/stubs/src/com/android/stubs/Annot.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.android.stubs; 18 | 19 | import java.lang.annotation.*; 20 | 21 | /** 22 | * poop 23 | */ 24 | @Documented 25 | @Retention(RetentionPolicy.RUNTIME) 26 | @Target(ElementType.TYPE) 27 | public @interface Annot { 28 | String value() default "yo\u1234"; 29 | } 30 | 31 | -------------------------------------------------------------------------------- /libs/host/include/host/CopyFile.h: -------------------------------------------------------------------------------- 1 | #ifndef _HOST_COPYFILE_H 2 | #define _HOST_COPYFILE_H 3 | 4 | #include 5 | #include 6 | 7 | #if __cplusplus 8 | extern "C" { 9 | #endif 10 | 11 | // command line options 12 | enum { 13 | COPY_NO_DEREFERENCE = 0x00010000, // copy symlink link instead of target 14 | COPY_TRY_EXE = 0x00020000, // on Win32, try adding '.exe' to filename 15 | COPY_FORCE = 0x00040000, // override access permissions 16 | COPY_PERMISSIONS = 0x00080000, // preserve mode, ownership, timestamps 17 | COPY_TIMESTAMPS = 0x00100000, // preserve mode, ownership, timestamps 18 | COPY_RECURSIVE = 0x00200000, // copy directories 19 | COPY_UPDATE_ONLY = 0x00400000, // only copy if source file is newer 20 | COPY_VERBOSE_MASK = 0x000000ff // talk lots 21 | }; 22 | 23 | int copyFile(const char* src, const char* dst, unsigned int options); 24 | 25 | #if __cplusplus 26 | } // extern "C" 27 | #endif 28 | 29 | #endif // _HOST_COPYFILE_H 30 | 31 | -------------------------------------------------------------------------------- /tools/apicheck/src/Android.mk: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2008 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | LOCAL_PATH := $(call my-dir) 16 | 17 | 18 | # apicheck java library 19 | # ============================================================ 20 | include $(CLEAR_VARS) 21 | 22 | LOCAL_SRC_FILES := $(call all-subdir-java-files) 23 | LOCAL_JAR_MANIFEST := MANIFEST.mf 24 | 25 | LOCAL_MODULE:= apicheck 26 | 27 | include $(BUILD_HOST_JAVA_LIBRARY) 28 | 29 | -------------------------------------------------------------------------------- /tools/droiddoc/templates/package-descr.cs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 |
11 |
12 | 13 |
14 |
15 | 16 |
17 | package 18 |

19 |
20 | Classes | Description 21 |
22 |
23 | 24 |
25 | 26 |
27 |
28 |

29 |
30 | 31 | 32 |
33 |
34 | 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /core/static_library.mk: -------------------------------------------------------------------------------- 1 | ########################################################### 2 | ## Standard rules for building a static library. 3 | ## 4 | ## Additional inputs from base_rules.make: 5 | ## None. 6 | ## 7 | ## LOCAL_MODULE_SUFFIX will be set for you. 8 | ########################################################### 9 | 10 | ifeq ($(strip $(LOCAL_MODULE_CLASS)),) 11 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES 12 | endif 13 | ifeq ($(strip $(LOCAL_MODULE_SUFFIX)),) 14 | LOCAL_MODULE_SUFFIX := .a 15 | endif 16 | LOCAL_UNINSTALLABLE_MODULE := true 17 | 18 | include $(BUILD_SYSTEM)/binary.mk 19 | 20 | ifeq ($(LOCAL_RAW_STATIC_LIBRARY),true) 21 | LOCAL_RAW_STATIC_LIBRARY:= 22 | $(all_objects) : PRIVATE_TARGET_PROJECT_INCLUDES := 23 | $(all_objects) : PRIVATE_TARGET_C_INCLUDES := 24 | $(all_objects) : PRIVATE_TARGET_GLOBAL_CFLAGS := 25 | $(all_objects) : PRIVATE_TARGET_GLOBAL_CPPFLAGS := 26 | endif 27 | 28 | $(LOCAL_BUILT_MODULE): $(built_whole_libraries) 29 | $(LOCAL_BUILT_MODULE): $(all_objects) 30 | $(transform-o-to-static-lib) 31 | -------------------------------------------------------------------------------- /core/combo/arch/arm/armv4t.mk: -------------------------------------------------------------------------------- 1 | # Configuration for Linux on ARM. 2 | # Generating binaries for the ARMv4T architecture and higher 3 | # 4 | # Supporting armv4 (without thumb) does not make much sense since 5 | # it's mostly an obsoleted instruction set architecture (only available 6 | # in StrongArm and arm8). Supporting armv4 will require a lot of conditional 7 | # code in assembler source since the bx (branch and exchange) instruction is 8 | # not supported. 9 | # 10 | $(warning ARMv4t support is currently a work in progress. It does not work right now!) 11 | ARCH_ARM_HAVE_THUMB_SUPPORT := false 12 | ARCH_ARM_HAVE_THUMB_INTERWORKING := false 13 | ARCH_ARM_HAVE_64BIT_DATA := false 14 | ARCH_ARM_HAVE_HALFWORD_MULTIPLY := false 15 | ARCH_ARM_HAVE_CLZ := false 16 | ARCH_ARM_HAVE_FFS := false 17 | 18 | DEFAULT_TARGET_CPU := arm920t 19 | 20 | # Note: Hard coding the 'tune' value here is probably not ideal, 21 | # and a better solution should be found in the future. 22 | # 23 | arch_variant_cflags := -march=armv4t -mtune=arm920t -D__ARM_ARCH_4T__ 24 | -------------------------------------------------------------------------------- /tools/droiddoc/templates/keywords.cs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
7 | 8 |
9 |

10 |
11 | 12 |
13 | 14 |
15 | 16 |
17 | 18 | 19 | 20 |

21 |
    22 |
  •  ()
  • 25 |
27 | 28 | 29 | 30 | 31 |
32 |
33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /tools/isprelinked/Android.mk: -------------------------------------------------------------------------------- 1 | # Copyright 2005 The Android Open Source Project 2 | # 3 | # Android.mk for apriori 4 | # 5 | 6 | LOCAL_PATH:= $(call my-dir) 7 | 8 | ifeq ($(TARGET_ARCH),arm) 9 | include $(CLEAR_VARS) 10 | 11 | LOCAL_LDLIBS += -ldl 12 | LOCAL_CFLAGS += -O2 -g 13 | LOCAL_CFLAGS += -fno-function-sections -fno-data-sections -fno-inline 14 | LOCAL_CFLAGS += -Wall -Wno-unused-function #-Werror 15 | LOCAL_CFLAGS += -DSUPPORT_ANDROID_PRELINK_TAGS 16 | LOCAL_CFLAGS += -DARM_SPECIFIC_HACKS 17 | LOCAL_CFLAGS += -DDEBUG 18 | 19 | ifeq ($(HOST_OS),windows) 20 | LOCAL_LDLIBS += -lintl 21 | endif 22 | 23 | LOCAL_SRC_FILES := \ 24 | isprelinked.c \ 25 | debug.c \ 26 | prelink_info.c 27 | 28 | LOCAL_C_INCLUDES:= \ 29 | $(LOCAL_PATH)/ \ 30 | external/elfutils/lib/ \ 31 | external/elfutils/libelf/ \ 32 | external/elfutils/libebl/ \ 33 | external/elfcopy/ 34 | 35 | LOCAL_STATIC_LIBRARIES := libelfcopy libelf libebl libebl_arm #dl 36 | 37 | LOCAL_MODULE := isprelinked 38 | 39 | include $(BUILD_HOST_EXECUTABLE) 40 | endif #TARGET_ARCH==arm 41 | -------------------------------------------------------------------------------- /core/raw_executable.mk: -------------------------------------------------------------------------------- 1 | LOCAL_MODULE_CLASS := EXECUTABLES 2 | LOCAL_MODULE_SUFFIX := 3 | LOCAL_FORCE_STATIC_EXECUTABLE := true 4 | 5 | include $(BUILD_SYSTEM)/binary.mk 6 | 7 | $(LOCAL_BUILT_MODULE) : PRIVATE_ELF_FILE := $(intermediates)/$(PRIVATE_MODULE).elf 8 | $(LOCAL_BUILT_MODULE) : PRIVATE_LIBS := `$(TARGET_CC) -mthumb-interwork -print-libgcc-file-name` 9 | 10 | $(all_objects) : PRIVATE_TARGET_PROJECT_INCLUDES := 11 | $(all_objects) : PRIVATE_TARGET_C_INCLUDES := 12 | $(all_objects) : PRIVATE_TARGET_GLOBAL_CFLAGS := 13 | $(all_objects) : PRIVATE_TARGET_GLOBAL_CPPFLAGS := 14 | 15 | $(LOCAL_BUILT_MODULE): $(all_objects) $(all_libraries) 16 | @$(mkdir -p $(dir $@) 17 | @echo "target Linking: $(PRIVATE_MODULE)" 18 | $(hide) $(TARGET_LD) \ 19 | $(addprefix --script ,$(PRIVATE_LINK_SCRIPT)) \ 20 | $(PRIVATE_RAW_EXECUTABLE_LDFLAGS) \ 21 | -o $(PRIVATE_ELF_FILE) \ 22 | $(PRIVATE_ALL_OBJECTS) \ 23 | --start-group $(PRIVATE_ALL_STATIC_LIBRARIES) --end-group \ 24 | $(PRIVATE_LIBS) 25 | $(hide) $(TARGET_OBJCOPY) -O binary $(PRIVATE_ELF_FILE) $@ 26 | -------------------------------------------------------------------------------- /core/host_shared_library.mk: -------------------------------------------------------------------------------- 1 | ########################################################### 2 | ## Standard rules for building a normal shared library. 3 | ## 4 | ## Additional inputs from base_rules.make: 5 | ## None. 6 | ## 7 | ## LOCAL_MODULE_SUFFIX will be set for you. 8 | ########################################################### 9 | 10 | LOCAL_IS_HOST_MODULE := true 11 | 12 | ifeq ($(strip $(LOCAL_MODULE_CLASS)),) 13 | LOCAL_MODULE_CLASS := SHARED_LIBRARIES 14 | endif 15 | ifeq ($(strip $(LOCAL_MODULE_SUFFIX)),) 16 | LOCAL_MODULE_SUFFIX := $(HOST_SHLIB_SUFFIX) 17 | endif 18 | ifneq ($(strip $(OVERRIDE_BUILT_MODULE_PATH)),) 19 | $(error $(LOCAL_PATH): Illegal use of OVERRIDE_BUILT_MODULE_PATH) 20 | endif 21 | 22 | # Put the built modules of all shared libraries in a common directory 23 | # to simplify the link line. 24 | OVERRIDE_BUILT_MODULE_PATH := $(HOST_OUT_INTERMEDIATE_LIBRARIES) 25 | 26 | include $(BUILD_SYSTEM)/binary.mk 27 | 28 | $(LOCAL_BUILT_MODULE): $(all_objects) $(all_libraries) $(LOCAL_ADDITIONAL_DEPENDENCIES) 29 | $(transform-host-o-to-shared-lib) 30 | -------------------------------------------------------------------------------- /core/static_java_library.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2008 The Android Open Source Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | # Standard rules for building a "static" java library. 18 | # Static java libraries are not installed, nor listed on any 19 | # classpaths. They can, however, be included wholesale in 20 | # other java modules. 21 | 22 | LOCAL_UNINSTALLABLE_MODULE := true 23 | LOCAL_IS_STATIC_JAVA_LIBRARY := true 24 | include $(BUILD_SYSTEM)/java_library.mk 25 | LOCAL_IS_STATIC_JAVA_LIBRARY := 26 | -------------------------------------------------------------------------------- /tools/atree/files.h: -------------------------------------------------------------------------------- 1 | #ifndef FILES_H 2 | #define FILES_H 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | 9 | using namespace std; 10 | 11 | struct FileRecord 12 | { 13 | string listFile; 14 | int listLine; 15 | 16 | string sourceBase; 17 | string sourceName; 18 | string sourcePath; 19 | bool sourceIsDir; 20 | time_t sourceMod; 21 | 22 | string outName; 23 | string outPath; 24 | time_t outMod; 25 | bool outIsDir; 26 | unsigned int mode; 27 | }; 28 | 29 | int read_list_file(const string& filename, 30 | const map& variables, 31 | vector* files, 32 | vector* excludes); 33 | int locate(FileRecord* rec, const vector& search); 34 | void stat_out(const string& base, FileRecord* rec); 35 | string dir_part(const string& filename); 36 | int list_dir(const FileRecord& rec, const vector& excludes, 37 | vector* files); 38 | 39 | #endif // FILES_H 40 | -------------------------------------------------------------------------------- /tools/check_prereq/Android.mk: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2009 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | LOCAL_PATH := $(call my-dir) 16 | include $(CLEAR_VARS) 17 | 18 | ifneq ($(TARGET_SIMULATOR),true) 19 | 20 | LOCAL_SRC_FILES := check_prereq.c 21 | LOCAL_MODULE := check_prereq 22 | LOCAL_FORCE_STATIC_EXECUTABLE := true 23 | LOCAL_MODULE_TAGS := eng 24 | LOCAL_C_INCLUDES += 25 | LOCAL_STATIC_LIBRARIES += libcutils libc 26 | 27 | include $(BUILD_EXECUTABLE) 28 | 29 | endif # !TARGET_SIMULATOR 30 | 31 | -------------------------------------------------------------------------------- /tools/droiddoc/src/Sorter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | public class Sorter implements Comparable 18 | { 19 | public String label; 20 | public Object data; 21 | 22 | public Sorter(String l, Object d) 23 | { 24 | label = l; 25 | data = d; 26 | } 27 | 28 | public int compareTo(Object other) 29 | { 30 | return label.compareToIgnoreCase(((Sorter)other).label); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /tools/droiddoc/templates/docpage.cs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 |
11 | 12 | 13 | > 14 |   15 | 16 | 17 |

18 |
19 | 20 |
21 | 22 |
23 | 24 |
25 | 26 | ↑ Go to top 27 | 28 |

← Back to

29 | 30 |
31 | 32 | 33 |
34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /tools/droiddoc/templates/packages.cs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 |
11 |

12 |
13 | 14 |
15 | 16 |
17 |

18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 | 32 |
33 |
34 | 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /tools/lsd/Android.mk: -------------------------------------------------------------------------------- 1 | # Copyright 2005 The Android Open Source Project 2 | # 3 | # Android.mk for lsd 4 | # 5 | 6 | LOCAL_PATH:= $(call my-dir) 7 | 8 | ifeq ($(TARGET_ARCH),arm) 9 | include $(CLEAR_VARS) 10 | 11 | LOCAL_LDLIBS += -ldl 12 | LOCAL_CFLAGS += -O2 -g 13 | LOCAL_CFLAGS += -fno-function-sections -fno-data-sections -fno-inline 14 | LOCAL_CFLAGS += -Wall -Wno-unused-function #-Werror 15 | LOCAL_CFLAGS += -DBIG_ENDIAN=1 16 | LOCAL_CFLAGS += -DARM_SPECIFIC_HACKS 17 | LOCAL_CFLAGS += -DSUPPORT_ANDROID_PRELINK_TAGS 18 | LOCAL_CFLAGS += -DDEBUG 19 | 20 | ifeq ($(HOST_OS),windows) 21 | LOCAL_LDLIBS += -lintl 22 | endif 23 | 24 | LOCAL_SRC_FILES := \ 25 | cmdline.c \ 26 | debug.c \ 27 | hash.c \ 28 | lsd.c \ 29 | main.c 30 | 31 | LOCAL_C_INCLUDES:= \ 32 | $(LOCAL_PATH)/ \ 33 | external/elfutils/lib/ \ 34 | external/elfutils/libelf/ \ 35 | external/elfutils/libebl/ 36 | 37 | LOCAL_STATIC_LIBRARIES := libelf libebl libebl_arm #dl 38 | 39 | LOCAL_MODULE := lsd 40 | 41 | include $(BUILD_HOST_EXECUTABLE) 42 | endif #TARGET_ARCH==arm 43 | 44 | -------------------------------------------------------------------------------- /target/product/generic_x86.mk: -------------------------------------------------------------------------------- 1 | # This is a generic product that isn't specialized for a specific device. 2 | # It includes the base Android platform. If you need Google-specific features, 3 | # you should derive from generic_with_google.mk 4 | 5 | PRODUCT_PACKAGES := \ 6 | AlarmClock \ 7 | AlarmProvider \ 8 | Calendar \ 9 | Camera \ 10 | DrmProvider \ 11 | LatinIME \ 12 | Mms \ 13 | Music \ 14 | Settings \ 15 | Sync \ 16 | Updater \ 17 | CalendarProvider \ 18 | SubscribedFeedsProvider \ 19 | SyncProvider 20 | 21 | $(call inherit-product, $(SRC_TARGET_DIR)/product/core.mk) 22 | 23 | # Overrides 24 | PRODUCT_BRAND := generic_x86 25 | PRODUCT_DEVICE := generic_x86 26 | PRODUCT_NAME := generic_x86 27 | PRODUCT_POLICY := android.policy_phone 28 | 29 | # If running on an emulator or some other device that has a LAN connection 30 | # that isn't a wifi connection. This will instruct init.rc to enable the 31 | # network connection so that you can use it with ADB 32 | ifdef NET_ETH0_STARTONBOOT 33 | PRODUCT_PROPERTY_OVERRIDES += net.eth0.startonboot=1 34 | endif 35 | -------------------------------------------------------------------------------- /tools/droiddoc/test/generics/Android.mk: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2008 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | LOCAL_PATH:= $(call my-dir) 16 | include $(CLEAR_VARS) 17 | 18 | LOCAL_SRC_FILES:=$(call all-subdir-java-files) 19 | 20 | LOCAL_MODULE:=test_generics 21 | LOCAL_DROIDDOC_OPTIONS:=\ 22 | -stubs __test_generics__ 23 | 24 | LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=tools/droiddoc/templates-google 25 | LOCAL_DROIDDOC_CUSTOM_ASSET_DIR:=assets-google 26 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES 27 | 28 | include $(BUILD_DROIDDOC) 29 | -------------------------------------------------------------------------------- /target/board/generic_x86/disk_layout.conf: -------------------------------------------------------------------------------- 1 | device { 2 | path /dev/block/sda 3 | 4 | scheme mbr 5 | 6 | # bytes in a disk sector (== 1 LBA), must be a power of 2! 7 | sector_size 512 8 | 9 | # What LBA should the partitions start at? 10 | start_lba 2048 11 | 12 | # Autodetect disk size if == 0 13 | num_lba 0 14 | 15 | partitions { 16 | sysloader { 17 | active y 18 | type linux 19 | len 7M 20 | } 21 | 22 | recovery { 23 | active y 24 | type linux 25 | len 16M 26 | } 27 | 28 | boot { 29 | active y 30 | type linux 31 | len 8M 32 | } 33 | 34 | cache { 35 | type linux 36 | len 512M 37 | } 38 | 39 | system { 40 | type linux 41 | len 512M 42 | } 43 | 44 | third_party { 45 | type linux 46 | len 512M 47 | } 48 | 49 | data { 50 | type linux 51 | len -1 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /target/product/languages_small.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2009 The Android Open Source Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | # This is a build configuration that just contains a list of languages. 18 | # It helps in situations where laugnages must come first in the list, 19 | # mostly because screen densities interfere with the list of locales and 20 | # the system misbehaves when a density is the first locale. 21 | 22 | # This is the list of languages that originally shipped on ADP1 23 | 24 | PRODUCT_LOCALES := en_US en_GB fr_FR it_IT de_DE es_ES 25 | -------------------------------------------------------------------------------- /tools/droiddoc/test/stubs/Android.mk: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2008 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | LOCAL_PATH:= $(call my-dir) 16 | include $(CLEAR_VARS) 17 | 18 | LOCAL_SRC_FILES:=$(call all-java-files-under,src) 19 | 20 | LOCAL_MODULE:=test_stubs 21 | LOCAL_DROIDDOC_OPTIONS:=\ 22 | -stubs $(OUT_DIR)/__test_stubs__ 23 | 24 | LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=tools/droiddoc/templates-google 25 | LOCAL_DROIDDOC_CUSTOM_ASSET_DIR:=assets-google 26 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES 27 | 28 | include $(BUILD_DROIDDOC) 29 | 30 | -------------------------------------------------------------------------------- /core/executable.mk: -------------------------------------------------------------------------------- 1 | ########################################################### 2 | ## Standard rules for building an executable file. 3 | ## 4 | ## Additional inputs from base_rules.make: 5 | ## None. 6 | ########################################################### 7 | 8 | ifeq ($(strip $(LOCAL_MODULE_CLASS)),) 9 | LOCAL_MODULE_CLASS := EXECUTABLES 10 | endif 11 | ifeq ($(strip $(LOCAL_MODULE_SUFFIX)),) 12 | LOCAL_MODULE_SUFFIX := $(TARGET_EXECUTABLE_SUFFIX) 13 | endif 14 | 15 | # Executables are not prelinked. If we decide to start prelinking 16 | # them, the LOCAL_PRELINK_MODULE definitions should be moved from 17 | # here and shared_library.make and consolidated in dynamic_binary.make. 18 | LOCAL_PRELINK_MODULE := false 19 | 20 | include $(BUILD_SYSTEM)/dynamic_binary.mk 21 | 22 | ifeq ($(LOCAL_FORCE_STATIC_EXECUTABLE),true) 23 | $(linked_module): $(TARGET_CRTBEGIN_STATIC_O) $(all_objects) $(all_libraries) $(TARGET_CRTEND_O) 24 | $(transform-o-to-static-executable) 25 | else 26 | $(linked_module): $(TARGET_CRTBEGIN_DYNAMIC_O) $(all_objects) $(all_libraries) $(TARGET_CRTEND_O) 27 | $(transform-o-to-executable) 28 | endif 29 | -------------------------------------------------------------------------------- /tools/droiddoc/src/LiteralTagInfo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | public class LiteralTagInfo extends TagInfo 18 | { 19 | private static String encode(String t) 20 | { 21 | t = t.replace("&", "&"); 22 | t = t.replace("<", "<"); 23 | t = t.replace(">", ">"); 24 | return t; 25 | } 26 | 27 | public LiteralTagInfo(String n, String k, String t, SourcePositionInfo sp) 28 | { 29 | super("Text", "Text", encode(t), sp); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /tools/isprelinked/debug.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | #define NUM_COLS (32) 6 | 7 | int dump_hex_buffer(FILE *s, void *b, size_t len, size_t elsize) { 8 | int num_nonprintable = 0; 9 | int i, last; 10 | char *pchr = (char *)b; 11 | fputc('\n', s); 12 | for (i = last = 0; i < len; i++) { 13 | if (!elsize) { 14 | if (i && !(i % 4)) fprintf(s, " "); 15 | if (i && !(i % 8)) fprintf(s, " "); 16 | } else { 17 | if (i && !(i % elsize)) fprintf(s, " "); 18 | } 19 | 20 | if (i && !(i % NUM_COLS)) { 21 | while (last < i) { 22 | if (isprint(pchr[last])) 23 | fputc(pchr[last], s); 24 | else { 25 | fputc('.', s); 26 | num_nonprintable++; 27 | } 28 | last++; 29 | } 30 | fprintf(s, " (%d)\n", i); 31 | } 32 | fprintf(s, "%02x", (unsigned char)pchr[i]); 33 | } 34 | if (i && (i % NUM_COLS)) fputs("\n", s); 35 | return num_nonprintable; 36 | } 37 | 38 | -------------------------------------------------------------------------------- /tools/lsd/debug.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | #define NUM_COLS (32) 6 | 7 | int dump_hex_buffer(FILE *s, void *b, size_t len, size_t elsize) 8 | { 9 | int num_nonprintable = 0; 10 | int i, last; 11 | char *pchr = (char *)b; 12 | fputc('\n', s); 13 | for (i = last = 0; i < len; i++) { 14 | if (!elsize) { 15 | if (i && !(i % 4)) fprintf(s, " "); 16 | if (i && !(i % 8)) fprintf(s, " "); 17 | } 18 | else { 19 | if (i && !(i % elsize)) fprintf(s, " "); 20 | } 21 | 22 | if (i && !(i % NUM_COLS)) { 23 | while (last < i) { 24 | if (isprint(pchr[last])) 25 | fputc(pchr[last], s); 26 | else { 27 | fputc('.', s); 28 | num_nonprintable++; 29 | } 30 | last++; 31 | } 32 | fprintf(s, " (%d)\n", i); 33 | } 34 | fprintf(s, "%02x", (unsigned char)pchr[i]); 35 | } 36 | if (i && (i % NUM_COLS)) fputs("\n", s); 37 | return num_nonprintable; 38 | } 39 | 40 | -------------------------------------------------------------------------------- /tools/apicheck/src/com/android/apicheck/ParameterInfo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.android.apicheck; 18 | 19 | public class ParameterInfo { 20 | private String mType; 21 | private String mName; 22 | 23 | public ParameterInfo(String type, String name) { 24 | mType = type; 25 | mName = name; 26 | } 27 | 28 | public String getType() { 29 | return mType; 30 | } 31 | 32 | public String getName() { 33 | return mName; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /tools/droiddoc/test/stubs/run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Copyright (C) 2008 The Android Open Source Project 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | DIR=build/tools/droiddoc/test/stubs 18 | 19 | pushd $TOP 20 | 21 | . $TOP/$DIR/func.sh 22 | 23 | mkdir -p out/stubs_compiled 24 | find $DIR/src -name "*.java" | xargs javac -d out/stubs_compiled 25 | 26 | build_stubs a $DIR/src $A_STUBS 27 | build_stubs b $A_STUBS $B_STUBS 28 | 29 | compile_stubs a $A_STUBS 30 | 31 | echo EXPECTED 32 | diff -r $DIR/expected $A_STUBS 33 | echo TWICE STUBBED 34 | diff -r $A_STUBS $B_STUBS 35 | 36 | popd &> /dev/null 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /tools/soslim/debug.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | #if 0 6 | 7 | #define NUM_COLS (32) 8 | 9 | int dump_hex_buffer(FILE *s, void *b, size_t len, size_t elsize) { 10 | int num_nonprintable = 0; 11 | int i, last; 12 | char *pchr = (char *)b; 13 | fputc('\n', s); 14 | for (i = last = 0; i < len; i++) { 15 | if (!elsize) { 16 | if (i && !(i % 4)) fprintf(s, " "); 17 | if (i && !(i % 8)) fprintf(s, " "); 18 | } else { 19 | if (i && !(i % elsize)) fprintf(s, " "); 20 | } 21 | 22 | if (i && !(i % NUM_COLS)) { 23 | while (last < i) { 24 | if (isprint(pchr[last])) 25 | fputc(pchr[last], s); 26 | else { 27 | fputc('.', s); 28 | num_nonprintable++; 29 | } 30 | last++; 31 | } 32 | fprintf(s, " (%d)\n", i); 33 | } 34 | fprintf(s, "%02x", (unsigned char)pchr[i]); 35 | } 36 | if (i && (i % NUM_COLS)) fputs("\n", s); 37 | return num_nonprintable; 38 | } 39 | 40 | #endif 41 | -------------------------------------------------------------------------------- /libs/host/list.java: -------------------------------------------------------------------------------- 1 | import java.io.*; 2 | 3 | public class list { 4 | private static char nibble(int c) { 5 | return (char)(c < 10 ? ('0' + c) : ('a' + (c-10))); 6 | } 7 | public static void main(String[] argv) 8 | { 9 | ByteArrayOutputStream stream = new ByteArrayOutputStream(100); 10 | OutputStreamWriter writer = null; 11 | try { 12 | writer = new OutputStreamWriter(stream, "utf-8"); 13 | } catch (UnsupportedEncodingException e) { 14 | e.printStackTrace(System.err); 15 | } 16 | 17 | int n = Integer.parseInt(argv[1], 16); 18 | try { 19 | writer.write(n); 20 | writer.close(); 21 | } catch (IOException e) { 22 | e.printStackTrace(System.err); 23 | } 24 | 25 | byte[] array = stream.toByteArray(); 26 | 27 | System.out.print(" case '" + argv[0] + "': return \""); 28 | for (int i=0; i> 4) & 0x0f) + nibble(b & 0xf)); 31 | } 32 | System.out.println("\";"); 33 | } 34 | } 35 | 36 | -------------------------------------------------------------------------------- /tools/apriori/debug.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | #define NUM_COLS (32) 6 | 7 | int dump_hex_buffer(FILE *s, void *b, size_t len, size_t elsize) { 8 | int num_nonprintable = 0; 9 | int i, last; 10 | char *pchr = (char *)b; 11 | fputc('\n', s); 12 | fprintf(s, "%p: ", b); 13 | for (i = last = 0; i < len; i++) { 14 | if (!elsize) { 15 | if (i && !(i % 4)) fprintf(s, " "); 16 | if (i && !(i % 8)) fprintf(s, " "); 17 | } else { 18 | if (i && !(i % elsize)) fprintf(s, " "); 19 | } 20 | 21 | if (i && !(i % NUM_COLS)) { 22 | while (last < i) { 23 | if (isprint(pchr[last])) 24 | fputc(pchr[last], s); 25 | else { 26 | fputc('.', s); 27 | num_nonprintable++; 28 | } 29 | last++; 30 | } 31 | fprintf(s, " (%d)\n%p: ", i, b); 32 | } 33 | fprintf(s, "%02x", (unsigned char)pchr[i]); 34 | } 35 | if (i && (i % NUM_COLS)) fputs("\n", s); 36 | return num_nonprintable; 37 | } 38 | 39 | -------------------------------------------------------------------------------- /tools/signapk/Android.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2008 The Android Open Source Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | LOCAL_PATH := $(call my-dir) 17 | 18 | # the signapk tool (a .jar application used to sign packages) 19 | # ============================================================ 20 | include $(CLEAR_VARS) 21 | LOCAL_MODULE := signapk 22 | LOCAL_SRC_FILES := SignApk.java 23 | LOCAL_JAR_MANIFEST := SignApk.mf 24 | include $(BUILD_HOST_JAVA_LIBRARY) 25 | 26 | ifeq ($(TARGET_BUILD_APPS),) 27 | # The post-build signing tools need signapk.jar, but we don't 28 | # need this if we're just doing unbundled apps. 29 | $(call dist-for-goals,droidcore,$(LOCAL_INSTALLED_MODULE)) 30 | endif 31 | -------------------------------------------------------------------------------- /core/build_id.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2008 The Android Open Source Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | # 18 | # Defines branch-specific values. 19 | # 20 | 21 | # BUILD_ID is usually used to specify the branch name 22 | # (like "MAIN") or a branch name and a release candidate 23 | # (like "TC1-RC5"). It must be a single word, and is 24 | # capitalized by convention. 25 | # 26 | BUILD_ID := GINGERBREAD 27 | 28 | # DISPLAY_BUILD_NUMBER should only be set for development branches, 29 | # If set, the BUILD_NUMBER (cl) is appended to the BUILD_ID for 30 | # a more descriptive BUILD_ID_DISPLAY, otherwise BUILD_ID_DISPLAY 31 | # is the same as BUILD_ID 32 | DISPLAY_BUILD_NUMBER := true 33 | -------------------------------------------------------------------------------- /core/combo/javac.mk: -------------------------------------------------------------------------------- 1 | # Selects a Java compiler. 2 | # 3 | # Inputs: 4 | # CUSTOM_JAVA_COMPILER -- "eclipse", "openjdk". or nothing for the system 5 | # default 6 | # 7 | # Outputs: 8 | # COMMON_JAVAC -- Java compiler command with common arguments 9 | 10 | # Whatever compiler is on this system. 11 | ifeq ($(HOST_OS), windows) 12 | COMMON_JAVAC := development/host/windows/prebuilt/javawrap.exe -J-Xmx256m \ 13 | -target 1.5 -Xmaxerrs 9999999 14 | else 15 | COMMON_JAVAC := javac -J-Xmx512M -target 1.5 -Xmaxerrs 9999999 16 | endif 17 | 18 | # Eclipse. 19 | ifeq ($(CUSTOM_JAVA_COMPILER), eclipse) 20 | COMMON_JAVAC := java -Xmx256m -jar prebuilt/common/ecj/ecj.jar -5 \ 21 | -maxProblems 9999999 -nowarn 22 | $(info CUSTOM_JAVA_COMPILER=eclipse) 23 | endif 24 | 25 | # OpenJDK. 26 | ifeq ($(CUSTOM_JAVA_COMPILER), openjdk) 27 | # We set the VM options (like -Xmx) in the javac script. 28 | COMMON_JAVAC := prebuilt/common/openjdk/bin/javac -target 1.5 \ 29 | -Xmaxerrs 9999999 30 | $(info CUSTOM_JAVA_COMPILER=openjdk) 31 | endif 32 | 33 | HOST_JAVAC ?= $(COMMON_JAVAC) 34 | TARGET_JAVAC ?= $(COMMON_JAVAC) 35 | 36 | #$(info HOST_JAVAC=$(HOST_JAVAC)) 37 | #$(info TARGET_JAVAC=$(TARGET_JAVAC)) 38 | -------------------------------------------------------------------------------- /target/board/generic_x86/README.txt: -------------------------------------------------------------------------------- 1 | The generic_x86 board target provides basic services on very basic 2 | hardware (really for an emulation). To build with generic_x86, you will 3 | need an appropriate kernel for your emulation (or device). 4 | 5 | A1. Create a new top level directory and pull the AOSP repository 6 | mkdir $HOME/AOSP 7 | cd $HOME/AOSP 8 | repo init -u git://android.git.kernel.org/platform/manifest.git 9 | repo sync 10 | 11 | A2. Copy in the buildspeck.mk 12 | cd $HOME/AOSP 13 | cp build/target/board/generic_x86/buildspec-generic_x86.mk buildspec.mk 14 | 15 | A3. Copy in the kernel 16 | cd $HOME/AOSP 17 | cp ~/bzImage.your_device $HOME/AOSP/prebuilt/android-x86/kernel/kernel 18 | 19 | A4. Build 20 | cd $HOME/AOSP 21 | source build/envsetup.sh 22 | lunch generic_x86-eng 23 | make -j8 24 | 25 | The build will generate some image files whose format may or may not be correct for your 26 | device. You can build an installer image disk for the VirtualBox emulator using the command: 27 | 28 | A5. Build a VirtualBox installer image 29 | cd $HOME/AOSP 30 | source build/envsetup.sh 31 | lunch generic_x86-eng 32 | make -j8 installer_vdi 33 | 34 | -------------------------------------------------------------------------------- /tools/droiddoc/templates/customization.cs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 22 | 23 | 24 | 25 | 26 | 27 | Build - 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /tools/droiddoc/templates/classes.cs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 |
10 |

11 |
12 | 13 |
14 | 15 |
16 | 17 |
18 | 19 | 20 | 21 |

22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 |
 
32 | 33 | 34 | 35 |
36 |
37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /target/product/security/superuser.x509.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIDUjCCAjqgAwIBAgIETGFAVzANBgkqhkiG9w0BAQUFADBrMQswCQYDVQQGEwJV 3 | UzEQMA4GA1UECBMHRmxvcmlkYTEMMAoGA1UEBxMDRldCMRQwEgYDVQQKEwtTb3Vw 4 | Q29jb251dDEQMA4GA1UECxMHQW5kcm9pZDEUMBIGA1UEAxMLQWRhbSBTaGFua3Mw 5 | HhcNMTAwODEwMTIwNDM5WhcNMzcxMjI2MTIwNDM5WjBrMQswCQYDVQQGEwJVUzEQ 6 | MA4GA1UECBMHRmxvcmlkYTEMMAoGA1UEBxMDRldCMRQwEgYDVQQKEwtTb3VwQ29j 7 | b251dDEQMA4GA1UECxMHQW5kcm9pZDEUMBIGA1UEAxMLQWRhbSBTaGFua3MwggEi 8 | MA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDAWiGXSHuRI0zSqYTjYplKe6Av 9 | Equ4oFOvTrKpYv9Xpk6AUJtty2MTGvF4qKDXOKukFGMQgPu2V9Gs9M96jwNH1ZBE 10 | N+FLasYpKOwNvjEDShkzSo/TJpDz0dZBkysrLapVRu7lCzqqqc8s2nP0dvZcLMoz 11 | QRauXW27Y0UtL7u9GEVQMQ21ZLjgvuoxwzykSrNAuH+OcYssU5/s65Irn4q1YGC4 12 | R/OeCMBujoaqvxNceq7dk3fZsC/T+AH4wEayS92Ku4PVsuj3IWiIVVXGjtOIE2oX 13 | 3FL5+4XZD2FOIM6dGqOGYQTbc0RLOa6gdoa8GuEDd0NR1TSzTTD3JRmPBsXJAgMB 14 | AAEwDQYJKoZIhvcNAQEFBQADggEBABzlbYy5ylAMVi6iThLnm8vvcKRRq1VpSef6 15 | U9Ql3uW0HeHUTahqnwtSUWSPBYGqYq47p1ftEIyTlFDivKctWhew4uK5RPDqadGf 16 | sJDzc3Rpl4NIfZBrQ+3WMyO61y3fix3WGBvF3oPwYFZI3Hwi7wOFhwVQiE666QQ+ 17 | jVJ64wfBiHyKyu8kvtzD/Cn+aOziHWwwBR5p2Ivnf8paJu79NgqXI81watABPWqv 18 | vUdNHSssL8YoNGIHbNhWCKWzCXucFYx6QSRWb1v3CJ2Io20UxfIpSyPxki0AoREo 19 | afBIivl+cftabtscRxE7Qb5R4BPRIwVEng7dRuH6Lup2Dilo0lQ= 20 | -----END CERTIFICATE----- 21 | -------------------------------------------------------------------------------- /tools/droiddoc/test/stubs/src/com/android/stubs/a/A.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.android.stubs.a; 18 | 19 | import com.android.stubs.Parent; 20 | 21 | public abstract class A extends Parent implements Parent.Interface, SomeInterface { 22 | protected A(int a) { 23 | super(); 24 | } 25 | 26 | public A varargs(Parent... args) { 27 | return null; 28 | } 29 | 30 | public void method() { 31 | } 32 | public abstract String[] stringArrayMethod() throws java.io.IOException; 33 | 34 | public class Inner { 35 | int method() { 36 | return 1; 37 | } 38 | int field; 39 | } 40 | } 41 | 42 | -------------------------------------------------------------------------------- /tools/soslim/Android.mk: -------------------------------------------------------------------------------- 1 | # Copyright 2005 The Android Open Source Project 2 | # 3 | # Android.mk for soslim 4 | # 5 | 6 | LOCAL_PATH:= $(call my-dir) 7 | 8 | ifeq ($(TARGET_ARCH),arm) 9 | include $(CLEAR_VARS) 10 | 11 | LOCAL_LDLIBS += -ldl 12 | LOCAL_CFLAGS += -O2 -g 13 | LOCAL_CFLAGS += -fno-function-sections -fno-data-sections -fno-inline 14 | LOCAL_CFLAGS += -Wall -Wno-unused-function #-Werror 15 | LOCAL_CFLAGS += -DBIG_ENDIAN=1 16 | LOCAL_CFLAGS += -DARM_SPECIFIC_HACKS 17 | LOCAL_CFLAGS += -DSUPPORT_ANDROID_PRELINK_TAGS 18 | LOCAL_CFLAGS += -DDEBUG 19 | LOCAL_CFLAGS += -DSTRIP_STATIC_SYMBOLS 20 | LOCAL_CFLAGS += -DMOVE_SECTIONS_IN_RANGES 21 | 22 | ifeq ($(HOST_OS),windows) 23 | # Cygwin stat does not support ACCESSPERMS bitmask 24 | LOCAL_CFLAGS += -DACCESSPERMS=0777 25 | LOCAL_LDLIBS += -lintl 26 | endif 27 | 28 | LOCAL_SRC_FILES := \ 29 | cmdline.c \ 30 | common.c \ 31 | debug.c \ 32 | soslim.c \ 33 | main.c \ 34 | prelink_info.c \ 35 | symfilter.c 36 | 37 | LOCAL_C_INCLUDES:= \ 38 | $(LOCAL_PATH)/ \ 39 | external/elfutils/lib/ \ 40 | external/elfutils/libelf/ \ 41 | external/elfutils/libebl/ \ 42 | external/elfcopy/ 43 | 44 | LOCAL_STATIC_LIBRARIES := libelfcopy libelf libebl libebl_arm #dl 45 | 46 | LOCAL_MODULE := soslim 47 | 48 | include $(BUILD_HOST_EXECUTABLE) 49 | endif #TARGET_ARCH==arm 50 | -------------------------------------------------------------------------------- /tools/soslim/common.h: -------------------------------------------------------------------------------- 1 | #ifndef COMMON_H 2 | #define COMMON_H 3 | 4 | #include 5 | #include 6 | 7 | #define unlikely(expr) __builtin_expect (expr, 0) 8 | #define likely(expr) __builtin_expect (expr, 1) 9 | 10 | #define MIN(a,b) ((a)<(b)?(a):(b)) /* no side effects in arguments allowed! */ 11 | 12 | typedef int (*section_match_fn_t)(Elf *, Elf_Scn *, void *); 13 | void map_over_sections(Elf *, section_match_fn_t, void *); 14 | 15 | typedef int (*segment_match_fn_t)(Elf *, Elf32_Phdr *, void *); 16 | void map_over_segments(Elf *, segment_match_fn_t, void *); 17 | 18 | typedef struct { 19 | Elf_Scn *sect; 20 | Elf32_Shdr *hdr; 21 | Elf_Data *data; 22 | size_t index; 23 | } section_info_t; 24 | 25 | static inline void get_section_info(Elf_Scn *sect, section_info_t *info) 26 | { 27 | info->sect = sect; 28 | info->data = elf_getdata(sect, 0); 29 | info->hdr = elf32_getshdr(sect); 30 | info->index = elf_ndxscn(sect); 31 | } 32 | 33 | static inline int is_host_little(void) 34 | { 35 | short val = 0x10; 36 | return ((char *)&val)[0] != 0; 37 | } 38 | 39 | static inline long switch_endianness(long val) 40 | { 41 | long newval; 42 | ((char *)&newval)[3] = ((char *)&val)[0]; 43 | ((char *)&newval)[2] = ((char *)&val)[1]; 44 | ((char *)&newval)[1] = ((char *)&val)[2]; 45 | ((char *)&newval)[0] = ((char *)&val)[3]; 46 | return newval; 47 | } 48 | 49 | #endif/*COMMON_H*/ 50 | -------------------------------------------------------------------------------- /tools/fileslist.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # 3 | # Copyright (C) 2009 The Android Open Source Project 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the 'License'); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an 'AS IS' BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | 18 | import os, sys 19 | 20 | def get_file_size(path): 21 | st = os.lstat(path) 22 | return st.st_size; 23 | 24 | def main(argv): 25 | output = [] 26 | roots = argv[1:] 27 | for root in roots: 28 | base = len(root[:root.rfind(os.path.sep)]) 29 | for dir, dirs, files in os.walk(root): 30 | relative = dir[base:] 31 | for f in files: 32 | try: 33 | row = ( 34 | get_file_size(os.path.sep.join((dir, f))), 35 | os.path.sep.join((relative, f)), 36 | ) 37 | output.append(row) 38 | except os.error: 39 | pass 40 | for row in output: 41 | print "%12d %s" % row 42 | 43 | if __name__ == '__main__': 44 | main(sys.argv) 45 | 46 | -------------------------------------------------------------------------------- /tools/bin2asm/data: -------------------------------------------------------------------------------- 1 | /* 2 | * Convert a data file into a .S file suitable for assembly. 3 | * This reads from stdin and writes to stdout and takes a single 4 | * argument for the name of the symbol in the assembly file. 5 | */ 6 | 7 | #include 8 | 9 | int main(int argc, char *argv[]) { 10 | unsigned char buf[4096]; 11 | size_t amt; 12 | size_t i; 13 | int col = 0; 14 | char *name = argv[1]; 15 | 16 | printf("\ 17 | #ifdef __APPLE_CC__\n\ 18 | /*\n\ 19 | * The mid-2007 version of gcc that ships with Macs requires a\n\ 20 | * comma on the .section line, but the rest of the world thinks\n\ 21 | * that's a syntax error. It also wants globals to be explicitly\n\ 22 | * prefixed with \"_\" as opposed to modern gccs that do the\n\ 23 | * prefixing for you.\n\ 24 | */\n\ 25 | .globl _%s\n\ 26 | .section .rodata,\n\ 27 | .align 8\n\ 28 | _%s:\n\ 29 | #else\n\ 30 | .globl %s\n\ 31 | .section .rodata\n\ 32 | .align 8\n\ 33 | %s:\n\ 34 | #endif\n\ 35 | ", name, name, name, name); 36 | 37 | while (! feof(stdin)) { 38 | amt = fread(buf, 1, sizeof(buf), stdin); 39 | for (i = 0; i < amt; i++) { 40 | printf((col == 0) ? ".byte %3d" : ",%3d", buf[i]); 41 | col++; 42 | if (col == 16) { 43 | printf("\n"); 44 | col = 0; 45 | } 46 | } 47 | } 48 | 49 | if (col != 0) { 50 | printf("\n"); 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /tools/droiddoc/test/generics/src/com/android/generics/FooBar.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.android.generics; 18 | 19 | public class FooBar extends Foo implements Bar { 20 | public class C 21 | { 22 | } 23 | 24 | public class CI extends C implements Iface 25 | { 26 | } 27 | 28 | public FooBar(K k) { 29 | super(null); 30 | throw new RuntimeException("!"); 31 | } 32 | 33 | public K bar(K arg) { 34 | return null; 35 | } 36 | 37 | public FooBar a(K arg) { 38 | return null; 39 | } 40 | 41 | public FooBar b(Bar arg) { 42 | return null; 43 | } 44 | 45 | public void f(L arg) { 46 | } 47 | 48 | public V v; 49 | } 50 | 51 | 52 | -------------------------------------------------------------------------------- /tools/apriori/Android.mk: -------------------------------------------------------------------------------- 1 | # Copyright 2005 The Android Open Source Project 2 | # 3 | # Android.mk for apriori 4 | # 5 | 6 | LOCAL_PATH:= $(call my-dir) 7 | 8 | ifneq ($(TARGET_SIMULATOR),true) 9 | include $(CLEAR_VARS) 10 | 11 | LOCAL_LDLIBS += -ldl 12 | LOCAL_CFLAGS += -O2 -g 13 | LOCAL_CFLAGS += -fno-function-sections -fno-data-sections -fno-inline 14 | LOCAL_CFLAGS += -Wall -Wno-unused-function #-Werror 15 | LOCAL_CFLAGS += -DSUPPORT_ANDROID_PRELINK_TAGS 16 | LOCAL_CFLAGS += -DDEBUG 17 | LOCAL_CFLAGS += -DADJUST_ELF=1 18 | 19 | ifeq ($(TARGET_ARCH),arm) 20 | LOCAL_CFLAGS += -DARM_SPECIFIC_HACKS 21 | LOCAL_CFLAGS += -DBIG_ENDIAN=1 22 | endif 23 | 24 | ifeq ($(HOST_OS),darwin) 25 | LOCAL_CFLAGS += -DFSCANF_IS_BROKEN 26 | endif 27 | ifeq ($(HOST_OS),windows) 28 | LOCAL_CFLAGS += -DFSCANF_IS_BROKEN 29 | LOCAL_LDLIBS += -lintl 30 | endif 31 | 32 | 33 | 34 | LOCAL_SRC_FILES := \ 35 | apriori.c \ 36 | cmdline.c \ 37 | debug.c \ 38 | hash.c \ 39 | main.c \ 40 | prelink_info.c \ 41 | rangesort.c \ 42 | source.c \ 43 | prelinkmap.c 44 | 45 | LOCAL_C_INCLUDES:= \ 46 | $(LOCAL_PATH)/ \ 47 | external/elfutils/lib/ \ 48 | external/elfutils/libelf/ \ 49 | external/elfutils/libebl/ \ 50 | external/elfcopy/ 51 | 52 | LOCAL_STATIC_LIBRARIES := libelfcopy libelf libebl #dl 53 | 54 | ifeq ($(TARGET_ARCH),arm) 55 | LOCAL_STATIC_LIBRARIES += libebl_arm 56 | endif 57 | 58 | LOCAL_MODULE := apriori 59 | 60 | include $(BUILD_HOST_EXECUTABLE) 61 | endif # TARGET_SIMULATOR != true 62 | -------------------------------------------------------------------------------- /tools/droiddoc/test/stubs/expected/com/android/stubs/Parent.java: -------------------------------------------------------------------------------- 1 | package com.android.stubs; 2 | @com.android.stubs.Annot(value="asdf") 3 | public class Parent 4 | { 5 | public static interface Interface 6 | { 7 | public void method(); 8 | } 9 | public Parent() { throw new RuntimeException("Stub!"); } 10 | public java.lang.String methodString() { throw new RuntimeException("Stub!"); } 11 | public int method(boolean b, char c, int i, long l, float f, double d) { throw new RuntimeException("Stub!"); } 12 | protected void protectedMethod() { throw new RuntimeException("Stub!"); } 13 | public static final byte public_static_final_byte = 42; 14 | public static final short public_static_final_short = 43; 15 | public static final int public_static_final_int = 44; 16 | public static final long public_static_final_long = 45L; 17 | public static final char public_static_final_char = 4660; 18 | public static final float public_static_final_float = 42.1f; 19 | public static final double public_static_final_double = 42.2; 20 | public static int public_static_int; 21 | public static final java.lang.String public_static_final_String = "ps\u1234fS"; 22 | public static java.lang.String public_static_String; 23 | public static com.android.stubs.Parent public_static_Parent; 24 | public static final com.android.stubs.Parent public_static_final_Parent; 25 | public static final com.android.stubs.Parent public_static_final_Parent_null; 26 | static { public_static_final_Parent = null; public_static_final_Parent_null = null; } 27 | } 28 | -------------------------------------------------------------------------------- /target/board/Android.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Set up product-global definitions and include product-specific rules. 3 | # 4 | 5 | ifneq ($(strip $(TARGET_NO_BOOTLOADER)),true) 6 | INSTALLED_BOOTLOADER_MODULE := $(PRODUCT_OUT)/bootloader 7 | ifeq ($(strip $(TARGET_BOOTLOADER_IS_2ND)),true) 8 | INSTALLED_2NDBOOTLOADER_TARGET := $(PRODUCT_OUT)/2ndbootloader 9 | else 10 | INSTALLED_2NDBOOTLOADER_TARGET := 11 | endif 12 | else 13 | INSTALLED_BOOTLOADER_MODULE := 14 | INSTALLED_2NDBOOTLOADER_TARGET := 15 | endif # TARGET_NO_BOOTLOADER 16 | 17 | ifneq ($(strip $(TARGET_NO_KERNEL)),true) 18 | INSTALLED_KERNEL_TARGET := $(PRODUCT_OUT)/kernel 19 | else 20 | INSTALLED_KERNEL_TARGET := 21 | endif 22 | 23 | # Use the add-radio-file function to add values to this variable. 24 | INSTALLED_RADIOIMAGE_TARGET := 25 | 26 | -include $(TARGET_DEVICE_DIR)/AndroidBoard.mk 27 | 28 | # Generate a file that contains various information about the 29 | # device we're building for. This file is typically packaged up 30 | # with everything else. 31 | # 32 | # If the file "board-info.txt" appears in $(TARGET_DEVICE_DIR), 33 | # it will be appended to the output file. 34 | # 35 | INSTALLED_ANDROID_INFO_TXT_TARGET := $(PRODUCT_OUT)/android-info.txt 36 | board_info_txt := $(wildcard $(TARGET_DEVICE_DIR)/board-info.txt) 37 | $(INSTALLED_ANDROID_INFO_TXT_TARGET): $(board_info_txt) 38 | $(call pretty,"Generated: ($@)") 39 | ifdef board_info_txt 40 | $(hide) cat $< > $@ 41 | else 42 | $(hide) echo "board=$(TARGET_BOOTLOADER_BOARD_NAME)" > $@ 43 | endif 44 | -------------------------------------------------------------------------------- /target/product/AndroidProducts.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2008 The Android Open Source Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | # 18 | # This file should set PRODUCT_MAKEFILES to a list of product makefiles 19 | # to expose to the build system. LOCAL_DIR will already be set to 20 | # the directory containing this file. 21 | # 22 | # This file may not rely on the value of any variable other than 23 | # LOCAL_DIR; do not use any conditionals, and do not look up the 24 | # value of any variable that isn't set in this file or in a file that 25 | # it includes. 26 | # 27 | 28 | # An unbundled app build needs only generic.mk. 29 | ifneq ($(TARGET_BUILD_APPS),) 30 | PRODUCT_MAKEFILES := \ 31 | $(LOCAL_DIR)/core.mk \ 32 | $(LOCAL_DIR)/generic.mk 33 | else 34 | PRODUCT_MAKEFILES := \ 35 | $(LOCAL_DIR)/core.mk \ 36 | $(LOCAL_DIR)/generic.mk \ 37 | $(LOCAL_DIR)/generic_x86.mk \ 38 | $(LOCAL_DIR)/full.mk \ 39 | $(LOCAL_DIR)/sdk.mk \ 40 | $(LOCAL_DIR)/sim.mk 41 | endif 42 | -------------------------------------------------------------------------------- /target/product/generic.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2007 The Android Open Source Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | # This is a generic product that isn't specialized for a specific device. 18 | # It includes the base Android platform. 19 | 20 | PRODUCT_PACKAGES := \ 21 | AccountAndSyncSettings \ 22 | DeskClock \ 23 | AlarmProvider \ 24 | Bluetooth \ 25 | Calculator \ 26 | Calendar \ 27 | Camera \ 28 | CertInstaller \ 29 | DrmProvider \ 30 | Email \ 31 | Gallery3D \ 32 | LatinIME \ 33 | Mms \ 34 | Music \ 35 | Protips \ 36 | QuickSearchBox \ 37 | Settings \ 38 | Superuser \ 39 | Sync \ 40 | SystemUI \ 41 | Updater \ 42 | CalendarProvider \ 43 | SyncProvider 44 | 45 | ifndef THEMED 46 | PRODUCT_PACKAGES += \ 47 | Launcher2 48 | endif 49 | 50 | $(call inherit-product, $(SRC_TARGET_DIR)/product/core.mk) 51 | 52 | # Overrides 53 | PRODUCT_BRAND := generic 54 | PRODUCT_DEVICE := generic 55 | PRODUCT_NAME := generic 56 | -------------------------------------------------------------------------------- /tools/mktarball.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # $1: path to fs_get_stats program 4 | # $2: start dir 5 | # $3: subdir to tar up (from $2) 6 | # $4: target tar name 7 | # $5: target tarball name (usually $(3).bz2) 8 | 9 | if [ $# -ne 5 ]; then 10 | echo "Error: wrong number of arguments in cmd: $0 $* " 11 | exit 1 12 | fi 13 | 14 | fs_get_stats=`readlink -f $1` 15 | start_dir=`readlink -f $2` 16 | dir_to_tar=$3 17 | target_tar=`readlink -f $4` 18 | target_tarball=`readlink -f $5` 19 | 20 | cd $2 21 | 22 | #tar --no-recursion -cvf ${target_tar} ${dir_to_tar} 23 | rm ${target_tar} > /dev/null 2>&1 24 | 25 | # do dirs first 26 | subdirs=`find ${dir_to_tar} -type d -print` 27 | files=`find ${dir_to_tar} \! -type d -print` 28 | for f in ${subdirs} ${files} ; do 29 | curr_perms=`stat -c 0%a $f` 30 | [ -d "$f" ] && is_dir=1 || is_dir=0 31 | new_info=`${fs_get_stats} ${curr_perms} ${is_dir} ${f}` 32 | new_uid=`echo ${new_info} | awk '{print $1;}'` 33 | new_gid=`echo ${new_info} | awk '{print $2;}'` 34 | new_perms=`echo ${new_info} | awk '{print $3;}'` 35 | # echo "$f: dir: $is_dir curr: $curr_perms uid: $new_uid gid: $new_gid "\ 36 | # "perms: $new_perms" 37 | tar --no-recursion --numeric-owner --owner $new_uid \ 38 | --group $new_gid --mode $new_perms -p -rf ${target_tar} ${f} 39 | done 40 | 41 | if [ $? -eq 0 ] ; then 42 | bzip2 -c ${target_tar} > ${target_tarball} 43 | success=$? 44 | [ $success -eq 0 ] || rm -f ${target_tarball} 45 | rm -f ${target_tar} 46 | exit $success 47 | fi 48 | 49 | rm -f ${target_tar} 50 | exit 1 51 | -------------------------------------------------------------------------------- /tools/zipalign/README.txt: -------------------------------------------------------------------------------- 1 | zipalign -- zip archive alignment tool 2 | 3 | usage: zipalign [-f] [-v] infile.zip outfile.zip 4 | zipalign -c [-v] infile.zip 5 | 6 | -c : check alignment only (does not modify file) 7 | -f : overwrite existing outfile.zip 8 | -v : verbose output 9 | is in bytes, e.g. "4" provides 32-bit alignment 10 | infile.zip is an existing Zip archive 11 | outfile.zip will be created 12 | 13 | 14 | The purpose of zipalign is to ensure that all uncompressed data starts 15 | with a particular alignment relative to the start of the file. This 16 | allows those portions to be accessed directly with mmap() even if they 17 | contain binary data with alignment restrictions. 18 | 19 | Some data needs to be word-aligned for easy access, others might benefit 20 | from being page-aligned. The adjustment is made by altering the size of 21 | the "extra" field in the zip Local File Header sections. Existing data 22 | in the "extra" fields may be altered by this process. 23 | 24 | Compressed data isn't very useful until it's uncompressed, so there's no 25 | need to adjust its alignment. 26 | 27 | Alterations to the archive, such as renaming or deleting entries, will 28 | potentially disrupt the alignment of the modified entry and all later 29 | entries. Files added to an "aligned" archive will not be aligned. 30 | 31 | By default, zipalign will not overwrite an existing output file. With the 32 | "-f" flag, an existing file will be overwritten. 33 | 34 | You can use the "-c" flag to test whether a zip archive is properly aligned. 35 | 36 | -------------------------------------------------------------------------------- /tools/apicheck/etc/apicheck: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # Copyright (C) 2005, The Android Open Source Project 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | # Set up prog to be the path of this script, including following symlinks, 18 | # and set up progdir to be the fully-qualified pathname of its directory. 19 | prog="$0" 20 | while [ -h "${prog}" ]; do 21 | newProg=`/bin/ls -ld "${prog}"` 22 | newProg=`expr "${newProg}" : ".* -> \(.*\)$"` 23 | if expr "x${newProg}" : 'x/' >/dev/null; then 24 | prog="${newProg}" 25 | else 26 | progdir=`dirname "${prog}"` 27 | prog="${progdir}/${newProg}" 28 | fi 29 | done 30 | oldwd=`pwd` 31 | progdir=`dirname "${prog}"` 32 | cd "${progdir}" 33 | progdir=`pwd` 34 | prog="${progdir}"/`basename "${prog}"` 35 | cd "${oldwd}" 36 | 37 | libdir=`dirname $progdir`/framework 38 | 39 | javaOpts="" 40 | while expr "x$1" : 'x-J' >/dev/null; do 41 | opt=`expr "x$1" : 'x-J\(.*\)'` 42 | javaOpts="${javaOpts} -${opt}" 43 | shift 44 | done 45 | 46 | exec java $javaOpts -jar $libdir/apicheck.jar "$@" 47 | -------------------------------------------------------------------------------- /tools/soslim/symfilter.h: -------------------------------------------------------------------------------- 1 | #ifndef SYMFILTER_H 2 | #define SYMFILTER_H 3 | 4 | /* This file describes the interface for parsing the list of symbols. Currently, 5 | this is just a text file with each symbol on a separate line. We build an 6 | in-memory linked list of symbols out of this image. 7 | */ 8 | 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | #include /* defines bool */ 15 | 16 | typedef struct symfilter_list_t symfilter_list_t; 17 | struct symfilter_list_t { 18 | symfilter_list_t *next; 19 | const char *name; 20 | unsigned int len; /* strlen(name) */ 21 | Elf32_Word index; 22 | GElf_Sym symbol; 23 | }; 24 | 25 | typedef struct symfilter_t { 26 | 27 | int fd; /* symbol-filter-file descriptor */ 28 | off_t fsize; /* size of file */ 29 | void *mmap; /* symbol-fiter-file memory mapping */ 30 | 31 | section_info_t symtab; 32 | section_info_t hash; 33 | symfilter_list_t *symbols; 34 | 35 | /* The total number of symbols in the symfilter. */ 36 | unsigned int num_symbols; 37 | /* The total number of bytes occupied by the names of the symbols, including 38 | the terminating null characters. 39 | */ 40 | unsigned int total_name_length; 41 | 42 | bool *symbols_to_keep; 43 | /* must be the same as the number of symbols in the dynamic table! */ 44 | int num_symbols_to_keep; 45 | } symfilter_t; 46 | 47 | void build_symfilter(const char *name, Elf *elf, symfilter_t *filter, off_t); 48 | void destroy_symfilter(symfilter_t *); 49 | 50 | #endif/*SYMFILTER_H*/ 51 | -------------------------------------------------------------------------------- /core/combo/HOST_linux-x86.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2006 The Android Open Source Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | # Configuration for builds hosted on linux-x86. 18 | # Included by combo/select.mk 19 | 20 | # $(1): The file to check 21 | define get-file-size 22 | stat --format "%s" "$(1)" | tr -d '\n' 23 | endef 24 | 25 | # We build everything in 32-bit, because some host tools are 26 | # 32-bit-only anyway (emulator, acc), and because it gives us 27 | # more consistency between the host tools and the target. 28 | # The exception is the host side of the simulator, which 29 | # requires to use the default size, as wxWidgets code otherwise 30 | # fails to build. 31 | ifneq ($(TARGET_SIMULATOR),true) 32 | HOST_GLOBAL_CFLAGS += -m32 33 | HOST_GLOBAL_LDFLAGS += -m32 34 | endif 35 | 36 | HOST_GLOBAL_CFLAGS += -fPIC 37 | HOST_GLOBAL_CFLAGS += \ 38 | -include $(call select-android-config-h,linux-x86) 39 | 40 | # Disable new longjmp in glibc 2.11 and later. See bug 2967937. 41 | HOST_GLOBAL_CFLAGS += -D_FORTIFY_SOURCE=0 42 | 43 | HOST_NO_UNDEFINED_LDFLAGS := -Wl,--no-undefined 44 | -------------------------------------------------------------------------------- /tools/buildinfo.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | echo "# begin build properties" 4 | echo "# autogenerated by buildinfo.sh" 5 | 6 | echo "ro.build.id=$BUILD_ID" 7 | echo "ro.build.display.id=$BUILD_DISPLAY_ID" 8 | echo "ro.build.version.incremental=$BUILD_NUMBER" 9 | echo "ro.build.version.sdk=$PLATFORM_SDK_VERSION" 10 | echo "ro.build.version.codename=$PLATFORM_VERSION_CODENAME" 11 | echo "ro.build.version.release=$PLATFORM_VERSION" 12 | echo "ro.build.date=`date`" 13 | echo "ro.build.date.utc=`date +%s`" 14 | echo "ro.build.type=$TARGET_BUILD_TYPE" 15 | echo "ro.build.user=$USER" 16 | echo "ro.build.host=`hostname`" 17 | echo "ro.build.tags=$BUILD_VERSION_TAGS" 18 | echo "ro.product.model=$PRODUCT_MODEL" 19 | echo "ro.product.brand=$PRODUCT_BRAND" 20 | echo "ro.product.name=$PRODUCT_NAME" 21 | echo "ro.product.device=$TARGET_DEVICE" 22 | echo "ro.product.board=$TARGET_BOOTLOADER_BOARD_NAME" 23 | echo "ro.product.cpu.abi=$TARGET_CPU_ABI" 24 | if [ -n "$TARGET_CPU_ABI2" ] ; then 25 | echo "ro.product.cpu.abi2=$TARGET_CPU_ABI2" 26 | fi 27 | echo "ro.product.manufacturer=$PRODUCT_MANUFACTURER" 28 | echo "ro.product.locale.language=$PRODUCT_DEFAULT_LANGUAGE" 29 | echo "ro.product.locale.region=$PRODUCT_DEFAULT_REGION" 30 | echo "ro.wifi.channels=$PRODUCT_DEFAULT_WIFI_CHANNELS" 31 | echo "ro.board.platform=$TARGET_BOARD_PLATFORM" 32 | 33 | echo "# ro.build.product is obsolete; use ro.product.device" 34 | echo "ro.build.product=$TARGET_DEVICE" 35 | 36 | echo "# Do not try to parse ro.build.description or .fingerprint" 37 | echo "ro.build.description=$PRIVATE_BUILD_DESC" 38 | echo "ro.build.fingerprint=$BUILD_FINGERPRINT" 39 | 40 | echo "# end build properties" 41 | -------------------------------------------------------------------------------- /tools/droiddoc/src/KeywordEntry.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | import org.clearsilver.HDF; 18 | import org.clearsilver.CS; 19 | 20 | class KeywordEntry implements Comparable 21 | { 22 | KeywordEntry(String label, String href, String comment) 23 | { 24 | this.label = label; 25 | this.href = href; 26 | this.comment = comment; 27 | } 28 | 29 | public void makeHDF(HDF data, String base) 30 | { 31 | data.setValue(base + ".label", this.label); 32 | data.setValue(base + ".href", this.href); 33 | data.setValue(base + ".comment", this.comment); 34 | } 35 | 36 | public char firstChar() 37 | { 38 | return Character.toUpperCase(this.label.charAt(0)); 39 | } 40 | 41 | public int compareTo(Object that) 42 | { 43 | return this.label.compareToIgnoreCase(((KeywordEntry)that).label); 44 | } 45 | 46 | private String label; 47 | private String href; 48 | private String comment; 49 | } 50 | 51 | 52 | -------------------------------------------------------------------------------- /tools/apicheck/Android.mk: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2007-2008 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | LOCAL_PATH := $(call my-dir) 16 | 17 | # We use copy-file-to-new-target so that the installed 18 | # script file's timestamp is at least as new as the 19 | # .jar file it wraps. 20 | 21 | #TODO(dbort): add a template to do this stuff; share with jx 22 | 23 | # the hat script 24 | # ============================================================ 25 | include $(CLEAR_VARS) 26 | LOCAL_IS_HOST_MODULE := true 27 | LOCAL_MODULE_CLASS := EXECUTABLES 28 | LOCAL_MODULE := apicheck 29 | 30 | include $(BUILD_SYSTEM)/base_rules.mk 31 | 32 | $(LOCAL_BUILT_MODULE): $(HOST_OUT_JAVA_LIBRARIES)/apicheck$(COMMON_JAVA_PACKAGE_SUFFIX) 33 | $(LOCAL_BUILT_MODULE): $(LOCAL_PATH)/etc/apicheck | $(ACP) 34 | @echo "Copy: $(PRIVATE_MODULE) ($@)" 35 | $(copy-file-to-new-target) 36 | $(hide) chmod 755 $@ 37 | 38 | # the other stuff 39 | # ============================================================ 40 | subdirs := $(addprefix $(LOCAL_PATH)/,$(addsuffix /Android.mk, \ 41 | src \ 42 | )) 43 | 44 | include $(subdirs) 45 | -------------------------------------------------------------------------------- /tools/droiddoc/templates/head_tag.cs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | <?cs 5 | if:page.title ?><?cs 6 | var:page.title ?> | <?cs 7 | /if ?>Android Developers 9 | 11 | 13 | 14 | 15 | 16 | 17 | 21 | 22 | 24 | 34 | 35 | -------------------------------------------------------------------------------- /tools/check_prereq/check_prereq.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2009 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #include 18 | #include 19 | #include 20 | #include 21 | 22 | // Compare the timestamp of the new build (passed on the command line) 23 | // against the current value of ro.build.date.utc. Exit successfully 24 | // if the new build is newer than the current build (or if the 25 | // timestamps are the same). 26 | int main(int argc, char** argv) { 27 | if (argc != 2) { 28 | usage: 29 | fprintf(stderr, "usage: %s \n", argv[0]); 30 | return 2; 31 | } 32 | 33 | char value[PROPERTY_VALUE_MAX]; 34 | char* default_value = "0"; 35 | 36 | property_get("ro.build.date.utc", value, default_value); 37 | 38 | long current = strtol(value, NULL, 10); 39 | char* end; 40 | long install = strtol(argv[1], &end, 10); 41 | 42 | printf("current build time: [%ld] new build time: [%ld]\n", 43 | current, install); 44 | 45 | return (*end == 0 && current > 0 && install >= current) ? 0 : 1; 46 | } 47 | -------------------------------------------------------------------------------- /target/board/emulator/tuttle2.kl: -------------------------------------------------------------------------------- 1 | key 2 1 2 | key 3 2 3 | key 4 3 4 | key 5 4 5 | key 6 5 6 | key 7 6 7 | key 8 7 8 | key 9 8 9 | key 10 9 10 | key 11 0 11 | key 158 BACK WAKE_DROPPED 12 | key 230 SOFT_RIGHT WAKE 13 | key 60 SOFT_RIGHT WAKE 14 | key 107 ENDCALL WAKE_DROPPED 15 | key 62 ENDCALL WAKE_DROPPED 16 | key 229 MENU WAKE_DROPPED 17 | key 59 MENU WAKE_DROPPED 18 | key 228 POUND 19 | key 227 STAR 20 | key 231 CALL WAKE_DROPPED 21 | key 61 CALL WAKE_DROPPED 22 | key 232 DPAD_CENTER WAKE_DROPPED 23 | key 108 DPAD_DOWN WAKE_DROPPED 24 | key 103 DPAD_UP WAKE_DROPPED 25 | key 102 HOME WAKE 26 | key 105 DPAD_LEFT WAKE_DROPPED 27 | key 106 DPAD_RIGHT WAKE_DROPPED 28 | key 115 VOLUME_UP 29 | key 114 VOLUME_DOWN 30 | key 116 POWER WAKE 31 | key 212 SLASH 32 | 33 | key 16 Q 34 | key 17 W 35 | key 18 E 36 | key 19 R 37 | key 20 T 38 | key 21 Y 39 | key 22 U 40 | key 23 I 41 | key 24 O 42 | key 25 P 43 | 44 | key 30 A 45 | key 31 S 46 | key 32 D 47 | key 33 F 48 | key 34 G 49 | key 35 H 50 | key 36 J 51 | key 37 K 52 | key 38 L 53 | key 14 DEL 54 | 55 | key 44 Z 56 | key 45 X 57 | key 46 C 58 | key 47 V 59 | key 48 B 60 | key 49 N 61 | key 50 M 62 | key 51 COMMA 63 | key 52 PERIOD 64 | key 28 ENTER 65 | 66 | key 56 ALT_LEFT 67 | key 42 SHIFT_LEFT 68 | key 215 AT 69 | key 57 SPACE 70 | key 53 SLASH 71 | key 127 SYM 72 | key 100 ALT_RIGHT 73 | 74 | key 399 GRAVE 75 | -------------------------------------------------------------------------------- /target/board/generic/tuttle2.kl: -------------------------------------------------------------------------------- 1 | key 2 1 2 | key 3 2 3 | key 4 3 4 | key 5 4 5 | key 6 5 6 | key 7 6 7 | key 8 7 8 | key 9 8 9 | key 10 9 10 | key 11 0 11 | key 158 BACK WAKE_DROPPED 12 | key 230 SOFT_RIGHT WAKE 13 | key 60 SOFT_RIGHT WAKE 14 | key 107 ENDCALL WAKE_DROPPED 15 | key 62 ENDCALL WAKE_DROPPED 16 | key 229 MENU WAKE_DROPPED 17 | key 59 MENU WAKE_DROPPED 18 | key 228 POUND 19 | key 227 STAR 20 | key 231 CALL WAKE_DROPPED 21 | key 61 CALL WAKE_DROPPED 22 | key 232 DPAD_CENTER WAKE_DROPPED 23 | key 108 DPAD_DOWN WAKE_DROPPED 24 | key 103 DPAD_UP WAKE_DROPPED 25 | key 102 HOME WAKE 26 | key 105 DPAD_LEFT WAKE_DROPPED 27 | key 106 DPAD_RIGHT WAKE_DROPPED 28 | key 115 VOLUME_UP 29 | key 114 VOLUME_DOWN 30 | key 116 POWER WAKE 31 | key 212 SLASH 32 | 33 | key 16 Q 34 | key 17 W 35 | key 18 E 36 | key 19 R 37 | key 20 T 38 | key 21 Y 39 | key 22 U 40 | key 23 I 41 | key 24 O 42 | key 25 P 43 | 44 | key 30 A 45 | key 31 S 46 | key 32 D 47 | key 33 F 48 | key 34 G 49 | key 35 H 50 | key 36 J 51 | key 37 K 52 | key 38 L 53 | key 14 DEL 54 | 55 | key 44 Z 56 | key 45 X 57 | key 46 C 58 | key 47 V 59 | key 48 B 60 | key 49 N 61 | key 50 M 62 | key 51 COMMA 63 | key 52 PERIOD 64 | key 28 ENTER 65 | 66 | key 56 ALT_LEFT 67 | key 42 SHIFT_LEFT 68 | key 215 AT 69 | key 57 SPACE 70 | key 53 SLASH 71 | key 127 SYM 72 | key 100 ALT_LEFT 73 | 74 | key 399 GRAVE 75 | -------------------------------------------------------------------------------- /tools/fs_get_stats/fs_get_stats.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | 6 | #include 7 | 8 | #define DO_DEBUG 1 9 | 10 | #define ERROR(fmt,args...) \ 11 | do { \ 12 | fprintf(stderr, "%s:%d: ERROR: " fmt, \ 13 | __FILE__, __LINE__, ##args); \ 14 | } while (0) 15 | 16 | #if DO_DEBUG 17 | #define DEBUG(fmt,args...) \ 18 | do { fprintf(stderr, "DEBUG: " fmt, ##args); } while(0) 19 | #else 20 | #define DEBUG(x...) do {} while(0) 21 | #endif 22 | 23 | void 24 | print_help(void) 25 | { 26 | fprintf(stderr, "fs_get_stats: retrieve the target file stats " 27 | "for the specified file\n"); 28 | fprintf(stderr, "usage: fs_get_stats cur_perms is_dir filename\n"); 29 | fprintf(stderr, "\tcur_perms - The current permissions of " 30 | "the file\n"); 31 | fprintf(stderr, "\tis_dir - Is filename is a dir, 1. Otherwise, 0.\n"); 32 | fprintf(stderr, "\tfilename - The filename to lookup\n"); 33 | fprintf(stderr, "\n"); 34 | } 35 | 36 | int 37 | main(int argc, const char *argv[]) 38 | { 39 | char *endptr; 40 | char is_dir = 0; 41 | unsigned perms = 0; 42 | unsigned uid = (unsigned)-1; 43 | unsigned gid = (unsigned)-1; 44 | 45 | if (argc < 4) { 46 | ERROR("Invalid arguments\n"); 47 | print_help(); 48 | exit(-1); 49 | } 50 | 51 | perms = (unsigned)strtoul(argv[1], &endptr, 0); 52 | if (!endptr || (endptr == argv[1]) || (*endptr != '\0')) { 53 | ERROR("current permissions must be a number. Got '%s'.\n", argv[1]); 54 | exit(-1); 55 | } 56 | 57 | if (!strcmp(argv[2], "1")) 58 | is_dir = 1; 59 | 60 | fs_config(argv[3], is_dir, &uid, &gid, &perms); 61 | fprintf(stdout, "%d %d 0%o\n", uid, gid, perms); 62 | 63 | return 0; 64 | } 65 | -------------------------------------------------------------------------------- /tools/droiddoc/templates/package.cs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 |
11 |
12 | 13 |
14 |
15 | 16 |
17 | package 18 |

19 |
20 | 21 | Classes | Description 22 | 23 |
24 |
25 | 26 |
27 | 28 |
29 | 30 | 31 |
32 |

33 |

more...

34 |
35 | 36 | 37 | 38 | 39 |

40 |
41 | 42 |
43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 |
54 |
55 | 56 | 57 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /core/tasks/product-graph.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2009 The Android Open Source Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | products_pdf := $(OUT_DIR)/products.pdf 18 | products_graph := $(products_pdf:%.pdf=%.dot) 19 | 20 | $(products_graph): 21 | @echo Product graph DOT: $@ 22 | $(hide) ( \ 23 | echo 'digraph {'; \ 24 | echo 'graph [ ratio=.5 ];'; \ 25 | $(foreach p,$(ALL_PRODUCTS), \ 26 | $(foreach d,$(PRODUCTS.$(strip $(p)).INHERITS_FROM), \ 27 | echo \"$(d)\" -\> \"$(p)\";)) \ 28 | $(foreach prod, \ 29 | $(sort $(foreach p,$(ALL_PRODUCTS), \ 30 | $(foreach d,$(PRODUCTS.$(strip $(p)).INHERITS_FROM), \ 31 | $(d))) \ 32 | $(foreach p,$(ALL_PRODUCTS),$(p))), \ 33 | echo \"$(prod)\" [ label=\"$(dir $(prod))\\n$(notdir $(prod))\"];) \ 34 | echo '}' \ 35 | ) > $@ 36 | 37 | # This rule doesn't include any nodes that don't inherit from 38 | # anything or don't have anything inherit from them, to make the 39 | # graph more readable. To add that, add this line to the rule 40 | # below: 41 | # $(foreach p,$(ALL_PRODUCTS), echo \"$(p)\";) \ 42 | 43 | $(products_pdf): $(products_graph) 44 | @echo Product graph PDF: $@ 45 | dot -Tpdf -Nshape=box -o $@ $< 46 | 47 | product-graph: $(products_pdf) 48 | 49 | -------------------------------------------------------------------------------- /target/product/security/media.x509.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIEqDCCA5CgAwIBAgIJAPK5jmEjVyxOMA0GCSqGSIb3DQEBBAUAMIGUMQswCQYD 3 | VQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4g 4 | VmlldzEQMA4GA1UEChMHQW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UE 5 | AxMHQW5kcm9pZDEiMCAGCSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbTAe 6 | Fw0wODA0MTUyMzQwNTdaFw0zNTA5MDEyMzQwNTdaMIGUMQswCQYDVQQGEwJVUzET 7 | MBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEQMA4G 8 | A1UEChMHQW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9p 9 | ZDEiMCAGCSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbTCCASAwDQYJKoZI 10 | hvcNAQEBBQADggENADCCAQgCggEBAK4lDFoW75f8KGmsZRsyF8w2ug6GlkFo1YoE 11 | n0DOhYZxI6P/tPbZScM88to6BcI+rKpX2AOImxdZvPWefG8hiQriUIW37VaqYmwJ 12 | ie+czTY2LKDo0blgP9TYModnkmzMCQxot3Wuf/MJNMw2nvKFWiZn3wxmf9DHz12O 13 | umVYBnNzA7tiRybquu37cvB+16dqs8uaOBxLfc2AmxQNiR8AITvkAfWNagamHq3D 14 | qcLxxlZyhbCa4JNCpm+kIer5Ot91c6AowzHXBgGrOvfMhAM+znx3KjpbhrDb6dd3 15 | w6SKqYAe3O4ngVifRNnkETl5YAV2qZQQuoEJElna2YxsaP94S48CAQOjgfwwgfkw 16 | HQYDVR0OBBYEFMopPKqLwO0+VC7vQgWiv/K1fk11MIHJBgNVHSMEgcEwgb6AFMop 17 | PKqLwO0+VC7vQgWiv/K1fk11oYGapIGXMIGUMQswCQYDVQQGEwJVUzETMBEGA1UE 18 | CBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEQMA4GA1UEChMH 19 | QW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDEiMCAG 20 | CSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbYIJAPK5jmEjVyxOMAwGA1Ud 21 | EwQFMAMBAf8wDQYJKoZIhvcNAQEEBQADggEBAITelRbV5KhyF6c9qEhwSPUzc6X3 22 | M/OQ1hvfPMnlJRYlv8qnwxWcriddFyqa4eh21UWBJ6xUL2gpDdUQwAKdj1Hg7hVr 23 | e3tazbOUJBuOx4t05cQsXK+uFWyvW9GZojonUk2gct6743hGSlM2MLDk0P+34I7L 24 | cB+ttjecdEZ/bgDG7YiFlTgHkgOHVgB4csjjAHr0I6V6LKs6KChptkxLe9X8GH0K 25 | fiQVll1ark4Hpt91G0p16Xk8kYphK4HNC2KK7gFo3ETkexDTWTJghJ1q321yfcJE 26 | RMIh0/nsw2jK0HmZ8rgQW8HyDTjUEGbMFBHCV6lupDSfV0ZWVQfk6AIKGoE= 27 | -----END CERTIFICATE----- 28 | -------------------------------------------------------------------------------- /target/product/security/platform.x509.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIEqDCCA5CgAwIBAgIJALOZgIbQVs/6MA0GCSqGSIb3DQEBBAUAMIGUMQswCQYD 3 | VQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4g 4 | VmlldzEQMA4GA1UEChMHQW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UE 5 | AxMHQW5kcm9pZDEiMCAGCSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbTAe 6 | Fw0wODA0MTUyMjQwNTBaFw0zNTA5MDEyMjQwNTBaMIGUMQswCQYDVQQGEwJVUzET 7 | MBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEQMA4G 8 | A1UEChMHQW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9p 9 | ZDEiMCAGCSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbTCCASAwDQYJKoZI 10 | hvcNAQEBBQADggENADCCAQgCggEBAJx4BZKsDV04HN6qZezIpgBuNkgMbXIHsSAR 11 | vlCGOqvitV0Amt9xRtbyICKAx81Ne9smJDuKgGwms0sTdSOkkmgiSQTcAUk+fArP 12 | GgXIdPabA3tgMJ2QdNJCgOFrrSqHNDYZUer3KkgtCbIEsYdeEqyYwap3PWgAuer9 13 | 5W1Yvtjo2hb5o2AJnDeoNKbf7be2tEoEngeiafzPLFSW8s821k35CjuNjzSjuqtM 14 | 9TNxqydxmzulh1StDFP8FOHbRdUeI0+76TybpO35zlQmE1DsU1YHv2mi/0qgfbX3 15 | 6iANCabBtJ4hQC+J7RGQiTqrWpGA8VLoL4WkV1PPX8GQccXuyCcCAQOjgfwwgfkw 16 | HQYDVR0OBBYEFE/koLPdnLop9x1yh8Tnw48ghsKZMIHJBgNVHSMEgcEwgb6AFE/k 17 | oLPdnLop9x1yh8Tnw48ghsKZoYGapIGXMIGUMQswCQYDVQQGEwJVUzETMBEGA1UE 18 | CBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEQMA4GA1UEChMH 19 | QW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDEiMCAG 20 | CSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbYIJALOZgIbQVs/6MAwGA1Ud 21 | EwQFMAMBAf8wDQYJKoZIhvcNAQEEBQADggEBAFclUbjZOh9z3g9tRp+G2tZwFAAp 22 | PIigzXzXeLc9r8wZf6t25iEuVsHHYc/EL9cz3lLFCuCIFM78CjtaGkNGBU2Cnx2C 23 | tCsgSL+ItdFJKe+F9g7dEtctVWV+IuPoXQTIMdYT0Zk4u4mCJH+jISVroS0dao+S 24 | 6h2xw3Mxe6DAN/DRr/ZFrvIkl5+6bnoUvAJccbmBOM7z3fwFlhfPJIRc97QNY4L3 25 | J17XOElatuWTG5QhdlxJG3L7aOCA29tYwgKdNHyLMozkPvaosVUz7fvpib1qSN1L 26 | IC7alMarjdW4OZID2q4u1EYjLk/pvZYTlMYwDlE448/Shebk5INTjLixs1c= 27 | -----END CERTIFICATE----- 28 | -------------------------------------------------------------------------------- /target/product/security/shared.x509.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIEqDCCA5CgAwIBAgIJAPKnM5a9OHZ6MA0GCSqGSIb3DQEBBAUAMIGUMQswCQYD 3 | VQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4g 4 | VmlldzEQMA4GA1UEChMHQW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UE 5 | AxMHQW5kcm9pZDEiMCAGCSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbTAe 6 | Fw0wODA3MjMyMTU3NTlaFw0zNTEyMDkyMTU3NTlaMIGUMQswCQYDVQQGEwJVUzET 7 | MBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEQMA4G 8 | A1UEChMHQW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9p 9 | ZDEiMCAGCSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbTCCASAwDQYJKoZI 10 | hvcNAQEBBQADggENADCCAQgCggEBAMjC2/0JSi30XD/xoy7SGAXscvxY0BeXG9D2 11 | tSwmLXCBnRkZZ+FY39Oix/Gz4OgM5UXXnShIIgIR64bw/YMS03tCDBE3UMyUYYro 12 | cvSIZGO9xGJ8qgwEg8hkk+NRVXEXAzi/3MTNat3RwKLzX1zyTtPkBDo+WOKwXmZM 13 | zeEry2dzX9bfEknDaeYlQrwKRynlORf1w4/6UtF7c8nHN5jdsY7UgVkIdVR+Zr/F 14 | 2spMJabrlg7ZaSNwnaMCumRstJazJehsXIsuejN3srvkx88zJUKRFj9okVKsCIVQ 15 | yDxQj0v1rfCu1aLcoFg/mrCtF2UNt+6ksj/bRYhVR9D+q3IYOIkCAQOjgfwwgfkw 16 | HQYDVR0OBBYEFMtMfizbs/CtqY2reZaNFy6dux7RMIHJBgNVHSMEgcEwgb6AFMtM 17 | fizbs/CtqY2reZaNFy6dux7RoYGapIGXMIGUMQswCQYDVQQGEwJVUzETMBEGA1UE 18 | CBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEQMA4GA1UEChMH 19 | QW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDEiMCAG 20 | CSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbYIJAPKnM5a9OHZ6MAwGA1Ud 21 | EwQFMAMBAf8wDQYJKoZIhvcNAQEEBQADggEBAECo0JaZeVnpF6NsRCRra6wrrgVD 22 | fs2JeUEY94NHIDUtHG+KObCGmUL02mWYH6opUdM5cRKewZIdeVZxxSfW4knyUoKf 23 | r1tZExAxHi3gllANVorUEUplbcNKjG9hBFOvwep5ktukqns/hUOm41wHKN53/pfu 24 | rIN3H9DskPjkRJQ07gtgRXg+cMei5GAkkmDgA892CNw1Kkye9wbe9LJgUOl4ri// 25 | 16MyN4cBSRXrPMh0/MeprpMId8XIx9HC4qjuhjyJGA0YVc7bpADnukPMyqckPTl+ 26 | fA6Ojk19T5K2u+rUnAzwGAae3coufi+0Zo2J2715UNDNJUGA+h6q/CpVb4Q= 27 | -----END CERTIFICATE----- 28 | -------------------------------------------------------------------------------- /target/product/security/testkey.x509.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIEqDCCA5CgAwIBAgIJAJNurL4H8gHfMA0GCSqGSIb3DQEBBQUAMIGUMQswCQYD 3 | VQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4g 4 | VmlldzEQMA4GA1UEChMHQW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UE 5 | AxMHQW5kcm9pZDEiMCAGCSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbTAe 6 | Fw0wODAyMjkwMTMzNDZaFw0zNTA3MTcwMTMzNDZaMIGUMQswCQYDVQQGEwJVUzET 7 | MBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEQMA4G 8 | A1UEChMHQW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9p 9 | ZDEiMCAGCSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbTCCASAwDQYJKoZI 10 | hvcNAQEBBQADggENADCCAQgCggEBANaTGQTexgskse3HYuDZ2CU+Ps1s6x3i/waM 11 | qOi8qM1r03hupwqnbOYOuw+ZNVn/2T53qUPn6D1LZLjk/qLT5lbx4meoG7+yMLV4 12 | wgRDvkxyGLhG9SEVhvA4oU6Jwr44f46+z4/Kw9oe4zDJ6pPQp8PcSvNQIg1QCAcy 13 | 4ICXF+5qBTNZ5qaU7Cyz8oSgpGbIepTYOzEJOmc3Li9kEsBubULxWBjf/gOBzAzU 14 | RNps3cO4JFgZSAGzJWQTT7/emMkod0jb9WdqVA2BVMi7yge54kdVMxHEa5r3b97s 15 | zI5p58ii0I54JiCUP5lyfTwE/nKZHZnfm644oLIXf6MdW2r+6R8CAQOjgfwwgfkw 16 | HQYDVR0OBBYEFEhZAFY9JyxGrhGGBaR0GawJyowRMIHJBgNVHSMEgcEwgb6AFEhZ 17 | AFY9JyxGrhGGBaR0GawJyowRoYGapIGXMIGUMQswCQYDVQQGEwJVUzETMBEGA1UE 18 | CBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEQMA4GA1UEChMH 19 | QW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDEiMCAG 20 | CSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbYIJAJNurL4H8gHfMAwGA1Ud 21 | EwQFMAMBAf8wDQYJKoZIhvcNAQEFBQADggEBAHqvlozrUMRBBVEY0NqrrwFbinZa 22 | J6cVosK0TyIUFf/azgMJWr+kLfcHCHJsIGnlw27drgQAvilFLAhLwn62oX6snb4Y 23 | LCBOsVMR9FXYJLZW2+TcIkCRLXWG/oiVHQGo/rWuWkJgU134NDEFJCJGjDbiLCpe 24 | +ZTWHdcwauTJ9pUbo8EvHRkU3cYfGmLaLfgn9gP+pWA7LFQNvXwBnDa6sppCccEX 25 | 31I828XzgXpJ4O+mDL1/dBd+ek8ZPUP0IgdyZm5MTYPhvVqGCHzzTy3sIeJFymwr 26 | sBbmg2OAUNLEMO6nwmocSdN2ClirfxqCzJOLSDE4QyS9BAH6EhY6UFcOaE0= 27 | -----END CERTIFICATE----- 28 | -------------------------------------------------------------------------------- /tools/droiddoc/templates/sampleindex.cs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 |
13 |   14 |

15 |
16 | 17 |
18 | 19 | 20 | 21 | 23 | 24 | 25 |

Subdirectories

26 |
    27 | 28 |
  • /
  • 30 | 31 |
32 | 33 | 34 | 35 |

Files

36 |
    37 | 38 |
  • 40 | 41 |
42 | 43 | 44 | 47 | 48 |

You can find the source code for this sample in your SDK at:

49 |

50 | <sdk>/platforms/android-<version>/samples/ 51 |

52 | 53 | 54 | 55 |
56 | 57 | 58 | 59 |
60 | 61 | 62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /tools/droiddoc/test/stubs/expected/com/android/stubs/Types.java: -------------------------------------------------------------------------------- 1 | package com.android.stubs; 2 | public class Types 3 | { 4 | public static interface Interface 5 | { 6 | public static final boolean public_static_final_boolean = false; 7 | public static final char public_static_final_char = 0; 8 | public static final short public_static_final_short = 0; 9 | public static final int public_static_final_int = 0; 10 | public static final long public_static_final_long = 0L; 11 | public static final float public_static_final_float = 0.0f; 12 | public static final double public_static_final_double = 0.0; 13 | public static final java.lang.Object public_static_final_Object = null; 14 | } 15 | protected Types() { throw new RuntimeException("Stub!"); } 16 | public final boolean public_final_boolean; 17 | public final char public_final_char; 18 | public final short public_final_short; 19 | public final int public_final_int; 20 | public final long public_final_long; 21 | public final float public_final_float; 22 | public final double public_final_double; 23 | public final java.lang.Object public_final_Object; 24 | public static final boolean public_static_final_boolean; 25 | public static final char public_static_final_char; 26 | public static final short public_static_final_short; 27 | public static final int public_static_final_int; 28 | public static final long public_static_final_long; 29 | public static final float public_static_final_float; 30 | public static final double public_static_final_double; 31 | public static final java.lang.Object public_static_final_Object; 32 | static { public_static_final_boolean = false; public_static_final_char = 0; public_static_final_short = 0; public_static_final_int = 0; public_static_final_long = 0; public_static_final_float = 0; public_static_final_double = 0; public_static_final_Object = null; } 33 | } 34 | -------------------------------------------------------------------------------- /tools/droiddoc/templates/hierarchy.cs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 12 | 13 | 14 | 15 |
16 | 17 |
18 |

19 |
20 | 21 |
22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 |    43 | 44 |   45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 |
ClassInterfaces
57 | 58 |
59 | 60 | 61 |
62 |
63 | 64 | 65 | 66 | 67 | 68 | 69 | -------------------------------------------------------------------------------- /target/product/languages_full.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2009 The Android Open Source Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | # This is a build configuration that just contains a list of languages. 18 | # It helps in situations where laugnages must come first in the list, 19 | # mostly because screen densities interfere with the list of locales and 20 | # the system misbehaves when a density is the first locale. 21 | 22 | # Those are all the locales that have translations. 23 | PRODUCT_LOCALES := en_US \ 24 | ar_EG \ 25 | ar_IL \ 26 | bg_BG \ 27 | ca_ES \ 28 | cs_CZ \ 29 | da_DK \ 30 | de_AT \ 31 | de_CH \ 32 | de_DE \ 33 | de_LI \ 34 | el_GR \ 35 | en_AU \ 36 | en_CA \ 37 | en_GB \ 38 | en_IE \ 39 | en_IN \ 40 | en_NZ \ 41 | en_SG \ 42 | en_ZA \ 43 | es_ES \ 44 | fi_FI \ 45 | fr_BE \ 46 | fr_CA \ 47 | fr_CH \ 48 | fr_FR \ 49 | he_IL \ 50 | hi_IN \ 51 | hr_HR \ 52 | hu_HU \ 53 | id_ID \ 54 | it_CH \ 55 | it_IT \ 56 | iw_IL \ 57 | ja_JP \ 58 | ko_KR \ 59 | lt_LT \ 60 | lv_LV \ 61 | nb_NO \ 62 | nl_BE \ 63 | nl_NL \ 64 | pl_PL \ 65 | pt_BR \ 66 | pt_PT \ 67 | ro_RO \ 68 | ru_RU \ 69 | sk_SK \ 70 | sl_SI \ 71 | sr_RS \ 72 | sv_SE \ 73 | th_TH \ 74 | tl_PH \ 75 | tr_TR \ 76 | uk_UA \ 77 | vi_VN \ 78 | zh_CN \ 79 | zh_HK \ 80 | zh_TW 81 | -------------------------------------------------------------------------------- /target/product/security/README: -------------------------------------------------------------------------------- 1 | The following commands were used to generate the test key pairs: 2 | 3 | development/tools/make_key testkey '/C=US/ST=California/L=Mountain View/O=Android/OU=Android/CN=Android/emailAddress=android@android.com' 4 | development/tools/make_key platform '/C=US/ST=California/L=Mountain View/O=Android/OU=Android/CN=Android/emailAddress=android@android.com' 5 | development/tools/make_key shared '/C=US/ST=California/L=Mountain View/O=Android/OU=Android/CN=Android/emailAddress=android@android.com' 6 | development/tools/make_key media '/C=US/ST=California/L=Mountain View/O=Android/OU=Android/CN=Android/emailAddress=android@android.com' 7 | 8 | The following standard test keys are currently included: 9 | 10 | testkey -- a generic key for packages that do not otherwise specify a key. 11 | platform -- a test key for packages that are part of the core platform. 12 | shared -- a test key for things that are shared in the home/contacts process. 13 | media -- a test key for packages that are part of the media/download system. 14 | 15 | These test keys are used strictly in development, and should never be assumed 16 | to convey any sort of validity. When $BUILD_SECURE=true, the code should not 17 | honor these keys in any context. 18 | 19 | 20 | signing using the openssl commandline (for boot/system images) 21 | -------------------------------------------------------------- 22 | 23 | 1. convert pk8 format key to pem format 24 | % openssl pkcs8 -inform DER -nocrypt -in testkey.pk8 -out testkey.pem 25 | 26 | 2. create a signature using the pem format key 27 | % openssl dgst -binary -sha1 -sign testkey.pem FILE > FILE.sig 28 | 29 | extracting public keys for embedding 30 | ------------------------------------ 31 | it's a Java tool 32 | but it generates C code 33 | take a look at commands/recovery/Android.mk 34 | you'll see it running $(HOST_OUT_JAVA_LIBRARIES)/dumpkey.jar 35 | -------------------------------------------------------------------------------- /tools/droiddoc/src/DocInfo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | public abstract class DocInfo 18 | { 19 | public DocInfo(String rawCommentText, SourcePositionInfo sp) 20 | { 21 | mRawCommentText = rawCommentText; 22 | mPosition = sp; 23 | } 24 | 25 | public boolean isHidden() 26 | { 27 | return comment().isHidden(); 28 | } 29 | 30 | public boolean isDocOnly() { 31 | return comment().isDocOnly(); 32 | } 33 | 34 | public String getRawCommentText() 35 | { 36 | return mRawCommentText; 37 | } 38 | 39 | public Comment comment() 40 | { 41 | if (mComment == null) { 42 | mComment = new Comment(mRawCommentText, parent(), mPosition); 43 | } 44 | return mComment; 45 | } 46 | 47 | public SourcePositionInfo position() 48 | { 49 | return mPosition; 50 | } 51 | 52 | public abstract ContainerInfo parent(); 53 | 54 | public void setSince(String since) { 55 | mSince = since; 56 | } 57 | 58 | public String getSince() { 59 | return mSince; 60 | } 61 | 62 | private String mRawCommentText; 63 | Comment mComment; 64 | SourcePositionInfo mPosition; 65 | private String mSince; 66 | } 67 | 68 | -------------------------------------------------------------------------------- /tools/droiddoc/src/Android.mk: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2008 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | LOCAL_PATH:= $(call my-dir) 16 | include $(CLEAR_VARS) 17 | 18 | LOCAL_SRC_FILES := \ 19 | AnnotationInstanceInfo.java \ 20 | AnnotationValueInfo.java \ 21 | AttributeInfo.java \ 22 | AttrTagInfo.java \ 23 | ClassInfo.java \ 24 | DroidDoc.java \ 25 | ClearPage.java \ 26 | Comment.java \ 27 | ContainerInfo.java \ 28 | Converter.java \ 29 | DocFile.java \ 30 | DocInfo.java \ 31 | Errors.java \ 32 | FieldInfo.java \ 33 | Hierarchy.java \ 34 | InheritedTags.java \ 35 | KeywordEntry.java \ 36 | LinkReference.java \ 37 | LiteralTagInfo.java \ 38 | MemberInfo.java \ 39 | MethodInfo.java \ 40 | NavTree.java \ 41 | PackageInfo.java \ 42 | ParamTagInfo.java \ 43 | ParameterInfo.java \ 44 | ParsedTagInfo.java \ 45 | Proofread.java \ 46 | SampleCode.java \ 47 | SampleTagInfo.java \ 48 | Scoped.java \ 49 | SeeTagInfo.java \ 50 | SinceTagger.java \ 51 | Sorter.java \ 52 | SourcePositionInfo.java \ 53 | Stubs.java \ 54 | TagInfo.java \ 55 | TextTagInfo.java \ 56 | ThrowsTagInfo.java \ 57 | TodoFile.java \ 58 | TypeInfo.java 59 | 60 | LOCAL_JAVA_LIBRARIES := \ 61 | apicheck \ 62 | clearsilver 63 | 64 | LOCAL_CLASSPATH := \ 65 | $(HOST_JDK_TOOLS_JAR) 66 | 67 | LOCAL_MODULE:= droiddoc 68 | 69 | include $(BUILD_HOST_JAVA_LIBRARY) 70 | -------------------------------------------------------------------------------- /tools/droiddoc/src/AnnotationInstanceInfo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | class AnnotationInstanceInfo 18 | { 19 | private ClassInfo mType; 20 | private AnnotationValueInfo[] mElementValues; 21 | 22 | public AnnotationInstanceInfo(ClassInfo type, AnnotationValueInfo[] elementValues) 23 | { 24 | mType = type; 25 | mElementValues = elementValues; 26 | } 27 | 28 | ClassInfo type() 29 | { 30 | return mType; 31 | } 32 | 33 | AnnotationValueInfo[] elementValues() 34 | { 35 | return mElementValues; 36 | } 37 | 38 | @Override 39 | public String toString() 40 | { 41 | StringBuilder str = new StringBuilder(); 42 | str.append("@"); 43 | str.append(mType.qualifiedName()); 44 | str.append("("); 45 | AnnotationValueInfo[] values = mElementValues; 46 | final int N = values.length; 47 | for (int i=0; i 8 | 9 | int main(int argc, char *argv[]) { 10 | unsigned char buf[4096]; 11 | size_t amt; 12 | size_t i; 13 | int col = 0; 14 | char *name; 15 | 16 | if (argc != 2) { 17 | fprintf(stderr, "usage: %s NAME < DAT_FILE > ASM_FILE\n", argv[0]); 18 | for (i=0; i 2 | 3 | 4 | <?cs 5 | if:page.title ?><?cs 6 | var:page.title ?><?cs 7 | if:sdk.version ?> (<?cs 8 | var:sdk.version ?>)<?cs 9 | /if ?> | <?cs 10 | /if ?>Android Open Source 11 | 12 | 13 | 14 | 15 | 16 | 19 | 31 |