OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Control the QS label marquees." into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 21:13:04 +0000 (21:13 +0000)]
Merge "Control the QS label marquees." into pi-dev

6 years agoMerge "Disable optimize startInput in IMMS" into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 21:08:07 +0000 (21:08 +0000)]
Merge "Disable optimize startInput in IMMS" into pi-dev

6 years agoMerge "Revert "[Notif] Disable "Customize" for blocking helper"" into pi-dev
Rohan Shah [Fri, 30 Mar 2018 21:05:07 +0000 (21:05 +0000)]
Merge "Revert "[Notif] Disable "Customize" for blocking helper"" into pi-dev

6 years agoRevert "[Notif] Disable "Customize" for blocking helper"
Rohan Shah [Fri, 30 Mar 2018 20:54:37 +0000 (20:54 +0000)]
Revert "[Notif] Disable "Customize" for blocking helper"

This reverts commit 3cfc950708fe22ded741da9e99ac0b86a0de763c.

Reason for revert:
Apparently a breakage got through treehugger - I hadn't synced my changes and one of the params was incorrect. Reverting for now and rebasing before resubmit...

Bug: 77321231
Change-Id: Ib306759d6344a69f17331a6c3c9cc78d1345508b

6 years agoMerge "Update QS edit layout." into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 21:00:06 +0000 (21:00 +0000)]
Merge "Update QS edit layout." into pi-dev

6 years agoMerge "Remove bad configs by counting the number of statsd deaths" into pi-dev
Howard Ro [Fri, 30 Mar 2018 20:58:51 +0000 (20:58 +0000)]
Merge "Remove bad configs by counting the number of statsd deaths" into pi-dev

6 years agoMerge "Use unique_fd with the clear ownership." into pi-dev
Yi Jin [Fri, 30 Mar 2018 20:53:30 +0000 (20:53 +0000)]
Merge "Use unique_fd with the clear ownership." into pi-dev

6 years agoMerge "Clean up atoms.proto" into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 20:48:09 +0000 (20:48 +0000)]
Merge "Clean up atoms.proto" into pi-dev

6 years agoMerge "Clarified app behavior on REQUEST_TYPE_NONE" into pi-dev
Rahul Frias [Fri, 30 Mar 2018 20:33:24 +0000 (20:33 +0000)]
Merge "Clarified app behavior on REQUEST_TYPE_NONE" into pi-dev

6 years agoMerge changes from topic "encap-api" into pi-dev
Benedict Wong [Fri, 30 Mar 2018 20:28:19 +0000 (20:28 +0000)]
Merge changes from topic "encap-api" into pi-dev

* changes:
  Require explicitly supplied truncation length
  Clarify UDP encapsulation socket API

6 years agoMerge "Remove SignalClusterView in favor of IconManager" into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 20:22:16 +0000 (20:22 +0000)]
Merge "Remove SignalClusterView in favor of IconManager" into pi-dev

6 years agoMerge "[Notif] Disable "Customize" for blocking helper" into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 20:03:11 +0000 (20:03 +0000)]
Merge "[Notif] Disable "Customize" for blocking helper" into pi-dev

6 years agoMerge "Don't clear mPattern when clearing visual pattern." into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 20:00:22 +0000 (20:00 +0000)]
Merge "Don't clear mPattern when clearing visual pattern." into pi-dev

6 years agoUpdate QS edit layout.
Amin Shaikh [Thu, 29 Mar 2018 21:27:26 +0000 (17:27 -0400)]
Update QS edit layout.

- Update TileLayout to lay out tiles rows in a similar fashion to
LinearLayout.
- Update edit screen layout to show rounded corners, margins, and
ensure that QS tiles line up with the tiles in QS.
- Show QS status bar header above the edit screen.

Change-Id: I6c8d644787bf1875ad0d7ad056e9909dc4919ce4
Fixes: 36076720
Test: visual

6 years agoRemove chaining from ImageDecoder setters
Leon Scroggins III [Tue, 27 Mar 2018 11:47:07 +0000 (07:47 -0400)]
Remove chaining from ImageDecoder setters

Bug: 76448408
Test: Infeasible
Change-Id: Ib0ef0a9a9b0f36481ed1bbb16ecaccd180df8915

6 years agoMerge "Enable "Unlocked device required" API" into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 18:54:39 +0000 (18:54 +0000)]
Merge "Enable "Unlocked device required" API" into pi-dev

