1239 Commits

Author SHA1 Message Date
Bill Yi
6e629a4eff Import translations. DO NOT MERGE
Change-Id: Ice6dbe1620b7f076bb3d54dec78adeacc32be77b
Auto-generated-cl: translation import
2018-10-14 20:52:19 -07:00
Colin Cross
ef43636ce4 Merge "Convert PrintSpooler to Android.bp"
am: d05c9bc51c

Change-Id: I3128882467bc21e7f9fb20734dd78c3f1f2a399b
2018-10-09 16:12:44 -07:00
Colin Cross
278a04aa6b Convert PrintSpooler to Android.bp
See build/soong/README.md for more information.

Bug: 80095087
Test: atest PrintSpoolerOutOfProcessTests
Change-Id: I9d641b9c480745ccee323aa0f758cd6a146e0638
2018-10-03 14:45:26 -07:00
Bill Yi
2c75e5dce0 Import translations. DO NOT MERGE
Change-Id: I900df95e8d246820015342735914d380819bcbab
Auto-generated-cl: translation import
2018-08-04 01:51:57 -07:00
Dan Willemsen
d00c851e55 Merge "Convert to Soong" am: acbd94d76f
am: b1005a8a2a

Change-Id: If5cb26e0669f79240d8fee1d40aaa2162d8e611f
2018-05-15 15:06:19 -07:00
Philip P. Moltmann
b098a03e84 Merge "Allow Print subsystem to work with services provided by instant app" into pi-dev
am: cc64fb9c8f

Change-Id: I462d3a5cdde32dc193b7ee0611ea79a7f8143df6
2018-05-14 22:10:25 -07:00
Dan Willemsen
4888b1f6f0 Convert to Soong
See build/soong/README.md for more information.

Test: m libframeworks_coretests_jni
Test: m FrameworkCoreTests_install
Test: m libshim_jni
Test: m CtsShimPrivUpgrade
Test: m libfilterfw
Test: m PMTest_Java_dual
Test: m libdefcontainer_jni
Test: m libperftestscore_jni
Test: m libpmtest32 libpmtest64
Test: m libprintspooler_jni
Test: m libsmartcamera_jni
Test: m idmap
Test: m libdrmframework_jni
Test: m libdvr_loader com.google.vr.platform com.google.vr.platform.xml
Test: m libfilterpack_imageproc libfilterpack_base
Test: m libwebviewchromium_loader
Test: m shared_mem_test
Test: m test-touchlag
Change-Id: I868561dd237fa28647896d59049ab9260373ada1
2018-05-14 16:47:02 -07:00
Philip P. Moltmann
b3baaab4af Allow Print subsystem to work with services provided by instant app
Most functionality works, but the PrintActivity cannot directly interact
with the instant service.

As instant services should only appear in tests this functionality needs
to be enabled via shell commands.

Fixes: 79484768
Test: cts-tradefed run commandAndExit cts-instant-dev -m CtsPrintTestCases
      cts-tradefed run commandAndExit cts-dev -m CtsPrintTestCases

Change-Id: Ie4663c72b8c0f959b5d172ef28875479d120e386
2018-05-10 15:26:39 -07:00
Aurimas Liutikas
d6c9658d99 Migrate PrintSpooler to aapt2.
Test: make -j PrintSpooler
Change-Id: Iad4d4d477792f13fb92e3ee7f4f5fa781f3298c4
Merged-In: Iad4d4d477792f13fb92e3ee7f4f5fa781f3298c4
(cherry picked from commit 87f7ce4bd17b4d1cd0721b7b0d05f57ffdef8a0d)
2018-05-03 16:38:17 -07:00
Bill Yi
1a5656e2fa Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I25f803bf3c2167073862922fb50cf3098d4d14a0
2018-04-28 08:12:10 -07:00
Bill Yi
650f4d0700 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I54a625e6118d6143dce89b06c9a0246e147c800e
2018-04-16 23:31:23 -07:00
Bill Yi
d615a36d46 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I61e1929cbf38843fcce516c103cd51e4e03ae10c
2018-04-15 21:29:07 -07:00
Bill Yi
7be7e0489d Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I306b4fef65e3282c9b4c43839dd64667152a4f66
2018-04-13 04:06:40 -07:00
Andrew Sapperstein
58bcc11ed1 Merge "Revert "Revert "Update material_deep_teal_500 to #008577.""" into pi-dev
am: d0fdef9229

