1109 Commits

Author SHA1 Message Date
Bill Yi
3b1e4d3e86 Import translations. DO NOT MERGE
Change-Id: I4d7599fdee360cf86ce1980b9759a692a493d21b
Auto-generated-cl: translation import
2017-04-12 22:38:20 -07:00
Bill Yi
6104b8ac65 Import translations. DO NOT MERGE
Change-Id: I00ba119096a1178627988e15ec6e71f637b2ac57
Auto-generated-cl: translation import
2017-04-11 11:41:51 -07:00
Bill Yi
f20444c9dd Import translations. DO NOT MERGE
Change-Id: If7648048872859a1d4a2032a2f6de6a6e9cf19f6
Auto-generated-cl: translation import
2017-04-07 18:05:51 -07:00
Philip P. Moltmann
d37be36a56 Make print failure notifications important
Before failures and progress was similar important. Both were not shown.
Now both are shown and the failures alert.

Removed the notification grouping as autogrouping is good enough.

Test: Created failed and running print jobs
Change-Id: I6dfca583d69aa9713d45a2bc52d05e95f06b376f
2017-04-05 16:46:50 -07:00
Philip P. Moltmann
d0e44c5ee3 Do not allow printing until preview is updated
Otherwise we might end up in the situation where we print something that
was not previewed.
This is of course bad for the user as he prints something he has not seen.
It is also bad for the print spooler as in the case the layout did not
describe the amount of pages, we do not know the number of pages available
until the update is complete.

We now allow changing of printer at any time unless printing is in final
stage. If we don't allow this the changing of printer would be blocked
until the intial document was written which might take some time.

Fixes: 36599750
Test: cts-tradefed run cts-dev -m Print
Change-Id: I93e910c02f2a770008b845028f0adf17b3d410e2
(cherry picked from commit 378cddbc41dae55e9a11faaa251b80fb90878b34)
2017-03-29 16:13:32 +00:00
Dan Shi
874a0916fc Merge "Add test configs to apct tests under frameworks/base" 2017-03-22 17:55:58 +00:00
Dan Shi
7f2afd2dff Add test configs to apct tests under frameworks/base
TouchLatency is needed by test TouchLatencyJankTestWear
UiBench is needed by test UiBenchJankTests

Details about test configs changes are tracked in doc
https://docs.google.com/document/d/1EWUjJ7fjy8ge_Nk0YQbFdRp8DSHo3z6GU0R8jLgrAcw/edit#

Bug: 35882476
Test: local test
make -j32 TouchLatency TouchLatencyJankTestWear  && \
tradefed.sh run template/local --template:map test=TouchLatencyJankTestWear \
      --test-tag testname --log-level-display VERBOSE
make -j32 UiBenchJankTests UiBench  && \
tradefed.sh run template/local --template:map test=UiBenchJankTests \
      --test-tag testname --log-level-display VERBOSE

Change-Id: I63f23e3a21ad1343607953958fb7bb0a5fb8c343
2017-03-21 00:05:14 -07:00
Philip P. Moltmann
a5c560b328 Merge "Handle corrupted files when cutting out pages" 2017-03-20 17:41:32 +00:00
Philip P. Moltmann
f7a5b4fb30 Handle corrupted files when cutting out pages
Before the print spooler crashes, now we crash the printing app.

Bonus: Renamed and documented fields as I could never remeber what they
mean.

Test: Added new (disabled) test to CTS print tests that emulated the
scenario
Bug: 35350768
Change-Id: I41c094960d96f46d274e9f87381bcda5274d5612
2017-03-16 12:15:53 -07:00
Simran Basi
473a16e492 frameworks/base: Add APCT tests to the device-tests suite.
This CL adds the APCT tests within this project to
a similar suite as CTS known as device-tests.

The current method of running APCT tests in the infrastructure
is unaffected.

Bug: 35882476
Test: `make dist device-tests -j` and local builds of
      continuous_instrumentation_tests & continuous_native_tests

Change-Id: Ifa382fe691842c1cd76897775b9e2a1653449eb5
2017-03-15 14:46:27 -07:00
Bill Yi
4eabb5dff8 Import translations. DO NOT MERGE
Change-Id: I585aa8798b0ebebe1b6290dfa18783259a0f413b
Auto-generated-cl: translation import
2017-02-28 00:44:48 -08:00
Hiroaki Kuriyama
aa514313a5 Merge "PrintSpooler: Remove recommendation if Play Store is not installed" am: 57b966eee1 am: 7cd04745f4
am: 2ab70d213b

Change-Id: I9d4e003492c5d2b8463725e454ac985481958db7
2017-02-17 20:40:49 +00:00
Hiroaki Kuriyama
2ab70d213b Merge "PrintSpooler: Remove recommendation if Play Store is not installed" am: 57b966eee1
am: 7cd04745f4

