1321 Commits

Author SHA1 Message Date
Steve Block
1afd5bab4e Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF)
Change-Id: I44f267700356967dc51e8f85ebf457dc85cfb229
2012-01-19 14:44:50 -08:00
Steve Block
06ade6ae1b Rename (IF_)LOGV(_IF) to (IF_)ALOGV(_IF)
Change-Id: I5321ebd12e9c6248a108529e82c4e1af2a4405e3
2012-01-19 14:44:31 -08:00
Xavier Ducrohet
5bf2802ad9 Fix broken drawCircle LayoutLib.
Change-Id: I5e23bbe0119e385fa2f77854a8f88128351d3759
2012-01-18 17:08:53 -08:00
Jim Miller
3bb3d41adb am 230a7092: Merge "Fix 5863053: Add method to lock screen immediately." into ics-mr1
* commit '230a709285abc5dfd92f05d91a8997d52a59d3c7':
  Fix 5863053: Add method to lock screen immediately.
2012-01-18 16:46:38 -08:00
Jim Miller
93c518e4f8 Fix 5863053: Add method to lock screen immediately.
This fixes a bug where the device fails to lock when DevicePolicyManagerService
requests the device to be locked and the screen was off because the user hit
the power button.

The change allows DPMS to directly invoke screen lock, bypasssing the screen state.

Change-Id: Iecdda6fc61e9c519119de495be23c69c3b983921
2012-01-17 18:11:05 -08:00
Jeff Brown
5aa73ae58f Improve heuristics for orientation detection.
1. Except as otherwise indicated, orientation change happens once
   the predicted rotation has been stable for 40ms.  Noise is
   suppressed by a low-pass filter with a 200ms time constant which
   seems to be about as small as is practical given the quality
   of the sensor data.

2. If the magnitude exceeds a threshold (excessive noise or freefall),
   resets the predicted orientation.
   Doesn't happen very often even when shaking the device.
   This heuristic mainly protects the detector from spurious tilt due
   to inaccurate determination of the gravity vector.

3. If the device was previously in a flat posture (on a table for at
   least 1000ms), then it must move out of that posture for at least
   500ms before the next orientation change will happen.
   This heuristic suppresses most spurious rotations that happen while
   picking up the device.

4. If the device is tilted away from the user by 20 degrees within
   a span of 300ms, the device is said to be swinging and at least
   300ms must elapse after the device stops swinging before the
   next orientation change will happen.
   This heuristic suppresses some but not all spurious rotations that
   happen while putting down a device.  Unfortunately, this heuristic
   sometimes triggers a false positive when turning the device very
   rapidly due to accelerometer noise.  The 300ms pause is a compromise
   so that occasional mispredicted swings don't significantly delay
   the rotation.

Bug: 5796249
Change-Id: Id7b36c4c563e35b70d6a7ac36d04f3c3d6ea5811
2012-01-17 17:07:10 -08:00
Jason Simmons
6e5d9dfc5f Merge "Add a getEndpointInfo accessor to AIDL-generated RPC proxy classes" into ics-aah 2012-01-11 12:51:52 -08:00
Steve Block
3762c31172 Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE
See https://android-git.corp.google.com/g/#/c/157220

Bug: 5449033
Change-Id: Ic9c19d30693bd56755f55906127cd6bd7126096c
2012-01-08 13:19:13 +00:00
Dan Morrill
74366c06ff Merge "Minor tweak to console output." 2012-01-06 14:39:11 -08:00
Dan Morrill
e74763e26f Minor tweak to console output.
Change-Id: I494910eda1d02f6bcff945b9a13c83767f2248b6
2012-01-06 14:10:45 -08:00
Steve Block
8564c8da81 Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF) DO NOT MERGE
See https://android-git.corp.google.com/g/157065

Bug: 5449033
Change-Id: I00a4b904f9449e6f93b7fd35eac28640d7929e69
2012-01-06 10:07:54 +00:00
Steve Block
6215d3ff4b Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF) DO NOT MERGE
See https://android-git.corp.google.com/g/156801

Bug: 5449033
Change-Id: Ib08fe86d23db91ee153e9f91a99a35c42b9208ea
2012-01-04 20:05:49 +00:00
Manuel Roman
f545558a2d Merge "Modified the constructor of EndpointBase" into ics-aah 2012-01-04 00:14:34 -08:00
Manuel Roman
a8744b7cdf Modified the constructor of EndpointBase
We introduced changes to the Endpoint lifecycle.
Modified the AIDL compiler to take into account the
changes. Just affected the constructor, which needs
now an extra parameter: placeInfo

Change-Id: I936e8e0ee512a1f7015a029be48042b7b98b7ffb
2012-01-03 22:03:37 -08:00
Steve Block
5baa3a62a9 Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGE
See https://android-git.corp.google.com/g/156016

