26647 Commits

Author SHA1 Message Date
Dirk Dougherty
0e29064d1c Merge "Doc change: update media formats table." into gingerbread 2010-11-19 10:47:10 -08:00
Mathias Agopian
671a6ff4be Add support for virtual sensors.
Rework sensorservice to allow "virtual sensors", that is
sensors that report a synthetized value based on real sensors.

the main change to sensorservice is around managing which real
sensor need to be activated and which rate to use.

The logic for all this has been moved into SensorDevice, which
essentially wraps the sensor HAL but adds two features to it:
- it keeps track of which sensors need to be activated
- it keeps track of what rate needs to be used

For this purpose an "identity" is associated with each real sensor
activation, so we can track them.

On start-up we check for gravity, linear-acceleration and
rotation-vector sensors, if they're not present in the HAL, we
synthetize them in sensor-service.

Change-Id: I841db2c1b37ef127ed571efa21732ecc5adf1800
2010-11-18 15:29:05 -08:00
Justin Ho
80381ab4ed Merge "DO NOT MERGE - Updated ringtones for Crespo, fixing looping problem" into gingerbread 2010-11-18 15:03:39 -08:00
Justin Ho
9b14d1d52a DO NOT MERGE - Updated ringtones for Crespo, fixing looping problem
Change-Id: Id5947197bdb6599bb7a3a15ab1e1a9541a4d31b2
2010-11-18 15:02:18 -08:00
Jeff Brown
b27b8c0caf Fix a key repeating bug. (DO NOT MERGE)
This change fixes a bug in the dispatcher where the window manager
policy would incorrectly receive a key repeat count of 0 in the case
where the key repeat was generated by the hardware or driver.
Long-press on HOME was broken as a result.

Repeating keys could also get stuck down.

Bug: 3159581
Bug: 3208156
Change-Id: I1145487cfcc41a7850dba4cafc63c4a5951ace5b
2010-11-17 19:42:04 -08:00
Jeff Brown
bfc1cc2d1e Fix stuck keys when released out of order. (DO NOT MERGE)
Bug: 3208156
Change-Id: I14e4d54f4912de5e2fabcd8638120623aa2d16e0
2010-11-17 19:17:54 -08:00
Scott Main
0fe33a4835 am 2cbe92ea: docs: add better visibility to app install location doc
* commit '2cbe92ea6d36adb721b0cb94f5dbecb9c9e71ad8':
  docs: add better visibility to app install location doc
2010-11-17 18:34:40 -08:00
Scott Main
2cbe92ea6d docs: add better visibility to app install location doc
Change-Id: Ib36a53c69a918eab4378d5ec7d25ec89be1b7070
2010-11-17 18:14:58 -08:00
Dirk Dougherty
fc1f5e24bc doc change: update uses-feature for gingerbread.
Change-Id: I1af174da527a91e111d6bdecaad8c08bde050c24
2010-11-17 16:15:52 -08:00
Dirk Dougherty
a2587c4604 Doc change: update media formats table.
Change-Id: I0a39fed18f7b2d42fc7690ead230b1861332bd4e
2010-11-17 10:30:32 -08:00
Dianne Hackborn
05434e9fa7 Final API 9. Really! Honestly! I hope.
Change-Id: I2ee5844587b5745556d621e4b9ef0efa3ec5edcf
2010-11-16 15:40:56 -08:00
Xia Wang
d0a8f54a5b Merge "Add Wi-Fi connection functional tests." into gingerbread 2010-11-16 09:14:46 -08:00
Xia Wang
ca1f2b1a1e Add Wi-Fi connection functional tests.
- Add a XML parser to parse Wi-Fi configurations
- Add Wifi connection tests
- Fix issue: failure in setup will block the next tests.
             call tearDown() if the test fails at setUp().

