Commit Graph

253881 Commits

Author SHA1 Message Date
Hugo Benichi
90cbc5b444 Fix missing IpConnectivity metrics
The IpConnectivityLog class looks up MetricsLoggerService once only
at creation. If a IpConnectivityLog user instantiates this class too
early during the boot process, the MetricsLoggerService is not found
and no event can be recorded.

This patch makes IpConnectivityLog attempt to look up
MetricsLoggerService as long as it hasn't found it yet.

This allows IpManager and ConnectivityService to upload
android.net.metrics events.

Bug: 30490301
Change-Id: I97102b95a775ea9e90351b9887ae4661fddc2af9
2016-07-29 17:07:38 +09:00
Hugo Benichi
f9fdf87af2 IpConnectivityMetrics: no metrics upload in tests
Similarly to ApfTest, this patch changes ConnectivityServiceTest to use
a mock object instead of IpConnectivityLog so that running
ConnectivityServiceTest does not generate android.net.metrics events.

Bug: 30450301
Change-Id: Ibc0479f381f26e60baefbae15407c62aecbf6666
2016-07-29 16:58:35 +09:00
Winson
4b4ba90d66 Defaulting wallpaper offset to edge of the screen.
- To match the AOSP launcher which no longer centers the default page, 
  we now align the wallpaper to either edge of the screen (depending on 
  RTL).  This prevents a jump in the keyguard when starting the device
  due to the wallpaper offset being initialized before Launcher is 
  started and can update the offset itself.

Bug: 28795125
Change-Id: Ica96a367157aef696b361601d346774960430fbf
2016-07-29 05:46:09 +00:00
Robert Greenwalt
ea0d71390a Stop exposing LTE_CA as a rat type.
Instead add a new hidden function to ServiceState for use
by SystemUI until we get a real API in O.

bug:30480638
Change-Id: Ifd9b1fbdb74d3a408c419467b7390675fc13ea3d
2016-07-28 20:44:05 -07:00
David Friedman
acbe40ef64 Docs: Adds a redirect to allow a shorter URL for NBU page on DAC. am: a211850784
am: 00f85a4794

Change-Id: Ib2edb4aa67fadbd0cc535c1f587d8e567095d0d8
2016-07-29 03:36:39 +00:00
David Friedman
00f85a4794 Docs: Adds a redirect to allow a shorter URL for NBU page on DAC.
am: a211850784

Change-Id: If4408cf7a44273320a7154c776f8385d445406dd
2016-07-29 03:29:23 +00:00
David Friedman
a211850784 Docs: Adds a redirect to allow a shorter URL for NBU page on DAC.
Bug: 30292533
Change-Id: Ifd9ca24804d96d0e50dd0f94a028233cc2cbca4e
(cherry picked from commit 4dd89b6d86)
2016-07-29 03:25:16 +00:00
Fyodor Kupolov
773e997432 Cache package names after reboot
In case of a reboot mApkToPackageMap becomes empty, but packages can still
be installed in user 0. We need to repopulate the cache again.

Bug: 30280710
Change-Id: Ia18e93c351b5af80de434e8c5311b961b314a9fb
2016-07-28 19:53:19 -07:00
Suprabh Shukla
81bd8d79cb Merge "Ensuring KeyguardService has the correct user when it starts" into nyc-mr1-dev 2016-07-29 01:04:29 +00:00
Sungsoo Lim
90be39c7bb DO NOT MERGE: Fix CTS regression
Bug: 30297223, Bug: 30437363
Change-Id: I7b18af40e4eac2713577204428fbfb96cc346582
2016-07-29 01:02:27 +00:00
Sungsoo Lim
7a92dc9d99 DO NOT MERGE: Fix CTS regression
Bug: 30297223, Bug: 30437363
Change-Id: I7b18af40e4eac2713577204428fbfb96cc346582
2016-07-29 01:01:49 +00:00
Sungsoo Lim
edc9238514 DO NOT MERGE: Fix CTS regression
Bug: 30297223, Bug: 30437363
Change-Id: I7b18af40e4eac2713577204428fbfb96cc346582
2016-07-29 01:00:22 +00:00
Sungsoo Lim
df17644db7 DO NOT MERGE: Fix CTS regression
Bug: 30297223, Bug: 30437363
Change-Id: I7b18af40e4eac2713577204428fbfb96cc346582
2016-07-29 00:56:16 +00:00
Adarsh Fernando
d26ae56f9d Merge \"Docs: fix broken image link in platforms architecture doc\" into nyc-dev
am: eb73a791fd

Change-Id: I8869e542136224329f0a2d3335426d617fa4d95c
2016-07-29 00:54:13 +00:00
Adarsh Fernando
911d23165e Docs: fix broken image link in platforms architecture doc
am: 0ead099a87