Change-Id: I04a0d5afbaedbef3a1d7b005dba124888fd213ca
2017-02-17 20:30:36 +00:00
Bill Yi
db067b2c4d Import translations. DO NOT MERGE
Change-Id: I5c7c9644748b50c15eeda5bc0c6c1505d309cdeb
Auto-generated-cl: translation import
2017-02-16 20:09:24 -08:00
Hiroaki Kuriyama
36bebe8420 PrintSpooler: Remove recommendation if Play Store is not installed
Sympton:
If Play Store (com.android.vending) is not installed, printer
recommendation function which guides a user to Play Store is useless.

Root-cause:
Even if Play Store is not installed,
PrintSpooler tries to start an activity for market:// with package
names in Play Store.

Solution:
Hide printer recommendation UI and show "No print services enabled"
if there is no printer service.

Change-Id: I0b2eabbd57bc47c6382f53e610e33252ea359390
2017-02-14 21:21:16 +09:00
Bill Yi
1a75c195d7 Import translations. DO NOT MERGE
Change-Id: Ic5daee15522a992e7e8a3703946c853228b1207e
Auto-generated-cl: translation import
2017-01-21 11:01:34 -08:00
Roozbeh Pournader
b84a505b62 Rename language+country resources to just language
Bug: 26496609
Test: none
Change-Id: I40b99a8728f1f324f4c1f8066a61c3d5f92b1ac6
2017-01-10 23:51:26 -08:00
Bill Yi
7b88fcb1b7 Import translations. DO NOT MERGE
Change-Id: Ieea3a5fde1263d788d48ea78d187e5b49a5cfd0d
Auto-generated-cl: translation import
2016-12-14 18:11:28 -08:00
Bill Yi
06aef87285 Import translations. DO NOT MERGE
Change-Id: If19b0f9bab18312c1b4b77bec30be54e509212bb
Auto-generated-cl: translation import
2016-12-08 23:26:16 -08:00
Bill Yi
a1f3a021b9 Revert "Import translations. DO NOT MERGE"
This reverts commit 81f63dbeceb1f111e3d3838e0db084900820f3a3.

Change-Id: I3a82c090e9549f0eb5179d74b027a3429ad51517
2016-12-05 18:57:48 +00:00
Bill Yi
81f63dbece Import translations. DO NOT MERGE
Change-Id: Ic63044576872b3d8427dfa18ada7a6105547a10c
Auto-generated-cl: translation import
2016-12-02 20:58:26 -08:00
Bill Yi
1c30f98ba4 Import translations. DO NOT MERGE
Change-Id: If8815633c883707fcecf0bdb2cc290fdf76081b3
Auto-generated-cl: translation import
2016-11-28 15:56:17 -08:00
Bill Yi
44fc3e0900 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 32177112
Change-Id: Ia301c54a58d496c9608939c12e18491d3c4df1f6
2016-11-20 14:15:31 -08:00
Bill Yi
2c9be7b2a5 Import translations. DO NOT MERGE
Change-Id: I72312b850912a5c47a318ebb60f4545a0c00f5e9
Auto-generated-cl: translation import
2016-11-09 14:01:42 -08:00
Tamas Berghammer
383db5ebcc Update package names to work with the proto3 compiler
Bug: b/28974522
Change-Id: I5f3adf4946ee4ba1e09e4f40afe83c151405972a
2016-11-08 14:06:09 +00:00
TreeHugger Robot
3bd340f8e3 Merge "Import translations. DO NOT MERGE" 2016-10-27 04:59:01 +00:00
Bill Yi
8afc2033a3 Import translations. DO NOT MERGE
Change-Id: I70b27a620d3a173b02b0fa67242e0ac6fd894466
Auto-generated-cl: translation import
2016-10-26 15:32:51 -07:00
TreeHugger Robot
d5dc2d720d Merge "Show up button in select printer activity" 2016-10-26 19:40:10 +00:00
Philip P. Moltmann
de497bf6c3 A little more padding in PrintActivity.
Test: Looked at rendering
Change-Id: If5778ca433f4b7e87bfa8ab2f2b0256042ce1a50
2016-10-26 09:26:47 -07:00
Philip P. Moltmann
3af7f8277f Show up button in select printer activity
Test: Selected a printer via select printer activity
      Pressed up button in select printer activity (no printer get
      selected)

