OSDN Git Service

android-x86/development.git
13 years agoImprove touch paint sample to use geometrical touch width.
Jeff Brown [Thu, 30 Sep 2010 03:51:48 +0000 (20:51 -0700)]
Improve touch paint sample to use geometrical touch width.

Added multitouch support.
Fixed the trackball based drawing.

Change-Id: I15d9c5c4ac26a83f476f98c1f2ef3a5841e2ffbd

13 years agoreconcile froyo-release into gingerbread
Jean-Baptiste Queru [Mon, 27 Sep 2010 00:28:54 +0000 (17:28 -0700)]
reconcile froyo-release into gingerbread

Change-Id: I0cd475594cd7697ee681bfc7eb76d61bec236417

13 years agoMerge "Update prebuilt library test." into gingerbread
David 'Digit' Turner [Fri, 24 Sep 2010 08:12:54 +0000 (01:12 -0700)]
Merge "Update prebuilt library test." into gingerbread

13 years agoPrepare for a new IActivityController method.
Dianne Hackborn [Thu, 23 Sep 2010 21:48:24 +0000 (14:48 -0700)]
Prepare for a new IActivityController method.

Change-Id: I30823fe0c06aef35a2773760ec938e7979cd1037

13 years agoMerge "Unify NDK platform headers." into gingerbread
David 'Digit' Turner [Thu, 23 Sep 2010 14:35:51 +0000 (07:35 -0700)]
Merge "Unify NDK platform headers." into gingerbread

13 years agoUnify NDK platform headers.
David 'Digit' Turner [Wed, 22 Sep 2010 16:04:36 +0000 (18:04 +0200)]
Unify NDK platform headers.

This commit removes duplication of system headers per platform, i.e. remove
copies of common headers like <stdlib.h> from arch-arm/usr/include and arch-x86/usr/include
and move them to a common include directory. More specifically:

- common headers:        android-N/arch-A/usr/include --> android-N/include
- arch-specific headers: android-N/arch-A/usr-include --> android-N/arch-A/include
- arch-specific libs:    android-N/arch-A/usr/lib     --> android-N/arch-A/lib

Change-Id: Ifdba5038d108901931f3e3a7c14ebe6270d2d276

NOTE: This also contains careful separation of API-level-specific headers.
      For example, platforms/android-5/include/pthread.h contains new function
      declarations that are not available when using platforms/android-3/include/pthread.h

NOTE: The NDK's build-platforms.sh script has been updated to understand the new
      layout. This change in develeopment/ndk does not change the layout of
      platform files under $NDK/platforms after build-platforms.sh is called.

13 years agoUpdate prebuilt library test.
David 'Digit' Turner [Wed, 22 Sep 2010 13:11:57 +0000 (15:11 +0200)]
Update prebuilt library test.

This is to reflect the simplification in prebuilt support.
1/ LOCAL_SRC_FILES is relative to LOCAL_PATH, like with other module types
2/ no need for LOCAL_PREBUILTS

Change-Id: If7302fe355cb25a446e31c20015098db75c00c02

13 years agoMerge "Change hosttestlib to use ddm-prebuilt." into gingerbread
Brett Chabot [Tue, 21 Sep 2010 21:28:26 +0000 (14:28 -0700)]
Merge "Change hosttestlib to use ddm-prebuilt." into gingerbread

13 years agoDO NOT MERGE Classpath cleanup in libcore
Andy Stadler [Tue, 21 Sep 2010 21:07:22 +0000 (14:07 -0700)]
DO NOT MERGE Classpath cleanup in libcore

* libcore/security no longer exists
* many other dirs under libcore had no java code

Change-Id: I1fcfda6ce769e0d9fbd4893c46bbded586c78251

13 years agoChange hosttestlib to use ddm-prebuilt.
Brett Chabot [Wed, 28 Jul 2010 00:57:38 +0000 (17:57 -0700)]
Change hosttestlib to use ddm-prebuilt.

Change-Id: I9124f34e6ba5559afc9a4bf9b5c70690385db11a

13 years agoCleanups for eclipse classpath DO NOT MERGE
Andy Stadler [Fri, 17 Sep 2010 22:59:20 +0000 (15:59 -0700)]
Cleanups for eclipse classpath DO NOT MERGE

Change-Id: Ic4ab8299eb2e17f01346887d22620c0f23399328