Bug: 5449033
Change-Id: I4c4e33bb9df3e39e11cd985e193e6fbab4635298
2012-01-03 22:38:27 +00:00
Jason Simmons
20e0cef180 Add a getEndpointInfo accessor to AIDL-generated RPC proxy classes
Change-Id: I1de957db3eceebc466d8ce23e2a80a0fcf4c917c
2011-12-16 16:14:17 -08:00
Joe Onorato
44fcb83b38 Add a new ui mode for "appliance"
The idea is that this is a device which is more-or-less headless.  It
might have some limited interaction capabilities, but it's not something
that you want to rely on having.

Change-Id: Ib92f53a120bf83de781728011721a4859def7d9f
2011-12-15 16:16:14 -08:00
Joe Onorato
68e616840b Add a new ui mode for "appliance"
The idea is that this is a device which is more-or-less headless.  It
might have some limited interaction capabilities, but it's not something
that you want to rely on having.

Change-Id: Icc9f674299f8dbe2b736a5622a4965904d27e49c
2011-12-14 20:59:30 -08:00
Joe Onorato
ecc11a36cb Merge "The com.android.athome api classes are moving android.support.place." into ics-aah 2011-12-12 22:37:10 -08:00
Raphael
f72abe344a am 2ace3b01: Merge "Merge "AAPT fix printf %zd crash on Windows". Do not merge." into ics-mr1
* commit '2ace3b01ab9447ce9fda2f578e31c1c11f4837cb':
  Merge "AAPT fix printf %zd crash on Windows". Do not merge.
2011-12-12 13:16:32 -08:00
Joe Onorato
0c86196fe1 The com.android.athome api classes are moving android.support.place.
Change-Id: Ibb9b8cfc8e7d0676df43359f5abaaed5e9e1112d
2011-12-11 20:42:33 -08:00
Raphael
7c3bef85da Merge "AAPT fix printf %zd crash on Windows". Do not merge.
There's no printf %zd on Mingw/Cygwin so the verbose
printf crashes aapt.

SDK bugs: 20395, 20986

Bug: 5742142

(cherry picked from commit f51125d8429ffa71c57ba6fbdca9effc72642a9b)

Change-Id: I7545734ce8ce4a1f3e95f8a255daa8a909f870a1
2011-12-11 13:59:02 -08:00
Kenny Root
063a44e541 Add aapt support for implicitly-granted permissions
Bug: 2363582
Bug: 2877343
Change-Id: Iff7b496fb845e45fe1be2317089a96f7d63ed223
2011-12-08 08:46:34 -08:00
Tor Norbye
e98ae0a050 Merge "Upgrade layoutlib generation code to use ASM 4.0" 2011-12-06 13:31:04 -08:00
Jeff Brown
96e942dabe Use a Choreographer to schedule animation and drawing.
Both animations and drawing need to march to the beat of
the same drum, but the animation system doesn't know
abgout the view system and vice-versa so neither one
can drive the other.

We introduce the Choreographer as a drummer to keep
everyone in time and ensure a magnificent performance.

This patch enabled VSync based animations and drawing by
default.  Two system properties are provided for testing
purposes to control the behavior.

"debug.choreographer.vsync": Enables vsync based animation
timing.  Defaults to true.  When false, animations are
timed by posting delayed messages to a message queue in
the same way they used to be before this patch.

"debug.choreographer.animdraw": Enables the use of the animation
timer to drive drawing such that drawing is synchronized with
animations (in other words, with vsync or the timing loop).
Defaults to true.  When false, layout traversals and drawing
are posted to the message queue for execution without any delay or
synchronization in the same way they used to be before this patch.

Stubbed out part of the layoutlib animation code because it
depends on the old timing loop (opened bug 5712395)

Change-Id: I186d9518648e89bc3e809e393e9a9148bbbecc4d
2011-12-05 16:39:59 -08:00
Tor Norbye
f7270ba908 Upgrade layoutlib generation code to use ASM 4.0
Change-Id: I46b3854a05677dc7cadd217efb001dbb25631fbd
2011-12-05 14:26:04 -08:00
Joe Onorato
c286560534 Use the new get/putFlattenable methods on RpcData.
They handle null correctly.

Change-Id: I8eebf43e1791ea0f99f3d4ee1beb74aa4c977115
2011-12-04 21:13:23 -08:00
Dianne Hackborn
c0b7f65ae0 am 496f6e2a: am b54980d1: Merge "Fix issue #5588689: Black camera preview after coming back from gmail" into ics-mr1
* commit '496f6e2ad656c5bb8a277e191554d16abd290b58':
  Fix issue #5588689: Black camera preview after coming back from gmail
2011-11-28 16:57:17 -08:00
Dianne Hackborn
5e3064c67f am b54980d1: Merge "Fix issue #5588689: Black camera preview after coming back from gmail" into ics-mr1
* commit 'b54980d1d4d903f68cdfa952256afff01902cd94':
  Fix issue #5588689: Black camera preview after coming back from gmail
