314629 Commits

Author SHA1 Message Date
David Farrow
14826e5489 Merge "documentation fixes" into nyc-mr1-dev 2017-04-27 17:01:15 +00:00
TreeHugger Robot
039dcadc88 Merge "Use ActivityRecord.realActivity when comparing waiting visible" into oc-dev 2017-04-27 16:43:05 +00:00
TreeHugger Robot
b258552a1c Merge "Support profile global restrictions in disclosure messages." into oc-dev 2017-04-27 16:23:06 +00:00
Jorim Jaggi
f41e7664a2 Implement API council feedback for dismissKeyguard
Test: KeyguardLockedTests CTS
Change-Id: Ibc6923ebe8363644e9b52b2b53b45d918124f52d
Fixes: 37673408
2017-04-27 17:58:59 +02:00
Lorenzo Colitti
15fd4395e1 Address ConnectivityManager API comments.
Bug: 36370941
Test: marlin builds and boots
Change-Id: I693ee5270bf186c88c7c5056293519f7237504ff
2017-04-28 00:58:00 +09:00
Derek Sollenberger
0f89539de6 Disable Vulkan backend when running hwui_unit_tests.
The Vulkan backend fails to run on devices without vulkan drivers.
Until we can stub out the vulkan drivers for those devices we find
an acceptable solution.

Test: hwui_unit_tests on device w/out vulkan
Bug: 37422708
Change-Id: I3d7c21882053459f25ca1eb5648cdf5dfd4c333e
2017-04-27 11:30:20 -04:00
Julia Reynolds
04225787d8 Merge "New constant for new settings screen." into oc-dev 2017-04-27 15:11:37 +00:00
Stefan Ramsauer
ba9ab17434 Merge "Fix parameter name mismatch in getResourceIdentifier." into oc-dev 2017-04-27 15:09:26 +00:00
Julia Reynolds
80b180761d New constant for new settings screen.
Bug: 36561295
Test: make
Change-Id: I0e2ec6d7b372a9594f8b583540804dde1b79de1a
2017-04-27 14:52:04 +00:00
Jason Monk
24370bfd30 Merge "Revert "Status bar updates" DO NOT MERGE" into oc-dev 2017-04-27 14:43:55 +00:00
Jason Monk
7e6c83c752 Revert "Status bar updates" DO NOT MERGE
Test: runtest systemui
Fixes: 37626598
This reverts commit d1ba5fbb54a02fad0c68f71183078527bfa9bd49.

Change-Id: I12c70b67fafd46ec98b1c1ee28b911e19afbf6e5
2017-04-27 14:24:35 +00:00
Felipe Leme
d114642764 Fixed requestAutofill().
It should behave like notifyViewEntered() but passing a flag, but the current
implementation always start a new session, which is a problem on partitions.

Fixes: 37709350

Test: existing CtsAutoFillServiceTestCases pass
Test: new PartitionedActivityTest.testAutofill4PartitionsManually pass

Change-Id: Ia625a8fa067670e888c2861609ede039abf0f474
2017-04-27 07:09:30 -07:00
George Mount
4a71842dbd Merge "Address API council feedback." into oc-dev 2017-04-27 14:06:16 +00:00
TreeHugger Robot
a97608caa8 Merge "SmartSelection: Use downloaded model file." into oc-dev 2017-04-27 13:50:58 +00:00
Jason Monk
2cddbcaa0f Merge "Guard against incorrect context use." into oc-dev 2017-04-27 13:46:54 +00:00
Erik Kline
413190bed6 Switch to WifiManager.{start,stop}SoftAp()
Test: as follows
    - built
    - flashed
    - booted
    - "runtest frameworks-net" passes
Bug: 31466854

Change-Id: I730d029128a14b936c111ae159b9708d935f4656
(cherry picked from commit ceb54c63dc7af8f11ec9eac4993a43b9e788ee2f)
2017-04-27 22:32:37 +09:00
Narayan Kamath
2e0e7f3c94 Merge "Track libcore change 03e8c7dca78a95ccf719a7." into oc-dev 2017-04-27 13:30:35 +00:00
TreeHugger Robot
28f9ada2ac Merge "Create a metrics events for ag/2085657 (DO disclosure screens)" into oc-dev 2017-04-27 13:26:26 +00:00
Narayan Kamath
a22d9fbe8c AppErrors: Refine notion of "interesting" processes for b/g ANRs.
- SystemUI is always interesting, regardless of whether it's currently
  displaying any interesting activities or not.