6 years agoRemove SignalClusterView in favor of IconManager
Evan Laird [Tue, 20 Mar 2018 20:58:01 +0000 (16:58 -0400)]
Remove SignalClusterView in favor of IconManager

Refactors SignalClusterView into StatusBarSignalPolicy so that it can be
used in a StatusBarIconContainer and solve all of our status bar
problems.

- Remove all uses of SignalClusterView and references to
  R.id.signal_cluster. The class still exists it's just unused now

- Add StatusBarIconHolder, which can point to StatusBarIcon,
  WifiIconState, or PhoneIconState

- StatusBarIconList.Slot. Allows for easier indexing of icons now that
  there can be multiple icons per slot

- Add StatusBarWifiView to be inflated inside of the
  StatusBarIconController when needed

- StatusBarMobile view. similar to above

- Upgrade StatusBarIconControllerImpl and StatusBarIconList to
  understand the holders and added 2 new methods to specifically handle
  wifi / phone state changes

- Create IStatusBarIconView (todo: rename). Abstracts the properties we
  want away from StatusBarIconView so that we can use an arbitrary view
  type

- NeutralGoodDrawable. Draws a light and a dark icon when needed.

- Fixes a few demo mode bugs: multi sim was broken and also turning off
  demo mode was a little broken

TODO: More tests are needed for StatusBarSignalPolicy and maybe the
IconManagers

Test: runtest systemui; visual
Bug: 63772836
Bug: 73778753
Bug: 74985733
Fixes: 74427768
Fixes: 74338687
Fixes: 74388467

Change-Id: I5621b3013cdc9638b61552bd4d7211f211eddf1b

6 years agoMerge "Add auto-grant permission slice API" into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 18:45:00 +0000 (18:45 +0000)]
Merge "Add auto-grant permission slice API" into pi-dev

6 years agoMerge "Fix fs-verity per fs-verity spec change" into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 18:43:24 +0000 (18:43 +0000)]
Merge "Fix fs-verity per fs-verity spec change" into pi-dev

6 years agoMerge "Fix MemoryFileTest coretest" into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 18:01:21 +0000 (18:01 +0000)]
Merge "Fix MemoryFileTest coretest" into pi-dev

6 years agoDon't clear mPattern when clearing visual pattern.
Vishwath Mohan [Thu, 29 Mar 2018 17:56:33 +0000 (17:56 +0000)]
Don't clear mPattern when clearing visual pattern.

This CL ensures that when clearing the lockscreen pattern in
onHandleUp(), we retain mPattern. This fixes a bug that prevents
changing from Pattern to other modalities.

Bug: 77257848
Test: Change from pattern to pin/password

Change-Id: Ied74eafd17939214c62bdd617ecef7a9974f755d

6 years agoMerge "wifi metrics(proto): Add scan throttling metrics" into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 17:58:36 +0000 (17:58 +0000)]
Merge "wifi metrics(proto): Add scan throttling metrics" into pi-dev

6 years agoMerge "Update Bluetooth codec related strings" into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 17:51:04 +0000 (17:51 +0000)]
Merge "Update Bluetooth codec related strings" into pi-dev

6 years agoMerge "Workaround HAL 1.1 program list fetching limitation by preferring FM." into...
TreeHugger Robot [Fri, 30 Mar 2018 17:50:11 +0000 (17:50 +0000)]
Merge "Workaround HAL 1.1 program list fetching limitation by preferring FM." into pi-dev

6 years ago[Notif] Disable "Customize" for blocking helper
Rohan Shah [Fri, 30 Mar 2018 17:14:22 +0000 (10:14 -0700)]
[Notif] Disable "Customize" for blocking helper

Update UI to hide customize when blocking helper is showing. Fixed a
small problem with context.getString too where it was unnecessarily
passing in a format string argument.

Test: Visually
Test: Ran atest NotifInfoTest with new test case
Fixes: 77321231
Change-Id: Ia03ea7badc7aa7ccd7b3a0e235cce2363ace9953

6 years agoMerge "Don't send idle-maint trigger broadcast as ordered" into pi-dev
Chris Tate [Fri, 30 Mar 2018 17:47:15 +0000 (17:47 +0000)]
Merge "Don't send idle-maint trigger broadcast as ordered" into pi-dev