13 years agoMerge "Update NDK headers and samples to sync up with looper API changes." into ginge...
Jeff Brown [Tue, 14 Sep 2010 22:27:41 +0000 (15:27 -0700)]
Merge "Update NDK headers and samples to sync up with looper API changes." into gingerbread

13 years agoUpdate NDK headers and samples to sync up with looper API changes.
Jeff Brown [Tue, 14 Sep 2010 06:57:28 +0000 (23:57 -0700)]
Update NDK headers and samples to sync up with looper API changes.

Change-Id: I7082603bf280888be90dc4df687521aaae9b1d02

13 years agoam 42d3a4ae: Adding CrossCompatibility sample app.
Megha Joshi [Tue, 14 Sep 2010 00:38:43 +0000 (17:38 -0700)]
am 42d3a4ae: Adding CrossCompatibility sample app.

Merge commit '42d3a4ae1431fb3f02ac212000e8cdfb6f21e226' into gingerbread

* commit '42d3a4ae1431fb3f02ac212000e8cdfb6f21e226':
  Adding CrossCompatibility sample app.

13 years agoAdding CrossCompatibility sample app.
Megha Joshi [Tue, 17 Aug 2010 20:56:59 +0000 (13:56 -0700)]
Adding CrossCompatibility sample app.

Change-Id: I565584ea53212f61a9fbbb44e50da59f4ba06fff

13 years agoam e55fc016: Merge "Use remote_api for shell access on developer.android.com." into...
Trevor Johns [Fri, 10 Sep 2010 19:33:57 +0000 (12:33 -0700)]
am e55fc016: Merge "Use remote_api for shell access on developer.android.com." into froyo

Merge commit 'e55fc016a6e40edd456c0d240d06689d84a7127b' into gingerbread

* commit 'e55fc016a6e40edd456c0d240d06689d84a7127b':
  Use remote_api for shell access on developer.android.com.

13 years agoMerge "Use remote_api for shell access on developer.android.com." into froyo
Trevor Johns [Fri, 10 Sep 2010 19:23:09 +0000 (12:23 -0700)]
Merge "Use remote_api for shell access on developer.android.com." into froyo

13 years agoUse remote_api for shell access on developer.android.com.
Trevor Johns [Fri, 10 Sep 2010 18:26:50 +0000 (11:26 -0700)]
Use remote_api for shell access on developer.android.com.

This allows Python shell access on developer.android.com
using the remote_api_shell.py script that's bundled with
the App Engine SDK.

Change-Id: If3c979ccbf885905a9cc3840645dcb6a5a50cfa8

13 years agoMerge "Add samples for secure views." into gingerbread
Jeff Brown [Wed, 8 Sep 2010 18:53:13 +0000 (11:53 -0700)]
Merge "Add samples for secure views." into gingerbread

13 years agoUpdate to follow ALooper ident change.
Dianne Hackborn [Tue, 7 Sep 2010 22:30:07 +0000 (15:30 -0700)]
Update to follow ALooper ident change.

Also the native-activity sample also has some very simple code showing
how to listen to the accelerometer.

Change-Id: I0629b8bc40cddd66233c1675cd5e8b42a9b722d8

13 years agoAdd samples for secure views.
Jeff Brown [Fri, 3 Sep 2010 17:19:28 +0000 (10:19 -0700)]
Add samples for secure views.

Change-Id: Ibe1e63c87f4c6a715009f7bbcdafa552dc2d937c

13 years agoAdd an activity to Dev Tools that shows the Configuration and DisplayMetrics.
Joe Onorato [Tue, 7 Sep 2010 15:53:18 +0000 (11:53 -0400)]
Add an activity to Dev Tools that shows the Configuration and DisplayMetrics.

Change-Id: I6d3a682adccfef99eaa4d01b97091eda68f05cd8

13 years agoAdd API demo for picking a contact with a permission grant.
Dianne Hackborn [Thu, 2 Sep 2010 05:58:26 +0000 (22:58 -0700)]
Add API demo for picking a contact with a permission grant.

Change-Id: I9b0659e18afb19f8050cb77104c41ea291a9e3c7

13 years agoMerge "New SDK architecture. DO NOT MERGE." into gingerbread
Xavier Ducrohet [Wed, 1 Sep 2010 23:48:59 +0000 (16:48 -0700)]
Merge "New SDK architecture. DO NOT MERGE." into gingerbread

13 years agoNew SDK architecture. DO NOT MERGE.
Xavier Ducrohet [Sat, 28 Aug 2010 01:47:51 +0000 (18:47 -0700)]
New SDK architecture. DO NOT MERGE.

