Commit Graph

83367 Commits

Author SHA1 Message Date
TreeHugger Robot
f3149fd352 Merge "Pass dumpsys priority to IServiceManager" 2017-09-26 19:01:10 +00:00
Kweku Adams
2cdb576a5a Merge "incidentd: creating PolicyProto for NotificationManager" 2017-09-26 18:38:35 +00:00
Charles He
e66a5bcac1 Merge "StatusBar: add DISABLE2_SYSTEM_ICONS flag" 2017-09-26 15:32:35 +00:00
Hugo Benichi
d7a9617ea7 Merge changes Ia47e566b,Ib94d79a9 am: b9e2ddfc10 am: a2161c5ccb am: b91bd88c5e
am: f43db3bf94

Change-Id: I4226f31aaea21a7ad2bff7ac8b0a85acc5151cfc
2017-09-26 13:30:24 +00:00
Hugo Benichi
f43db3bf94 Merge changes Ia47e566b,Ib94d79a9 am: b9e2ddfc10 am: a2161c5ccb
am: b91bd88c5e

Change-Id: Ied2b31c9d1219b8aebf5fec085ab598b77bede6e
2017-09-26 13:05:41 +00:00
Hans Boehm
6f0d970b2e Merge "Naming fix and add comments" am: 3c03d5bd2b am: 24b9851605 am: 4a901144fe
am: c9532e8ac6

Change-Id: Ibe7d825b3b491cd9e5fb1ef07adaa9f71719e0dd
2017-09-26 13:03:11 +00:00
Peng Xu
00ae599474 Merge changes from topic "equalizer_1" am: 1ba697e29b am: 46f2249f46 am: 01ad27a0eb
am: b855edc41f

Change-Id: I499360f6cb7ecdf5c8580faf066c9ac0c0aea59a
2017-09-26 12:49:03 +00:00
Hugo Benichi
b91bd88c5e Merge changes Ia47e566b,Ib94d79a9 am: b9e2ddfc10
am: a2161c5ccb

Change-Id: If1125419d50b8291bcb056dd4bc7ecd6ea2b5342
2017-09-26 12:43:28 +00:00
Hans Boehm
c9532e8ac6 Merge "Naming fix and add comments" am: 3c03d5bd2b am: 24b9851605
am: 4a901144fe

Change-Id: I1e2446f67e0505d30edb230f2dde70855c9fe00c
2017-09-26 12:42:41 +00:00
Peng Xu
b855edc41f Merge changes from topic "equalizer_1" am: 1ba697e29b am: 46f2249f46
am: 01ad27a0eb

Change-Id: Ie717da6b0e336701bdacc2949877bc0c1d71cb58
2017-09-26 12:38:01 +00:00
Hans Boehm
4a901144fe Merge "Naming fix and add comments" am: 3c03d5bd2b
am: 24b9851605

Change-Id: Ib2f4ade384b33efc5d54374ce13e26e256f4c8d3
2017-09-26 12:23:12 +00:00
Peng Xu
01ad27a0eb Merge changes from topic "equalizer_1" am: 1ba697e29b
am: 46f2249f46

Change-Id: Icd3c715dfed772d05b8314a394aad2725a9937e0
2017-09-26 12:17:39 +00:00
Hugo Benichi
a2161c5ccb Merge changes Ia47e566b,Ib94d79a9
am: b9e2ddfc10

Change-Id: I0cac456f778db78d76d2225b79ce42526a6d2d19
2017-09-26 11:46:30 +00:00
Hans Boehm
24b9851605 Merge "Naming fix and add comments"
am: 3c03d5bd2b

Change-Id: Ib35c874f56f87757904553ceeffb4d363eff196e
2017-09-26 11:12:19 +00:00
Peng Xu
46f2249f46 Merge changes from topic "equalizer_1"
am: 1ba697e29b