6 years agoMerge "[Notif] Dont show blocking helper for non-blockable notifs" into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 17:43:33 +0000 (17:43 +0000)]
Merge "[Notif] Dont show blocking helper for non-blockable notifs" into pi-dev

6 years agoMerge "Fix memory leak in ShaderCache" into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 17:33:13 +0000 (17:33 +0000)]
Merge "Fix memory leak in ShaderCache" into pi-dev

6 years agoMerge "Update triggering logic for hybrid notification" into pi-dev
Salvador Martinez [Fri, 30 Mar 2018 17:25:00 +0000 (17:25 +0000)]
Merge "Update triggering logic for hybrid notification" into pi-dev

6 years agoMerge "Move HIDL calls away from the main thread" into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 17:20:26 +0000 (17:20 +0000)]
Merge "Move HIDL calls away from the main thread" into pi-dev

6 years agoMerge "Skip waiting for draw when triggering split screen from global action." into...
Winson Chung [Fri, 30 Mar 2018 17:16:59 +0000 (17:16 +0000)]
Merge "Skip waiting for draw when triggering split screen from global action." into pi-dev

6 years agoClean up atoms.proto
Chenjie Yu [Tue, 6 Mar 2018 23:48:54 +0000 (15:48 -0800)]
Clean up atoms.proto

changes are:
1) for pushed atoms, use attribution node in place of uid when
appropriate
2) name changes to be more consistent

Bug: 73823969
Test: manual test
Change-Id: Iacf7186dbd7a2282f7fe481f43dbbf92e1165b47

6 years agoMerge "Add more AppComponentFactory docs" into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 17:08:23 +0000 (17:08 +0000)]
Merge "Add more AppComponentFactory docs" into pi-dev

6 years agoMerge "Make back mic available when getting all available mic." into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 16:59:41 +0000 (16:59 +0000)]
Merge "Make back mic available when getting all available mic." into pi-dev

6 years agoMerge "Remove deprecated generateAndStoreKey method implementation" into pi-dev
Dmitry Dementyev [Fri, 30 Mar 2018 16:44:53 +0000 (16:44 +0000)]
Merge "Remove deprecated generateAndStoreKey method implementation" into pi-dev

6 years agoMerge "Catch unbinding errors" into pi-dev
Julia Reynolds [Fri, 30 Mar 2018 16:33:40 +0000 (16:33 +0000)]
Merge "Catch unbinding errors" into pi-dev

6 years agoMerge "Add OEM_PAID capability to system api" into pi-dev
Pavel Maltsev [Fri, 30 Mar 2018 16:32:52 +0000 (16:32 +0000)]
Merge "Add OEM_PAID capability to system api" into pi-dev

6 years agoMerge "API council requested tweaks to NetworkRequest." into pi-dev
Jeff Sharkey [Fri, 30 Mar 2018 16:30:24 +0000 (16:30 +0000)]
Merge "API council requested tweaks to NetworkRequest." into pi-dev

6 years agoMerge "Show media stream always when a11y is active stream" into pi-dev
Julia Reynolds [Fri, 30 Mar 2018 16:28:04 +0000 (16:28 +0000)]
Merge "Show media stream always when a11y is active stream" into pi-dev

6 years agoMerge "[QS] Override/add long click accessibility action" into pi-dev
Rohan Shah [Fri, 30 Mar 2018 15:45:53 +0000 (15:45 +0000)]
Merge "[QS] Override/add long click accessibility action" into pi-dev

6 years agowifi metrics(proto): Add scan throttling metrics
Roshan Pius [Tue, 27 Mar 2018 21:33:01 +0000 (14:33 -0700)]
wifi metrics(proto): Add scan throttling metrics

Bug: 76429171
Test: Unit tests
Change-Id: I77cd03d323e1edbb93369945532c8d2f24bffd68

6 years agoAdd auto-grant permission slice API
Jason Monk [Fri, 30 Mar 2018 15:26:56 +0000 (11:26 -0400)]
Add auto-grant permission slice API

Test: slice manager tests
Bug: 77313888
Change-Id: I21e9200c5c8cd7ff812d3f5eac997a704a9b86a2

6 years agoMerge "System notif channels updated on locale change" into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 15:39:27 +0000 (15:39 +0000)]
Merge "System notif channels updated on locale change" into pi-dev

6 years ago[Notif] Dont show blocking helper for non-blockable notifs
Rohan Shah [Thu, 29 Mar 2018 02:05:52 +0000 (19:05 -0700)]
[Notif] Dont show blocking helper for non-blockable notifs