tools normally under the platform, move to a single location
called platform-tools/

Change-Id: I70659167778303722acb107a2d04bbf01467f884

13 years agoMerge "Add the simple script log for the statbility stress test. Add the randomize...
Yu Shan Emily Lau [Mon, 30 Aug 2010 22:52:59 +0000 (15:52 -0700)]
Merge "Add the simple script log for the statbility stress test. Add the randomize script option." into gingerbread

13 years agoAdd the simple script log for the statbility stress test.
Yu Shan Emily Lau [Fri, 27 Aug 2010 06:00:06 +0000 (23:00 -0700)]
Add the simple script log for the statbility stress test.
Add the randomize script option.

Change-Id: I7fbbd3b78a2fc5fe5300ac4811540d0cd2070688

13 years agoFix build.
Dianne Hackborn [Sat, 28 Aug 2010 00:00:52 +0000 (17:00 -0700)]
Fix build.

Change-Id: Ic030f82e79981792dc3116d318e217ab81ecea3b

13 years agoExplicitly enable backup by default in SDK builds
Christopher Tate [Tue, 24 Aug 2010 20:24:48 +0000 (13:24 -0700)]
Explicitly enable backup by default in SDK builds

This change parallels a frameworks/base change that makes the default
backup state at boot "enabled, with LocalTransport as the currently
active transport."  Device vendors who wish to ship the Google backup
transport need to explicitly disable backup by default (it is enabled
when the user agrees to the opt-in disclosure).

Change-Id: I6b0c5c059ef58effd5c121107ea3a5edd9e936cc

13 years agoMerge "Disable Proguard for the SampleBrowerPlugin" into gingerbread
Derek Sollenberger [Fri, 27 Aug 2010 14:43:54 +0000 (07:43 -0700)]
Merge "Disable Proguard for the SampleBrowerPlugin" into gingerbread

13 years agoDisable Proguard for the SampleBrowerPlugin
Derek Sollenberger [Fri, 27 Aug 2010 14:34:18 +0000 (10:34 -0400)]
Disable Proguard for the SampleBrowerPlugin

The native plugin library makes calls into java files that are
not often stripped out when Proguard optimizes the package.

Change-Id: I6ce8867dc9fa23e8a6adcc8daf9c8fb75f83c16d

13 years agoMerge "Add the new option for the device sleep time. This is only for the scripted...
Yu Shan Emily Lau [Thu, 26 Aug 2010 22:17:36 +0000 (15:17 -0700)]
Merge "Add the new option for the device sleep time. This is only for the scripted monkey." into gingerbread

13 years agoUpdate to follow API.
Dianne Hackborn [Thu, 26 Aug 2010 21:38:20 +0000 (14:38 -0700)]
Update to follow API.

Change-Id: I9d6a1dc64cd4e55bf68994784c4a724aeafd7857

13 years agoAdd the new option for the device sleep time. This is only for the scripted monkey.
Yu Shan Emily Lau [Thu, 26 Aug 2010 02:37:13 +0000 (19:37 -0700)]
Add the new option for the device sleep time. This is only for the scripted monkey.

Change-Id: I4a6bd7133bbd2da9594a47e1f5529c5358cd9aed

13 years agoam bea98acf: reconcile open-source froyo into google variant
Jean-Baptiste Queru [Wed, 25 Aug 2010 17:13:14 +0000 (10:13 -0700)]
am bea98acf: reconcile open-source froyo into google variant

Merge commit 'bea98acfa2253796aeade605c7020a7cc942af41' into gingerbread

* commit 'bea98acfa2253796aeade605c7020a7cc942af41':
  Explicitly enable backup by default in SDK builds

13 years agoQuiet harmless StrictMode violations caused by the Monkey.
Brad Fitzpatrick [Wed, 25 Aug 2010 01:58:14 +0000 (18:58 -0700)]
Quiet harmless StrictMode violations caused by the Monkey.

The monkey writes to System.out which is effectively a file and is
caught by StrictMode.

BUG=2947447

Change-Id: Iab38917f18baa319dad34d0c788bc9a10a041796

13 years agoreconcile open-source froyo into google variant
Jean-Baptiste Queru [Wed, 25 Aug 2010 16:37:05 +0000 (09:37 -0700)]
reconcile open-source froyo into google variant

Change-Id: I2dcb50be9b2061fb90a10d40e430294233cc5039