Change-Id: I0b5dabe42c0ab59fab63ea653392dd4d99b7d967
2017-09-26 11:07:28 +00:00
Hugo Benichi
67c5e03b54 Extract RingBuffer class from NetdEventListenerService
This patch takes out the ring buffer array added for NFLOG wakeup packet
events logging and extract it into its own class for reuse. This new
RingBuffer class has the two minimal useful functions append() and
toArray().

Bug: 65164242
Bug: 65700460
Test: runtest frameworks-net, with new unit test
Change-Id: Ib94d79a93f4e99661b7d0fac67117b91d57af980
2017-09-26 14:14:16 +09:00
Kweku Adams
5ec78cd58f incidentd: creating PolicyProto for NotificationManager
The previous code saved a String in the proto like
"NotificationManager.Policy[priorityCategories=PRIORITY_CATEGORY_REMINDERS,PRIORITY_CATEGORY_EVENTS,PRIORITY_CATEGORY_MESSAGES,PRIORITY_CATEGORY_CALLS,PRIORITY_CATEGORY_REPEAT_CALLERS,priorityCallSenders=PRIORITY_SENDERS_STARRED,priorityMessageSenders=PRIORITY_SENDERS_STARRED,suppressedVisualEffects=SUPPRESSED_EFFECT_SCREEN_OFF]".
This unfortunately would mean that the String would have to be parsed on
the server-side, which kinda defeats the purpose of migrating to protos,
so I made a proto for this :)

BUG: 65750824
Test: flash device and check incident.proto output, comparing it to the previous output
Change-Id: I87607dc7b72ce3519132da23167b4bdce3b7ef4c
2017-09-25 16:33:44 -07:00
Svet Ganov
c2840f9f9f Merge "Hide autofill popup if anchor removed" into oc-mr1-dev am: 8e5e30c5eb
am: 89934be670

Change-Id: Idc925398f0b28ffe7220634cd9b74fba22de7278
2017-09-25 22:41:17 +00:00
Svet Ganov
89934be670 Merge "Hide autofill popup if anchor removed" into oc-mr1-dev
am: 8e5e30c5eb

Change-Id: Idd876a073c90f1b87f23e09b1993dc723eb6bdd5
2017-09-25 22:30:07 +00:00
TreeHugger Robot
8e5e30c5eb Merge "Hide autofill popup if anchor removed" into oc-mr1-dev 2017-09-25 22:24:25 +00:00
Sudheer Shanka
f39df68b71 Merge "Add shutdown reason as extra when triggering ACTION_REQUEST_SHUTDOWN." 2017-09-25 20:42:52 +00:00
Charles He
6a79b0dff1 StatusBar: add DISABLE2_SYSTEM_ICONS flag
Add a StatusBarManager flag to control the visibility of system icons
such as connectivity info, battery, etc. Note that the clock is
controlled separately through DISABLE_CLOCK.

Also note that this flag differs from DISABLE_SYSTEM_INFO, which
controls the system icons and the clock as a whole, but only works for
the collapsed status bar (CollapsedStatusBarFragment).

Bug: 65813398
Test: runtest systemui
Test: manual, by using a modified version of TestDPC and
      DevicePolicyManagerService

Change-Id: Icb61c7bb1a625edd818be7a66d7f15c3e812237b
2017-09-25 21:29:27 +01:00
Adrian Roos
f2ebc40286 Merge "FRP: Add config flag for disabling credential FRP" into oc-mr1-dev am: 73c93f02f7
am: 392a9b5c1d

Change-Id: Ifeb044d767b03c799fa028e6efc967b88fae7b53
2017-09-25 18:47:59 +00:00
Adrian Roos
392a9b5c1d Merge "FRP: Add config flag for disabling credential FRP" into oc-mr1-dev
am: 73c93f02f7

