1279 Commits

Author SHA1 Message Date
Bill Yi
4013de08c6 Import translations. DO NOT MERGE
Change-Id: I5d6599aba123b7e96f9099c84550e8fdbeabcb91
Auto-generated-cl: translation import
2019-03-23 09:29:28 -07:00
Chad Brubaker
e210731480 Remove usage info
Test: checkbuild
Bug: 123699931
Change-Id: I1adf60c3667ea88c296fc06807ac22b2ddf0e226
2019-02-05 13:40:24 -08:00
Bill Yi
e4da6015da Import translations. DO NOT MERGE
Change-Id: I3338c97d19fbd65e5eaeaa96af0f238c5e312669
Auto-generated-cl: translation import
2019-02-02 12:10:07 -08:00
Amin Shaikh
10f363bb18 Move SettingsLib icons to android.
Bug: 122263617
Test: make
Change-Id: I11ce02f3f65f429fd4375a5522c060c8080f4813
2019-01-25 15:26:41 -05:00
Bill Yi
ac0701f875 Import translations. DO NOT MERGE
Change-Id: Id188ad1cecb6496bfe4fa36898307a7c8c4f49a6
Auto-generated-cl: translation import
2018-12-25 04:39:31 -08:00
KOUSHIK PANUGANTI
25046bd5dc Migrate frameworks/base/packages/PrintSpooler/tests/outofprocess to androidx.test
See go/jetpack-test-android-migration

Test: make checkbuild
Change-Id: I40cc079c663e22a32adc7b7a519d11d8f85a7880
2018-12-18 14:10:55 -08:00
Philip P. Moltmann
2d1c0b7820 Give print spooler a prettier icon.
Test: Looked at icon
Change-Id: I67200d662e980ee80faca6dffb3b7e11aa03764c
2018-12-07 09:12:09 -08:00
TreeHugger Robot
bc1fdab278 Merge "Make foreground color of print button always white" 2018-12-04 16:20:25 +00:00
Philip P. Moltmann
5d770ba930 Make foreground color of print button always white
The theme seems to have stabilized to always have a colored
'colorAccent'. Hence make the foreground always white as the previous
attibute causes a black icon on light blue background which was quite
ugly.

Test: Looked at UI in dark more and regular mode
Change-Id: If3031daa0c8dceced8cc62810054b60e20cfb805
2018-12-03 16:28:29 -08:00
Philip P. Moltmann
dea2735a24 Justify location permission usage by print spooler
Also back up historical printer usage data (used to select default
printer).

The historical printer usage contains the physical location of the
printer (determined by using the permission). The data is only used by
this app and is not sent off the device beside for backup. The backup
data is not further analyzed.

Test: Built
Change-Id: I42f562ef264d49c32ff016ca1677e76cc2a2af13
2018-12-03 13:45:37 -08:00
Bill Yi
092d28ccae Import translations. DO NOT MERGE
Change-Id: Ib12c0bc467d4d7578a713b6fa8b2503dec604bff
Auto-generated-cl: translation import
2018-11-12 05:35:30 -08:00
Bill Yi
de66a885c9 Import translations. DO NOT MERGE
Change-Id: I3822af67f4ee8d0408a2d97237387f950d02a245
Auto-generated-cl: translation import
2018-10-31 09:35:54 -07:00
Colin Cross
eade02a397 Merge "Convert PrintSpooler to Android.bp" am: d05c9bc51c am: ef43636ce4
am: fb6d951157

Change-Id: I98bb1e30ac00a41b26f365e31bd36da8922e4113
2018-10-10 19:19:20 -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
Philip P. Moltmann
caf6a2eb0c Print document generation: Schedule new layout if current command is canceling
In this case the mUpdateSpec will be marked as stale once the command
is done, hence we have to start from scratch.

Fixes: 117124112
Test: - Reproduced scenario in bug
      - atest CtsPrintTestCases

Change-Id: I98e11d28147bae638d68b2124507d04f825a392f
2018-10-02 15:45:22 -07:00
Bill Yi
948dc2fc79 Import translations. DO NOT MERGE
Change-Id: I882532ab45ccb1a3b172384268c9b6543cb69f2e
Auto-generated-cl: translation import
2018-09-22 03:25:32 -07:00
Philip P. Moltmann
9c03941406 Set tint on print button foreground.
Otherwise the foreground is always white.

Fixes: 115830710
Test: Looked at print dialog in light and dark mode
Change-Id: I921106a70dd9ae23d8d64f746e17eef77ca5439c
2018-09-18 15:12:37 +00: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
Bill Yi
52f3fa5004 Import translations. DO NOT MERGE
Change-Id: Ib70037eb34e11a4a5f0568a3b757dbb0a27c7160
Auto-generated-cl: translation import
2018-07-22 07:13:35 -07:00
Philip P. Moltmann
80817048aa Enable night mode for print spooler.
Test: Looked at print preview Ui in night mode
Change-Id: I6c0542228e7117863808eab79b019b191f875ea3
2018-07-20 09:42:21 -07:00
Jeff Sharkey
b5a3117fe9 Merge "Utility methods useful for working with files." 2018-07-12 01:19:39 +00:00
Jeff Sharkey
5aae0c9df7 Utility methods useful for working with files.
Part of getting DocumentsUI ready for building against public API.

