Commit Graph

7786 Commits

Author SHA1 Message Date
Keun-young Park
eefa94b96d Merge "fs_stat: ignore quota fix caused by tree optimization" into oc-dev am: f04390ed49
am: c5c30239d6

Change-Id: Ide5358102ff89310fbf987fc67f38104acd304be
2017-04-19 16:20:16 +00:00
Keun-young Park
c5c30239d6 Merge "fs_stat: ignore quota fix caused by tree optimization" into oc-dev
am: f04390ed49

Change-Id: I6c1a80a4a74e44973f08cefe7c7e392ea6e109a6
2017-04-19 16:16:54 +00:00
Keun-young Park
6bea235195 fs_stat: ignore quota fix caused by tree optimization
- tree optimization leads into quota fix which is not a real fix.
- Distinguish such case from real file system fix to get fs statistics
  correctly.
- This is only for correct fs stat metric collection. There is no
  functionality change in device side.
- Full parsing is only run when fs fix is detected from fs_stat.
  Examplt of fsck fix that will be ignored as optimization:
  e2fsck 1.43.3 (04-Sep-2016)
  Pass 1: Checking inodes, blocks, and sizes
  Inode 877141 extent tree (at level 1) could be shorter.  Fix? yes

  Pass 1E: Optimizing extent trees
  Pass 2: Checking directory structure
  Pass 3: Checking directory connectivity
  Pass 4: Checking reference counts
  Pass 5: Checking group summary information
  [QUOTA WARNING] Usage inconsistent for ID 10038:actual (71667712, 1000) != expected (71671808, 1000)
  Update quota info for quota type 0? yes

  [QUOTA WARNING] Usage inconsistent for ID 10038:actual (59555840, 953) != expected (59559936, 953)
  Update quota info for quota type 1? yes

  /dev/block/platform/soc/624000.ufshc/by-name/userdata: ***** FILE SYSTEM WAS MODIFIED *****
- also added unit test for the fsck log parsing

bug: 36391645
Test: many reboots with fs_stat check, runtest frameworks-services -c com.android.server.BootReceiverFixFsckFsStatTest
Change-Id: I86a97a3b50ee573db51d19d2cd243b8f7795a165
2017-04-18 21:39:05 -07:00
Torne (Richard Coles)
1383a35c6f Merge "Add logging to WebView zygote package preload." into oc-dev am: 4396a74208
am: 061f809ae2

Change-Id: I3494be9bdd0827abb3fec827b63022042311dc8e
2017-04-18 23:56:23 +00:00
Torne (Richard Coles)
061f809ae2 Merge "Add logging to WebView zygote package preload." into oc-dev
am: 4396a74208

Change-Id: Ia2253843589ccb740706a8659b962c0da125d097
2017-04-18 23:51:57 +00:00
TreeHugger Robot
4396a74208 Merge "Add logging to WebView zygote package preload." into oc-dev 2017-04-18 23:43:25 +00:00
Casey Burkhardt
673e34e380 Merge "Minor UI adjustments to a11y button chooser" into oc-dev am: 585f7c1b20
am: 6d3b647619

Change-Id: Ib8a88a88e45c413023ade808fe230b7f7f1fa1fd
2017-04-18 21:31:08 +00:00
Casey Burkhardt
6d3b647619 Merge "Minor UI adjustments to a11y button chooser" into oc-dev
am: 585f7c1b20

Change-Id: If24ee756971f9322e0130983d065bb7ab291f12a
2017-04-18 21:22:33 +00:00
Torne (Richard Coles)
deeb6ade92 Add logging to WebView zygote package preload.
This is a potentially slow event and having a timestamp for when it
started/completed may help to track down a currently-open bug (as well
as enable us to see how long preloading took). This only happens once
per boot and once per WebView update so won't cause a significant amount
of logging.