13 years agoExplicitly enable backup by default in SDK builds
Christopher Tate [Tue, 24 Aug 2010 20:24:48 +0000 (13:24 -0700)]
Explicitly enable backup by default in SDK builds

This change parallels a frameworks/base change that makes the default
backup state at boot "enabled, with LocalTransport as the currently
active transport."  Device vendors who wish to ship the Google backup
transport need to explicitly disable backup by default (it is enabled
when the user agrees to the opt-in disclosure).

Change-Id: I6b0c5c059ef58effd5c121107ea3a5edd9e936cc

13 years agoMerge "Add the new option for the scripted monkey profile testing." into gingerbread
Yu Shan Emily Lau [Wed, 25 Aug 2010 03:08:29 +0000 (20:08 -0700)]
Merge "Add the new option for the scripted monkey profile testing." into gingerbread

13 years agoMerge "Added a couple of new properties." into gingerbread
Brian Carlstrom [Wed, 25 Aug 2010 02:58:19 +0000 (19:58 -0700)]
Merge "Added a couple of new properties." into gingerbread

13 years agoAdd the new option for the scripted monkey profile testing.
Yu Shan Emily Lau [Wed, 25 Aug 2010 01:03:32 +0000 (18:03 -0700)]
Add the new option for the scripted monkey profile testing.

Change-Id: I1013a1a0daed948f509d9a29077f0e282baf1a10

13 years agoam ddc026b1: Merge "Explicitly enable backup by default in SDK builds" into froyo
Christopher Tate [Wed, 25 Aug 2010 01:19:19 +0000 (18:19 -0700)]
am ddc026b1: Merge "Explicitly enable backup by default in SDK builds" into froyo

Merge commit 'ddc026b1d5633348d97d78477ff1c7c950c3f3a8' into gingerbread

* commit 'ddc026b1d5633348d97d78477ff1c7c950c3f3a8':
  Explicitly enable backup by default in SDK builds

13 years agoMerge "Explicitly enable backup by default in SDK builds" into froyo
Christopher Tate [Wed, 25 Aug 2010 01:04:35 +0000 (18:04 -0700)]
Merge "Explicitly enable backup by default in SDK builds" into froyo

13 years agoAdded a couple of new properties.
Brian Carlstrom [Wed, 25 Aug 2010 01:02:43 +0000 (18:02 -0700)]
Added a couple of new properties.

The Android framework crashes with an int parsing failure and then
spins wildly if it can't find an expected property.

(git cherry-pick -e d88ee455)

Change-Id: Ie33e0261185301e6ce41b0896f9916816db9f928

13 years agoExplicitly enable backup by default in SDK builds
Christopher Tate [Tue, 24 Aug 2010 20:24:48 +0000 (13:24 -0700)]
Explicitly enable backup by default in SDK builds

This change parallels a frameworks/base change that makes the default
backup state at boot "enabled, with LocalTransport as the currently
active transport."  Device vendors who wish to ship the Google backup
transport need to explicitly disable backup by default (it is enabled
when the user agrees to the opt-in disclosure).

Change-Id: I6b0c5c059ef58effd5c121107ea3a5edd9e936cc

13 years agoMerge "Added the new keyword tap for the scripted monkey." into gingerbread
Yu Shan Emily Lau [Thu, 19 Aug 2010 22:46:51 +0000 (15:46 -0700)]
Merge "Added the new keyword tap for the scripted monkey." into gingerbread

13 years agoAdded the new keyword tap for the scripted monkey.
Yu Shan Emily Lau [Thu, 19 Aug 2010 21:57:42 +0000 (14:57 -0700)]
Added the new keyword tap for the scripted monkey.

Change-Id: Iabfc462f8fc853b3235aa0d742fa46c97e980b77

13 years agoMerge "Add the monkey event which allows the scripted monkey to execute the shell...
Yu Shan Emily Lau [Thu, 19 Aug 2010 18:11:28 +0000 (11:11 -0700)]
Merge "Add the monkey event which allows the scripted monkey to execute the shell command." into gingerbread

13 years agoAdd the monkey event which allows the scripted monkey to execute the shell command.
Yu Shan Emily Lau [Wed, 18 Aug 2010 03:00:07 +0000 (20:00 -0700)]
Add the monkey event which allows the scripted monkey to execute the shell command.

Change-Id: Id5548fc42fc5c7bee6879fffc580e134a75572ab