Change-Id: Ifcd133eb0ceb973464cbd35b6ee87c9f09221af4
2016-10-26 09:15:26 -07:00
Philip P. Moltmann
ee53f0d419 Merge "Allow to select printer from info activity." 2016-10-18 14:55:51 +00:00
Bill Yi
c4ea59411d Import translations. DO NOT MERGE
Change-Id: I2e3d45aee247d90802cd2866815e4441b5213f16
Auto-generated-cl: translation import
2016-10-13 22:17:31 -07:00
Philip P. Moltmann
c8d6f54be3 Allow to select printer from info activity.
Test: Manual testing with modified experimental print service and new
      CTS test for the new API
Fixes: 27746841
Change-Id: I4ef728e54679271a01397d9f04d3b8ac804ffcf3
2016-10-13 17:09:17 -07:00
Philip P. Moltmann
cc021c9a20 Move print workflow tests to own apk
Test: Ran new tests
2016-10-05 16:56:00 -07:00
Philip P. Moltmann
86090a11b5 When selected printer can't print show error
Test: - New tests is submited in this CL
      - print coretests
      - print cts tests

Change-Id: I5be71d542106637a22b492be6f71afa68720127e
2016-10-01 03:12:12 +00:00
Philip P. Moltmann
59b0fbd104 Update print attributes when printer gets selected
Test: Add new non-CTS print workflow tests. These tests will cover
      general printing workflows such as the situation fixed in this
      change.
Change-Id: I33b6842bba164c45a6afbc09f2e0c9b0a523ef30
2016-09-29 10:33:03 -07:00
Bill Yi
5003544255 Import translations. DO NOT MERGE
Change-Id: I04cd82eaf848a9a63d8da1d21fc42177d4278a14
Auto-generated-cl: translation import
2016-09-21 21:35:03 -07:00
TreeHugger Robot
7f6e36cec3 Merge "Remove page ranges input field when not needed" 2016-08-31 17:55:50 +00:00
Philip P. Moltmann
ff7bc7c394 Size print destination to support font sizing am: cb1926afba am: c0bbf28dca
am: daf21fa96e

Change-Id: I049ba545e75d5345fe67d000553388f36d36a128
2016-08-31 04:17:38 +00:00
Philip P. Moltmann
19d6d8c116 Remove page ranges input field when not needed
Before it was just hidden which left an empty space. As the print
options frame is already pretty high, we want to minimize the space when
possible.

Bug: 30977905
Change-Id: If48dc852b083f014194f3f8896ec021eb0f19c0c
2016-08-30 17:05:40 -07:00
Philip P. Moltmann
daf21fa96e Size print destination to support font sizing am: cb1926afba
am: c0bbf28dca

Change-Id: If2498722901cd25033a520914b54ef55c2709ebb
2016-08-30 02:16:06 +00:00
Philip P. Moltmann
c0bbf28dca Size print destination to support font sizing
am: cb1926afba

Change-Id: I2c49f14994f07c719457c2bdf88ddec874ff0014
2016-08-29 22:02:36 +00:00
Philip P. Moltmann
cb1926afba Size print destination to support font sizing
Fixes: 31152374
Change-Id: I1560d6d300174ec0665157fa4f2c485d64f871ad
2016-08-29 18:03:19 +00:00
Bill Yi
225d865289 Import translations. DO NOT MERGE
Change-Id: I6533c97bd143d63e3ddaa5ef7d86edcbe1dbb611
Auto-generated-cl: translation import
2016-08-19 18:06:27 -07:00
Bill Yi
ff6d23a61b Import translations. DO NOT MERGE
Change-Id: I1a58040e6aec825355c6d7e6be1444c88fa2bbb9
Auto-generated-cl: translation import
2016-08-19 03:45:27 -07:00
Philip P. Moltmann
12cd55f94e Handle reset of recommended services am: fe789f3189 am: bc11f26a09
am: 36d68891a5

Change-Id: I13f55cee79c6117f95c9fe8b268b64c654af90a0
2016-07-31 02:38:29 +00:00
Philip P. Moltmann
36d68891a5 Handle reset of recommended services am: fe789f3189
am: bc11f26a09

Change-Id: Id23a5eac08cfa6ce88205cb826c6d2fc6eb4b3fe
2016-07-29 19:55:18 +00:00
Philip P. Moltmann
fe789f3189 Handle reset of recommended services
Change-Id: I778f8b7a081d433ca0f21361c2ca8dcd48303935
Fixes: 30389837
2016-07-26 09:45:53 -07:00
Philip P. Moltmann
087c7395ed Set title in onCreate. am: fef31ad5ae
am: 28c09c612f

Change-Id: I317a2ea5525518a77d286c4f472de41b2ce43bba
2016-07-26 15:11:47 +00:00
Philip P. Moltmann
28c09c612f Set title in onCreate.
am: fef31ad5ae

Change-Id: Ide036a4f9bed9953040be7aa0f0fee26f9c84c82
2016-07-25 23:05:10 +00:00