313046 Commits

Author SHA1 Message Date
Jaekyun Seok
467ef375b7 Rebase enabled overlays for every PackageParser.generateActivityInfo() call
PackageParser.generateActivityInfo() generates ApplicationInfo as well.
So enabled overlays should be rebased for the ApplicationInfo to keep
the overlay path info correctly.

Test: building succeeded and tested on sailfish device.
Bug: 37179769
Change-Id: I12727fd27c1d4cf37ad63b333792108a82efccd6
2017-04-11 09:53:42 +09:00
Svet Ganov
f20a037ba2 Move API for disabling an autofill service to the manager
Test: the topic has a CTS test

bug:37170723

Change-Id: I2be18968ea8df0fd3fb070fe2efc3e811b0e5a76
2017-04-10 17:43:44 -07:00
TreeHugger Robot
aedca2e55d Merge "Cache mEphemeralAppsDisabled state" into oc-dev 2017-04-11 00:43:39 +00:00
Adam Lesinski
ec8f353668 Merge "OverlayManagerService: Make broadcasts/updates explicit" into oc-dev 2017-04-11 00:04:41 +00:00
Zhijun He
916d8ac650 ImageReader/Writer: add usage flag support
Also add an ImageWriter ctor to take additional arugment (format)

Test: ImageReader and Writer CTS tests
Bug: 32766711
Change-Id: I99e3862dd5b9a85c9df7879c14c84b68a35718ec
2017-04-10 23:38:32 +00:00
Adam Lesinski
6f1a917134 Make sure system UI context has the same LoadedApk as system context
When the system Application object is created, it should be shared by
both system and system UI context.

Bug: 37111478
Test: - Open settings
Test: - adb shell am crash com.android.settings
Test: - with crash dialog open, press volume keys
Test: - observe no crash
Change-Id: I2b4656680d25fe61fee69c01ee10522aac4e2942
2017-04-10 16:35:19 -07:00
Chad Brubaker
04088837b5 Merge "Fix READ_PHONE_NUMBERS label" into oc-dev 2017-04-10 23:34:21 +00:00
TreeHugger Robot
754c46db37 Merge "Fix double-detach DualTimer bug" into oc-dev 2017-04-10 23:33:45 +00:00
Jack Yu
9f63ac3536 Deprecated ACTION_PRECISE_DATA_CONNECTION_STATE_CHANGED
This broadcast intent will no longer work for the apps
running in the background. Apps should use Connectivity
Manager to listen for network changes.

Test: Telephony sanity tests
bug: 37156634
Change-Id: I5297cc5a624857d3e11a6d5fdf9369ab99ce88d4
2017-04-10 16:23:32 -07:00
TreeHugger Robot
3750fd24c6 Merge "AAPT2: Share split functionality between link and optimize" into oc-dev 2017-04-10 23:22:47 +00:00
Daniel Nishi
a6bd937c93 Merge "Fix crash when measuring storage." into oc-dev 2017-04-10 23:12:21 +00:00
Fan Zhang
c1ae9cd296 Update string description and char limits
Change-Id: Idba5977e614094c3a96b1101f1234f26433300c8
Fix: 36680364
Test: builds
2017-04-10 16:08:30 -07:00
Todd Kennedy
7cf918ed2d add debug logs
Test: TreeHugger
Change-Id: I4b12acb43aa4af7a5587842fe5e2528fee8f4fed
2017-04-10 15:11:22 -07:00
Bookatz
4a3eda992b Fix double-detach DualTimer bug
DualTimer attempted to detach its subTimer twice when reset(true) was
called, once explicitly and once via a call to the main timer. This
fixes that problem by getting rid of the explicit detach in reset.

Bug: 37208694
Test: runtest -x
frameworks/base/core/tests/coretests/src/com/android/internal/os/BatteryStatsTests.java
and manually looked for "Removed unknown observer" error in logcat.

Change-Id: Ic5ff7d799d46236a74ab0825e108bef40bac0360
2017-04-10 14:28:00 -07:00
Keun-young Park
b706bb7e52 ignore RemoteException from pm if shutdown is already on-going
- In new shutdown flow, adb is guaranteed to be alive while system server
  is alive.
- power manager can be killed before system server is killed.
- This leads into RemoteException for shutdown request to power manager.
- If shutdown is already on-going (=sys.powerctl set), the RemoteException
  should be ignored.

bug: 37096155
Test: adb shell svc power reboot|shutdown and check output to adb
Change-Id: Ia90a900d55123bd7c1bf57c90c49d35332ebfdf5
2017-04-10 20:55:03 +00:00
Roozbeh Pournader
aa3ee8e079 Update fontchain_lint to test new emoji font
The new emoji font has been update to Unicode 10/Emoji 5, and has a
new mechanism for flag fallbacks. It also shares glyphs between
gendered emoji and non-genders ones.