Change-Id: I32e24ab2c5526aaebb864ab90cd7ca2eef3ca5d0
2018-04-12 17:08:11 -07:00
TreeHugger Robot
d0fdef9229 Merge "Revert "Revert "Update material_deep_teal_500 to #008577.""" into pi-dev 2018-04-12 23:23:00 +00:00
Andrew Sapperstein
8546c30fbf Revert "Revert "Update material_deep_teal_500 to #008577.""
This reverts commit 431d9d63e993c6056e95811e9a84869aa324e7a0.

Reason for revert: Rolling forward with a fix.

Change-Id: I5804e240535b84e0f4b2d306649b1981a9871632
Merged-In: I5804e240535b84e0f4b2d306649b1981a9871632
Bug: 74118164
Test: atest cts/hostsidetests/theme
2018-04-11 20:48:11 +00:00
Nicolas Geoffray
03ba2d9241 Merge "Exempt tests for hidden APIs." into pi-dev
am: 0e675bd901

Change-Id: I012a1ce8483f5fdddf60cfd33ea4303d72455fca
2018-04-10 09:56:52 -07:00
TreeHugger Robot
0e675bd901 Merge "Exempt tests for hidden APIs." into pi-dev 2018-04-10 16:34:05 +00:00
Nicolas Geoffray
b0284fb5de Exempt tests for hidden APIs.
Bug: 64382372
Bug: 74963051
Test: m
Change-Id: I5234dd6230f2bdd6ffccbf12b25a02d929d20161
2018-04-06 14:54:39 +01:00
Bill Yi
b04037e89c Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I630d9ca9ab17fb374c2f550466139e5ac00a2685
2018-04-06 04:57:22 -07:00
Bill Yi
76bd459f2d Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I5c88520a5bd2c221b0a088d8c3f5a9573145ae88
2018-03-31 10:02:04 -07:00
Philip P. Moltmann
608dce4c42 Merge "A18y: Don't double announce 'searching for printers.'" into pi-dev
am: a49954d3ab

Change-Id: Iae9b97679f75b37c3fa063af708ab7775c00b1b6
2018-03-28 23:58:59 +00:00
Philip P. Moltmann
ec2fcedff4 A18y: Don't double announce 'searching for printers.'
Fixes: 67323891
Test: Navigated to screen with talkback
Change-Id: Iee4308fdc5c2ef53e2fde0004aa4f22f9bb8bef2
2018-03-28 13:13:43 -07:00
Andrew Sapperstein
7173585579 Merge "Revert "Update material_deep_teal_500 to #008577."" into pi-dev
am: eae9144add

Change-Id: I5952002efb67fe425e67218ab5cade748a251d37
2018-03-22 19:48:50 +00:00
Andrew Sapperstein
431d9d63e9 Revert "Update material_deep_teal_500 to #008577."
This reverts commit 5c228d5eb975de5e15970ae11ebddf95010875fe.

Reason for revert: Breaks presubmit. b/76126268

Change-Id: Iffd8bbb62d05cae1c2a5dabfab2824899c5ff3cf
Bug: 74118164
Bug: 76126268
Test: presubmit
2018-03-22 15:56:27 +00:00
Andrew Sapperstein
f83c6639f9 Merge "Update material_deep_teal_500 to #008577." into pi-dev
am: 74d9b14f21

Change-Id: Ia8bb80846588b20da5957b6393fb216afed42435
2018-03-21 18:39:12 +00:00
Andrew Sapperstein
5c228d5eb9 Update material_deep_teal_500 to #008577.
Better for accessibility.

Also update some direct usage of the old value to use canonical versions.

Bug: 74118164
Test: asset swap
Change-Id: If0f07f04f72a16dc3662e2cf3a93e2b040d0bdb8
2018-03-18 11:24:49 -07:00
Bill Yi
6aa7c0d5cc Import translations. DO NOT MERGE
Change-Id: I92e4245768bce891a18e01d101da086df86d9ec0
Auto-generated-cl: translation import
2018-03-06 11:13:41 -08:00
Anton Hansson
a3e79fbb8c frameworks/base: Set LOCAL_SDK_VERSION where possible.
This change sets LOCAL_SDK_VERSION for all packages where
this is possible without breaking the build, and
LOCAL_PRIVATE_PLATFORM_APIS := true otherwise.