13 years agodon't strip resources so it work on all devices
Mathias Agopian [Tue, 17 Aug 2010 22:32:32 +0000 (15:32 -0700)]
don't strip resources so it work on all devices

Change-Id: Ifc6be52151fcdecd0f8f622c7312ffa0ac4705e9

13 years agoam 9f93186b: Adding a sample accessibility service
Svetoslav Ganov [Tue, 17 Aug 2010 17:45:23 +0000 (10:45 -0700)]
am 9f93186b: Adding a sample accessibility service

Merge commit '9f93186beae13ea057a4b2e867928b357cd650a4' into gingerbread

* commit '9f93186beae13ea057a4b2e867928b357cd650a4':
  Adding a sample accessibility service

13 years agoReformat to Android style guidelines
Mathias Agopian [Mon, 16 Aug 2010 23:13:24 +0000 (16:13 -0700)]
Reformat to Android style guidelines

Change-Id: Ib9d7e39464a246dbaae38e00fbb325f153f89f65

13 years agoTake screen rotation into account
Mathias Agopian [Mon, 16 Aug 2010 19:55:18 +0000 (12:55 -0700)]
Take screen rotation into account

Change-Id: I354c58eb1d28552d46b8fa269e12c00eaf6cbb99

13 years agoFix keycode. [Cherry-pick from master]
Ying Wang [Thu, 12 Aug 2010 18:30:41 +0000 (11:30 -0700)]
Fix keycode. [Cherry-pick from master]

see frameworks/base/core/java/android/view/KeyEvent.java.

Change-Id: Ic9a355b36815c4ac7db9c57c14bfe933585cf963
http://b/issue?id=2830562

13 years agoAdding a sample accessibility service
Svetoslav Ganov [Wed, 11 Aug 2010 04:41:06 +0000 (21:41 -0700)]
Adding a sample accessibility service

Change-Id: I5bd42157e263aac6d7a85db090319db168dea2fd

13 years agoSome native activity sample code cleanup.
Dianne Hackborn [Wed, 4 Aug 2010 18:13:03 +0000 (11:13 -0700)]
Some native activity sample code cleanup.

Update to include newest headers and library, tweak glue code to
work better with state saving and add support for config changes.

Change-Id: I4d27bd4a0f542f217efaec86cf4f219aca020426

13 years agoSeparate platform files and samples by API level.
David 'Digit' Turner [Fri, 30 Jul 2010 01:07:56 +0000 (18:07 -0700)]
Separate platform files and samples by API level.

Remove all duplicate platform files, i.e development/ndk/platforms/android-N now
only contains files that are introduced in API level 'N' and not found in level 'N-1'

(This makes it easier to manage independent platform release branches, and makes
 platform additions trivial to examine and maintain).

Move samples that depends on features of API level 'N' into platforms/android-N/samples

+ update tests/run-all.sh accordingly

Change-Id: I04c4c67c6c674c1714d5812d461d0524a4f4cfd9

13 years agoUpdate time zone data to the new version 2010k.
Eric Fischer [Mon, 26 Jul 2010 22:54:28 +0000 (15:54 -0700)]
Update time zone data to the new version 2010k.

Change-Id: Ifaadb0c75343bf271232dcd72f53fd34bb33aca1

14 years agoUpdate source.properties for SDK platform component.
Xavier Ducrohet [Wed, 21 Jul 2010 23:30:05 +0000 (16:30 -0700)]
Update source.properties for SDK platform component.

Change-Id: I4226a31d33fffbeb326ef2aea792a0676139fb1a

14 years agoMerge "documentation fix when downloading repo" into gingerbread
Nick Kralevich [Tue, 20 Jul 2010 00:00:42 +0000 (17:00 -0700)]
Merge "documentation fix when downloading repo" into gingerbread

14 years agondk: fix samples compilation
David 'Digit' Turner [Fri, 16 Jul 2010 21:52:50 +0000 (14:52 -0700)]
ndk: fix samples compilation

Change-Id: I3e0f88f823c891cea5ca3f82f7c3a6284295425c

14 years agondk: handle --verbose option in tests/run-all.sh script
David 'Digit' Turner [Fri, 16 Jul 2010 21:31:30 +0000 (14:31 -0700)]
ndk: handle --verbose option in tests/run-all.sh script

Change-Id: Ib99020a8b5c76c34bcbf8244426221bb3b6d2663

