5336 Commits

Author SHA1 Message Date
Adam Lesinski
2386df23ac AAPT: Dump maxSdkVersion for implicit permissions
Bug: 32599997
Test: Manual
Change-Id: I13bdcf097625e3cb5fb35da1eb2544b0f8906e79
2016-12-28 16:07:24 -05:00
TreeHugger Robot
280cdfcbc0 Merge "AAPT2: Treat non-AAPT attributes as Attributes with no format specified." 2016-12-28 19:29:22 +00:00
Adam Lesinski
38665547bb AAPT2: Treat non-AAPT attributes as Attributes with no format specified.
Attributes in XML like "class" should be treated as attributes with no
format specified. That means that something like 'version="1"' will
be interpreted as an Integer value instead of as a string.

This is more in line with the old AAPT behaviour.
Bug: 30763349
Test: make libaapt2_tests

Change-Id: I02fe41617e3c62c354714056198ef480d62afee7
2016-12-28 12:40:35 -05:00
TreeHugger Robot
0abb3003a1 Merge "Tighter equals/hashCode method checking." 2016-12-22 00:49:12 +00:00
TreeHugger Robot
a090de5c8b Merge "Detect non-static abstract inner classes." 2016-12-21 22:21:17 +00:00
Jeff Sharkey
40d623e676 Tighter equals/hashCode method checking.
Test: false-positive no longer triggered
Bug: 32721082
Change-Id: I49b6225a7282d0bb84b0dfb4cabe56e9f68186a9
2016-12-21 13:58:42 -07:00
Jeff Sharkey
26c8090647 Detect non-static abstract inner classes.
Test: script detects issue
Bug: 32982018
Change-Id: I4e3521bf603f6272bfe5583e3d4977dd5b59afe8
2016-12-21 13:42:03 -07:00
Joe Onorato
73c109a089 turn off warning that proto generated code causes.
Test: make
Change-Id: Ife3006dc16691dd95a2cc3d36c9b8832970601c9
2016-12-20 22:28:56 -08:00
Joe Onorato
5a991adaf5 Fix varargs bug that made incident_report print incorrectly.
Test: incident_report 3000
Change-Id: I397677ecd6e50ad143518416c8fa3e408139189b
2016-12-20 22:28:56 -08:00
Joe Onorato
7669012623 Clean up file names for protos
Test: cts-tradefed run singleCommand cts -d --module CtsIncidentHostTestCases
Change-Id: Iea2fc81768082e8e01afa8df86e113665020e7f6
2016-12-20 22:28:56 -08:00
Michael Rosenfeld
0521b69fd9 Merge "Clean up local hprofs" am: 9ab94e15c7 am: 1876d82450 am: 67fd9f3968
am: bf5546b1e2

Change-Id: I0a84ef4f43e10cc9692b5541eb3379b042daab17
2016-12-19 18:28:38 +00:00
Diego Perez
9b34676d5d Create new layoutlib-legacy to be included in the SDK
This version of the jar file only contains a Bridge that returns an
error (or an image if you ask for it) contaning a message that says that
the SDK version of layoutlib is not supported.

Test: Manually tested
Change-Id: I3d24df86a3112c52858649c3286270a31496961b
2016-12-19 12:03:49 +00:00
Michael Rosenfeld
bf5546b1e2 Merge "Clean up local hprofs" am: 9ab94e15c7 am: 1876d82450
am: 67fd9f3968

Change-Id: I8eaea581cfda4844c3ea81f7ee63f0cfc40ef3e0
2016-12-18 00:28:42 +00:00
Michael Rosenfeld
2b62809c70 Clean up local hprofs
* After use
* Upon failure

Test: manual tool use
Change-Id: I2669e190c3792522c121158ea2aec84fe577c9e3
2016-12-16 16:24:29 -08:00
Joe Onorato
b69b95f0bd Fix the mac build
Change-Id: Id4a5c3b1a6fbebcf2079152c31a907536d7f950d
2016-12-16 13:16:40 -08:00
Joe Onorato
1754d744a7 First checkin of incident reporting.
There are a few major pieces here:

incidentd
---------
This daemon (started by init) runs and accepts incoming requests to take
incident reports.  When prompted, it calls into various system services
and fills in an IncidentProto data structure, and then writes the report
into dropbox.

The next steps for incidentd:
    - Security review of SELinux policies. These will be a subset of
      the dumpstate permissions.  Until this is done, incidentd is
      not started at boot time.

incident
--------
This shell command calls into incidentd, and can initiate an incident
report and either capture the output or leave for dropbox.

incident_report
---------------
This host side tool can call adb shell with the correct parameters
and also format the incident report as text.  This formatting code
was left of the device on purpose.  Right now it's pretty small, but
as the number of fields increases, the metadata and code to do the
formatting will start to grow.

The incident_report command also contains a workaround to let it
work before incidentd is turned on by default.  Right now, it is
implemented to call adb shell dumpsys <service> --proto directly,
whereas in the future it will go through the full incidentd flow.

incident_section_gen
--------------------
A build-time tool that generates a stripped down set of information
about the fields that are available.

libincident
-----------
This library contains the code to connect to incidentd, and the
meta proto definitions that are used by the framework protos.
The basics are here now, but they are not fully fleshed out yet.
The privacy.proto file contains annotations that can go in the
proto file that we will later use to filter which fields are
uploaded, and which are used by local sources.  For example, a
device in a test lab is safe to upload much much more information
than a real user.  These will share the same mechanism, but the
user's output will be filtered according to these annotations.

frameworks/core/proto
---------------------
These .proto files contain the definitions of the system's
output.  There is one master android.os.IncidentProto file that
is the top level of an incident report, but some other services
(notification, fingerprint, batterystats, etc) will have others
that are used directly by the logging mechanism.

Other files which are shared by several of the services also go
here, such as ComponentName, Locale, Configuration, etc.  There
will be many more.

There is also a first iplementation of a dump method handling
--proto in the fingerprint service.

IncidentManager
---------------
The java API to trigger an incident report.

Test: Not written yet
Change-Id: I59568b115ac7fcf73af70c946c95752bf33ae67f
2016-12-15 11:23:05 -08:00
Yunlian Jiang
2cfa849e92 fix warning: Potential leak of memory pointed to by 'target'
Bug: None
Test: The warning is gone.
Change-Id: I013fad1d53b37ae3d89846c70f0b10a67a9d04bb
2016-12-13 23:22:57 +00:00
TreeHugger Robot
2894d0ac51 Merge "Untangle creation of Task from addition of AppToken in WM." 2016-12-13 00:56:09 +00:00
Wale Ogunwale
72919d2c31 Untangle creation of Task from addition of AppToken in WM.
Makes it easier to follow what is going on and also clean-up in
preparation of stand way for AM to interact with containers in WM.

Test: Existing tests pass and manual testing
Change-Id: I91754b6d974dce2f696453cdaed175efb0f10c73
2016-12-12 15:09:03 -08:00
Jerome Gaillard
3be8766edc Merge "Fix path to JUnit jar for IDEA module in layoutlib" 2016-12-12 21:13:26 +00:00
Diego Perez
dae2232ca7 Merge "Fix status and nav bar translucency" 2016-12-12 18:16:32 +00:00
Neil Fuller
3966e89c7a Merge "Track BufferIterator changes in libcore" am: 021e8ff2af am: 4ff3c27817 am: 228793a0c9
am: 28c9cd63d0

Change-Id: Ie08fb740f1c8683cdef7115937f448918cd29a4d
2016-12-12 17:51:23 +00:00
Neil Fuller
28c9cd63d0 Merge "Track BufferIterator changes in libcore" am: 021e8ff2af am: 4ff3c27817
am: 228793a0c9