Bug: 37347817
Test: check for messages in logcat on first use of WebView
Change-Id: Ib6c50eea71324f81cda5b5b1ac91f9dc806e0ab4
2017-04-18 17:19:49 -04:00
Casey Burkhardt
585f7c1b20 Merge "Minor UI adjustments to a11y button chooser" into oc-dev 2017-04-18 21:09:04 +00:00
Abodunrinwa Toki
2a68c9c4f9 Merge "FloatingToolbar: Rules for ordering menu items." into oc-dev am: 6d149bc953
am: ab95d6c9de

Change-Id: I105f471b60bf06775f80e5f9ac3ec9b4b78632dd
2017-04-18 13:13:27 +00:00
Abodunrinwa Toki
ab95d6c9de Merge "FloatingToolbar: Rules for ordering menu items." into oc-dev
am: 6d149bc953

Change-Id: I2cb81342813f3ea402044e9c067a066d76873f94
2017-04-18 13:08:26 +00:00
Abodunrinwa Toki
6d149bc953 Merge "FloatingToolbar: Rules for ordering menu items." into oc-dev 2017-04-18 12:58:33 +00:00
Robert Carr
00f123a39b Merge "DecorView: Avoid changing shadow size in Pinned Stack." into oc-dev am: cc824e77c8
am: 75fd277d58

Change-Id: I18c6eb12b3ca23d25e513be0deece45d2ac39f22
2017-04-18 02:42:04 +00:00
Robert Carr
75fd277d58 Merge "DecorView: Avoid changing shadow size in Pinned Stack." into oc-dev
am: cc824e77c8

Change-Id: I05368f1e5067b62652bd6b3d80dd438fe432723f
2017-04-18 01:37:12 +00:00
Casey Burkhardt
4c6436f880 Minor UI adjustments to a11y button chooser
- Allow scrim-touch or downward-drag to dismiss the chooser
- Ensure the bottom drawer takes up only as much space as it needs
  to prevent it from being draggable

Bug: 36871827
Test: Manual - verified appearance and behavior changes
Change-Id: I1779814a7ee386f4a32faed5c0eb799ebe4706e5
2017-04-17 16:36:09 -07:00
Robert Carr
232b5f820e DecorView: Avoid changing shadow size in Pinned Stack.
It seems at the end of the animation, sometimes we will
come to think we have focus, before we have properly
updated mStackId. This in-and-of itself seems like
somewhat of an issue...but I'm not inclined to dig too
deeply at the moment. For now just ensure a static shadow
size in the pinned stack.

Bug: 37425446
Test: Manual
Change-Id: I379f7a6de51670c90eacb52a5be5e17784be8ac5
2017-04-17 16:03:08 -07:00
Abodunrinwa Toki
6eecdc934c FloatingToolbar: Rules for ordering menu items.
- The assist menu item should always appear first
- Only the assist menu item should have an icon + text label

The description above enforces the expected UX without breaking
existing apps. Previously, apps couldn't have icons + text for a
menu item (we only rendered text for such items). If we don't
enforce that the assist menu item (android.R.id.textAssist) appears
first, then this item could potentially be rendered in a different
position for apps that specify an order number lower than that
specified for the assist menu item.

Test: Included in this cl.

Bug: 35989798

Change-Id: I56c71450c850e1d8cd80d54d4e17a6390823485f
2017-04-16 23:07:14 +01:00
Eugene Susla
1c6b5765bb Merge "API for notification listener for Companioon apps" into oc-dev am: 0d88904744
am: 0fb1104b25

Change-Id: I33326544bd1eef9abc900ea13cb2fdf32ad06cbe
2017-04-15 04:28:02 +00:00
Eugene Susla
0fb1104b25 Merge "API for notification listener for Companioon apps" into oc-dev
am: 0d88904744

Change-Id: Ie6093be3e7699481473eeb597bc4d604728330a2
2017-04-15 04:22:48 +00:00
Eugene Susla
cf00adebec API for notification listener for Companioon apps
Test: 1. Trigger the confitrmation dialog.
Ensure it looks exactly like the one from settings.
2. Call an API without associating the appa first
Ensure exception is thrown with a message mentioning the need to associate 1st
Change-Id: I94d4116e1988db869ed445ae3fd018c50590e3f4
2017-04-14 19:01:53 -07:00
Svetoslav Ganov
dfcfee7a58 Merge "[DO NOT MERGE] Fix associations serialization optimization bug" into oc-dev am: 21da54587b
am: 3b3d9f8415

