1292 Commits

Author SHA1 Message Date
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
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
Raphael
f51125d842 AAPT fix printf %zd crash on Windows.
There's no printf %zd on Mingw/Cygwin so the verbose
printf crashes aapt.

SDK bugs: 20395, 20986

Change-Id: I5b8ac36749263205a19f1448b1aaca90d5a2e06d
2011-10-27 17:11:21 -07:00
Steve Block
71f2cf116a Rename (IF_)LOGV(_IF) to (IF_)ALOGV(_IF) DO NOT MERGE
See https://android-git.corp.google.com/g/#/c/143865

Bug: 5449033
Change-Id: I0122812ed6ff6f5b59fe4a43ab8bff0577adde0a
2011-10-26 09:57:54 +01: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
Dianne Hackborn
f88287f028 am 4bb7572e: am bd9d2bcd: Whoops, remove left-over debug output.
* commit '4bb7572e7660172a53bb9e309fd646928400acc0':
  Whoops, remove left-over debug output.
2011-10-17 11:39:15 -07:00
Dianne Hackborn
8b2c1a8912 am c831f6c9: am e6b68036: New aapt feature to do smarter filtering of configurations.
* commit 'c831f6c9799e13d7fde167abfa9c03eb5ab0827c':
  New aapt feature to do smarter filtering of configurations.
2011-10-17 11:39:06 -07:00
Dianne Hackborn
bd9d2bcdeb Whoops, remove left-over debug output.
Change-Id: Ib30571b22a6750629f975319a403d38de5e9462c
2011-10-16 14:17:07 -07:00
Dianne Hackborn
e6b680364d New aapt feature to do smarter filtering of configurations.
This adds a --preferred-configurations flag that specifies the
specific configurations you would like to have.

It is smarter than "-c" because it will avoid stripping a
configuration if that would result in there being no value
for the resource.

It is dumber than "-c" because it can't process as many kinds
of resources.  It is really only intended for bitmaps and use
with density configs.

This required re-arranging AaptAssets to group files together
by config again, like they used to be.  I think this hasn't
broken anything.  Hopefully.

Change-Id: I4e9d12ff6e6dbd1abb8fd4cb1814c6674b19d0e5
2011-10-16 11:52:17 -07:00
Manuel Roman
f2608b71ad Merge changes I3a51e45a,I73b21022,I6a3984f9 into ics-aah
* changes:
  Update aidl for new Broker API.
  aidl: All flattenable types now must also be parcelable.
  Update aidl to new APIs.
2011-10-13 17:21:46 -07:00
Joe Onorato
c7ec1dc21a Update aidl for new Broker API.
Change-Id: I3a51e45a054082a530b5af8aa063da6f674e89bc
2011-10-12 23:22:42 -07:00
Jeff Brown
01b2e96bc2 am 184b44e7: Merge "Fix ownership of CursorWindows across processes. Bug: 5332296"
* commit '184b44e79406e5f7e4f68673277c9637c6451b55':
  Fix ownership of CursorWindows across processes. Bug: 5332296
2011-10-10 14:07:36 -07:00
Joe Onorato
9e35e44b42 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: I73b21022388c54e516d7e1cddfd4895d351cd194
2011-10-09 22:32:07 -07:00
Jeff Brown
d2183654e0 Fix ownership of CursorWindows across processes.
Bug: 5332296

Ensure that there is always an owner for each CursorWindow
and that references to each window are acquired/released
appropriately at all times.

Added synchronization to CursorToBulkCursorAdaptor to
prevent the underlying Cursor and CursorWindow from being
remotely accessed in ways that might violate invariants,
resulting in leaks or other problems.

Ensured that CursorToBulkCursorAdaptor promptly releases
its references to the Cursor and CursorWindow when closed
so they don't stick around longer than they should, even
if the remote end hangs onto the IBulkCursor for some reason.

CursorWindow respects Parcelable.FLAG_WRITE_RETURN_VALUE
as an indication that one reference to the CursorWindow is
being released.  Correspondingly, CursorToBulkCursorAdaptor
acquires a reference to the CursorWindow before returning
it to the caller.  This change also prevents races from
resulting in the transfer of an invalid CursorWindow over
the wire.

Ensured that BulkCursorToCursorAdaptor promptly releases
its reference to the IBulkCursor when closed and throws
on attempts to access the cursor while closed.

Modified ContentProviderNative to handle both parts of
the wrapping and unwrapping of Cursors into IBulkCursors.
This makes it a lot easier to ensure that the right
things happen on both ends.  Also, it turns out that
the only caller of IContentProvider.bulkQuery was
ContentProviderNative itself so there was no need
to support bulkQuery on ContentProviderProxy and it was
just getting in the way.

Implement CloseGuard on CursorWindow.

Change-Id: Ib3c8305d3cc62322f38a06698d404a2989bb6ef9
2011-10-09 22:10:36 -07:00
Joe Onorato
0d2a6b6cf5 Update aidl to new APIs.
Change-Id: I6a3984f9173573a256a60794b7482fab093a2635
2011-10-09 21:51:46 -07:00
Joe Onorato
afcb6e6fc5 Suport RpcData as a parcelable type.
Change-Id: I101d2a38c51135854f5fc2f51afdc07893ae56ad
2011-10-09 17:38:20 -07:00
Manuel Roman
d27233fde4 Merge "Modified AIDL to support authentication" into ics-aah 2011-10-08 20:57:32 -07:00
Manuel Roman
2c5eb269bb 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: Ie1d247e8cac21f7f207a87b2eb77f3d1dd7215d4
2011-10-08 08:17:06 -07:00
Dianne Hackborn
3c32c7a92e am 85b9edf2: Merge "Fix issue #5371530: SYSTEMUI_FLAG_HIDE_NAVIGATION reasserts itself immediately"
* commit '85b9edf2da0534bc53d139bb88cda8866d265afe':
  Fix issue #5371530: SYSTEMUI_FLAG_HIDE_NAVIGATION reasserts itself immediately
2011-10-06 15:21:12 -07:00
Dianne Hackborn
85b9edf2da Merge "Fix issue #5371530: SYSTEMUI_FLAG_HIDE_NAVIGATION reasserts itself immediately" 2011-10-06 15:15:32 -07:00
Dianne Hackborn
9a230e01a1 Fix issue #5371530: SYSTEMUI_FLAG_HIDE_NAVIGATION reasserts itself immediately
This cleans up how ui flags are managed between the client and window manager.
It still reports the global UI mode state to the callback, but we now only clear
certain flags when the system goes out of a state (currently this just means the
hide nav bar mode), and don't corrupt other flags in the application when the
global state changes.

Also introduces a sequence number between the app and window manager, to avoid
using bad old data coming from the app during these transitions.

Change-Id: I40bbd12d9b7b69fc0ff1c7dc0cb58a933d4dfb23
2011-10-06 14:57:37 -07:00