Change-Id: I647bfc52892b305eb59f446812e142b609172bd4
2017-09-25 18:38:23 +00:00
Adrian Roos
73c93f02f7 Merge "FRP: Add config flag for disabling credential FRP" into oc-mr1-dev 2017-09-25 18:33:01 +00:00
Sudheer Shanka
292637f51a Add shutdown reason as extra when triggering ACTION_REQUEST_SHUTDOWN.
When BatteryService triggers ACTION_REQUEST_SHUTDOWN intent, add the reason
for shutdown as extra to indicate low battery or critical battery
thermal state.

Bug: 63736262
Test: 1/ adb shell cmd battery unplug && adb shell cmd battery set level 0
      2/ Power on the device
      3/ Verify sys.boot.reason == shutdown,battery
Test: 1/ adb shell cmd battery set temp 700
      2/ Power on the device
      3/ Verify sys.boot.reason == shutdown,thermal,battery

Change-Id: If20a36ef53f8bcbfae4114df08f741ec1dcd7df9
2017-09-25 11:20:37 -07:00
Vishnu Nair
0576819519 Pass dumpsys priority to IServiceManager
Modify IServiceManager to accept supported dumpsys priority as a bitmask
with NORMAL being the default priority. Change listServices to return
a list of services filtered by the priority or all services when the
priority is set to ALL.

BUG:27429130

Test: manual verification

Change-Id: If367ace2f37f918043f1b330568d8560676d9b78
2017-09-25 10:25:26 -07:00
Jan Althaus
6b8cbb99a4 Merge "Fixing session abandon logging bug" into oc-mr1-dev am: 4fce88dd4d
am: c7812f0fa5

Change-Id: I57abb3d7f4bce7cdda696b57f65475c02ac3b498
2017-09-25 16:03:31 +00:00
Jan Althaus
c7812f0fa5 Merge "Fixing session abandon logging bug" into oc-mr1-dev
am: 4fce88dd4d

Change-Id: I76efdf2d4878e72c2610d7f40fef98e39dfca7a1
2017-09-25 15:54:16 +00:00
Jan Althaus
f5405080bf Merge "Fixed bug in handling of OTHER as terminal" into oc-mr1-dev am: e95197a664
am: 35d91afa74

Change-Id: I7d6f531823244508d53497f0a28ba610b80c0569
2017-09-25 15:46:30 +00:00
TreeHugger Robot
4fce88dd4d Merge "Fixing session abandon logging bug" into oc-mr1-dev 2017-09-25 15:42:49 +00:00
Jan Althaus
35d91afa74 Merge "Fixed bug in handling of OTHER as terminal" into oc-mr1-dev
am: e95197a664

Change-Id: Ic48503564647c588d076f7ceefeeef38dcf3ae6c
2017-09-25 15:36:35 +00:00
TreeHugger Robot
e95197a664 Merge "Fixed bug in handling of OTHER as terminal" into oc-mr1-dev 2017-09-25 15:19:01 +00:00
Jorim Jaggi
7ace43b538 Merge "Improve window manager layout attribute dumping" 2017-09-25 15:11:30 +00:00
Adrian Roos
2adc263ce9 FRP: Add config flag for disabling credential FRP
Bug: 65258606
Test: Verify FRP still works when not disabled
Change-Id: I78e308b6eaba73c794615b1eebdbfacb334ae72f
2017-09-25 13:32:48 +02:00
Jorim Jaggi
484851b914 Improve window manager layout attribute dumping
Test: adb shell dumpsys window
Change-Id: I9c76e6a6950265b49667cc19998282ef0c682815
2017-09-25 13:31:04 +02:00
Jan Althaus
b3513a130d Fixing session abandon logging bug
Previously, making two selections quickly one after the other could lead
to the first session missing the terminal event, and the second one getting
terminated prematurely - getting marked incorrectly as abandoned.

Bug: 64914512
Test: Manually tested that logs are correct.
Change-Id: Icd75dcabe707b591f30629b9b9b42c5459ed7dda
2017-09-25 10:37:24 +02:00
Jan Althaus
34aa294b96 Fixed bug in handling of OTHER as terminal
This bug resulted in a tap on a non-default action mode item to get logged
as OTHER, followed by ABANDON.