Change-Id: I86aa0f62941802a7f26957d475575bf9c92ba2ca
2016-12-12 17:45:15 +00:00
Neil Fuller
021e8ff2af Merge "Track BufferIterator changes in libcore" 2016-12-12 17:23:18 +00:00
Jerome Gaillard
71fc5791fd Merge "Implement NativeInterpolatorFactoryHelper_Delegate method" 2016-12-12 12:37:39 +00:00
Michael Rosenfeld
e70c9095b0 Merge "Copy preload2.jar to build artifacts" am: 64583c332a am: dc017c4e49 am: 6952303c28
am: cc3b7793a5

Change-Id: I1461c4c4f93c6cba60b23d0b4d57d32a69ce1848
2016-12-10 01:16:46 +00:00
Michael Rosenfeld
cc3b7793a5 Merge "Copy preload2.jar to build artifacts" am: 64583c332a am: dc017c4e49
am: 6952303c28

Change-Id: I66fa8374ec9257e43b7fea02ef13ce51c2f628fc
2016-12-10 01:11:46 +00:00
Michael Rosenfeld
d19ea14f30 Copy preload2.jar to build artifacts
Test: local build
Bug: 33492076
Change-Id: I76de648cd1947e49278a678a4c6f1dce8092bbd4
2016-12-09 16:16:54 -08:00
Steve McKay
ea93fe7539 Replace ContentProvider SQL args w/ Bundle & Constants.
Test: cts-tradefed run cts-dev -m CtsContentTestCases
Bug: 30927484
Change-Id: Idb9dbc2b80896e9f8474a0db71353b7a3810d597
2016-12-09 12:31:44 -08:00
Jerome Gaillard
404091b0a9 Implement NativeInterpolatorFactoryHelper_Delegate method
The method createPathInterpolator was add in Commit 9e9eeeeb78.

Test: Run layoutlib tests
Change-Id: Id17e05762bf7e5a994aa8066f11805b58a00f5ce
2016-12-09 15:58:40 +00:00
Neil Fuller
5ba69e46ed Track BufferIterator changes in libcore
Addition of a new method pos().

Bug: 31008728
Test: make
Change-Id: Id5fcb13104a8580ffaa7d4f8d3c473fe14ac5ccd
2016-12-09 14:59:26 +00:00
Jerome Gaillard
41bcee32fe Fix path to JUnit jar for IDEA module in layoutlib
Necessary after change in makefiles from AOSP commits 21cf84f8b3
and 4a064d2010.

Test: Run layoutlib tests from IDEA
Change-Id: I7359c5f41726972c45ff99f34ed5ecb036946034
2016-12-09 14:55:14 +00:00
Diego Perez
579a04fd59 Merge "Adding missing SurfaceView methods" 2016-12-08 17:25:40 +00:00
Joe Onorato
b38ac0b15d Give protoc-gen-javastream the ability to output multiple java files.
If there are file-level enums, it still will generate what would have
otherwise been the outer class to hold them, since enums don't get
their own class in the streaming proto scheme.

Make the proto apis not @TestApi for now -- there's too much churn.

Test: make
Change-Id: I01fb7dca935261775efe2573ee009df4d0b07fd0
2016-12-07 13:24:54 -08:00
Diego Perez
289f090abe Adding missing SurfaceView methods
Some methods were not implemented in the mock SurfaceView and they were
causing some custom components to fail on the preview.

Bug: http://b.android.com/158592
Test: This is a mock class, not tested.
Change-Id: Id8faa7e6b5edf1238b02ae07f3dd59dc6539cb62
2016-12-07 12:28:14 +00:00
Diego Perez
48a285ce1b Fix status and nav bar translucency
Bug: http://b.android.com/204831
Test: Added new UI tests
Change-Id: I992f4ccc391d9a4a0dda941689ec29fb44acf69b
2016-12-07 09:41:42 +00:00
Adam Lesinski
5119e51730 AAPT2: Allow <meta-data> in <manifest>
Bug:32171613
Test: libaapt2_tests
Change-Id: I30fdd9475ff7dff6ceb0ff46a4a00991b72db68b
2016-12-05 21:09:52 -08:00
John Reck
f32adf4475 Clean up ApplyStyle JNI
Bug: 32573798