14 years agoUpdate NDK for pre-key-dispatching changes.
Dianne Hackborn [Fri, 16 Jul 2010 00:48:05 +0000 (17:48 -0700)]
Update NDK for pre-key-dispatching changes.

The same code now calls the appropriate function as part of
its key processing.

Change-Id: Ie6fbcd802b098b85d8113fe0a49473134721009b

14 years agoMerge "ndk: add tests/run-all.sh to run all automated tests." into gingerbread
David 'Digit' Turner [Thu, 15 Jul 2010 23:30:12 +0000 (16:30 -0700)]
Merge "ndk: add tests/run-all.sh to run all automated tests." into gingerbread

14 years agondk: add tests/run-all.sh to run all automated tests.
David 'Digit' Turner [Thu, 15 Jul 2010 23:20:59 +0000 (16:20 -0700)]
ndk: add tests/run-all.sh to run all automated tests.

For now, this only tries to rebuild all samples from scratch

Change-Id: I0d059b72b68d5abcfb462b897813dd60399612ef

14 years agoMerge "NDK access to the Asset Manager" into gingerbread
Christopher Tate [Thu, 15 Jul 2010 22:00:16 +0000 (15:00 -0700)]
Merge "NDK access to the Asset Manager" into gingerbread

14 years agoam f0f2aba8: Merge "update notepad tutorial to change activity title in NoteEdit...
Scott Main [Thu, 15 Jul 2010 18:25:07 +0000 (11:25 -0700)]
am f0f2aba8: Merge "update notepad tutorial to change activity  title in NoteEdit class" into froyo

Merge commit 'f0f2aba8925b7f88af6c3af479c560e4e6b67ee4' into gingerbread

* commit 'f0f2aba8925b7f88af6c3af479c560e4e6b67ee4':
  update notepad tutorial to change activity  title in NoteEdit class

14 years agoMerge "update notepad tutorial to change activity title in NoteEdit class" into...
Scott Main [Thu, 15 Jul 2010 18:22:52 +0000 (11:22 -0700)]
Merge "update notepad tutorial to change activity  title in NoteEdit class" into froyo

14 years agoMerge "The "current" SDK stubs jar should use the full apk that's exported, not the...
Joe Onorato [Thu, 15 Jul 2010 18:08:07 +0000 (11:08 -0700)]
Merge "The "current" SDK stubs jar should use the full apk that's exported, not the product-specific one." into gingerbread

14 years agoThe "current" SDK stubs jar should use the full apk that's exported, not the product...
Joe Onorato [Thu, 15 Jul 2010 02:56:38 +0000 (19:56 -0700)]
The "current" SDK stubs jar should use the full apk that's exported, not the product-specific one.

The SDK is not dependent on configurations, and also this speeds up the post-installclean build.

Change-Id: I1c075ddf1dd2ca44cc0aa37f23e86ccc593cc2a8

14 years agoMerge "Sample code to illustrate how to use the accelerometer" into gingerbread
Mathias Agopian [Wed, 14 Jul 2010 23:31:10 +0000 (16:31 -0700)]
Merge "Sample code to illustrate how to use the accelerometer" into gingerbread

14 years agodocumentation fix when downloading repo
Nick Kralevich [Wed, 14 Jul 2010 17:25:58 +0000 (10:25 -0700)]
documentation fix when downloading repo

Change-Id: I3ceb3abe0cc3cd19954331086ba1cb73c855fde2

14 years agoRemove prebuilt static library "libthreaded_app.a".
David 'Digit' Turner [Wed, 14 Jul 2010 00:00:24 +0000 (17:00 -0700)]
Remove prebuilt static library "libthreaded_app.a".

Make the "glue library" part of the NDK as an importable module,
this has several benefits:

- no need to distribute a binary here with no easy way to regenerate it

- no need to explicitely list -lthreaded_app in your LOCAL_LDLIBS
  (this is handled automatically by the module import capability)

- allows easier native debugging of what's really happening.

Note that the header is renamed <threaded_native_app.h>

+ Modify the native-activity sample to use and import the new module
+ Start documenting usage in the header file. We probably need something
  better, and will probably put it under development/ndk/docs/ at some
  point.

After this patch, we should be able to get rid of the code under
framework/base/native/{include.glue}

Change-Id: I6e81d70a225a6ca006beabf6e8b42529e8f371b9

14 years agoSample code to illustrate how to use the accelerometer
Mathias Agopian [Sat, 3 Jul 2010 01:12:04 +0000 (18:12 -0700)]
Sample code to illustrate how to use the accelerometer

