319277 Commits

Author SHA1 Message Date
TreeHugger Robot
2a34734131 Merge "Add command to retrieve the instant app resolver" into oc-dev 2017-05-12 23:11:51 +00:00
Evan Rosky
bb6db1d6db Merge "Added redundant focusable attribute read in TextView" into oc-dev
am: e18533e58e

Change-Id: I3c91ff7bd660afdb5655108fd18d333f653678a6
2017-05-12 23:11:33 +00:00
Hyunyoung Song
ac9b9de6df Merge "Update ShortcutManager/Service javadoc/impl around sizing" into oc-dev
am: b9a098aeb6

Change-Id: Ie08ced373f88647afa6d8788ea78dd07ade6decf
2017-05-12 23:08:38 +00:00
Abodunrinwa Toki
f0d0e37564 Merge "Properly invalidate text classification cache." into oc-dev 2017-05-12 23:08:03 +00:00
Evan Rosky
e18533e58e Merge "Added redundant focusable attribute read in TextView" into oc-dev 2017-05-12 23:03:58 +00:00
Bryce Lee
7f9368637c Introduce result ranges for activity start return results.
The return result from starting activity actually represents two
pieces of information. First, it conveys whether the activity
started. Secondly, it conveys whether there was a fatal error if
the activity did not start. Many parts of the code assume that a
value greater than or equal to the defined success means that the
activity successfully started. This is not the case as there are a
number of results greater than success where the activity does not
start.

This change addresses the issue by introducing three distinct
result ranges. The first represents results where the activity
could not start due to a fatal error. The second represents results
where the activity did not start due to a non-fatal error. The last
range represents successful activity starts. Two convenience methods
have been added to ActivityManager to return whether the result
represents a fatal error and whether the result was successful.

Change-Id: Ifaf844c353641a28b03b3c2d7b6be053fd9b8b44
Fixes: 38021882
Test: cts-tradefed run cts-dev --module DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerTest#testLockTask_deviceOwnerUser
2017-05-12 16:02:23 -07:00
TreeHugger Robot
b9a098aeb6 Merge "Update ShortcutManager/Service javadoc/impl around sizing" into oc-dev 2017-05-12 23:01:35 +00:00
Abodunrinwa Toki
3f940359c5 Merge "TextClassifier: Ensure url scheme is in lowercase" into oc-dev
am: ebd6bb561d

Change-Id: I3b00d480a1c0e059e96de366708f5e7950bf59b9
2017-05-12 22:59:19 +00:00
Bill Yi
39b8088ac0 Merge "Import translations. DO NOT MERGE" into oc-dev
am: ee82be81ff  -s ours

Change-Id: Ibe7b360857483ede8db13e0dfde2159e2ef612fa
2017-05-12 22:57:15 +00:00
Dianne Hackborn
799b1af858 Merge "Work on issue #38242094: Activity manager oom adj computation seems broken" into oc-dev
am: e2f908b6af

Change-Id: I07dc985a1489005e45cd08960d997c23a75b8ccc
2017-05-12 22:55:17 +00:00
Suprabh Shukla
b558f00436 Adding AOSP copyrights header
am: af76b13403

Change-Id: I8bb58665d676a2601ccd3f3f0ccaf84825e71962
2017-05-12 22:51:31 +00:00
Abodunrinwa Toki
ebd6bb561d Merge "TextClassifier: Ensure url scheme is in lowercase" into oc-dev 2017-05-12 22:50:54 +00:00
Naveen Kalla
d85f5f0cf0 Merge "Add RIL_UNSOL_MODEM_RESTART message" am: 85e188585e am: e174804841
am: d4e877ea89  -s ours

Change-Id: Id3a9057a63c2b4ad54ec893bfe8c40b396b4ce5c
2017-05-12 22:45:53 +00:00
TreeHugger Robot
ee82be81ff Merge "Import translations. DO NOT MERGE" into oc-dev 2017-05-12 22:45:09 +00:00
TreeHugger Robot
e2f908b6af Merge "Work on issue #38242094: Activity manager oom adj computation seems broken" into oc-dev 2017-05-12 22:44:26 +00:00
Adam Lesinski
ada8deb436 OMS: Setup state for users on boot and when added
Some users never get switched to (managed profile/work profile) so the
overlay state for a user would never be setup (but they could still show
UI and apps).

This change ensures that user state is setup after an OTA to android O,
and whenever a user is added.

Bug: 37899201
Test: manual (add user via Device Admin sample: vendor/google/tools/DeviceAdminSample)
Change-Id: If214e26e39b18c2861794baf5c608a47d536e5ff
2017-05-12 15:42:52 -07:00
Naveen Kalla
d4e877ea89 Merge "Add RIL_UNSOL_MODEM_RESTART message" am: 85e188585e
am: e174804841

Change-Id: If2ba09241a05d0765c23cf5831e957efe3c1ef77
2017-05-12 22:40:24 +00:00
Winson Chung
0a65737c55 Ensure that we check against the pending state while suspended.
Bug: 38192462
Test: Launch PIP, try to make PIP fullscreen.

