Commit Graph

63250 Commits

Author SHA1 Message Date
Chet Haase
8b9ed44f8d Various doc cleanups
Issue #6439958  More R.attr breakage
Issue #918412  android.graphics.Paint.FontMetricsInt fields & methods need doc
Issue #917387  javadoc bug: Canvas.EdgeType has minimal documentation
Issue #18948460 [DAC-bug] LinearLayout xml layout_weight parameter is missing description

Change-Id: Idb289ca778b3f316923757405460031ce7a5e1e9
2016-08-26 06:50:21 -07:00
Keun-young Park
badbbae6fa allow external USB host management
- Setting config_UsbDeviceConnectionHandling_component leads into
  launching specified Activity whenever USB device is connected.
- This allows external Activity to manage USB device based on
  its own setup and settings.
- Device access can be passed to other app with permission update
  by UsbManager.grantPermission.
- added UsbDeviceConnection.resetDevice() to reset USB device connected.
  This is necessary to get device out from AOAP.
- Test requires installing UsbHostExternalManagmentTestApp and
  AoapTestHost to USB host, and AoapTestDevice to USB Device.

bug: 26404209
Change-Id: I8e77ddc646c15454d9b2ecf1356924cf6351fc28
2016-08-24 15:00:08 -07:00
TreeHugger Robot
d3ca5980f7 Merge "Refactored whitelist restrict background uids." 2016-08-24 21:38:53 +00:00
Svetoslav Ganov
9a79a4bea4 Merge "resolve merge conflicts of eeeebd3 to master" 2016-08-24 20:59:42 +00:00
Makoto Onuki
bc3ee12097 Merge "Add api to update user_setup_completed flag to allow e2e testing in ManagedProvisioning" 2016-08-24 15:53:09 +00:00
Victor Chang
9bfc65f321 Add api to update user_setup_completed flag to allow e2e testing in ManagedProvisioning
Bug:30031808
Change-Id: Idd4b230931718a6d10f0fc41cdcf9bccb5c6354c
2016-08-24 11:48:09 +01:00
Svet Ganov
890a210e41 resolve merge conflicts of eeeebd3 to master
Change-Id: I3aa0d1b9228be408837f7dd93a9b8268e564fc65
2016-08-24 00:13:36 -07:00
Svetoslav Ganov
eeeebd346a Only sync adapters with access can see an account - framework am: 5cb2973495
am: 721402e75a

Change-Id: I361b009afa6c6e658157e6e04bf88096e8331fd0
2016-08-24 02:08:19 +00:00
Svetoslav Ganov
721402e75a Only sync adapters with access can see an account - framework
am: 5cb2973495

Change-Id: I615f02c04578fa23f182a3591419139071114aef
2016-08-23 23:35:13 +00:00
TreeHugger Robot
2e09d14f48 Merge "Bring back wtf() for missing services." 2016-08-23 22:46:51 +00:00
Adrian Roos
8fdf26ecfb Merge "Ambient: Pulse for every noisy notification exactly once" into nyc-mr1-dev am: bd43552975 am: 24eaf0c700
am: 7dd485d858

Change-Id: I6854beaa24a24fff06523ae76fd207d5783f77e9
2016-08-23 22:33:04 +00:00
Svetoslav Ganov
5cb2973495 Only sync adapters with access can see an account - framework
It was possible for a sync adapter without accounts access to
see the account which it is supposed to sync which can be used to
identify the user. This change ensures that only sync adapters
with account access can run (which results in seeing the account),
otherwise we involve the user to approve access only to this account.

A sync adapter can access an account if one of these is true:
 - it is signed as the authenticator for this account
 - has the GET_ACCOUNTS permission
 - has an auth token for the account
 - it is a preinstalled app (system or privileged)

The main thing we need to figure out is if the extra prompts
for giving access to a sync adapter to the account create too
much friction.

bug:28163381

Change-Id: Ie083bb681b5a2aed81ca5f6a062193a175fad77e
2016-08-23 21:43:27 +00:00
Jeff Sharkey
d79d203b35 Bring back wtf() for missing services.
Publish DropBox extremely early during boot process so that it can
pick up wtf() calls while booting.

Bug: 28634953
Change-Id: Ie71d53fc125ebc47fa08ef59a8b7e4f66f2e805c
2016-08-23 15:19:18 -06:00
TreeHugger Robot
eabb482ab8 Merge "Removed the POLICY_ALLOW_BACKGROUND_BATTERY_SAVE constant." 2016-08-23 21:18:26 +00:00
Hongming Jin
ebae3b55b7 Merge "Only return password for account session flow if the caller is signed with system key and have get_password permission." 2016-08-23 19:38:49 +00:00
Felipe Leme
46b451fa7d Refactored whitelist restrict background uids.
On Android N, the list of UIDs whitelisted was kept in a separate array
and XML tag, while in reality it should be a new UID
policy (POLICY_ALLOW_METERED_BACKGROUND).