Change-Id: If448d00811124f5a12d9cae166e2c81a83d13f02
2017-04-15 00:02:01 +00:00
Roozbeh Pournader
59e987e922 Merge "Support overriding display locale for SuggestedLocaleAdapter" into oc-dev am: 2a05c5edb7
am: 2ad47527f8

Change-Id: Ib0639bc5e7b5e761d800b3e87915b59cd8523bb0
2017-04-15 00:00:36 +00:00
Svetoslav Ganov
3b3d9f8415 Merge "[DO NOT MERGE] Fix associations serialization optimization bug" into oc-dev
am: 21da54587b

Change-Id: I332d4aeeb7eb14a0b51a60382c8efedf4e1d5375
2017-04-14 23:34:22 +00:00
Roozbeh Pournader
2ad47527f8 Merge "Support overriding display locale for SuggestedLocaleAdapter" into oc-dev
am: 2a05c5edb7

Change-Id: I4752951eee34ec5e98368a1b0a68ecb3cbf449cb
2017-04-14 23:33:01 +00:00
Svetoslav Ganov
21da54587b Merge "[DO NOT MERGE] Fix associations serialization optimization bug" into oc-dev 2017-04-14 23:22:31 +00:00
TreeHugger Robot
2a05c5edb7 Merge "Support overriding display locale for SuggestedLocaleAdapter" into oc-dev 2017-04-14 23:22:12 +00:00
Eugene Susla
4df89bcb31 [DO NOT MERGE] Fix associations serialization optimization bug
There mas a missing defensive copy causing false positive detections of
"associations not changed" case, leading to xml file not being updated once
at least one record is present

Bug: 30932767
Test: Associate at least two different devices and ensure the xml has both.
Change-Id: Ic0dc615dd2b847e137555c1084c616831b4dde83
2017-04-14 23:21:44 +00:00
TreeHugger Robot
ca1bd4b541 Merge "Add isSmallBatteryDevice flag to ActivityManager." 2017-04-14 22:42:06 +00:00
Michael Kwan
15eb998e65 Add isSmallBatteryDevice flag to ActivityManager.
Bug: 37351903
Change-Id: I6fed08c35474b10987388070eafb7b16e6944638
2017-04-14 12:34:46 -07:00
Roozbeh Pournader
3f01530a68 Support overriding display locale for SuggestedLocaleAdapter
The method now accepts a locale for overriding the labels
"Suggested", "All regions", etc.

Fixes: 31257462
Test: Manual
Change-Id: I6e8c95d8d3e7b05a284b171f2cf2819d32e53d8d
2017-04-14 11:13:27 -07:00
Alan Viverette
efc602c307 Merge "Remove unnecessary casts on calls to findViewById" into oc-dev
am: 7c8ab2651b

Change-Id: I82826b63a3d6bc527c696158bfab98fe438f9847
2017-04-14 17:04:19 +00:00
TreeHugger Robot
7c8ab2651b Merge "Remove unnecessary casts on calls to findViewById" into oc-dev 2017-04-14 16:56:28 +00:00
Alan Viverette
51efddbd3b Remove unnecessary casts on calls to findViewById
Just frameworks/ this time. More paths to come.

Bug: 24137209
Test: make -j32
Change-Id: Iff27abd26fa43296ac2fff8f534fc6742d2ae80c
2017-04-14 11:15:50 -04:00
Casey Burkhardt
549a439b53 Merge "Icon assets for magnification" into oc-dev
am: 4d386d5ce7