Test: builds
Bug: 110959821
Change-Id: I7cc0acd5ac3bcc89790cb49f34291ae523e44019
2018-07-11 14:41:24 -06:00
Philip P. Moltmann
c5b3d15bdd Use light theme for printSpooler
- replace png's by vector graphics
- Use alredy existing icons if possible
- Remove unnnecessary hard coded color values
- hard code all colors for preview-page as the background colors are
  hard coded, hence foreground also needs to be hard coded.
- Unify layout of loading/error/select printer UI

Test: Looked at print spooler. Switched theme to dark and checked if all
      looks ok too.
Change-Id: I07cc619d575c7372bd18550db8f2582df657cc5c
2018-07-09 11:57:01 -07:00
Bill Yi
94ea88ebe4 Import translations. DO NOT MERGE
Change-Id: I490177d6ebbe2826d0e703005a48be349e399f29
Auto-generated-cl: translation import
2018-06-27 02:52:35 -07:00
Bill Yi
07313fb0ca Import translations. DO NOT MERGE
Change-Id: I437bdc59ef7c664ab4d91869ba732e032aecd11e
Auto-generated-cl: translation import
2018-06-01 09:02:28 -07:00
TreeHugger Robot
82e99c78d1 Merge "Hold wake lock while printing" 2018-05-19 01:16:49 +00:00
Bill Yi
45a1e13fb5 Import translations. DO NOT MERGE
Change-Id: Ic29a7c170bd0f87c56a2fcf6b1b84ac02f8a0268
Auto-generated-cl: translation import
2018-05-18 09:31:15 -07:00
Dan Willemsen
f97d380ca7 Merge "Convert to Soong" am: acbd94d76f am: b1005a8a2a
am: d00c851e55

Change-Id: I889b5d31535d927b3aa9cf5ad6af955ca0678356
2018-05-15 15:52:51 -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
9462032359 Hold wake lock while printing
more specifically while any print job is
- queued (ready to be printed but not yet printing)
- started (actually printing right now)
- cancelling (printing, but cancel request has been sent)

Test: - Printed successfully
      - Canceled print job
      - Had print job that blocked
      Wake locks looked fine while doing all this
Fixes: 74811014

Change-Id: Ia1a3327bd55fb7f3cc7ecb330d7d2c141d4fdb34
2018-05-15 13:16:12 -07:00
Philip P. Moltmann
0c94c5065d Merge "Allow Print subsystem to work with services provided by instant app" into pi-dev am: cc64fb9c8f
am: b098a03e84

Change-Id: Id4820d0df901304b1e10f19c62ee5d049f6cb103
2018-05-14 22:32:33 -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
6118efa3d3 Import translations. DO NOT MERGE
Change-Id: Id328b24247d4b5082c0c72c712bc7c77118ec9c2
Auto-generated-cl: translation import
2018-05-02 10:12:00 -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
97412f485a Import translations. DO NOT MERGE
Change-Id: I1a477b554daa557153663afe19713fec297fca21
Auto-generated-cl: translation import
2018-04-20 23:54:50 -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
5d5a4efbf0 Import translations. DO NOT MERGE
Change-Id: I4bcf237b014f2cb8b5c5ba63a6e38607f11f3782
Auto-generated-cl: translation import
2018-04-15 21:22:35 -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
TreeHugger Robot
cf440fcc9b Merge "Revert "Revert "Update material_deep_teal_500 to #008577.""" 2018-04-12 20:20:14 +00:00
Bill Yi
598ad285d8 Import translations. DO NOT MERGE
Change-Id: I63d08f85d00bf52186f5d0279549bc18b6253276
Auto-generated-cl: translation import
2018-04-12 03:25:17 -07: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
Andrew Sapperstein
9720a349f1 Revert "Revert "Update material_deep_teal_500 to #008577.""
This reverts commit 431d9d63e993c6056e95811e9a84869aa324e7a0.

Reason for revert: Rolling forward with a fix.

Change-Id: I5804e240535b84e0f4b2d306649b1981a9871632
Bug: 74118164
Test: atest cts/hostsidetests/theme
2018-04-11 11:29:23 -07:00
Nicolas Geoffray
b19c2e7451 Merge "Exempt tests for hidden APIs." into pi-dev am: 0e675bd901
am: 03ba2d9241

Change-Id: I0e4517312cac9b37537eee55eafd811aff531ea8
2018-04-10 10:11:10 -07:00