If the notification is considered non-blockable, we don't want to show
it. Moved necessary logic around into the appropriate classes (minor
refactor).

Cached system info (IPC) in ExpandableNotifRow instead of calling so
late in the game.

Updated tests & added nonblocking checks.

Change-Id: Ic010a0b32cf6df42e9d0d2c600cbbe95a68ffde2
Bug: 74115090
Test: atest {notif tests}
Test: Visually via debug flag on sys notif

6 years agoMerge "Slices: Fix up some formatting and add examples" into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 15:09:26 +0000 (15:09 +0000)]
Merge "Slices: Fix up some formatting and add examples" into pi-dev

6 years agoMerge "Enable Last Kmsg, also fix the GZipSection test." into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 14:54:55 +0000 (14:54 +0000)]
Merge "Enable Last Kmsg, also fix the GZipSection test." into pi-dev

6 years agoMerge "Allow for the different nav bars before the device is provisioned Split window...
TreeHugger Robot [Fri, 30 Mar 2018 14:38:34 +0000 (14:38 +0000)]
Merge "Allow for the different nav bars before the device is provisioned Split window creation from content creation so I could remove and add new content once the provisioned state changed." into pi-dev

6 years agoWorkaround HAL 1.1 program list fetching limitation by preferring FM.
Tomasz Wasilczyk [Fri, 30 Mar 2018 14:37:01 +0000 (07:37 -0700)]
Workaround HAL 1.1 program list fetching limitation by preferring FM.

Bug: 75970985
Test: manual
Change-Id: I842e9b4765c5ec2479950e88b6f33aa2264a9d0b

6 years agoMerge "Make battery saver suggestion configurable" into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 14:29:30 +0000 (14:29 +0000)]
Merge "Make battery saver suggestion configurable" into pi-dev

6 years agoMerge changes from topics "niap-asym-write-pi-dev", "niap-asym-write-api-pi-dev"...
Brian Young [Fri, 30 Mar 2018 14:21:19 +0000 (14:21 +0000)]
Merge changes from topics "niap-asym-write-pi-dev", "niap-asym-write-api-pi-dev" into pi-dev

* changes:
  Restore "Add "Unlocked device required" parameter to keys"
  Add "Unlocked device required" key API

6 years agoFix memory leak in ShaderCache
Stan Iliev [Thu, 29 Mar 2018 17:33:53 +0000 (13:33 -0400)]
Fix memory leak in ShaderCache

Fix memory leak in a limited memory situation within
ShaderCache::load().

Bug: 76213660
Test: Passed ShaderCacheTest unit test, ran a build on device.
Change-Id: Ibb6ea8fe167eb22bcbbaffc4cfffac12eda98c42

6 years agoCatch unbinding errors
Julia Reynolds [Fri, 30 Mar 2018 14:19:35 +0000 (10:19 -0400)]
Catch unbinding errors

Test: none
Change-Id: Ia8ca50c7c55b86fac84a04a5e4ef2aa36ae6bf6e
Fixes: 72206319

6 years agoShow media stream always when a11y is active stream
Julia Reynolds [Fri, 30 Mar 2018 14:16:09 +0000 (10:16 -0400)]
Show media stream always when a11y is active stream

Test: manual
Bug: 76438403
Change-Id: I9da010b9bb03dfdcb48fc15e3c6d538d540f8f11

6 years agoAdd more AppComponentFactory docs
Jason Monk [Wed, 28 Mar 2018 21:46:03 +0000 (17:46 -0400)]
Add more AppComponentFactory docs

Test: TH
Change-Id: I9978d182433a71a04d019304ebe59bd7de8bfeae
Fixes: 74408467

6 years agoMerge "Remove password blacklist API" into pi-dev
Rubin Xu [Fri, 30 Mar 2018 13:38:31 +0000 (13:38 +0000)]
Merge "Remove password blacklist API" into pi-dev

6 years agoMerge "Don't exit dnd rule for old alarms" into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 13:16:46 +0000 (13:16 +0000)]
Merge "Don't exit dnd rule for old alarms" into pi-dev

6 years agoDisable optimize startInput in IMMS
Tarandeep Singh [Fri, 30 Mar 2018 00:04:44 +0000 (17:04 -0700)]
Disable optimize startInput in IMMS