2011-11-28 16:54:56 -08:00
Dianne Hackborn
6d05fd3c79 Fix issue #5588689: Black camera preview after coming back from gmail
Make surface management between SurfaceView and the window manager
much more controlled, to ensure that SurfaceView always gets to report
the current surface is destroyed before the window manager actually
destroys it.

Also a small tweak to allow windows that have a wallpaper background
to still have a preview window.  This makes launching home after it
has been killed feel much more responsive.

Change-Id: I0d22cf178a499601a770cb1dbadef7487e392d85
2011-11-28 14:45:50 -08:00
Joe Onorato
6980de4ef9 Don't try to unmarshal void return types when there are out parameters being returned.
Change-Id: Ib7d2a5609167a076dd7ee8e10e8a55056789517e
2011-11-17 16:13:49 -08:00
Joe Onorato
2037c2585c For events, require that the parameters be marked in.
(because they won't work otherwise)

Change-Id: I77f370ca1bc381ea07fc2854d2a90d8138ca1796
2011-11-08 17:35:09 -08:00
Joe Onorato
44c620da02 Support putting Flattenables in Lists.
Change-Id: I683ec1823286d7f2ac03683a1cdad6413d2445b1
2011-11-07 18:12:22 -08:00
Joe Onorato
ab26b50134 Was generating code that uses the wrong RpcData.
Change-Id: I7984ac8306d7e293c6e4ccb75c5f03c508e465af
2011-11-06 18:14:40 -08:00
Joe Onorato
f1d897d996 Merge "This should fix the build for now." into ics-aah 2011-11-03 17:06:32 -07:00
Joe Onorato
6e5cb4b38a This should fix the build for now.
I can't reproduce the real problem.

Change-Id: I851d42eed6f5eb5e9b2b53859e97b43438676cc8
2011-11-03 17:05:10 -07:00
Joe Onorato
fc0bd56e72 Merge "Add some extra debug information because this error is only happening on the build server." into ics-aah 2011-11-03 14:46:13 -07:00
Joe Onorato
0ee2431b27 Add some extra debug information because this error is only happening on the build server.
Change-Id: I0703fffbe9701bf6614030e948a8e6cbfc3647be
2011-11-03 14:44:13 -07:00
Tor Norbye
8836c55818 Set theme-tag in render log when failing to find style
Change-Id: I20461a7113eb25469deca13dca870936bdb33a29
2011-11-01 11:51:20 -07:00
Joe Onorato
8f3580e9da Revert "Treat parcelables as flattenables for now, until the sdk contains a newer aidl."
Change-Id: I8f588d160888550ee79564afe6935fd0f78bc1f7
2011-10-28 10:14:52 -04:00
Joe Onorato
47f2f8340f Treat parcelables as flattenables for now, until the sdk contains a newer aidl.
Change-Id: Ic673aaa41fc9f430fdb7bda8963297452c9471da
2011-10-28 10:14:52 -04:00
Joe Onorato
adfe8d28bf Update aidl for new Broker API.
Change-Id: Ibb92fb85eea5e9c9aeaf8ef1d2a5ef19fbf68021
2011-10-28 10:14:51 -04:00
Joe Onorato
94ca1b9978 aidl: All flattenable types now must also be parcelable.
This is more a limitation of the grammar than anything else triggering laziness on my part.

Change-Id: I5ad949c6d8378870e40a15cf6e975e318cfeece5
2011-10-28 10:14:51 -04:00
Joe Onorato
abd8c07091 Update aidl to new APIs.
Change-Id: If7a39bec6478ee2a2c1493c744fa5afe9757c88d
2011-10-28 10:14:51 -04:00
Joe Onorato
11987cdbb3 Suport RpcData as a parcelable type.
Change-Id: I5721fe5b33f52edfb06f4c9cd4f8c97d234e9fc7
2011-10-28 10:14:51 -04:00
Manuel Roman
9e2df97488 Modified AIDL to support authentication
We need to pass an RpcContext with information
such as the caller's certificate. I also modified
the compiler so it does not use Container anymore
and uses Context

Change-Id: Ib54b774f9c7b5cb3e0a014ce91548b817efcb72b
2011-10-28 10:14:51 -04:00
Tim Kilbourn
923a41816c Fix PresenterClass by adding a _listener field
Change-Id: I22578bba4d66d032f67ceec3e7232de13be4f175
2011-10-28 10:14:51 -04:00
Joe Onorato
827af24a3e add presenters to aidl.
Change-Id: I23c0bb085f3bfd27ca3b7f53e26cb704f8ddac1a
2011-10-28 10:14:50 -04:00
Joe Onorato
acff08262d Support custom flattenable types for RPC.
Change-Id: I5c29043baba792ce99d2e9d48bc96d4837b2a808
2011-10-28 10:14:50 -04:00
Joe Onorato
de81fcb590 Generate fallthrough for unhandled actions in RPC methods.
Change-Id: I08031c5a89f467691fc02cb4d44e49be3e48ed58
2011-10-28 10:14:50 -04:00