Commit Graph

1219 Commits

Author SHA1 Message Date
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
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 431d9d63e9.

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
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
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
431d9d63e9 Revert "Update material_deep_teal_500 to #008577."
This reverts commit 5c228d5eb9.

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
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
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 e4d31b3c10.

Fixes: 71904218
Test: presubmit
Change-Id: Id73bde1a0c11696cf561c84cde027cdca4c6a00f
2018-01-26 11:32:25 -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
Eugene Susla
e4d31b3c10 Move A11y events throttling away from View(RootImpl)
..and also extract common code into a common superclass

This also preserves the order of the throttled events
(TYPE_VIEW_SCROLLED & TYPE_WINDOW_CONTENT_CHANGED) with regards to the rest
of events by flushing any pending throttled events immediately if another
event is requested to be sent.

Test: ensure no new a11y CTS failures
Change-Id: I948a16716521974393aaa1cf822d0a0324e9ce3a
2018-01-09 13:28:59 -08:00
TreeHugger Robot
aa31e19ae1 Merge "Migrate PrintSpooler to aapt2." 2018-01-09 02:29:53 +00:00
Aurimas Liutikas
87f7ce4bd1 Migrate PrintSpooler to aapt2.
Test: make -j PrintSpooler
Change-Id: Iad4d4d477792f13fb92e3ee7f4f5fa781f3298c4
2018-01-05 16:27:23 -08:00
Ng Zhi An
ced7b8dca3 Make print options layout respect RTL
Bug: 69693271
Test: manual, in a RTL system language, build, sync, open a PDF, print
Change-Id: I90e0dabfee1256663a4bececb0538f91389cfaac
2017-12-28 13:58:05 -08:00
Bill Yi
5a77ace9d2 Import translations. DO NOT MERGE
Change-Id: Ia72c31e15aa0b8697ddffdbcf865ab768a8704d7
Auto-generated-cl: translation import
2017-12-12 22:59:43 -08:00
Bill Yi
2a8aa566e1 Import translations. DO NOT MERGE
Change-Id: I1c1b8d2908d542f4b1a26bc7e61e07ce634d53cf
Auto-generated-cl: translation import
2017-11-26 09:05:00 -08:00
Philip P. Moltmann
6c92c450fe Make ic_print and ic_print_error vector graphics
This makes very high resolution versions of the icon appear sharper.

Fixes: 69175097
Test: Looked at places where the icon shows in the UI. Looks like
      before, just sharper.
Change-Id: I2bf24c08605e6e4949892dcb720005497f1fadfa
2017-11-13 12:54:04 -08:00
Bill Yi
e391f37b71 Import translations. DO NOT MERGE
Change-Id: Ic889a433a21166e4d7f4458f134bb47bb85e9ecc
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
2017-11-06 22:45:47 -08:00
Philip P. Moltmann
13fba9dbe7 Unify print test tools into a library.
Test: - adb shell am instrument -w com.android.printspooler.outofprocess.tests/android.support.test.runner.AndroidJUnitRunner
      - adb shell am instrument -w -e class android.content.pm.PackageManagerTests com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner
Change-Id: I58e2dcb492a7f528a5554f7ace83940ad0d82297
2017-10-10 10:54:10 -07:00
Bill Yi
77184a8dca Import translations. DO NOT MERGE
Change-Id: I3ff683e9e0439415e397e821702160bd2ff1fd4d
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
2017-10-08 06:37:12 -07:00
Bill Yi
3cc3d826db Import translations. DO NOT MERGE
Change-Id: I48971d150b2a7429060bf3e47f96ef39d4cf2bfd
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
2017-09-18 05:59:51 -07:00
Philip P. Moltmann
cb50430037 Disable print service while running WorkflowTests
Test: m -j PrintSpoolerOutOfProcessTests && adb install -r ${ANDROID_PRODUCT_OUT}/data/app/PrintSpoolerOutOfProcessTests/PrintSpoolerOutOfProcessTests.apk && adb shell am instrument -w com.android.printspooler.outofprocess.tests/android.support.test.runner.AndroidJUnitRunner && adb uninstall com.android.printspooler.outofprocess.tests
Change-Id: I9cb611c24fc826c86acde1386d88cbb6257fae4d
2017-09-14 16:50:58 -07:00
Philip P. Moltmann
d8896e14be Fix Print workflow tests.
Test: m -j PrintSpoolerOutOfProcessTests && adb install -r ${ANDROID_PRODUCT_OUT}/data/app/PrintSpoolerOutOfProcessTests/PrintSpoolerOutOfProcessTests.apk && adb shell am instrument -w com.android.printspooler.outofprocess.tests/android.support.test.runner.AndroidJUnitRunner && adb uninstall com.android.printspooler.outofprocess.tests
Change-Id: I3eba48ac3f8dc343cd22cac0f9fbf4d4e6c76631
2017-09-14 11:46:32 -07:00
Bill Yi
914013d195 Import translations. DO NOT MERGE
Change-Id: I82d19a9c1cadb5f776e9636e190e84c2b2d5c5a4
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
2017-09-13 04:25:07 -07:00
Bill Yi
f5aa9bcb94 Import translations. DO NOT MERGE
Change-Id: I2b6569466d204cc2305fcddbf0d47fb9d95e190e
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
2017-09-05 23:44:03 -07:00
TreeHugger Robot
b86129e405 Merge "Disable more options while in progress" 2017-09-01 17:12:54 +00:00
TreeHugger Robot
37acb83e14 Merge "Do not call MediaSizeComp before it is initalized" 2017-08-31 01:03:03 +00:00