1007 Commits

Author SHA1 Message Date
Xavier Ducrohet
a61f470dcc am 503247f2: Merge "Make sure resource references are resolved." into ics-mr1
* commit '503247f213ef2894324a22e7608101e90a7fe8fb':
  Make sure resource references are resolved.
2012-02-22 10:49:24 -08:00
Xavier Ducrohet
c3f979f6fe Make sure resource references are resolved.
XmlPullAttribute can query for attributes and return them in a given
format. We need to make sure they are first resolved before
trying to convert them to int/float/boolean/...

Change-Id: I2aaced022a0382e501978c396e49d6191d53bdc8
2012-02-21 14:33:37 -08:00
Xavier Ducrohet
3ef9b7afdd am 331bb0c3: Setup ActionBars in layoutlib the same way the platform does it. do not merge.
* commit '331bb0c393d5e2ea2485102dcddbb8c2d42654d2':
  Setup ActionBars in layoutlib the same way the platform does it. do not merge.
2012-02-06 16:42:57 -08:00
Xavier Ducrohet
331bb0c393 Setup ActionBars in layoutlib the same way the platform does it. do not merge.
Instead of using a simple ImageView for the icon, this uses the platform
layout/action_bar_home which uses a custom class to position and resize
the icon (and also supports the Up icon that we don't yet support).

This ensures that the icon is properly positionned and sized like
on devices.

(cherry picked from commit 7396348dfcfb45b7ad055f4c18cabbe5e8270d26)

Change-Id: Ifd3bc318089b70ba843519523e366e59d434e919
2012-02-06 16:40:03 -08:00
Xavier Ducrohet
f0c10920f9 am f8aea993: Make aapt ignore tools-related data.
* commit 'f8aea99385df8373b6edd6d5dd1d15b7b36b525b':
  Make aapt ignore tools-related data.
2012-02-06 11:41:37 -08:00
Xavier Ducrohet
f8aea99385 Make aapt ignore tools-related data.
This patchset introduces a new standard namespace http://schemas.android.com/tools
which will be used for tools specific XML attributes.
Any attributes using this namespace will not be compiled into the binary XML file.

The namespace node is also not written at all, and its string is not collected
to ensure that there is no impact on the devices.

(cherry picked from commit a5d5e9d906583ebeb590ca200ca9840302a5cd1a)

Change-Id: I62937b8bc34c07ac544930aa8eadd7797e0179d5
2012-02-06 11:25:28 -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
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
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
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
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
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
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
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
Joe Onorato
ef6ab2dceb Add RpcData as a built-in marshallable type.
Change-Id: I12e74da51c5972a4c5eb73656dcf6f3bb0104443
2011-10-28 10:14:49 -04:00
Joe Onorato
1f44bba3b6 Add the full suite of RpcData types.
Change-Id: I0ce17d46b21cbfe04ff7bd77dd71be70dc7f80ac
2011-10-28 10:14:49 -04:00
Joe Onorato
ae7f32e97d Checkpoint adding @home RPC support to aidl
Change-Id: I908950ec4892438b1d253475833e153b5a566fdc
2011-10-28 10:14:49 -04:00
Joe Onorato
9a7822497f The API doesn't need a container here, all it needs is a Context.
Change-Id: Id270a8cf4ce3b30dd470a5e11b966aaa14fb70c0
2011-10-23 19:11:40 -07:00
Joe Onorato
6937988227 Parcelables are flattenable for now.
Change-Id: I439bba75a5a4dbb9350ffbfccb12b4fb97568712
2011-10-23 19:11:40 -07:00
Iliyan Malchev
9c782794ef am 64ef6b47: add -ldl to host executables
* commit '64ef6b47e020da5370af8897638a0a778fa52b74':
  add -ldl to host executables
2011-10-20 16:25:18 -07:00
Iliyan Malchev
64ef6b47e0 add -ldl to host executables
This fixes the build on Linux when RefBase is compiled with reference tracking
enabled.

Change-Id: I3e931e0b463ce836f6fdb30c37068d77144631a3
Signed-off-by: Iliyan Malchev <malchev@google.com>
2011-10-20 16:21:25 -07:00
Daniel Sandler
dffcf2a9d2 am 22522289: am 84e825a8: Merge "Add hasNavigationBar() to the window manager." into ics-mr0
* commit '22522289fc0fda5c5fdd8c74e72c9f1f84e421f1':
  Add hasNavigationBar() to the window manager.
2011-10-19 18:09:19 -07:00
Daniel Sandler
0c4ccff369 Add hasNavigationBar() to the window manager.
It is no longer sufficient to check the value of
internal.R.bool.config_showNavigationBar to determine if a
navigation bar (separate from the status bar) is shown on a
device, because the emulator needs to be able to override
this value (now possible by setting qemu.hw.mainkeys to "1"
or "0", for navbar or no navbar, respectively).

This logic is now contained in PhoneWindowManager, and any
clients wishing to know whether the system has a software
nav bar should consult the new hasNavigationBar() method.

Bug: 5404945
Change-Id: I119d32a8c84b88b2ef46f63244e7f11dc5de0359
2011-10-19 16:39:14 -04:00
Joe Onorato
2be34eece2 Revert "Treat parcelables as flattenables for now, until the sdk contains a newer aidl."
This reverts commit 234b5a2b98471c663811f4b2b44a98028fa8e623.
2011-10-18 18:17:32 -07:00
Joe Onorato
234b5a2b98 Treat parcelables as flattenables for now, until the sdk contains a newer aidl.
Change-Id: I91ab1a57805c883ceebe097ac7ce7d6575d4083b
2011-10-18 11:09:11 -07:00