Change-Id: I1a380fa02ebc96b69165d1514da12df985224e8d
2010-11-15 15:10:44 -08:00
Mathias Agopian
305bc0fe97 Merge "Fix a race condition in sensormanager" into gingerbread 2010-11-15 13:14:59 -08:00
Mathias Agopian
9e291a4b99 Merge "Revert "allow all 4 orientations"" into gingerbread 2010-11-15 13:14:50 -08:00
Justin Ho
868889fb41 Merge "DO NOT MERGE - Updated ringtones from pdx (v3) - Quickly fixing distortion at highest volume setting by adjusting gain. Proper fix should be via media stack/hardware." into gingerbread 2010-11-15 09:10:33 -08:00
Justin Ho
ee6aa806d8 DO NOT MERGE - Updated ringtones from pdx (v3) - Quickly fixing distortion at highest volume setting by adjusting gain. Proper fix should be via media stack/hardware.
Change-Id: I6220c0b9f85b20c690437a23c364ad4898b8e16a
2010-11-15 09:07:34 -08:00
Justin Ho
a5c4aeba1c Merge "DO NOT MERGE - Revised ringtones from Ali Spagnola (revision 2)" into gingerbread 2010-11-15 08:50:19 -08:00
Justin Ho
1b35a52263 DO NOT MERGE - Revised ringtones from Ali Spagnola (revision 2)
Change-Id: I5c7fc73f28408e6345bb9a73f0fe10014a26efbf
2010-11-15 08:41:16 -08:00
Mathias Agopian
f33a6e9645 Fix a race condition in sensormanager
the per-connection state assumed the main sensorservice
lock was held during access. This is however not true while
pre-processing the events just before sending them to clients.
Therefore, there was a small window during which this state
could be modified while being used.

we now have an internal lock that protects this state.

Change-Id: I594680f20f09d6a4f1f38f093a1d3f650dcef1be
2010-11-14 20:55:25 -08:00
Mathias Agopian
f9ce879e5c Revert "allow all 4 orientations"
This reverts commit 1d8d0159e72556ea20aba325fb27d8470282e1ba.

Change-Id: Iffd8cbad98ff7e498032df1d226f4fbc7cde95b1
2010-11-13 22:02:13 -08:00
Megha Joshi
e2ef2c10e7 Fixing build (DO NOT MERGE)
Change-Id: I27fb9dc0584940e119b030d63ff5781ef19001c1
2010-11-12 19:09:11 -08:00
Megha Joshi
48c698fc14 Adding NFC sample resources (DO NOT MERGE)
Change-Id: I687d07ebe4f8bd0c5dec30e69af0d3e880a68230
2010-11-12 18:35:49 -08:00
Scott Main
d6b9d078ec Merge "docs: misc changes to sdk setup docs update sdk manager screenshot; update info about new manager UI; more info about the windows installer;" into gingerbread 2010-11-11 16:56:19 -08:00
Eric Fischer
3082e5fed0 Merge "Import revised translations. DO NOT MERGE" into gingerbread 2010-11-11 15:44:04 -08:00
Mathias Agopian
fcab475c90 Merge "record the last event received regardless of having clients or not" into gingerbread 2010-11-11 14:44:08 -08:00
Scott Main
4fb51ca1a9 docs: misc changes to sdk setup docs
update sdk manager screenshot;
update info about new manager UI;
more info about the windows installer;

Change-Id: Ic4a582ba28f02e2c787901a575194ae884be396e
2010-11-11 11:59:13 -08:00
Scott Main
dfb122180c docs: revise adding components with info about platform-tools
Change-Id: I3b4afca09fc81d41f3017fd78e64f44b11f9ec12
2010-11-11 10:48:45 -08:00
John Wang
fac4a689f8 Merge "Fix the audio mode glitch during hangup." into gingerbread 2010-11-10 19:11:20 -08:00
Dianne Hackborn
34594e75e4 Merge "Fix issue #3177284: Account for wake lock power usage on Crespo" into gingerbread 2010-11-10 17:58:28 -08:00
Mathias Agopian
3a9223ebf8 record the last event received regardless of having clients or not
We only recorded the last received event (which is needed when a sensor
is activated on a connection) when there was some connection active.
This should fix an issue where sometimes the light sensor doesn't
return an event whent activated.

we also didn't need to hold the main lock while dispatching events
to clients.