- Any process that hasOverlayUI or hasTopUI is considered interesting.
- Any process that hosts an active foreground service is considered
  interesting.

Bug: 36383925
Test: manual
Change-Id: I852a00344f913200020c4f80500e38ff101fe05d
2017-04-27 13:31:09 +01:00
Denis Kuznetsov
605beddfee Create a metrics events for ag/2085657 (DO disclosure screens)
Bug: 32692748
Test: Tests for functional changes are in ag/2085657
Change-Id: I6988a950ab2aa78dcb3f848b59a5b0905da7b204
Merged-In: I6988a950ab2aa78dcb3f848b59a5b0905da7b204
(cherry picked from commit 7152a41d25f0296ec5ed41c497f7666e185890eb)
2017-04-27 11:35:01 +00:00
Michal Karpinski
8aabcd377d Reenable presubmit runs for BackupSettingsTest now that it's fixed
Bug: 37684646
Test: mmma -j40 frameworks/base/core/tests/coretests, then
adb install -r ${ANDROID_PRODUCT_OUT}/data/app/FrameworksCoreTests/FrameworksCoreTests.apk, then
adb shell am instrument -w -e class android.provider.SettingsBackupTest com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner
Change-Id: I1927c08e445b914b84b55d40aba68c234d6abcb5
2017-04-27 11:52:47 +01:00
Pavel Grafov
749c7a64a7 Support profile global restrictions in disclosure messages.
Starting from Android O ENSURE_VERIFY_APPS can be enforced globally
by profile owners. To take this into account, this CL uses newer
UserManager API for getting a list of enforcing admins with their
userIds instead of just a mask.

Bug: 37158436
Test: manually
Change-Id: Id18b365668373b5aa28d59fcc4d662a2f5d133d8
2017-04-27 11:52:08 +01:00
Joachim Sauer
ccac69e11a Merge "Deprecate internal Calendar methods." into oc-dev 2017-04-27 10:49:46 +00:00
TreeHugger Robot
424dd39e25 Merge "setAffiliationIds and getAffiliationIds uses set instead of list" into oc-dev 2017-04-27 09:41:18 +00:00
TreeHugger Robot
f4362fda59 Merge "bindDeviceAdminService requires service to be proected by BIND_DEVICE_ADMIN" into oc-dev 2017-04-27 09:41:18 +00:00
TreeHugger Robot
6b36aeb491 Merge "Adds a comment to EXTRA_CONTENT_ANNOTATIONS to prevent developers from using colons in their customized annotations." into oc-dev 2017-04-27 07:26:14 +00:00
TreeHugger Robot
f147688149 Merge "Address API Council feedback." into oc-dev 2017-04-27 06:26:04 +00:00
TreeHugger Robot
60c17e06e8 Merge "Expose Companion API via shell command" into oc-dev 2017-04-27 05:56:02 +00:00
TreeHugger Robot
cc7f08e997 Merge "docs: Update EditText JavaDoc comments" into oc-dev 2017-04-27 05:24:51 +00:00
TreeHugger Robot
1e5d0768cd Merge "docs: Update Button JavaDoc comments" into oc-dev 2017-04-27 05:21:23 +00:00
Tima Vaisburd
2240ea6448 Hide getTextClassifier and setTextClassifier for WebView
Bug: 37724053
Test: Not needed, these methods have not been implemented.
Change-Id: I43c97cb13e80eeb13d53123a22230d5934b8a60d
2017-04-26 21:59:12 -07:00
TreeHugger Robot
d915c42150 Merge "Autofill binding permission fixes." into oc-dev 2017-04-27 04:56:44 +00:00
Adam Lesinski
4ca56978a9 AAPT2: Add workaround for non-standard package IDs
The dynamic ref table used to map build-time IDs to runtime IDs
is mainly used for shared resource libraries and has a few built-in
mappings (app 0x7f and framework 0x01).

Using a non-standard package ID like 0x80 causes a failure in package ID
lookup. The solution is to ship the dynamic_ref_table with an identity mapping
with any resource table that uses a non-standard package ID.

Adds some tests to ensure this works correctly.

