Commit Graph

5649 Commits

Author SHA1 Message Date
Makoto Onuki
ebe175c92f Merge "Show warning log when ShortcutInfo is re-published" into oc-dev am: 9ccb15a351
am: f14f38ba4a

Change-Id: Idba763e56af1fa6e76ddbb3d8880f7eb78c944f3
2017-05-05 20:24:45 +00:00
Makoto Onuki
f14f38ba4a Merge "Show warning log when ShortcutInfo is re-published" into oc-dev
am: 9ccb15a351

Change-Id: I7f246f362b6e8d124416db790e4856e52baa21b8
2017-05-05 20:16:49 +00:00
Makoto Onuki
9ccb15a351 Merge "Show warning log when ShortcutInfo is re-published" into oc-dev 2017-05-05 20:11:08 +00:00
Todd Kennedy
e12063c15f Merge "Create auxiliary info for local instant apps" into oc-dev am: 4804e41574
am: 143ad7ff09

Change-Id: I7bde4770ba29b8e57acd62cbe3a56c986a99bc80
2017-05-05 20:02:48 +00:00
Todd Kennedy
143ad7ff09 Merge "Create auxiliary info for local instant apps" into oc-dev
am: 4804e41574

Change-Id: I181cb62756b16971b126c2174eea58788dd5bfea
2017-05-05 19:56:16 +00:00
TreeHugger Robot
4804e41574 Merge "Create auxiliary info for local instant apps" into oc-dev 2017-05-05 19:35:32 +00:00
Seigo Nonaka
c7b291aad6 Merge "Resolve styles by font table if not specified." into oc-dev am: 1ea3a2600b
am: c000acd771

Change-Id: I7dc5268ddea18dfda560742b370388860dd87344
2017-05-05 19:15:24 +00:00
Seigo Nonaka
c000acd771 Merge "Resolve styles by font table if not specified." into oc-dev
am: 1ea3a2600b

Change-Id: I8c99a582e4453ec0dfbe6e30650b6682f68e255a
2017-05-05 19:05:18 +00:00
TreeHugger Robot
1ea3a2600b Merge "Resolve styles by font table if not specified." into oc-dev 2017-05-05 18:51:25 +00:00
Todd Kennedy
c0dd03a666 Create auxiliary info for local instant apps
This reverts commit a1d8051fa2.