Change-Id: I6c6386c040051ce205e3c0516c678e0603fa45e1
2010-11-10 17:50:28 -08:00
Jeff Brown
00e5dd44f6 Merge "Fix JNI reference leak in NativeActivity. (DO NOT MERGE)" into gingerbread 2010-11-10 16:00:37 -08:00
John Wang
d19f44f3e3 Fix the audio mode glitch during hangup.
Fix bug # 3136179.

Keep audio mode as IN_CALL during hangup DISCONNECTING state

to prevent the NORMAL and IN_CALL glitch in auiod setMode.

Change-Id: I5513a3d5c65bd13ac054c9718c4dbd7d6db9eaf3
2010-11-10 15:35:51 -08:00
Scott Main
77f5c9542e resolved conflicts for merge of 5a726729 to gingerbread
Change-Id: I6060f31c45d49dfe4dbda52836150311b8992b15
2010-11-10 14:46:44 -08:00
Scott Main
5a72672977 docs: remove "new" tags from sample apps
Change-Id: I74dafa69f3638e2fe13c5edc7a54096943ffa164
2010-11-10 14:16:09 -08:00
Mathias Agopian
17fd21fc06 Merge "DO NOT MERGE. workaround [3177481] eglGetProcAddress() returns the wrong pointer for some GL extensions" into gingerbread 2010-11-10 14:09:17 -08:00
Scott Main
f4724cdd0b Merge "docs: update eclipse guide for eclipse 3.6 also update system requirements" into gingerbread 2010-11-10 10:46:36 -08:00
Owen Lin
45ca778d8e Merge "Make sure the controller will get repositioned after size changing." into gingerbread 2010-11-09 19:02:23 -08:00
Mathias Agopian
b48189ccfe Merge "Improve gyro and accelerometer java doc" into gingerbread 2010-11-09 17:12:11 -08:00
Scott Main
77847a3568 docs: update eclipse guide for eclipse 3.6
also update system requirements

Change-Id: I5433e9e73a85b10754d3c5d4561a8acf1ca66250
2010-11-09 16:47:52 -08:00
David 'Digit' Turner
b7a109c027 Merge "Refresh EGL header to work with the NDK" into gingerbread 2010-11-09 16:12:06 -08:00
Scott Main
a784d5528f Merge "docs: add release notes for ADT v8" into gingerbread 2010-11-09 15:29:22 -08:00
Mathias Agopian
4c2bfc18b9 DO NOT MERGE. workaround [3177481] eglGetProcAddress() returns the wrong pointer for some GL extensions
We just make sure eglGetProcAddress() will return NULL for
 glEGLImageTargetTexture2DOES
 glEGLImageTargetRenderbufferStorageOES

which is better than returning the address of the wrong implementation.

the correct fix is more involved.

Change-Id: I585a1f40e564f862e5dd382224609ccd069cd3b5
2010-11-09 14:41:13 -08:00
Mathias Agopian
fa33565714 Improve gyro and accelerometer java doc
Change-Id: If055512cb51d6e3b9f2094a730bf373ca963d97d
2010-11-09 13:53:25 -08:00
Eric Fischer
d41f638c8a Import revised translations. DO NOT MERGE
Change-Id: I6178ba6468bf9e1dd52a83652c857a6e75f2661b
2010-11-09 12:15:41 -08:00
Jesse Wilson
28c742573c Add @Deprecated to match @deprecated where it's missing.
Change-Id: Ice95022671968386a601f32df7850f9baa1d2dd0
2010-11-09 10:10:11 -08:00
Scott Main
9eb48bb2b1 Merge "docs: revisions to ndk release notes" into gingerbread 2010-11-09 09:30:30 -08:00
Jeff Hamilton
2e2983c6ef Merge "Reduce log clutter." into gingerbread 2010-11-09 06:54:51 -08:00
Owen Lin
a8381dfc5e Make sure the controller will get repositioned after size changing.
Bug: 3177061
Change-Id: I8f9606d4e05146ba568e8fe370cfe115dadedab9
2010-11-09 19:32:30 +08:00
Wu-cheng Li
f6bd761f94 Use back-facing camera as default in camera/camcorder profile.do not merge
bug:3173302
Change-Id: I11eaed32bb393206b560834d52c412f3e5a1a7d9
2010-11-09 14:11:45 +08:00