Change-Id: I31f417f372c9b09b708eca2685e5927a2a128e7d
2016-07-29 00:54:11 +00:00
Adarsh Fernando
eb73a791fd Merge "Docs: fix broken image link in platforms architecture doc" into nyc-dev 2016-07-29 00:41:02 +00:00
Felipe Leme
aba9743643 Use SurfaceControl.screenshot() instead of screencap for screenshots.
Change-Id: I5a9e7bbc5f3ae176ac5ae7209a133526992e92d4
Fixes: 30429392
2016-07-28 17:31:45 -07:00
David Friedman
0f42315485 Merge \"Docs: Adds a redirect to allow a shorter URL for NBU page on DAC.\" into nyc-dev
am: e67d1573eb

Change-Id: Ib4205f7720dcaca2f9ac2ed49b2cd06fdf397080
2016-07-29 00:21:31 +00:00
David Friedman
26c2bbca45 Docs: Adds a redirect to allow a shorter URL for NBU page on DAC.
am: 4dd89b6d86

Change-Id: I7490d787de713a597969e61f91eb8624a76947a4
2016-07-29 00:21:29 +00:00
Dirk Dougherty
aa308c94c9 Doc change: remove deprecated intl versions of notifications guidelines. am: 223a1727cc
am: 8478151729

Change-Id: Iaca8e1e20c479684289ad9d5b4278976e1f5a180
2016-07-29 00:21:25 +00:00
David Friedman
e67d1573eb Merge "Docs: Adds a redirect to allow a shorter URL for NBU page on DAC." into nyc-dev 2016-07-29 00:12:17 +00:00
Dirk Dougherty
8478151729 Doc change: remove deprecated intl versions of notifications guidelines.
am: 223a1727cc

Change-Id: I3e10459cb9698ea9aa9a3739769fd31bbda25f83
2016-07-29 00:08:10 +00:00
David Friedman
4dd89b6d86 Docs: Adds a redirect to allow a shorter URL for NBU page on DAC.
Bug: 30292533
Change-Id: Ifd9ca24804d96d0e50dd0f94a028233cc2cbca4e
2016-07-28 17:07:46 -07:00
Dirk Dougherty
223a1727cc Doc change: remove deprecated intl versions of notifications guidelines.
Bug: 28768849
Change-Id: Id38ce9f9a26ff7b6e77a55baa7feb0b93aa58f82
2016-07-28 23:29:48 +00:00
Doris Ling
781f4386dc Merge "Default fingerprint swipe to disabled." into nyc-mr1-dev 2016-07-28 23:28:18 +00:00
Suprabh Shukla
323d2bbc34 Ensuring KeyguardService has the correct user when it starts
Because RetailDemoModeService was switching user before KeyguardService
was started, KeyguardViewMediator was missing the call to setCurrentUser
on user switch. Setting the current user from keyguardState in
onServiceConnected, if there was a user switch that happened earlier.
Also changed RetailDemoModeService to switch user after it receives boot
phase BOOT_COMPLETE.

Bug: 30038980
Change-Id: I142570529097199ccc50849297ae67ca49d35534
2016-07-28 16:16:53 -07:00
Kazuhiro Inaba
ad0f7793c7 Cap minimum visibilty of floating windows by the real size.
Without the cap, say, a 40dp window cannot snap to the left edge,
and one CTS is failing due to this in freeform mode.

BUG=30037893
TEST=run cts --class android.widget.cts.PopupWindowTest \
      --method testUpdateDimensionAndAlignAnchorViewWithOffsets

Change-Id: I474ca4ce519bba39d3e16ec8620b1176a3c52834
(cherry picked from commit 63e24d1791)
2016-07-28 22:48:45 +00:00
Craig Donner
cae8cdf91a Revert "Remove coarse location pre-grant for preinstalled VrListenerServices."
Bug: 30480340

This reverts commit d430f1a0be.

Change-Id: I97cbc7cef715aca92dbe8a590177f74a98bb04f7
2016-07-28 22:45:34 +00:00
TreeHugger Robot
6cecc8dc27 Merge "update shared libraries for system apps" into nyc-mr1-dev 2016-07-28 22:03:28 +00:00
Adarsh Fernando
0ead099a87 Docs: fix broken image link in platforms architecture doc
Change-Id: Ie6a9f6c475633336b45cb74719c2cf0724e54971
2016-07-28 14:59:05 -07:00
TreeHugger Robot
65e3c7420d Merge "Set secure setting when all preloaded apps are installed" into nyc-mr1-dev 2016-07-28 21:53:02 +00:00
Makoto Onuki
82c2e88890 Merge "Relax isUserRunning check and allow in-profile calls" into nyc-mr1-dev 2016-07-28 21:33:14 +00:00
Doris Ling
d01217c0c2 Default fingerprint swipe to disabled.
If Settings.Secure.SYSTEM_NAVIGATION_KEYS_ENABLED is not set, default it
to 0 to diable fingerprint swipe.