this is a small particle + physics system that shows how
to integrate accleration data into positions accurately.

Change-Id: I3bbdc433f52d98464269ac8cb996c4cf037ae8d6

14 years agoNDK access to the Asset Manager
Christopher Tate [Tue, 13 Jul 2010 23:27:45 +0000 (16:27 -0700)]
NDK access to the Asset Manager

Change-Id: Ibe380e352af98f953bfc2398b498a6ccb242bcec

14 years agoCopy over updated NDK APIs and follow other API changes.
Dianne Hackborn [Wed, 14 Jul 2010 00:51:26 +0000 (17:51 -0700)]
Copy over updated NDK APIs and follow other API changes.

Change-Id: Ifec95268c9ade21963eea13357ec2f56fd7968c2

14 years agoAdd initial gamepad support.
Jeff Brown [Tue, 13 Jul 2010 23:45:16 +0000 (16:45 -0700)]
Add initial gamepad support.

Change-Id: Ide1922ea36f8b64100b4dba57e718479b8a0bec5

14 years agoMigrate to new keycode constants in keycodes.h.
Jeff Brown [Tue, 13 Jul 2010 23:14:54 +0000 (16:14 -0700)]
Migrate to new keycode constants in keycodes.h.

Change-Id: I775efb0f73b418db5bf65c218949b164f8e65647

14 years agondk sample hello-neon: use $(call import-module) to access the 'cpufeatures' library
David 'Digit' Turner [Tue, 13 Jul 2010 22:50:46 +0000 (15:50 -0700)]
ndk sample hello-neon: use $(call import-module) to access the 'cpufeatures' library

Change-Id: I29397158de0ccdd89dfe4da72a544fad14a8324e

14 years agoUpdate for improved glue.
Dianne Hackborn [Sat, 10 Jul 2010 01:21:45 +0000 (18:21 -0700)]
Update for improved glue.

Change-Id: I73bb23644523e8ec19c51a3e3b9c5c4f7a98c558

14 years agoAdd new native-plasma sample code.
Dianne Hackborn [Fri, 9 Jul 2010 18:48:23 +0000 (11:48 -0700)]
Add new native-plasma sample code.

This shows direct drawing to an ANativeWindow's bits.

Update the NDK API, and fix a bug in the native-activity app where it
would hang while exiting.

Change-Id: I4fa98d083405eb0d1b22b10a73a2ef18d45fdb59

14 years agoFix keycode
Ying Wang [Fri, 9 Jul 2010 22:04:40 +0000 (15:04 -0700)]
Fix keycode

4 new key codes were added since gingerbread.
bug: http://b/issue?id=2830562

Change-Id: I91a55ef6ca9244bc053e25b6dd8d514cb3f106e9

14 years agondk: Add a test to check that prebuilt libraries work as expected.
David 'Digit' Turner [Fri, 9 Jul 2010 16:56:31 +0000 (09:56 -0700)]
ndk: Add a test to check that prebuilt libraries work as expected.

Change-Id: I7c0683ac1ee50bb62cc0f7ac22e839f749ec1cdf

14 years agoMerge "Update native_activity sample to use new glue code." into gingerbread
Dianne Hackborn [Thu, 8 Jul 2010 19:25:41 +0000 (12:25 -0700)]
Merge "Update native_activity sample to use new glue code." into gingerbread

14 years agoUpdate native_activity sample to use new glue code.
Dianne Hackborn [Wed, 7 Jul 2010 21:33:00 +0000 (14:33 -0700)]
Update native_activity sample to use new glue code.

The native_activity sample is now built with the new threaded_app
glue code, removing all of the boiler-plate code from it.  This
adds the glue code (header and .a) to the NDK.

Change-Id: I2a7be473811f22f948dcda3da8034dd0bd62049d

14 years agoam 34ca4b64: Merge "Add the support for the alarmManager and force the device to...
Yu Shan Emily Lau [Thu, 8 Jul 2010 18:31:07 +0000 (11:31 -0700)]
am 34ca4b64: Merge "Add the support for the alarmManager and force the device to wake up." into froyo

Merge commit '34ca4b646b20cc209b06fec482e6c77dbc92d220' into gingerbread

* commit '34ca4b646b20cc209b06fec482e6c77dbc92d220':
  Add the support for the alarmManager and force the device to wake up.