Change-Id: Ic471a4efe64406dd75cc0bf1d6464276a94347d8
Fixes: 37947648
Test: Manual
Test: Install an instant app [https://www.nytimes.com/crosswords/game/mini]
Test: Try to run installed instant app from gMail
2017-05-05 10:34:28 -07:00
Seigo Nonaka
a5fa9e8a63 Resolve styles by font table if not specified.
android:fontStyle and android:fontWeight is an optional attribute.
If they are missing, we are using non-italic 400 weight, but this is
not good idea. We should resolve these style value from font metadata.

Bug: 37988154
Test: am instrument -w -e class android.content.res.cts.ResourcesTest
      android.content.cts/android.support.test.runner.AndroidJUnitRunner

Change-Id: I80a436cd3632d8c58fa3d8bdaedac73b95f61a8c
2017-05-05 09:30:34 -07:00
Bryce Lee
d36d46dd27 Merge "Revert "Create auxiliary info for local instant apps"" into oc-dev am: 8cfb1a95da
am: fb19563972

Change-Id: I80322c13e9fb5926432ea660f0b143f9aa78e315
2017-05-05 16:10:51 +00:00
Bryce Lee
fb19563972 Merge "Revert "Create auxiliary info for local instant apps"" into oc-dev
am: 8cfb1a95da

Change-Id: I63d6a84c78f52d9ee20bdf719ac4edbca34fb44d
2017-05-05 15:54:41 +00:00
Todd Kennedy
d86841e7cd Merge "Don't set the failure extra on split install" into oc-dev am: d14e67656f
am: 9968f9aa27

Change-Id: I0d799cf7a9af9f3bad491aa58edc6f4aacae85bb
2017-05-05 15:53:18 +00:00
Todd Kennedy
7a6eafb7a9 Merge "Create auxiliary info for local instant apps" into oc-dev am: d55670bcf5
am: b21b3efc55

Change-Id: I3d656bbbb9610e9f4ea6e68fbd8a287e88ad6894
2017-05-05 15:52:01 +00:00
Bryce Lee
8cfb1a95da Merge "Revert "Create auxiliary info for local instant apps"" into oc-dev 2017-05-05 15:46:37 +00:00
Bryce Lee
a1d8051fa2 Revert "Create auxiliary info for local instant apps"
This reverts commit e15e7cb592.

Change-Id: I116904fd8c2b28df7e03bc5ec2414ed67761b380
2017-05-05 15:38:44 +00:00
Todd Kennedy
9968f9aa27 Merge "Don't set the failure extra on split install" into oc-dev
am: d14e67656f

Change-Id: I8c317e316b699d742db50b2b642f2d1b0304de57
2017-05-05 14:30:09 +00:00
Todd Kennedy
b21b3efc55 Merge "Create auxiliary info for local instant apps" into oc-dev
am: d55670bcf5

Change-Id: Ia0fe6ae25879711ae0c9cf92a71607a5d7c5f4dc
2017-05-05 14:27:55 +00:00
TreeHugger Robot
d14e67656f Merge "Don't set the failure extra on split install" into oc-dev 2017-05-05 14:21:18 +00:00
TreeHugger Robot
d55670bcf5 Merge "Create auxiliary info for local instant apps" into oc-dev 2017-05-05 14:20:51 +00:00
Vladislav Kuzkokov
0883dd5e14 Merge "Store "block uninstall" flag separately from the rest of package state." into oc-dev
am: 914d4bf10f

Change-Id: Ie0f943598965c23c7ec950bf851a055b355023ff
2017-05-05 09:40:34 +00:00
Makoto Onuki
bf563b63e5 Show warning log when ShortcutInfo is re-published
Bug 37986391
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest1 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest2 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest3 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest4 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest5 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest6 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest7 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest8 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest9 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest10 -w com.android.frameworks.servicestests

Change-Id: Id9ca30068440915d2e86850fe2ed3684c0ce2af8
2017-05-04 10:28:47 -07:00
Vladislav Kuzkokov
253984ed8c Store "block uninstall" flag separately from the rest of package state.
This allows to set "block uninstall" prior to installation and avoid the
inevitable race that happens when Device Policy app tries to force install and
then immediately block uninstall.

BUG=31043188
Test: Block com.chrome.beta in TestDPC. install, fail to uninstall through adb, unblock, uninstall

Change-Id: I5ffa2abcb003982eccfb77585c43b59532dd501d
(cherry picked from commit 1fff9dcb9d)
2017-05-04 15:54:08 +00:00
Neil Fuller
167b047385 Time zone update API classes
Time zone update API classes. Currently hidden but they
will go on to be unhidden in future.

This forms the basis of client and system server code to
support time zone updates.

Tests can be run with:

make -j30 FrameworksCoreTests
adb install out/target/product/angler/data/app/FrameworksCoreTests/FrameworksCoreTests.apk
adb shell am instrument -e package android.app.timezone \
    -w com.android.frameworks.coretests \
    "com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner"

This contains a cherry-pick / conflict resolution of
commit bede17c216 after an automerger skip.
(cherry picked from commit bede17c216)

Bug: 31008728
Test: See above.
Merged-In: I668bc8ac0cb78f3d4d9a4b7ad6ac1534b88af833
Change-Id: Icde574f8974152617a1f7ac9fa225bd5011dcce1
2017-05-04 15:58:40 +01:00
Vladislav Kuzkokov
1307d25e25 Merge "Store "block uninstall" flag separately from the rest of package state." 2017-05-04 14:41:06 +00:00
Neil Fuller
69320958b2 Merge "Time zone update API classes" 2017-05-04 13:02:44 +00:00
Todd Kennedy
7dd99e3d46 Don't set the failure extra on split install
Change-Id: I2f836b5ebc9f377ae8fe0a0d4a60541dd1666011
Fixes: 37852108
Test: Manual
Test: Install and run pico blast
Test: Note that the failure extra is set
Test: Click "New" to install a split
Test: Note that the failure extra isn't set
2017-05-03 16:12:49 -07:00
Todd Kennedy
e15e7cb592 Create auxiliary info for local instant apps
Change-Id: I73fc6f36f666a0f4fd538e1d3c541ce10443902d
Fixes: 37947648
Test: Manual
Test: Install an instant app [https://www.nytimes.com/crosswords/game/mini]
Test: Try to run installed instant app from gMail
2017-05-03 14:56:57 -07:00
Neil Fuller
fe6ec56cce Time zone update API classes
Time zone update API classes. Currently hidden but they
will go on to be unhidden in future.

This forms the basis of client and system server code to
support time zone updates.

Tests can be run with:

make -j30 FrameworksCoreTests
adb install out/target/product/angler/data/app/FrameworksCoreTests/FrameworksCoreTests.apk
adb shell am instrument -e package android.app.timezone \
    -w com.android.frameworks.coretests \
    "com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner"

Bug: 31008728
Test: See above.
Change-Id: I668bc8ac0cb78f3d4d9a4b7ad6ac1534b88af833
2017-05-03 17:41:12 +01:00
Bartosz Fabianowski
4afd39e718 Merge "Add more explicit documentation for install reason" into oc-dev am: c8ca16a85a
am: 68e947c1bb

Change-Id: I6b80084a3bd04c350b3d4f4930aa7885ec8db22c
2017-05-03 15:20:45 +00:00
Vladislav Kuzkokov
1fff9dcb9d Store "block uninstall" flag separately from the rest of package state.
This allows to set "block uninstall" prior to installation and avoid the
inevitable race that happens when Device Policy app tries to force install and
then immediately block uninstall.

BUG=31043188
Test: Block com.chrome.beta in TestDPC. install, fail to uninstall through adb, unblock, uninstall

Change-Id: I5ffa2abcb003982eccfb77585c43b59532dd501d
2017-05-03 17:13:14 +02:00
Bartosz Fabianowski
40a006285b Add more explicit documentation for install reason
This CL adds more explicit documentation of the install reason argument /
return value to PackageInstaller.SessionInfo.

Bug: 37324584
Test: None

Change-Id: I2450cc669b194e611c5dc07c6a0a5cd78a98c039
2017-05-03 15:17:36 +02:00
TreeHugger Robot
767939f6db Merge "Revert "Add more explicit documentation for install reason"" 2017-05-03 10:04:31 +00:00
Bartosz Fabianowski
faef1cbd13 Revert "Add more explicit documentation for install reason"
This reverts commit 839e853589.

We have a better solution in ag/2135964.

Change-Id: Icfed2d883149c9e648b69ae88b64f76daf4030f3
2017-05-03 08:15:15 +00:00
Calin Juravle
8a532cf257 Merge "Make PM#registerDexModule oneway" 2017-05-02 19:55:23 +00:00
Calin Juravle
d478aaedc0 Merge "Make PM#notifyDexLoad oneway" into oc-dev am: 5f016f6705
am: 711016dfbc

Change-Id: Ifde71f3cfaa3a1053f3f19f3b722620111e7e0f5
2017-05-02 19:16:24 +00:00
Calin Juravle
5f016f6705 Merge "Make PM#notifyDexLoad oneway" into oc-dev 2017-05-02 19:03:22 +00:00
Seigo Nonaka
4fab38f1be Merge "Fix NPE happens if no source was specified to font element." into oc-dev am: b3e92234fa
am: 159f549c8f

Change-Id: Ief83bf6522468ab40d8dd9c3a68ab72892952ea4
2017-05-02 17:44:46 +00:00
TreeHugger Robot
b3e92234fa Merge "Fix NPE happens if no source was specified to font element." into oc-dev 2017-05-02 17:23:03 +00:00
Wale Ogunwale
b86466edb7 Merge "Don't send configuration that app doesn't support to it." into oc-dev am: 22c1275c89
am: f528efd2fc

Change-Id: I5ad92b83b66996101ec7c8144d5924ff2bfd08c4
2017-05-02 15:47:10 +00:00
TreeHugger Robot
22c1275c89 Merge "Don't send configuration that app doesn't support to it." into oc-dev 2017-05-02 13:58:59 +00:00
Seigo Nonaka
5e0aed49a8 Fix NPE happens if no source was specified to font element.
This also fixes unexpected fallback to the old implemntation by calling
allowUnsupportedFont() which is only for backward compatibility.

This CL also remove getResourceId() method. Nobody uses this method.

Bug: 37865521
Bug: 37844248
Test: am instrument -w -e class android.content.res.cts.ResourcesTest\
      android.content.cts/android.support.test.runner.AndroidJUnitRunner
Change-Id: I987448add728c53c916f24a2ea8f337be417248f
2017-05-01 23:23:50 -07:00
Calin Juravle
0a3693c21d Make PM#notifyDexLoad oneway
There's not need to wait for the PM to process the dex load
notification.

Make notifyPackageUse one way as well (for the same reason).

Bug: 37876265
Test: manual test to verify that notifications still work
Change-Id: I29d076348c2999a4441c2047a89a45b085bf3761
2017-05-01 19:49:21 -07:00
Calin Juravle
0ace6ac742 Make PM#registerDexModule oneway
The binder call should be one way.

Test: adb  shell am instrument -e class
'android.content.pm.PackageManagerTests' -w
'com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner'
Bug: 37290820

Change-Id: I15a5160a3b6fdc5243df7bba6e61a5e2cc4656e6
2017-05-01 19:40:02 -07:00
Rob Carr
b57c441fb4 Merge "Fix rotation animation selection." into oc-dev am: e8d7c01e8a
am: 0a2b84d6d2

Change-Id: I947689d13d974117273e3e54d4170f8b064927ef
2017-05-02 01:15:35 +00:00
Rob Carr
e8d7c01e8a Merge "Fix rotation animation selection." into oc-dev 2017-05-02 01:01:34 +00:00
Wale Ogunwale
d4b1d1ee72 Don't send configuration that app doesn't support to it.
If an app doesn't support the current device orientation configuration,
then don't run the app in that configuration. Instead have the run in
the last configuration that it supports.
This mostly fixes transient cases where there is a short window that the
device is switching configuration and the app could be sent the single
incorrect configuration that is quickly corrected

Test: Will be added soon.
Fixes: 36897968
Change-Id: I030a04200fdf33c4c1938bda980ea8c14aa1c736
2017-05-01 17:48:58 -07:00
Jeff Sharkey
74bfa11974 Merge "Rename to follow API council guidance." into oc-dev am: 0d6c3a691e
am: 6560d8845b

Change-Id: Ie9b4a033dfb08ea9326725e66ed4787a1ed69651
2017-05-01 23:36:36 +00:00
TreeHugger Robot
0d6c3a691e Merge "Rename to follow API council guidance." into oc-dev 2017-05-01 23:15:59 +00:00