Test: make fontchain_lint passes
Bug: 34688862
Bug: 33276970
Bug: 34738377
Change-Id: I4d43b8c777deb93be1e6a784eaa109e2e7febd7d
2017-04-10 13:52:20 -07:00
Tyler Gunn
4774fb36d0 Add getSelfManagedPhoneAccounts() TelecomManager API.
This is consistent with the existing getCallCapablePhoneAccounts API
which is used to get the phone accounts capable of placing phone calls.

Test: CTS
Bug: 34159263
Merged-In: I1396c63a6882947cd66721528e53b6964a9091e0
Change-Id: I1396c63a6882947cd66721528e53b6964a9091e0
(cherry picked from commit 8931707058c2680878aacc5e6b4150a9aedc0f4d)
2017-04-10 20:20:47 +00:00
Todd Kennedy
4a30689414 Merge "send broadcast to the right users" into oc-dev 2017-04-10 20:10:17 +00:00
Wale Ogunwale
a09111e745 Merge "Do not set outActivity if value is null." into oc-dev 2017-04-10 20:04:10 +00:00
Dan Willemsen
3dcf031866 Remove .(ll)ndk suffix from (ll)ndk_library
Soong handles these automatically now.

Bug: 33241851
Test: Android-aosp_arm.mk is the same before/after
Test: build.ninja is the same before/after
Test: build-aosp_arm.ninja is the same before/after
Change-Id: Ic10796e75bb886cc3f92c234714ab3e6c85112df
2017-04-10 12:54:37 -07:00
Fyodor Kupolov
433d68713f Cache mEphemeralAppsDisabled state
Init mEphemeralAppsDisabled in systemReady when settings provider
is available.

Registered content observers for ENABLE_EPHEMERAL_FEATURE and
WEB_ACTION_ENABLED.

Test: manual triggering enable_ephemeral_feature=1/0
Fixes: 36869938
Fixes: 36895304
Change-Id: I0051c45bb209d86041b967a409f8a95967df21dc
2017-04-10 12:53:47 -07:00
Christopher Tate
24757146d1 Ensure the system boots with a halfway sane time/date
Just in case the kernel or vendor glue don't initialize the system time
sensibly, we now make sure the current time at boot is at least up to the
build time of the system disk image.

Bug 36736983
Test: manual

Change-Id: I46f776300ca4f5ad01396fc17c83fc833e1713f9
2017-04-10 12:44:09 -07:00
Sudheer Shanka
73edcd7328 Merge "NetworkPolicyManagerService: fix deadlock" into oc-dev 2017-04-10 19:28:31 +00:00
Andrii Kulian
c2ec7bf965 Merge "Fix activity move between displays" into oc-dev 2017-04-10 19:20:37 +00:00
Todd Kennedy
4efa14c784 send broadcast to the right users
Change-Id: Ibda2d922cd58d6ca1c1a4ecdccaa25e5c71c6320
Fixes: 37192695
Test: manual; create restricted profile and see that users haven't been removed
2017-04-10 12:12:11 -07:00
Adam Lesinski
d0f492db03 AAPT2: Share split functionality between link and optimize
Generating splits should be possible to do from the optimize command.
This means that a lot of infrastructure around split APKs can be
shared by both the optimize and link phase.

Bug: 35925830
Change-Id: Ia88b9e4bff300a56353b2f7a4a2547c8eb43a299
Test: manual
2017-04-10 11:59:18 -07:00
Jerry Zhang
0015a15353 Merge "Just broadcast intent to bring up MTP/PTP as soon as switching function" into oc-dev 2017-04-10 18:52:00 +00:00
Dmitry Dementyev
d401163599 Merge "Make visible only accounts for which authenticator supports contacts operations for callers with READ_CONTACTS permission." into oc-dev 2017-04-10 18:30:53 +00:00
Bryce Lee
1d8b1afeaf Do not set outActivity if value is null.
Recent changes passed down the nullable array to a method where it
was not being properly checked.

Change-Id: Ibf940f9225e4c9901869188aa55a04d0908015c3
Fixes: 37197666
Test: manual via bug repro steps.
2017-04-10 11:06:17 -07:00
Geoffrey Pitsch
415e454f55 Fix race condition in removeForegroundServiceFlag
Also fix flake in our tests.

Test: runtest systemui-notification
Fixes: 36550043
Fixes: 36551790
Change-Id: I910e9233a17ef325bcb173c50c00d9982dc72224
2017-04-10 13:52:07 -04:00
Chad Brubaker
1d99079ef4 Fix READ_PHONE_NUMBERS label
Change-Id: If4a254092168d9f7b133a58b59dd946f64cefdae
Fixes:37207265
Test: builds
2017-04-10 10:48:35 -07:00
Wale Ogunwale
9b7a8272d8 Don't ensure config for activity that is about to be invisible
We were relaunching an activity in the docked stack that is been
dismissed because we call ensure configuration on it due to the
resize of it been moved to the fullscreen stack. This isn't needed
as the activity is about to become invisible since it is been moved
to a stack that isn't visible.
We now ensuring the configuration if:
- The stack the activity is in shouldn't be visible.
- The activity is currently stopped or stopping.