Bug: 37498913
Test: make libandroidfw_tests
Test: make aapt2_tests
Change-Id: Ic3f67942384d34e7fdcbc94ded360e940e3ebc8a
2017-04-26 21:55:31 -07:00
TreeHugger Robot
f84467e19f Merge "Api updates" into oc-dev 2017-04-27 04:51:46 +00:00
Peng Xu
3ab258c98d Merge "[Stability]: fix system_server crash issue caused by fd leak." into oc-dev 2017-04-27 04:49:16 +00:00
TreeHugger Robot
0db47f9364 Merge "Fix volume key events are dispatched when screen is off" into oc-dev 2017-04-27 04:46:33 +00:00
TreeHugger Robot
47ca22e361 Merge "docs: Update ScrollView JavaDoc comments" into oc-dev 2017-04-27 04:29:14 +00:00
TreeHugger Robot
b312d38868 Merge "docs: Update RelativeLayout.LayoutParams JavaDoc comments" into oc-dev 2017-04-27 04:28:36 +00:00
TreeHugger Robot
01d51288df Merge "Handle package changes in autofill manager service" into oc-dev 2017-04-27 04:22:24 +00:00
TreeHugger Robot
ca105f6c29 Merge "docs: Update LinearLayout JavaDoc comments" into oc-dev 2017-04-27 04:21:15 +00:00
TreeHugger Robot
80fe019f6b Merge "docs: Update ProgressBar JavaDoc comments" into oc-dev 2017-04-27 04:12:48 +00:00
Rebecca Silberstein
720cac4536 WifiManager: add updateInterfaceIpState
Add a call to WifiManager that allows ConnectivityService to
provide interface mode change updates.  Mode variables are also
added in this CL.

A corresponding CL will be added to WifiServiceImpl.

Fixed two checkstyle errors on imports.

Bug: 31466854
Test: make
Change-Id: Iccccd2643515a09fadb29f7b7e82697aaf994189
Merged-In: Ifc2dec71cfa760ad52295db4dc26d53edc349618
Merged-In: Iabd864759181aba72766a26110ecef9f4cca3d5d
2017-04-26 21:00:12 -07:00
TreeHugger Robot
3acd16b43d Merge "Blame services for slow operations" into oc-dev 2017-04-27 03:59:58 +00:00
TreeHugger Robot
9138c5dfa7 Merge "Add device ID attestation method to keymaster" into oc-dev 2017-04-27 03:51:35 +00:00
TreeHugger Robot
21c34e2b50 Merge "Call getAllowedUid on a separate thread" into oc-dev 2017-04-27 03:50:51 +00:00
TreeHugger Robot
40ccb1b5aa Merge "Clarify some IpManager/ApfFilter debugging output." into oc-dev 2017-04-27 03:45:55 +00:00
Adrian Roos
2edb63bd6d SysUI A11y: Fix keyguard time utterance
The fancy colon on keyguard is causing issues for TalkBack.
Fixed by replacing it with a regular colon in accessibility infos.

Change-Id: Id4802a8dc422f2abb523dbbf887291d5983fd4ee
Fixes: 34949557
Test: runtest -x /frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/KeyguardClockAccessibilityDelegateTest.java
Test-Manual: Enable talkback, make sure that lockscreen time is read out correctly
2017-04-26 20:07:55 -07:00
Svetoslav Ganov
8ba6fdb3fa Merge "Drop uses-feature requirement for system process" into oc-dev 2017-04-27 03:02:00 +00:00
songjinshi
b5322b2be5 [Stability]: fix system_server crash issue caused by fd leak.
If an app incorrect use of registerListener, it will cause
system_server socket fd leak, for example:
    protected void onResume() {
        super.onResume();
        mSensorManager.registerListener(new MySensorEventListener(),
                mSensor, SensorManager.SENSOR_DELAY_UI);
Each time a new SensorEventQueue, then in the system_server
will open a new socket fd, as time increases system_server's
fd will be more than 1024 and crash, so we needed add count limit
for sensor listener to improve the system stability.

Test: use the apk attached in the issue
      https://code.google.com/p/android/issues/detail?id=258634
Bug: 37543280

Change-Id: I35006966a1638c25bb0f54611e117e16a764e12b
Signed-off-by: songjinshi <songjinshi@xiaomi.com>
2017-04-27 02:40:45 +00:00
Svet Ganov
48f10a2ab5 Handle package changes in autofill manager service
Autofill manager service was not observing package changes thus
we did not properly handle the cases of the service being updated,
added, and removed. Handling, additions is needed to properly
support restore from a backup. Fixed a few missing locks.

Test: all autofill CTS tests pass and manually tested update, add,
      and remove of autofill services.

bug:36638606
bug:36978445

Change-Id: Idd47891774ba2a4e562a1952cbb5a048211fd4e3
2017-04-26 19:22:05 -07:00