1328 Commits

Author SHA1 Message Date
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
Jeff Brown
71d4111cf8 am 1a7ae634: Merge "Fix build."
* commit '1a7ae63490939fbbb7c021f8f20078822f72549b':
  Fix build.
2011-10-05 18:10:55 -07:00
Jeff Brown
2447871b99 Fix build.
Change-Id: I7bb00b8ee0da952f3697b23dccf32dde55733b7a
2011-10-05 18:04:48 -07:00
Xavier Ducrohet
4db605c99c am a11630fc: Merge "LayoutLib: fix support for textScaleX."
* commit 'a11630fc715dad9618942de423049aafc8ad9999':
  LayoutLib: fix support for textScaleX.
2011-10-05 06:37:12 -07:00
Xavier Ducrohet
085cbcfca7 am e5493f31: Merge "Layoutlib: Typeface support for loading fonts manually."
* commit 'e5493f31152ebb2e9c9818699ba6f853a9a59894':
  Layoutlib: Typeface support for loading fonts manually.
2011-10-05 06:37:08 -07:00
Xavier Ducrohet
fea27fd150 am 0bb83a28: Merge "Layoutlib now parses system_fonts.xml instead of its own."
* commit '0bb83a28395cddd22e1fa1e806def6498dedd709':
  Layoutlib now parses system_fonts.xml instead of its own.
2011-10-05 06:37:07 -07:00
Xavier Ducrohet
d410bfb200 LayoutLib: fix support for textScaleX.
Change-Id: I821191a40012e9727b4a3573d580483c3ae1de48
2011-10-04 19:39:18 -07:00
Xavier Ducrohet
1409409732 Layoutlib: Typeface support for loading fonts manually.
If the font being loaded is a system font, then we can find the font
file and manually load it.

Change-Id: I95473b1f1b88df64316b77c41ed05d4d09ab61ed
2011-10-04 18:24:30 -07:00
Xavier Ducrohet
178006a0e0 Layoutlib now parses system_fonts.xml instead of its own.
Also parse fallback_fonts.
This lets layoutlib automatically use the same fonts as the base
platforms, for instance it now uses the new ICS fonts.

Change-Id: Id6e778dc0e3f2a9112601e0eaf8499a9713ec433
2011-10-04 18:02:10 -07:00
Xavier Ducrohet
6e49deeee3 am 7b1c30df: Merge "Layoutlib: add support for ITextServicesManager."
* commit '7b1c30dfda65adfaf15fc03daf800b8d99a86f79':
  Layoutlib: add support for ITextServicesManager.
2011-10-03 09:12:34 -07:00
Xavier Ducrohet
f1dee199a0 Layoutlib: add support for ITextServicesManager.
This include a fix in layoutlib_create to properly handle
delegating a static method of an inner class (was broken and
only worked on non static method).

Added a few comments here and there to *_Accessor classes so
that it's a bit more obvious what they are for and how they are
used.

Change-Id: Ifc31dd1a006393bb0c08e22b6a17f500dd62e090
2011-10-03 09:06:07 -07:00
Xavier Ducrohet
8e01daf339 am 58b91575: Merge "LayoutLib: Fix native delegate for Display."
* commit '58b91575494157892b580611c1ebc019feddb341':
  LayoutLib: Fix native delegate for Display.
2011-09-30 09:43:13 -07:00
Xavier Ducrohet
58b9157549 Merge "LayoutLib: Fix native delegate for Display." 2011-09-30 09:41:35 -07:00
Xavier Ducrohet
387d078e64 LayoutLib: Fix native delegate for Display.
Change-Id: If097cae2309d340162b3bac1d0f6a2289635adca
2011-09-29 18:33:50 -07:00
Kenny Root
df5dd6f1c4 am b1955c96: Merge "Add package-verifier to aapt dump badging"
* commit 'b1955c96cc6754ccad98af33d67205e57b8213cc':
  Add package-verifier to aapt dump badging
2011-09-29 15:02:38 -07:00