Change-Id: I2d75a1bdbaff4ec53b7c7a903374932e092de2cf
2017-04-14 07:48:19 +00:00
TreeHugger Robot
4d386d5ce7 Merge "Icon assets for magnification" into oc-dev 2017-04-14 07:41:40 +00:00
Jeff Sharkey
4e544771dd Merge "Relax enforcement of GET_USAGE_STATS permission." into oc-dev
am: f5d5e5e4bf

Change-Id: I2af664620bdaf6fa4551aade80e56decf0995838
2017-04-14 04:30:50 +00:00
Casey Burkhardt
c2492739da Icon assets for magnification
Adds updated assets for the magnification icon to
AccessibilityButtonChooserActivity.

Bug: 37295643
Test: Manual - verified icon appearance in chooser
Change-Id: I1ddfb01889c86b481b2df0f924be6c0dc8daae04
2017-04-13 20:52:11 -07:00
TreeHugger Robot
f5d5e5e4bf Merge "Relax enforcement of GET_USAGE_STATS permission." into oc-dev 2017-04-14 03:37:37 +00:00
Lorenzo Colitti
d6af00f5e4 resolve merge conflicts of 4db137b059 to oc-dev-plus-aosp
Test: builds
Change-Id: I786ece9b82e47691855c8549e174345080964b91
2017-04-14 11:37:12 +09:00
Jeff Sharkey
e5e2569a1f Relax enforcement of GET_USAGE_STATS permission.
This matches the logic used in all other places where we check for
this app-op.

Test: builds, boots
Bug: 37315351
Change-Id: I1fef7d30709d24c3f8978d33271a15b37b2ccc26
2017-04-13 19:54:51 -06:00
Jesse Hall
e20f42b8a9 Merge "Allow disabling GL preload even if gfxdriver isn't updatable" into oc-dev
am: 8cafe5d9b4

Change-Id: I024b5cf450aa2832bdd2638bd83b6d5048b80a7f
2017-04-14 01:10:49 +00:00
TreeHugger Robot
4db137b059 Merge "Connectivity metrics: add transports pretty printing" into oc-dev 2017-04-14 01:08:54 +00:00
TreeHugger Robot
8cafe5d9b4 Merge "Allow disabling GL preload even if gfxdriver isn't updatable" into oc-dev 2017-04-14 01:00:46 +00:00
Jesse Hall
5d911fe6bb Allow disabling GL preload even if gfxdriver isn't updatable
Bug: 34611670
Test: set ro.zygote.disable_gl_preload=1, shell start,
      confirm GL driver isn't loaded in zygote process
      by checking /proc/<pid>/maps

Change-Id: Ieb739bd7eba365917684cf830d78c15fea06f8cf
2017-04-13 15:53:28 -07:00
Hugo Benichi
a365bace7a Connectivity metrics: add transports pretty printing
This patch also
  - partially reverts commit f927f0c52e
    that exposed a getTransports method on NetworkCapabilities.
  - moves enumerateBits to BitUtils (as unpackBits), and adds the
    reverse packBit method.

Bug: 34901696
Test: manually looked at $ adb shell dumpsys connmetrics list
Change-Id: I1650daf8fc9c1b6e0d986d2285f81e888be8847f
Merged-In: Id04f9080e7f75608deeb49306aec34941e71794c

(cherry picked from commit df456e13a1)
2017-04-13 22:17:50 +00:00
Bookatz
53b7ff2014 Merge "Collect background stats: syncs" into oc-dev
am: a8fc7bff5a

Change-Id: Id3f2d7b2a77c74657416e492519f2205bc46218a
2017-04-13 21:31:05 +00:00
TreeHugger Robot
a8fc7bff5a Merge "Collect background stats: syncs" into oc-dev 2017-04-13 21:20:14 +00:00
Adam Lesinski
51d94c82af Merge "BatteryStats: Remove reading of cpu power" into oc-dev
am: af85d84050

Change-Id: I671a51d53c035d40cb1af1428f7c0f4093445aed
2017-04-13 20:22:19 +00:00
Adam Lesinski
af85d84050 Merge "BatteryStats: Remove reading of cpu power" into oc-dev 2017-04-13 20:09:51 +00:00