This change refactors NetworkPolicyManagerService to use the new UID
policy, although without removing any of its existing methods (but
marking them as deprecated).

Test: m -j32 FrameworksServicesTests && adb install -r -g ${ANDROID_PRODUCT_OUT}/data/app/FrameworksServicesTests/FrameworksServicesTests.apk && adb shell am instrument -e class "com.android.server.NetworkPolicyManagerServiceTest" -w "com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner"

Test: cts-tradefed run commandAndExit cts --skip-device-info --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker --skip-preconditions -m CtsHostsideNetworkTests --abi armeabi-v7a -t com.android.cts.net.HostsideRestrictBackgroundNetworkTests

BUG: 28791717

Change-Id: I39869efda554ca0b736dd2380e439474f91dfbe6
2016-08-23 12:34:37 -07:00
Felipe Leme
8546a44480 Removed the POLICY_ALLOW_BACKGROUND_BATTERY_SAVE constant.
That constant was created back in 2014 in the intial Battery Saver
implementation, but it's not used anymore (since the power saving
whitelist is fetched from DeviceIdleController).

Test: m -j32 FrameworksCoreTests &&  adb install -r -g
${ANDROID_PRODUCT_OUT}/data/app/FrameworksCoreTests/FrameworksCoreTests.apk
&& adb shell am instrument -e class
"android.net.NetworkPolicyManagerTest" -w
"com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner"

BUG: 28791717

Change-Id: Ic2c0bcb9736ce8b40e04fd644953e68241d06a69
2016-08-23 12:28:06 -07:00
TreeHugger Robot
0166811fad Merge "Separate transaction direction for fragment transitions." 2016-08-23 19:23:02 +00:00
TreeHugger Robot
4f5503bc6a Merge "Clarify FileObserver docs for null value." 2016-08-23 18:40:05 +00:00
Phil Weaver
017eecace1 Merge "Merge ag/1290921 to master." 2016-08-23 18:25:40 +00:00
Ned Burns
312a7289dc DO NOT MERGE Cherry-Pick: Add ViewConfiguration.getScaledScrollFactor()
am: a5b41c88ec

Change-Id: I89907ec2fa66229a77f959d8b3459211a4cd0da0
2016-08-23 18:16:55 +00:00
Todd Kennedy
d64d0f9e83 No need to check package name am: afb5269ad6 am: b9de7e33a3
am: 8860c34b32

Change-Id: If42958ce2661e7516a245954daa6da4a6897c2a2
2016-08-23 18:16:08 +00:00
Fyodor Kupolov
1dfcc09161 Added getDataPreloadsMediaDirectory am: 19551a8d8d am: c98c7e9da1 am: ca1a630ccf
am: bcc3c019d3

Change-Id: I2fc16cccb580cbd3441cddae2ab1db0c49d05336
2016-08-23 18:08:03 +00:00
Hongming Jin
368aa19040 Only return password for account session flow if the caller is signed
with system key and have get_password permission.

Bug: 30455516
Change-Id: I78484c59e4de1dff685ab91a0a8e7a756fffd9bf
2016-08-23 11:05:46 -07:00
Jorim Jaggi
6ace777436 Change retail mode wallpaper (1/2) am: 6c902d0453 am: 9d0879c6ac am: 3d19454ec9
am: e4af99d6b7

Change-Id: Ia74d06c44aa2b6d8bd75fa3db4fa5f5772c218d3
2016-08-23 18:04:57 +00:00
Adrian Roos
7dd485d858 AppErrors: Don't suppress dialogs when ANR_SHOW_BACKGROUND is set am: 6a7e08920c
am: 5a461b65d0

Change-Id: I2915c6ee2408dbe5942e77d26acdf47e478ee8c0
2016-08-23 18:03:34 +00:00
Adam Powell
10b133cc9e Only dispatch window visibility aggregation for targetSdk >= N am: 64e1ba4398 am: 02abbe8d4c am: ca3a267478
am: 7cc5539a03

Change-Id: I241adaa27bb952d2b826721100944d569ac57149
2016-08-23 18:00:35 +00:00
Ned Burns
b8e74df82d Merge "DO NOT MERGE Cherry-Pick: Add ViewConfiguration.getScaledScrollFactor()" into cw-f-dev 2016-08-23 17:52:58 +00:00
Andrei Stingaceanu
1136e450e3 Merge "TextView - lazy GestureDetector creation for ClickableSpans" 2016-08-23 17:00:38 +00:00
Todd Kennedy
8860c34b32 No need to check package name am: afb5269ad6
am: b9de7e33a3

Change-Id: If2b7a9bdf2a3cb5ae05049916596087606e8a01b
2016-08-23 16:56:16 +00:00
Fyodor Kupolov
bcc3c019d3 Added getDataPreloadsMediaDirectory am: 19551a8d8d am: c98c7e9da1
am: ca1a630ccf

Change-Id: I43f40049cc3fd8ae8cd6a9f7219047a260b4032e
2016-08-23 16:54:29 +00:00
Adrian Roos
5a461b65d0 AppErrors: Don't suppress dialogs when ANR_SHOW_BACKGROUND is set
am: 6a7e08920c