Setting one of these two will be made required soon, and this
is a change in preparation for that. Not setting LOCAL_SDK_VERSION
makes the app implicitly depend on the bootclasspath, which is
often not required. This change effectively makes depending on
private apis opt-in rather than opt-out.

Test: make relevant packages
Bug: 73535841
Change-Id: Ibcffec873a693d1c792ca210fb597d2bf37e9068
Merged-In: I4233b9091d9066c4fa69f3d24aaf367ea500f760
2018-02-28 17:15:21 +00:00
Anton Hansson
ab6ec61251 frameworks/base: Set LOCAL_SDK_VERSION where possible.
This change sets LOCAL_SDK_VERSION for all packages where
this is possible without breaking the build, and
LOCAL_PRIVATE_PLATFORM_APIS := true otherwise.

Setting one of these two will be made required soon, and this
is a change in preparation for that. Not setting LOCAL_SDK_VERSION
makes the app implicitly depend on the bootclasspath, which is
often not required. This change effectively makes depending on
private apis opt-in rather than opt-out.

Test: make relevant packages
Bug: 73535841
Change-Id: I4233b9091d9066c4fa69f3d24aaf367ea500f760
2018-02-28 15:13:23 +00:00
Bill Yi
78557e1420 Import translations. DO NOT MERGE
Change-Id: I14b92123bf896532085b7efb9801c08d295801f2
Auto-generated-cl: translation import
2018-02-26 14:35:56 -08:00
TreeHugger Robot
1dcd645789 Merge "Use PooledLambda in print code" 2018-02-23 21:21:20 +00:00
Eugene Susla
9f35ca9964 Use PooledLambda in print code
This replaces the usage of handler message types with PooledLambda

Test: atest CtsPrintTestCases
Change-Id: I19b01278b67b5fe18d48a2e0bb8300bbe1413a63
2018-02-23 11:09:29 -08:00
Philip P. Moltmann
d0f119f8c7 Merge "Create print job when print activity starts" 2018-02-23 16:24:41 +00:00
Bill Yi
a283dd762e Import translations. DO NOT MERGE
Change-Id: I5e802dd35bdf7548912f96fed27f7bd48c2216b5
Auto-generated-cl: translation import
2018-02-22 02:51:23 -08:00
Philip P. Moltmann
e65a9b8ebe Create print job when print activity starts
This guarantees that the print job is created before the print activity
deals with it.

Test: CtsPrintTestCases
Change-Id: I3451fff71bd981beb45882b7b42d4cc49d63a91c
Fixes: 73127052
2018-02-21 14:40:17 -08:00
Philip P. Moltmann
97b0234c57 Merge "Do not transform again on crash" 2018-02-15 17:43:01 +00:00
Philip P. Moltmann
5c7d8fafa8 Do not transform again on crash
Before:

onServiceConnected
   AsyncTask 1: doInBackground
                doTransform
                   PdfEditor service crashes

system restarts PdfEditor service -> onServiceConnected
   AsyncTask 2: doInBackground
                doTransform
		onPostExecute
		   Unbind from service

   AsyncTask 1: onPostExecute
                   Unbind from service again -> crash

Hence we have to only ever create a single async task even if we get
another onServiceConnected.

Test: atest CtsPrintTestCases
Change-Id: Ia18e82fe6258bac9395557b2056645e87a752889
Fixes: 73127227
2018-02-14 13:55:57 -08:00
Philip P. Moltmann
ae2b732ddf Don't attempt to create context menu for 'add printer' entry
As the 'printer' variable becomes null and the activity crashes.

This could also be solved to register context menu's for each printer
entry (and not for the 'add printer' entry). Then we would need to
create a custom view for the printer entry that returns a
ContextMenuInfo containing the printer ID. While this solution is
cleaner, it is much more complex.