Disable optimize start input for P since there are few corner cases that
are not been fully adressed. One solution could be to call finishInput() on every
window focusing-out in bug 9216494

Change-Id: I4deb0a5e5e2ba951ec551e399636736dc0208154
Fixes: 76078731
Bug: 37617707
Test: atest CtsInputMethodTestCases

6 years agoUpdate Bluetooth codec related strings
Pavlin Radoslavov [Fri, 30 Mar 2018 09:55:39 +0000 (02:55 -0700)]
Update Bluetooth codec related strings

The settings related to Bluetooth codec selection
are actually triggers. Updated the corresponding
strings to reflect that.

Bug: 67682722
Test: Manual - examined the result UI
      runtest systemui
      make -j40 RunSettingsRoboTests
      make -j40 RunSettingsLibRoboTests
Change-Id: I872414f7620931a67b028c2997b0740ae3a45986

6 years agoMerge "Update RecoveryController JavaDoc" into pi-dev
Robert Berry [Fri, 30 Mar 2018 10:37:41 +0000 (10:37 +0000)]
Merge "Update RecoveryController JavaDoc" into pi-dev

6 years agoUpdate RecoveryController JavaDoc
Robert Berry [Thu, 29 Mar 2018 16:19:38 +0000 (17:19 +0100)]
Update RecoveryController JavaDoc

Try to encode as many requirements as possible into the Recovery Agent
JavaDoc.

Bug: 70900575
Test: None, it is documentation
Change-Id: Iae05be24fa29d885f560943f256fd8d7ca692cf7

6 years agoMerge "Fix socket leaks in various android.net.Network methods." into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 09:47:51 +0000 (09:47 +0000)]
Merge "Fix socket leaks in various android.net.Network methods." into pi-dev

6 years agoMerge "Use InterfaceSet for upstream interfaces." into pi-dev
Remi NGUYEN VAN [Fri, 30 Mar 2018 09:15:13 +0000 (09:15 +0000)]
Merge "Use InterfaceSet for upstream interfaces." into pi-dev

6 years agoMerge "Add tests for IPv4 of dual stack tethering." into pi-dev
Remi NGUYEN VAN [Fri, 30 Mar 2018 09:13:50 +0000 (09:13 +0000)]
Merge "Add tests for IPv4 of dual stack tethering." into pi-dev

6 years agoUse InterfaceSet for upstream interfaces.
Remi NGUYEN VAN [Fri, 9 Mar 2018 05:07:18 +0000 (14:07 +0900)]
Use InterfaceSet for upstream interfaces.

Allows using different upstream interfaces for IPv4 and IPv6.

Bug: 38218697
Bug: 64382985
Bug: 64976379
Bug: 64995262
Bug: 64380515
Test: runtest frameworks-net, manual (with aosp/644099 applied)
(cherry-pick of aosp I3db63f7aa5255a0229253187def7590a386c5133)
Merged-In: Ic8602dd029b5a9626aaf6651315b82ab6327037c
Merged-In: I015ac946afa581be1d94f10ab766ac00f5a4ede0

Change-Id: I8c48dab5eb67e60dadbfa974122fc884f4badd15

6 years agoAdd tests for IPv4 of dual stack tethering.
Remi NGUYEN VAN [Thu, 15 Mar 2018 02:57:14 +0000 (11:57 +0900)]
Add tests for IPv4 of dual stack tethering.

Also refactoring some Tethering and TetherInterfaceStateMachine calls
to address testability issues.

This is in preparation of other work to have IPv6-only or 464xlat
tethering working.

Test: runtest frameworks-net
Bug: 38218697
Bug: 64382985
Bug: 64976379
Bug: 64995262
Merged-In: I3b91125b1a715690c2cd417b1e937e568c755d9f
Merged-In: I05de77d9b90d147bf1d6ee7f7ee19a049afddfa1
(cherry-pick of aosp I721aca4789ddfbee5a97316aae0b378d79ee2107)

Change-Id: Idfdd1b9cd5419c1f51f0fbb1eba2f36a9c12474b

6 years agoMerge "Limit the number of routes for performance" into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 08:48:25 +0000 (08:48 +0000)]
Merge "Limit the number of routes for performance" into pi-dev

6 years agoMerge "Clarify documentation for getActiveNetworkInfo and friends" into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 08:22:29 +0000 (08:22 +0000)]
Merge "Clarify documentation for getActiveNetworkInfo and friends" into pi-dev