Change-Id: I0a3713010a0c6e487257995bd34165348f5fc2a4
2016-08-23 16:52:23 +00:00
Jorim Jaggi
e4af99d6b7 Change retail mode wallpaper (1/2) am: 6c902d0453 am: 9d0879c6ac
am: 3d19454ec9

Change-Id: Ibd859202fd2db910170e8bda6f8c947cd05486f7
2016-08-23 16:43:54 +00:00
Adam Powell
7cc5539a03 Only dispatch window visibility aggregation for targetSdk >= N am: 64e1ba4398 am: 02abbe8d4c
am: ca3a267478

Change-Id: I906793dda8f825882b562ab39822274cb5a0a1c7
2016-08-23 16:39:52 +00:00
TreeHugger Robot
374f9a690b Merge "AppErrors: Don't suppress dialogs when ANR_SHOW_BACKGROUND is set" into nyc-mr1-dev 2016-08-23 16:39:45 +00:00
Phil Weaver
0dbf913d78 Merge ag/1290921 to master.
Original commit:
Dispatch a11y events in separate thread.

Moves the IPCs into a separate thread, where they should affect
jank a lot less.

Bug: 30183085
Change-Id: I7bc8a777fe76dd76f661cc3e3e1d45a2a28df0d2
2016-08-23 09:27:04 -07:00
Jeff Sharkey
902316d553 Clarify FileObserver docs for null value.
Change-Id: I7dc0b0d26220d6eb82f956a9860cfb6aeccfd12f
Test: none
Bug: 30511606
2016-08-23 10:24:56 -06:00
Teng-Hui Zhu
17890318a5 Correctly report the transparent region am: f8da30dc65 am: 94a2f7e6fd
am: 0b1ef056cc

Change-Id: Ib2bb687e8c87332f3a915c3c312d55aaa50018f9
2016-08-23 16:17:57 +00:00
Andrei Stingaceanu
dc3b96ffec Merge "GestureDetector - fix longPress timeout" 2016-08-23 15:56:30 +00:00
Todd Kennedy
b9de7e33a3 No need to check package name
am: afb5269ad6

Change-Id: Ic3f3eebbb40ef5ae55e0c62003550473d23a3eb2
2016-08-23 15:37:26 +00:00
Fyodor Kupolov
ca1a630ccf Added getDataPreloadsMediaDirectory am: 19551a8d8d
am: c98c7e9da1

Change-Id: Ibde055a6d442b74e17bc07991e8ea6bd2497fe6b
2016-08-23 15:36:19 +00:00
Jorim Jaggi
3d19454ec9 Change retail mode wallpaper (1/2) am: 6c902d0453
am: 9d0879c6ac

Change-Id: I639e21420319261126227da7296e876a07976dc1
2016-08-23 15:34:06 +00:00
Adam Powell
ca3a267478 Only dispatch window visibility aggregation for targetSdk >= N am: 64e1ba4398
am: 02abbe8d4c

Change-Id: I66f8610e52f2aaf06b02fa8d369692fc2f89ee17
2016-08-23 15:33:49 +00:00
Teng-Hui Zhu
0b1ef056cc Correctly report the transparent region am: f8da30dc65
am: 94a2f7e6fd

Change-Id: Ice979b549a74f1e8e59210f2b7c7e5a6f141b9f6
2016-08-23 15:15:06 +00:00
Sailesh Nepal
607c51aadb resolve merge conflicts of 2cff241 to master
Change-Id: Ide7a24bb36c51a24bd4107c3042efc3117ea76f6
2016-08-23 08:10:12 -07:00
Tenghui Zhu
174c92aa52 Merge "Update the javaDoc for VectorDrawable and AnimatedVectorDrawable" into nyc-mr1-dev am: 5cb0c13f76
am: d4f839c477

Change-Id: Iba7c42c3284b1b4b8c3df90c82ce24723d3dfba3
2016-08-23 15:03:39 +00:00
Teng-Hui Zhu
94a2f7e6fd Correctly report the transparent region
am: f8da30dc65

Change-Id: I2fa623c2893a6cea96843f78d46fe753913b6f4d
2016-08-23 14:45:55 +00:00
Robert Carr
d4f839c477 PopupWindow: Be more consistent about Gravity calculation.
am: 798fb79866

Change-Id: Ia7c49dbe2fbe751565d6c8be46586a66c535a148
2016-08-23 14:43:21 +00:00
Sailesh Nepal
2cff2417cd resolve merge conflicts of ad31603 to cw-f-dev
am: bbfb97461d

Change-Id: I8c497533297df55ef4aac85ca2d0d981a057b9d4
2016-08-23 14:15:31 +00:00
Sailesh Nepal
bbfb97461d resolve merge conflicts of ad31603 to cw-f-dev
Change-Id: I970fe17c234f9b99142980f685c3c4efee4767fc
2016-08-23 07:04:30 -07:00