Change-Id: I6adac6b11a0db4b100e623e4074e169660206567
Fixes: 37118176
Test: Activity in docked stack isn't relaunched when dismissed.
2017-04-10 10:44:18 -07:00
TreeHugger Robot
c922c4827a Merge "Add an API to enable disable safebrowsing in WebView" into oc-dev 2017-04-10 16:36:48 +00:00
TreeHugger Robot
0ac8fd7adb Merge "Add ICompanionDeviceManager.getAssociation overload with explicit userId" into oc-dev 2017-04-10 15:06:10 +00:00
Erik Kline
e9ec87d0d4 Merge "Tethering: support Local-only Hotspot mode for downstreams" into oc-dev 2017-04-10 14:57:49 +00:00
Bryce Lee
9c80a16c45 Merge "Update decor LayoutParams when window is already added." into oc-dev 2017-04-10 14:22:53 +00:00
Andrei Stingaceanu
e812e7dc2e Merge "AutoSize TextView - fix measurements" into oc-dev 2017-04-10 12:48:36 +00:00
Charles He
4286c5768d Merge "VPN: cancel always-on notification with new id" into oc-dev 2017-04-10 12:43:36 +00:00
Erik Kline
5f2b7992cf Tethering: support Local-only Hotspot mode for downstreams
Test: as follows
    - built (bullhead)
    - flashed
    - booted
    - "runtest frameworks-net" passes
Bug: 31466854

Change-Id: Ia50e28c8ce0af8cdd7ac63217d921aff213668e7
2017-04-10 21:42:16 +09:00
Eric Sandness
c9a6e75682 Merge "Fix mock of setApplicationRestrictions()" into oc-dev 2017-04-10 12:18:16 +00:00
TreeHugger Robot
b96891e0e3 Merge "DngCreator: Populate baseline exposure tag" into oc-dev 2017-04-10 10:04:05 +00:00
Andrei Stingaceanu
549482bfcb AutoSize TextView - fix measurements
The BoringLayout measurements for auto-size are
incorrect. Removed those and kept the StaticLayout
measurements.

Bug: 36940118
Test: cts-tradefed run cts-dev -m CtsWidgetTestCases -t\
      android.widget.cts.TextViewTest

Change-Id: I772ade08ed26efac05ca56cb7df8cfec0327633b
2017-04-10 09:56:32 +00:00
Hugo Benichi
446c9c9172 NetworkPolicyManagerService: fix deadlock
Callers of addNetworkPolicy() were not taking locks in the correct order
inside NetworkPolicyManagerService:
  - addNetworkPolicy() is an internal method that calls
    setNetworkPolicies which takes both mUidRulesFirstLock and
    mNetworkPoliciesSecondLock in order.
  - both callers of addNetworkPolicy, mWifiStateReceiver and
    mConnReceiver via ensureActiveMobilePolicy, were taking
    mNetworkPoliciesSecondLock before calling addNetworkPolicy.
    - this causes the order of locking to be reversed, which can cause a
    deadlock when another concurrent codepath in
    NetworkPolicyManagerService tries to take both locks in the correct
    order.

This patch fixes this issue by wrapping both problematic codepaths into
addNetworkPolicy() with a lock on mUidRulesFirstLock.

Test: build, flashed, NetworkPolicyManagerServiceTest passes
Bug: 36972283
Change-Id: If7888c11aef8b628e1b013224075c4c75eae0022
2017-04-10 09:56:23 +09:00
TreeHugger Robot
eca0d421d1 Merge "Fix counting problems in StopwatchTimer." into oc-dev 2017-04-09 18:54:34 +00:00
Charles He
15297a67d3 VPN: cancel always-on notification with new id
Previously we used 0 for the id of the "Always-on VPN disconnected"
notification, as did many other system services. In a recent CL, an
effort was made to assign a dedicated id to each of these system
notifications. Unfortunately, this CL only changed the id in the call to
NotificationManager#notify(), but not NotificationManager#cancel(). This
causes the notification to persist even when always-on VPN is turned off
by the user.

This CL changes the id in the cancel() call, thus fixing the issue.

Bug: 37175930
Test: manually enable and disable always-on and observe the notification
Change-Id: I39c7325c78479afe3dc9e1764d54406bd721b067
2017-04-08 22:03:42 +01:00
TreeHugger Robot
73e510e6fa Merge "Import translations. DO NOT MERGE" into oc-dev 2017-04-08 08:01:11 +00:00
TreeHugger Robot
c2f554292e Merge "Import translations. DO NOT MERGE" into oc-dev 2017-04-08 07:59:30 +00:00
TreeHugger Robot
ce1e6999a0 Merge "Import translations. DO NOT MERGE" into oc-dev 2017-04-08 07:58:44 +00:00
TreeHugger Robot
99c95f8dd8 Merge "Import translations. DO NOT MERGE" into oc-dev 2017-04-08 07:53:26 +00:00
TreeHugger Robot
53df9f871a Merge "Import translations. DO NOT MERGE" into oc-dev 2017-04-08 07:49:42 +00:00