6 years agoMerge "Relax APF version check in ApfGenerator" into pi-dev
Bernie Innocenti [Fri, 30 Mar 2018 07:54:17 +0000 (07:54 +0000)]
Merge "Relax APF version check in ApfGenerator" into pi-dev

6 years agoMerge "Allow null subscriberId in NetworkStatsManager." into pi-dev
Remi NGUYEN VAN [Fri, 30 Mar 2018 07:39:23 +0000 (07:39 +0000)]
Merge "Allow null subscriberId in NetworkStatsManager." into pi-dev

6 years agoLimit the number of routes for performance
Chalard Jean [Thu, 29 Mar 2018 05:10:44 +0000 (14:10 +0900)]
Limit the number of routes for performance

In evaluating whether "most" of the addressing space is
covered, the list of routes are obtained from a third-party
app, so it's possbile the system service stalls unless
some limit is enforced on how much work it has to do.
This change limits the number of routes to 400, as determined
by time measurement on various devices.

Bug: 74176086
Test: runtest framework-net
Change-Id: Ie4a96098bc044ade87b188839586f14dd101c100

6 years agoMerge "Add unit test ValueMetricProducer on boundary" into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 06:36:47 +0000 (06:36 +0000)]
Merge "Add unit test ValueMetricProducer on boundary" into pi-dev

6 years agoMerge "Add more hidden API on light greylist" into pi-dev
David Brazdil [Fri, 30 Mar 2018 06:23:21 +0000 (06:23 +0000)]
Merge "Add more hidden API on light greylist" into pi-dev

6 years agoRelax APF version check in ApfGenerator
Bernie Innocenti [Fri, 30 Mar 2018 04:08:26 +0000 (13:08 +0900)]
Relax APF version check in ApfGenerator

Instead of requiring an *exact* version, we now require a minimum
version. This is necessary if we wish to upgrade the APF interpreter in
vendor firmware independently of the framework code. Adding new opcodes
without changing the semantics of the old ones is always possible and
usually easy, so we can at least have a backwards-compatibility horizon
wider than a single version.

Bug: 36221302
Bug: 73804303
Change-Id: I4f1ed661afb2ede193188eb8086fbf2a8b45b33d
Test: Change extracted from aosp/647079 and tested there
(cherry picked from commit d6bf7ffea788f5753be48a487a2a3b34951dfcb8)

6 years agoRequire explicitly supplied truncation length
Benedict Wong [Wed, 28 Mar 2018 20:10:40 +0000 (13:10 -0700)]
Require explicitly supplied truncation length

Instead of providing default truncation lengths (based on RFC or
otherwise), this change imposes a restriction that the truncation length
must be supplied for all auth or aead algorithms.

Bug: 77204048
Test: Updated tests, ran on walleye
Merged-In: I4a0e2e71aa97259e56f44e7c8a2ce53135708d97
Change-Id: I4a0e2e71aa97259e56f44e7c8a2ce53135708d97
(cherry picked from commit bb7f2820f5bcccf8618078c2cbe4ea9836797e3b)

6 years agoClarify UDP encapsulation socket API
Benedict Wong [Tue, 27 Mar 2018 23:55:48 +0000 (16:55 -0700)]
Clarify UDP encapsulation socket API

This change updates the getSocket() methods for IPsec to improve clarity
of the return types, both for public APIs, and internal-only methods.

Bug: 72473753
Test: APIs updated, CTS + unit tests ran.
Merged-In: I0afebd432c5d04c47c93daa1ce616d712aa323d7
Change-Id: I0afebd432c5d04c47c93daa1ce616d712aa323d7
(cherry picked from commit 4c987ebade580d4abc8a3d549e0df90baab33140)

6 years agoRemove deprecated generateAndStoreKey method implementation
Dmitry Dementyev [Tue, 27 Mar 2018 23:58:50 +0000 (16:58 -0700)]
Remove deprecated generateAndStoreKey method implementation

Bug: 77156834
Test: GTS, apct.
Change-Id: I23791fced21308467afc60cc16efc4aee7074134

6 years agoAdd unit test ValueMetricProducer on boundary
Chenjie Yu [Sun, 25 Mar 2018 21:57:30 +0000 (14:57 -0700)]
Add unit test ValueMetricProducer on boundary