Test: Tried to open context menu in 'add printer' entry
Change-Id: I23dcba2dd876cff27b5cad9736f5ec4524985bac
Fixes: 73126748
2018-02-14 12:31:21 -08:00
TreeHugger Robot
c6fa68a972 Merge "Isolate print out of process test from other tests" 2018-02-06 17:54:30 +00:00
Philip P. Moltmann
371a3b879b Dump usb as DualDump
This allows to dump the USB state as proto-buf. This in turn allows to
automatically process this data.

Test: adb shell dumpsys usb
      incident_report usb
      No automated test possible as no field is guaranteed to be set
Change-Id: Ifdf22bfaf9c78226c420b11c43278013ce69f849
2018-02-02 16:40:26 -08:00
Philip P. Moltmann
11c2cd5249 Isolate print out of process test from other tests
Test: m -j PrintSpoolerOutOfProcessTests
Change-Id: I9a984a2968bbf3e1ab0de6b906fc9ee52ee2fc67
2018-02-01 16:11:22 -08:00
TreeHugger Robot
6fa646ab95 Merge "Reduce pss collection amount, improve logging." 2018-01-29 16:52:08 +00:00
Dianne Hackborn
e17b445b6c Reduce pss collection amount, improve logging.
Tuned rates that we collect PSS, to reduce how much we do
that heavy operation.  Added a new way to determine
whether a process has changed to a state for the
"first" time -- now this is when it has gone to that
state for the first time since it was in a lower state.
This will reduce the amount of time we consider a
process to be first to only when it has previously
gone into a higher state than it had before.

Keep track of more fine-grained information about why we
collect a PSS sample (not just internal, but for a single
process, all processes because of a mem state change, all
processes because of a poll).

Started collecting RSS in various places, so we can start
looking at that w.r.t. PSS and see about transitioning to
it is a new primary metric.

Added logging for many of the places where the system
writes its configuration files, so we can more easily
see any bad behavior going on in those areas.

Added some currently disabled code to read smaps directly
instead of using fgets().  Probably won't help, but want
tot test.

Bug: 70859548
Test: atest CtsAppTestCases
Change-Id: I400dba0f3ae9c024df51c946cfa592561028b598
2018-01-26 15:15:04 -08:00
Eugene Susla
72c510f1c4 Revert "Move A11y events throttling away from View(RootImpl)"
This reverts commit e4d31b3c103045d5b2b141a05084dced595cc64f.

Fixes: 71904218
Test: presubmit
Change-Id: Id73bde1a0c11696cf561c84cde027cdca4c6a00f
2018-01-26 11:32:25 -08:00
Andreas Gampe
c899ee547c PrintSpooler: Fix EqualsNaN in test
Fix NaN comparisons in WorkflowTest.

Bug: 72451126
Test: m javac-check RUN_ERROR_PRONE=true
Merged-In: I3eba48ac3f8dc343cd22cac0f9fbf4d4e6c76631
Change-Id: I19db273ee442c912c2c1052d53b5b2e0c5cd968b
2018-01-24 21:19:30 -08:00
Philip P. Moltmann
bd62e9ae14 Follow up I1f0c56651eaa59f0ce90cdb08c71e89a96c48dd4
Beside addressing the comments on this change, this adds a check that
the token in end( is correct and prints a message if not. This is useful
when creating new dumping methods.

Test: adb shell dumpsys print
Change-Id: Ic2e6152cbd82f98d9d305a15edffc69c55fd1fd3
2018-01-17 09:33:14 -08:00
Philip P. Moltmann
9a534c01ec Only have one way of dumping print manager state
Add a class DualDumpOutputStream that maps proto-dump commands onto
print writer commands.

The effect of this is that there is only one - very proto dump like -
way to dump the print manager which is much easier to maintain.

The DualDumpOutputStream tries to produce a result similar to the
incident-report tool.

Test: adb shell dumpsys print
Change-Id: I1f0c56651eaa59f0ce90cdb08c71e89a96c48dd4
2018-01-16 14:06:13 -08:00
TreeHugger Robot
0b2249786f Merge "Move A11y events throttling away from View(RootImpl)" 2018-01-11 22:57:35 +00:00
Bill Yi
550fe70632 Import translations. DO NOT MERGE
Change-Id: Ie659c61493a5d9ce4e8c0f62d429b3ad3ea50ad4
Auto-generated-cl: translation import
2018-01-10 16:02:50 -08:00