Bug: 30416729
Change-Id: I292aa696216facc8eaefd1f4bd698f6e5708dc85
2016-07-28 13:50:12 -07:00
Todd Kennedy
6058df65e6 update shared libraries for system apps
After removing updates for a system package, we weren't updating its
shared libraries when we should have. Make it so.

NOTE: This didn't affect device boot because we update all of the
shared libraries for all system applications after scanning packages.

Bug: 30266503
Change-Id: I8edf4344228fb3e793e7648ea70a041cb5db6af6
2016-07-28 13:28:16 -07:00
Fyodor Kupolov
51ce8ee3b1 Set secure setting when all preloaded apps are installed
Bug: 30280710
Change-Id: Id87b51c53b1e553a6ab0a257be93baf7d31b6fe5
2016-07-28 13:22:26 -07:00
Makoto Onuki
8198deacb5 Relax isUserRunning check and allow in-profile calls
Bug 30475753

Change-Id: I739ee7e259f041f5e133edf048b6b54cb7a770db
2016-07-28 13:10:42 -07:00
Sudheer Shanka
72de4ddb46 Add installer app check in PM.deletePackage.
- Update PM.deletePackage to check if an app trying to delete a package
  is the same app that installed it.
- Update system apps to be orphans to allow silent deletion. This will
  make sure managed provisioning is not affected.

Fixes: 30280938
Change-Id: Ideab5a47eee2a00e7eefa9119112e37c3118783f
2016-07-28 13:09:02 -07:00
John Reck
abf66de147 Merge "Drop less aggressively" into nyc-mr1-dev 2016-07-28 19:59:13 +00:00
Adam Lesinski
3a45979ab0 Fix nesting of sample XML code in complex-resources doc am: 79a5b91d0d
am: d779894510

Change-Id: I1c747c97fe2a3474c97f5ca97706d9c25e1ea28d
2016-07-28 19:42:11 +00:00
Adrian Roos
23c14fc01c DozeLog: Properly initialize
Adds lazy initialization to all DozeLog traces
that are called externally. Also fixes a bug
where certain traces initialized after logging,
thus missing the first log.

Change-Id: If75d6cc048f76435856f1c570b66cd6ef96e5ee2
Fixes: 30225249
2016-07-28 12:33:20 -07:00
Adam Lesinski
d779894510 Fix nesting of sample XML code in complex-resources doc
am: 79a5b91d0d

Change-Id: I6c2e2aabf079005df5dc0eea8bcaa04f6438c3fc
2016-07-28 19:31:27 +00:00
TreeHugger Robot
ca5310dd5f Merge "Follow up for I420bee8a11d430b1e52ded050536e56a85a48800" into nyc-mr1-dev 2016-07-28 19:20:00 +00:00
Adrian Roos
7bb38a941b HIC: Add report facility for overzealous anti-falsing
Bug: 27405075
Change-Id: I15e5d601af3c7cc067371bbe51c873d2ce15ec83
2016-07-28 12:17:57 -07:00
Adam Lesinski
533159b4f9 Merge "DO NOT MERGE Change KernelUidCpuTimeReader Slog.wtf to Slog.e" into nyc-mr1-dev 2016-07-28 19:08:30 +00:00
Adam Lesinski
82a4d6f93b DO NOT MERGE Change KernelUidCpuTimeReader Slog.wtf to Slog.e
There is a known issue in the kernel uidcputime module that triggers
the WTF, which has a cost to the system. Convert to a regular log
instead.

Bug:28950306
Change-Id: I7cbb3138f644075f0d9d65ce8b52bd835eb270fd
2016-07-28 19:08:04 +00:00
Adam Lesinski
79a5b91d0d Fix nesting of sample XML code in complex-resources doc
Bug:30447181
Change-Id: Icea1580f6d919585d488befd62bfa16be7b4a0a6
(cherry picked from commit 4d1e2adf60)
2016-07-28 19:06:53 +00:00
Adam Lesinski
c8c98ce254 Merge "Fix nesting of sample XML code in complex-resources doc" into nyc-mr1-dev 2016-07-28 19:06:17 +00:00
Robert Greenwalt
0a39c8f1c9 Merge "Add support to hide LTE+ in UI." into nyc-mr1-dev 2016-07-28 19:01:40 +00:00
Julia Reynolds
aef7b7242e Merge "Do less work on configuration change." into nyc-mr1-dev 2016-07-28 18:56:28 +00:00
Kevin Hufnagle
c89c87a041 Merge \"docs: Relocated all intl versions of \"Network Security Config\"\" into nyc-dev
am: 7fc84dbd86

Change-Id: I1c2f6c401e5e7e90ce615386a8569ba6d914215a
2016-07-28 18:31:48 +00:00