14 years agoMerge "Add the support for the alarmManager and force the device to wake up." into...
Yu Shan Emily Lau [Thu, 8 Jul 2010 18:28:33 +0000 (11:28 -0700)]
Merge "Add the support for the alarmManager and force the device to wake up." into froyo

14 years agoMerge "Remove C++ headers from the platform directories." into gingerbread
David 'Digit' Turner [Wed, 7 Jul 2010 21:19:10 +0000 (14:19 -0700)]
Merge "Remove C++ headers from the platform directories." into gingerbread

14 years agoMerge "Update API level 9 sysroot to allow static C++ destructors to be called on...
David 'Digit' Turner [Wed, 7 Jul 2010 21:14:47 +0000 (14:14 -0700)]
Merge "Update API level 9 sysroot to allow static C++ destructors to be called on dlclose()." into gingerbread

14 years agoRemove C++ headers from the platform directories.
David 'Digit' Turner [Wed, 7 Jul 2010 19:53:45 +0000 (12:53 -0700)]
Remove C++ headers from the platform directories.

We now rely instead on the content of $NDK/sources/cxx-stl/system/include
that is automatically used if a module has C++ sources.

Change-Id: I4319d9260fcf9fb31c59c2f21ca64b536725d4f5

14 years agoAdd the support for the alarmManager and force the device to wake up.
Yu Shan Emily Lau [Fri, 2 Jul 2010 01:34:43 +0000 (18:34 -0700)]
Add the support for the alarmManager and force the device to wake up.

Change-Id: Ib4a2f9cb580eadf6771b103399e14f932d50cb1c

14 years agoUpdate to use new looper API.
Dianne Hackborn [Sat, 3 Jul 2010 01:54:33 +0000 (18:54 -0700)]
Update to use new looper API.

Also need to put back the stub Java class for now, as the
build system still seems to require it.

Change-Id: I31917a1fc7c0bf8cd928969125f94d55c59d42f8

14 years agoMerge "Stub code no longer needed." into gingerbread
Dianne Hackborn [Fri, 2 Jul 2010 02:34:50 +0000 (19:34 -0700)]
Merge "Stub code no longer needed." into gingerbread

14 years agoStub code no longer needed.
Dianne Hackborn [Fri, 2 Jul 2010 02:27:06 +0000 (19:27 -0700)]
Stub code no longer needed.

Change-Id: I985acdba1dd1c0acf00d88d2851b5f604475bf4c

14 years agoNative activity now draws!
Dianne Hackborn [Fri, 2 Jul 2010 01:47:16 +0000 (18:47 -0700)]
Native activity now draws!

Very simple and dumb, but we now get touch events and fill the
window with a color (using OpenGL) based on its location.

Change-Id: I6657d2bb013570238bc0fe639f33c59f1ab68872

14 years agoUpdate native_activity sample code to use ANativeWindow.
Dianne Hackborn [Thu, 1 Jul 2010 01:36:34 +0000 (18:36 -0700)]
Update native_activity sample code to use ANativeWindow.

We now get the native window to the engine, all ready for something
to be done with it.

Change-Id: Ie4537e505cdf8a2fffc28de82b7e3cda448fde41

14 years agoMerge "Add connectivity unit tests to test_defs.xml" into gingerbread
Xia Wang [Wed, 30 Jun 2010 00:25:01 +0000 (17:25 -0700)]
Merge "Add connectivity unit tests to test_defs.xml" into gingerbread

14 years agoAdd connectivity unit tests to test_defs.xml
Xia Wang [Tue, 29 Jun 2010 21:59:26 +0000 (14:59 -0700)]
Add connectivity unit tests to test_defs.xml

Change-Id: I15ecb95f7c534a9761cc8bbd16cd6ec661f7af5b

14 years agoMerge "Update to new native activity APIs." into gingerbread
Dianne Hackborn [Tue, 29 Jun 2010 19:17:28 +0000 (12:17 -0700)]
Merge "Update to new native activity APIs." into gingerbread

14 years agoam e46d0514: Merge "Doc change: Add index page pointing to downloadable user\'s guide...
Dirk Dougherty [Tue, 29 Jun 2010 18:22:16 +0000 (11:22 -0700)]
am e46d0514: Merge "Doc change: Add index page pointing to downloadable user\'s guide source files." into froyo

Merge commit 'e46d051439f8d9fdee102b6dbc43caa3357b073f' into gingerbread

* commit 'e46d051439f8d9fdee102b6dbc43caa3357b073f':
  Doc change: Add index page pointing to downloadable user's guide source files.