Bug: 64914512
Test: Manually tested that logs are correct.
Change-Id: I3cdba7ccff896939e22c567843f335c54d4a97f3
2017-09-25 09:56:21 +02:00
Hans Boehm
3c03d5bd2b Merge "Naming fix and add comments" 2017-09-25 04:09:30 +00:00
Svet Ganov
77150c5fbb Hide autofill popup if anchor removed
Test: Manual
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases

bug:64601372

Change-Id: Ic55dabb99cd5015d318ab3be1231b6aa5c67294e
2017-09-23 10:13:06 -07:00
Wale Ogunwale
e7b1499ccc Merge "Moved ActivityDisplay to its own class file." 2017-09-23 16:03:48 +00:00
Wale Ogunwale
9dcf94656d Moved ActivityDisplay to its own class file.
Clean-up before the next windowing mode refactor.
Also:
- Change the return type of ActivityStack.shouldBeVisible from int
to boolean since it is now binary.
- Removed ActivityStack.mRecentTasks. Changed call points to use
the reference in ActivityStackSuperior.
- Removed ActivityStack.mStacks and ActivityStackSuperior.mStack.
Changed call points to use reference in ActivityDisplay.
- Removed a few unused methods and variables.

Fixes: 66452053
Test: Existing tests pass.
Change-Id: Id9f4c668cdfc638820ad1777db85ac4d2619b85a
2017-09-23 08:28:55 -07:00
TreeHugger Robot
8672d81355 Merge "Fixing method asymmetry in Parcel" 2017-09-23 04:18:46 +00:00
Treehugger Robot
1ba697e29b Merge changes from topic "equalizer_1"
* changes:
  Fixing code formatting to comform to checkstyle
  Add sensor HAL process into dump list
2017-09-23 02:39:42 +00:00
Peng Xu
aad139a2d3 Merge changes from topic "equalizer"
* changes:
  Update Java doc of SensorManager.createDirectChannel
  sensors: pass sensor handle along with injected event
2017-09-23 00:17:10 +00:00
Peng Xu
62f2c87ee3 Fixing code formatting to comform to checkstyle
Fix following types of issue
  * over 100 char/line
  * missing space
  * trailing spaces
  * array bracket position
  * variable naming convention (some cases)
  * indentation
  * long expression wrapping operator position
  * missing curly brace for one line scope
  * function modifier order

Things not changed in this CL:
  * Redundant public modifiers.
  * A few local variable names.
  * Suggested @deprecate but function is actually @removed.

Test: m and m docs
Change-Id: I5c22648888487edaa5954026a166cfd810a8a912
2017-09-22 16:58:14 -07:00
Hans Boehm
eb6d62cd33 Naming fix and add comments
Also fix up imports to make repohooks happy and some whitespace issues.

A very small step towards making this code more understandable.

Bug: 65760710

Test: Builds.
Change-Id: I0396c06bb303e0b06ad0cbbbff4fdc1ac527ac6c
2017-09-22 15:49:48 -07:00
Felipe Leme
15b9eb5dac Merge "Add metrics (and moar logging) for when a service disables itself." into oc-mr1-dev am: 6f50d16338
am: cbbc364ec0

Change-Id: Iba0a0e66168a5716aa7cfc2f068fa922d19b02e9
2017-09-22 21:26:36 +00:00
Felipe Leme
cbbc364ec0 Merge "Add metrics (and moar logging) for when a service disables itself." into oc-mr1-dev
am: 6f50d16338

Change-Id: Ia7e1893b74bf043d39300b04dc3cc85b18f40d11
2017-09-22 21:11:08 +00:00
TreeHugger Robot
6f50d16338 Merge "Add metrics (and moar logging) for when a service disables itself." into oc-mr1-dev 2017-09-22 21:04:02 +00:00