Change-Id: I575f57492506224b8ee9f247f3c5903c812a04d6
2017-05-12 15:39:44 -07:00
Felipe Leme
7a1deb7c5f Couple autofill fixes.
- Fixed PFLAG3_NOTIFY_AUTOFILL_ENTER_ON_LAYOUT value - it was overlapping with
PFLAG3_ASSIST_BLOCKED.
- Added missing permission on methods called by Shell command.
- Improved debugging.

Bug: 38173625

Test: android.autofillservice.cts.MultipleFragmentLoginTest#loginOnTwoFragments

Change-Id: Ie7880c97d38298e06134709c5c2e9e38fa1bacbb
2017-05-12 15:34:48 -07:00
Suprabh Shukla
af76b13403 Adding AOSP copyrights header
Test: N/A

Change-Id: Iabec646a1f8087480f899c5b4996122a9f4bd13a
2017-05-12 15:34:04 -07:00
Sunny Goyal
2a400805ef Merge "Updating AppWidgetServiceImplTest as per Mockito changes" into oc-dev
am: d7bd16b258

Change-Id: Icf51abae4931e58c44d5fce0a0e2fbf02e004325
2017-05-12 22:33:37 +00:00
Felipe Leme
205d420c68 Fixed and improved (for reuse) PendingRequest lifecycle.
Fixes: 38173625
Test: android.autofillservice.cts.MultipleFragmentLoginTest#loginOnTwoFragments

Change-Id: Ic9ba3cb51048296384d42670cc71db78a0e8fcf6
2017-05-12 15:33:00 -07:00
Naveen Kalla
e174804841 Merge "Add RIL_UNSOL_MODEM_RESTART message"
am: 85e188585e

Change-Id: I33dd05658ad8c9eed74e42ab27fa248a5942b688
2017-05-12 22:32:53 +00:00
Adam Lesinski
4b585db64f AAPT2: Allow <uses-permission-sdk-23> in manifest
Bug: 38269610
Test: build tools/aapt2/integration-tests/AppOne
Change-Id: I1d0b87aa36f6bf82aab146339acf8848166b218d
2017-05-12 15:25:50 -07:00
TreeHugger Robot
d7bd16b258 Merge "Updating AppWidgetServiceImplTest as per Mockito changes" into oc-dev 2017-05-12 22:25:48 +00:00
Treehugger Robot
85e188585e Merge "Add RIL_UNSOL_MODEM_RESTART message" 2017-05-12 22:25:27 +00:00
Winson Chung
9a352b6055 Updating expand icon asset.
Bug: 38237934
Test: Launch activity in PIP, tap to show expand icon
Change-Id: Icae85ff27accd1e2143836541587e3bedc17570b
2017-05-12 15:10:38 -07:00
Robert Greenwalt
4a411f7d67 Remove switchStreams API.
After discussion about how best this could fit in the API we
discovered many disagreements that we couldn't resolve in the
time available.  Pulling the feature from the API until we
can resolve issues.

Test: builds
Change-Id: I6d36a1dea8ce9816fad497b992a347188d3ac88e
2017-05-12 15:04:04 -07:00
Bookatz
78ae8e0436 Merge "Batterystats BLE results counter takes in count" into oc-dev
am: 80fc1af120

Change-Id: I5b88079ab4bbefbc3e838e3ee8f90bfa961b0650
2017-05-12 22:02:10 +00:00
yinxu
f19bc1a0e5 Add API to support async network scans.
This CL includes the new Java API that supports async network scans.
Applications could get faster network scan results with this new API.
The long-term goal is to support Subsecond Switching which is separate
from what this CL is doing.

Bug: 30954762
Test: Unit test, run runtest -x NetworkScanRequestTest.java
Change-Id: I78cadaf838dee8439fe7417ef39f689990bf5705
(cherry picked from commit fdfb6f4d2f6db943d648adec6cc96530f2f70fe6)
2017-05-12 15:01:02 -07:00
Kevin Chyn
e64399649a Add missing break statements in FingerprintManager
Fixes: 38268065

Test: manual

Change-Id: I64ac92b2c5682bcaa494f43ff5defdf9915c5a65
2017-05-12 14:57:32 -07:00
TreeHugger Robot
80fc1af120 Merge "Batterystats BLE results counter takes in count" into oc-dev 2017-05-12 21:57:18 +00:00
Wale Ogunwale
1a3367a446 Merge "Fixed exceptions during test tearDown" into oc-dev
am: 879450ab00

Change-Id: Iba25a35ed2dcd8c463d0e91a44356d76f0bad151
2017-05-12 21:36:57 +00:00
TreeHugger Robot
879450ab00 Merge "Fixed exceptions during test tearDown" into oc-dev 2017-05-12 21:32:09 +00:00
Sunny Goyal
1e0a89055d Merge "Setting Session commited broadcast when an existing apk is enabled for a different user" into oc-dev
am: fc157e702f