Mostly to add test to assure the corner cases are covered.
One minor logic change is if two true conditions happen, in the case
when following happen:
(bucket boundary1) -> (condition false) -> (condition true) -> (pull
triggered for the boundary1)
Previously we take the latest. Now we skip the late boundary pull.

Bug: 76384731
Test: unit test
Change-Id: I345c2210a58bf03eb91d65742573073d2668358b

6 years agoRemove bad configs by counting the number of statsd deaths
yro [Tue, 27 Mar 2018 17:30:11 +0000 (10:30 -0700)]
Remove bad configs by counting the number of statsd deaths

Bug: 75968642
Test: manual testing, statsd_test, cts test
Change-Id: Ie23e9003163b8dc554bcdc9811850091cd894000

6 years agoMerge "Rename GraphicsTypes.h to GraphicTypes.h" into pi-dev
Peiyong Lin [Fri, 30 Mar 2018 04:08:26 +0000 (04:08 +0000)]
Merge "Rename GraphicsTypes.h to GraphicTypes.h" into pi-dev

6 years agoClarify documentation for getActiveNetworkInfo and friends
Chalard Jean [Thu, 29 Mar 2018 08:45:24 +0000 (17:45 +0900)]
Clarify documentation for getActiveNetworkInfo and friends

For VPNs it's unobvious what these methods do, so document that.

Bug: 70917007
Test: Comment changes only. Checkdoc passes.
Change-Id: I31ec1aea356d88d969eaf9fc7d8c2ed13ce924eb

6 years agoAllow null subscriberId in NetworkStatsManager.
Remi NGUYEN VAN [Mon, 5 Mar 2018 09:14:56 +0000 (18:14 +0900)]
Allow null subscriberId in NetworkStatsManager.

Use a MATCH_MOBILE_WILDCARD template to avoid filtering by
subscriberId when querying statistics from NetworkStatsService.

Bug: 74038898
Change-Id: I8296220472a9ba37044dd1a5ede9bdb45d3ed339
Fixes: 74038898
Test: runtest frameworks-net, CTS tests pass
Merged-In: I1e4e283c6eaecf33d12488e41e0c524f6ff83954
Merged-In: Ia84d2c7cc63bf8b8bf30f133e0382fd7103bf490
(cherry-picked from aosp I4b39e7031416cb33b23d89aa36ff0f774eaa942f)

6 years agoMerge "Fix drawing sequence from using deprecated Canvas APIs." into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 03:14:25 +0000 (03:14 +0000)]
Merge "Fix drawing sequence from using deprecated Canvas APIs." into pi-dev

6 years agoMerge "Add isAudioOn() in HeadsetProfile" into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 03:12:51 +0000 (03:12 +0000)]
Merge "Add isAudioOn() in HeadsetProfile" into pi-dev

6 years agoMerge "Show ripples in QQS." into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 03:12:33 +0000 (03:12 +0000)]
Merge "Show ripples in QQS." into pi-dev

6 years agoClarified app behavior on REQUEST_TYPE_NONE
Rahul Frias [Mon, 12 Mar 2018 18:04:56 +0000 (11:04 -0700)]
Clarified app behavior on REQUEST_TYPE_NONE

Indicated that when this request type is returned in response
to a getKeyRequest no license exchange is required and
the key is available for use.

Bug: 73750909
Test: javadocs change only. Compiled Sailfish.
Change-Id: I4f124158160bf7e74f0228788c7b24bcefbb5dd0

6 years agoMerge "Volume UI updates" into pi-dev
Julia Reynolds [Fri, 30 Mar 2018 01:55:42 +0000 (01:55 +0000)]
Merge "Volume UI updates" into pi-dev

6 years agoMerge "Update AndroidTest.xml to be APCT suite ready" into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 01:53:23 +0000 (01:53 +0000)]
Merge "Update AndroidTest.xml to be APCT suite ready" into pi-dev

6 years agoSkip waiting for draw when triggering split screen from global action.
Winson Chung [Fri, 30 Mar 2018 01:36:17 +0000 (18:36 -0700)]
Skip waiting for draw when triggering split screen from global action.

- Currently a workaround for accessibility use case for split screen,
  this logic is not used for quickstep so just skip waiting for draw
  to animate the divider.