Mark input uint32_t[] as const. Use Read-only JNI
array access for input as it's faster than critical access.

Use non-movable arrays for TypedArray so that the address can
be resolved and stored, avoiding the need to do JNI array
access for the output.

Indicies is always non-null, so remove the optional checks.

Eliminate unused return value.

Benchmark results:
twelveKeyInflate 4963us -> 4713us
simpleViewInflate 73us -> 60us

Test: Device boots, benchmarks show faster

Change-Id: Ic3bde5aee31407d8903913f97f2218daf074499a
2016-12-02 12:49:20 -08:00
Michael Rosenfeld
3d76f235e3 Merge "Add command line action sequencing." am: 880c9acf4a am: 3711f2f0c2 am: 2f5f210f7d
am: c853f3a5ff

Change-Id: Id157a2d7afc5c49967d804edb734c4b277bf0d20
2016-12-01 22:34:03 +00:00
Michael Rosenfeld
c853f3a5ff Merge "Add command line action sequencing." am: 880c9acf4a am: 3711f2f0c2
am: 2f5f210f7d

Change-Id: I10c2d3c3be0bb8748602b3a566f75f8c687f8889
2016-12-01 22:05:22 +00:00
Michael Rosenfeld
3711f2f0c2 Merge "Add command line action sequencing."
am: 880c9acf4a

Change-Id: I81b31d950e0dca525fbfe9aa38c9c113eea7cec8
2016-12-01 21:40:06 +00:00
Filip Pavlis
f457db6a2c Merge "Adds keyword "default" to the API-linter." 2016-12-01 18:02:03 +00:00
Doris Liu
8a5a950ac0 Fix LUTInterpolator lookup table position calc am: 0940834c8c
am: 00d348ec26

Change-Id: I563b65b61d3bac80ea81521478e295963508890c
2016-12-01 01:39:23 +00:00
Doris Liu
00d348ec26 Fix LUTInterpolator lookup table position calc
am: 0940834c8c

Change-Id: Ib80c00801473d7e60bae87b3b34a381c7f8e7e68
2016-12-01 01:33:52 +00:00
Doris Liu
0940834c8c Fix LUTInterpolator lookup table position calc
BUG: 32830741
Test: running progress bar at 5x duration scale, no flickering
Change-Id: Ie484bdbfdf18bacc4586e36c5142e4523d08bdaa
2016-11-30 23:20:19 +00:00
Michael Rosenfeld
c37b0a40e7 Add command line action sequencing.
Supported actions:
* .. scan <process> ..
* .. scan-all ..
* .. import <infile> ..
* .. export <infile> ..
* .. comp <thresh> <outfile> ..
Test: manual
Bug: 31961946

Change-Id: I08753f31294ac5f30f6bcddeabef12d138e7e8e6
2016-11-30 11:26:33 -08:00
TreeHugger Robot
bece7278d3 Merge "Add an option to bit to not restart." 2016-11-30 04:49:23 +00:00
Joe Onorato
6592c3cc8f Add an option to bit to not restart.
Test: build & restart
Change-Id: Ia925053f04046d7fb91a47cfd5fd17a5d4fecf10
2016-11-29 17:36:36 -08:00
Andreas Gampe
428e65d62a Merge "Preload2: Add sequence UI" am: 56ddac7fd7 am: b9d8535a21 am: 04cbf97d38
am: a9b85deae7

Change-Id: Ifa1c964b926208f88070967dec7d2fad90c5e09a
2016-11-30 01:31:58 +00:00
Andreas Gampe
b9d8535a21 Merge "Preload2: Add sequence UI"
am: 56ddac7fd7

Change-Id: I6ca6e1ea6c6721a24f7b1d3d7fb4715bd51aa0d9
2016-11-30 00:49:44 +00:00