Change-Id: I4cabbad8bac8fb24c86506a89c29d0a34b90a564
2017-05-12 21:16:32 +00:00
Sunny Goyal
fc157e702f Merge "Setting Session commited broadcast when an existing apk is enabled for a different user" into oc-dev 2017-05-12 21:09:08 +00:00
Rebecca Silberstein
75a7b33a1a Merge "SystemUI: add NETWORK_SETTINGS permission" into oc-dev
am: 276b63dc9e

Change-Id: I4b473c781b236263cb7a304c87de59aaa7388640
2017-05-12 21:08:32 +00:00
Tsukasa Hashimoto
094edff3b9 Merge "Merge "Add PID info into ANR crash log header" am: 2fe972c822 am: 5d57502c89 am: 5dbe26f0f1 am: 4ae323995d" into oc-dev
am: ba99e9c72c

Change-Id: I4087af9a748b261da58fb8d06640ac4d173831e9
2017-05-12 21:06:11 +00:00
Christopher Tate
6c5631ee7c Do not perform backup/restore of instant apps
This keeps the install flow fast, and also happens to mean that
there is feature parity in this regard between pre-O and O+
instant app handling.

Fix #38263351
Test: manual

Change-Id: I8eb08c12d800f5288583e792621920c9876efdfc
2017-05-12 13:58:20 -07:00
Naveen Kalla
d9b212630c Add RIL_UNSOL_MODEM_RESTART message
RIL_UNSOL_MODEM_RESTART will be sent by vendor RILs when it detects
a modem restart along with the reason for restart which could be a
crash signature if the modem restarted due to a crash or a some
other string such as a user-initiated restart or AT command
initiated restart.

Test: Manual
Merged-In: Idf08e20a49e82d40f6aa0854d23384c35c2efc3a
Change-Id: Idf08e20a49e82d40f6aa0854d23384c35c2efc3a
2017-05-12 13:57:19 -07:00
Michael Wachenschwanz
9c9f4e72a2 Merge "Fix JobSet getJobsByUser" into oc-dev
am: b6d30e1404

Change-Id: I40b8919a21da6592e6ad561da2dad7878448ad2e
2017-05-12 20:56:07 +00:00
Rebecca Silberstein
276b63dc9e Merge "SystemUI: add NETWORK_SETTINGS permission" into oc-dev 2017-05-12 20:50:44 +00:00
Bill Yi
7bec3d1547 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 38120923
Change-Id: I3ebe901771f444c2986b15a52f4d16bd342fac37
2017-05-12 13:49:56 -07:00
TreeHugger Robot
ba99e9c72c Merge "Merge "Add PID info into ANR crash log header" am: 2fe972c822 am: 5d57502c89 am: 5dbe26f0f1 am: 4ae323995d" into oc-dev 2017-05-12 20:48:28 +00:00
Michael Wachenschwanz
b6d30e1404 Merge "Fix JobSet getJobsByUser" into oc-dev 2017-05-12 20:47:52 +00:00
Dianne Hackborn
f4dd3711d1 Work on issue #38242094: Activity manager oom adj computation seems broken
This shouldn't change any behavior, but improve the reason we
report for each process's oom_adj / proc state level.  There are
two significant things going on here:

1. We now consider a bump up in proc state to be just as significant
as a change in oom_adj, and accordingly update the reason when this
happens.  Given how many proc stats we now have mapped to some of
the single oom_adj levels, this matches your expectation to have the
reason be why it is at that proc state and not just some random
other thing at that level.

2. There is special handling of an app at the top state connecting
to another app, deciding the actual state to apply at the end.  This
was not at that point updating the reason, so anything the top app
is connected to would get the top state but myseriously have some other
reason, looking very broken.  We now propagate the reason over.

Test: manual

Change-Id: Idecbe206d73e7c4cbd989ef6faf3b1679e06c088
2017-05-12 13:37:48 -07:00
Aurimas Liutikas
8d6b3ec6de Allow users to quickly focus the minute field in TimePicker.
Set imeOptions to be actionNext for the hour field of TimePicker to
allow users to jump to the next field using the keyboard.

Bug: 36863243
Test: Manual, keyboard now shows next button instead of enter that moves
      focus to the next field.

Change-Id: Ia9d6137d14579ba5b99fbb714a78423cc75b5fa0
2017-05-12 13:37:43 -07:00
Youngsang Cho
f97c2ffbaf Merge "Set notification TAG and style in TV PIP notification" into oc-dev
am: c82737b98f

Change-Id: I94ff6a930b42471d9707dfe7fd5e32c501fba2ee
2017-05-12 20:32:55 +00:00
TreeHugger Robot
c82737b98f Merge "Set notification TAG and style in TV PIP notification" into oc-dev 2017-05-12 20:26:57 +00:00
Eugene Susla
445728052b Merge "Avoid activity leak via Companion callback" into oc-dev
am: 6c97781468

Change-Id: Ia40f15fac8dd2b4fc24a38d557d3cd853cd30bfa
2017-05-12 20:26:39 +00:00