Bug: 74531468
Test: atest CtsAccessibilityServiceTestCases:AccessibilityWindowQueryTest#testWindowDockAndUndock_dividerWindowAppearsAndDisappears
Change-Id: I4b584443d4bf6acfbda92e5a2bfcd4470636d6c5

6 years agoEnable Last Kmsg, also fix the GZipSection test.
Yi Jin [Wed, 28 Mar 2018 22:32:50 +0000 (15:32 -0700)]
Enable Last Kmsg, also fix the GZipSection test.

Bug: 7335438476208934
Test: atest incidentd_test and manual as well
Change-Id: I074027f4d972686ae3e9415b50e4d3967f6a2355

6 years agoMerge "Add Network.fromNetworkHandle()" into pi-dev
Lorenzo Colitti [Fri, 30 Mar 2018 01:36:10 +0000 (01:36 +0000)]
Merge "Add Network.fromNetworkHandle()" into pi-dev

6 years agoMerge "AppStandby exemption: sync requested by FG apps" into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 01:26:35 +0000 (01:26 +0000)]
Merge "AppStandby exemption: sync requested by FG apps" into pi-dev

6 years agoMerge "Return PERMISSION_DENIED instead of NPE when missing ActivityManager" into...
TreeHugger Robot [Fri, 30 Mar 2018 01:26:27 +0000 (01:26 +0000)]
Merge "Return PERMISSION_DENIED instead of NPE when missing ActivityManager" into pi-dev

6 years agoMerge "Unhide MediaPlayer#MEDIA_INFO_STARTED_AS_NEXT" into pi-dev
Dongwon Kang [Fri, 30 Mar 2018 01:25:59 +0000 (01:25 +0000)]
Merge "Unhide MediaPlayer#MEDIA_INFO_STARTED_AS_NEXT" into pi-dev

6 years agoAdd isAudioOn() in HeadsetProfile
ryanywlin [Wed, 28 Mar 2018 09:19:39 +0000 (17:19 +0800)]
Add isAudioOn() in HeadsetProfile

* Add this API for checking audio status from BlueTooth Headset Service

Bug: 74130772
Test: ROBOTEST_FILTER="HeadsetProfileTest" make -j40 RunSettingsLibRoboTests
Change-Id: I80b3dbc8b0f9926859ff08f6849cafca89e940a7

6 years agoDon't send idle-maint trigger broadcast as ordered
Christopher Tate [Thu, 29 Mar 2018 23:27:38 +0000 (16:27 -0700)]
Don't send idle-maint trigger broadcast as ordered

Using an ordered broadcast has been inadvertently making the idle
trigger wait in line behind all other pending broadcasts.  Don't do
that -- it's going to registered receivers only anyway.

We now see no measurable dispatch latency for the trigger broadcast
even if it's issued while the BOOT_COMPLETED broadcast is still
being processed.

Bug: 77230503
Test: adb shell cmd activity idle-maintenance
Test: manually set idle threshold to 10s and observe triggering
Change-Id: I75a9f9acf0debfd075750d87c65cda545af48299

6 years ago[QS] Override/add long click accessibility action
Rohan Shah [Fri, 30 Mar 2018 00:35:00 +0000 (17:35 -0700)]
[QS] Override/add long click accessibility action

Overrides the long click action for QS tiles. Tiles are always
long-clickable so this can always be present as an action for that node.

Test: Via talkback selection + node printing/debug
Bug: 72408442
Change-Id: Idacf79cd4a91e6091c6f9f0a8fa24a286cd3a262

6 years agoMerge changes from topics "DocumentSource", "ID_API" into pi-dev
Leon Scroggins [Fri, 30 Mar 2018 00:53:53 +0000 (00:53 +0000)]
Merge changes from topics "DocumentSource", "ID_API" into pi-dev

* changes:
  Add documentation for ImageDecoder and its Source
  Rename getters and setters on ImageDecoder

6 years agoMerge "Fix Skia's impl for TextureView.getBitmap" into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 00:48:29 +0000 (00:48 +0000)]
Merge "Fix Skia's impl for TextureView.getBitmap" into pi-dev

6 years agoMerge "Add more privacy tags." into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 00:43:58 +0000 (00:43 +0000)]
Merge "Add more privacy tags." into pi-dev

6 years agoMerge "wifi metrics(proto): Add new metrics for wifi native failures" into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 00:28:15 +0000 (00:28 +0000)]
Merge "wifi metrics(proto): Add new metrics for wifi native failures" into pi-dev