306897 Commits

Author SHA1 Message Date
Peter Qiu
7f53158499 hotspot2: fix class/function/variable names to comply with API guideline am: da8a67e8a6 am: 7fec249699 am: 57375308dc
am: 97f04b5efa  -s ours

Change-Id: Ie33e7db651aa4de47ffcc06ab1e7cf93e94c3c48
2017-02-08 00:57:10 +00:00
Peter Qiu
00eb503954 hotspot2: rename classes to comply with API guideline am: a77809766c am: c4f4a1ac9e am: 9bddb8ccd8
am: 6c3bed61c9  -s ours

Change-Id: Id291951c26f5947622f7ce6520d7e343e9f3cf4e
2017-02-08 00:56:12 +00:00
Shreyas Basarge
f47b9cf1c1 Merge "Fix requiresCharging false value ignored issue" into nyc-mr2-dev 2017-02-08 00:49:59 +00:00
Daniel Nishi
baa381119c Fix a bug where the last used times could be wrong.
If a newer UsageStats came along, it would wipe away
the older UsageStats' last used times because it was
newer and, therefore, a source of truth. This is an
improper assumption, however. The newer UsageStat
may cover a timeframe which does not even have a last
use and, thus, destroys valid data.

Bug: 34857041
Test: FrameworksCoreTest
Change-Id: I5111b0d5a184a31a0a8fbdf12984cc7ef90ccd6e
2017-02-07 16:47:57 -08:00
Hakan Seyalioglu
afa21fac6a Merge "Use default icons while disambig sheet is loading" 2017-02-08 00:44:45 +00:00
Jean-Michel Trivi
62b8634f06 AudioService: mute media/game players during phone calls
When the device is ringing or in a call, mute all media/game audio
  players.

Test: run a MediaPlayer, receive call
Bug 30258418

Change-Id: Idb3bd8d33f89aea6ac3293d21801b4b3387d969a
2017-02-07 16:27:59 -08:00
Jiaquan He
5e4c6a675f Merge "2D Recents: Fix the thumbnail radius." into nyc-mr2-dev
am: 85016506c6

Change-Id: Id0a029ed2120e7c040332a0e6fb46b05c5c4b947
2017-02-08 00:06:29 +00:00
Jiaquan He
5207be100b 2D Recents: Fix the thumbnail radius.
am: 083c6fbbd0

Change-Id: I93ff98979bcffa0c3724807ec9caac8f39025fa6
2017-02-08 00:06:22 +00:00
Amith Yamasani
d2450862f4 Logging and partial fix for BatteryStats lock contention
Don't try to grab the write lock while holding BatteryStats lock.

Add some debugging to see if cpu stats gathering is causing a
delay in some cases.

Bug: 34961340
Test: Manual
Change-Id: I8c7d1abb239abd81a07171cd65be1fbfdbca5fdb
2017-02-07 16:00:32 -08:00
TreeHugger Robot
85016506c6 Merge "2D Recents: Fix the thumbnail radius." into nyc-mr2-dev 2017-02-08 00:00:26 +00:00
Jason Monk
421a9410b4 SysUI: Add method for plugins to keep status bar full screen
Lots of things detect overlays these days (installing apps) and the
only way to avoid the problems associated with this is to live in
the status bar window. So allow plugins to hold the window open
when they want to so they can have overlays be in that.

Move StatusBarWindowManager to Dependency to make things easier
as well.

Test: Install the example plugin, test can access QS and interact
      with apps

Change-Id: Ib2288bf56704960847217bad01a480ab407e0ffe
2017-02-07 18:58:14 -05:00
Tyler Gunn
ca5cdb2d10 Change prototype for "setCamera" in IMS VideoProvider.
Changing "setCamera" prototype to include the uid.

Test: Unit test, manual test.
Bug: 32747443
Merged-In: I7e6eb617d724972b0fcbd2f9a27f5c3ee91efd2d
Change-Id: I7e6eb617d724972b0fcbd2f9a27f5c3ee91efd2d
2017-02-07 23:55:04 +00:00
Peter Qiu
ac562839f5 Merge changes from topic 'Passpoint API Rename' am: 93d66c83cf am: 322c9a9ec5
am: 1c8845c6b0

Change-Id: Id22714a3ab72ce5a0b5e1dcd294a7ef7db33da57
2017-02-07 23:54:40 +00:00
Paul Lawrence
f4872e4110 Merge "Expand seccomp whitelist" am: 10e7aed13f am: 0ab0d47516 am: 53e6c94c0b
am: ce8f7cb388

Change-Id: Ia626354e255a0e8bc66529174460e53ddf72f067
2017-02-07 23:52:03 +00:00
Brad Ebinger
7544631c83 Merge "Perform camera permission and app ops check when setting camera for VT." am: ed5c217fc0 am: 3d6f878b75 am: ac3f482f15
am: 63073e0ae8

Change-Id: I5454a51f0f07052f8304606eed9c3d4ec2739582
2017-02-07 23:50:33 +00:00
Peter Qiu
7d172feb01 hotspot2: expose Passpoint APIs as public am: bffe405e1f am: b898025e8c
am: 1a8cb5dfec

Change-Id: I75201e7f464e7228458b62d9f79565097b602752
2017-02-07 23:49:35 +00:00
Peter Qiu
97f04b5efa hotspot2: fix class/function/variable names to comply with API guideline am: da8a67e8a6 am: 7fec249699
am: 57375308dc

Change-Id: I897cd2c051d7c4b3b5165114d975f5e7398f4556
2017-02-07 23:48:42 +00:00
Peter Qiu
1c8845c6b0 Merge changes from topic 'Passpoint API Rename' am: 93d66c83cf
am: 322c9a9ec5

Change-Id: I91231f6c6ad804997071f81f0d3998f1d8231a73
2017-02-07 23:47:46 +00:00
Peter Qiu
6c3bed61c9 hotspot2: rename classes to comply with API guideline am: a77809766c am: c4f4a1ac9e
am: 9bddb8ccd8

Change-Id: I78d0edc46b89683832f26061f97f3ebebe245f93
2017-02-07 23:47:32 +00:00
Peter Qiu
1a8cb5dfec hotspot2: expose Passpoint APIs as public am: bffe405e1f
am: b898025e8c

Change-Id: I10d77f87722d5b21004df1394b1b5d9e82b78976
2017-02-07 23:40:45 +00:00
Peter Qiu
57375308dc hotspot2: fix class/function/variable names to comply with API guideline am: da8a67e8a6
am: 7fec249699

Change-Id: Ib37832f30b5174f52e71ef2e3f796c669ba7bda9
2017-02-07 23:39:50 +00:00
Peter Qiu
9bddb8ccd8 hotspot2: rename classes to comply with API guideline am: a77809766c
am: c4f4a1ac9e

Change-Id: I00cda97fa573cb7dcb3ac8501ead6b34b91f1b1e
2017-02-07 23:38:36 +00:00
Peter Qiu
322c9a9ec5 Merge changes from topic 'Passpoint API Rename'
am: 93d66c83cf

Change-Id: Ibff6d79c8ca51b760932909e89b21e8c843acc89
2017-02-07 23:38:35 +00:00
Ray Essick
ba5ce2c0f8 API android.media.MediaExtractor.getMetrics()
adds the API getMetrics() to android.media.MediaExtractor
includes plumbing through JNI to the underlying mediaextractor
code in frameworks/av.

Tested with some CTS modifications; a more formal set of CTS
updates will be along later.

Bug: 35094936
Test: modified CTS to invoke new API and output results
Change-Id: Id8d56c9c3273b86bbd11e248bdf5004be90b91ef
2017-02-07 15:35:39 -08:00
Peter Qiu
b898025e8c hotspot2: expose Passpoint APIs as public
am: bffe405e1f

Change-Id: I86065439f5902b6ce7b0ceec3f295e14f0dff47f
2017-02-07 23:32:08 +00:00
Peter Qiu
7fec249699 hotspot2: fix class/function/variable names to comply with API guideline
am: da8a67e8a6

Change-Id: I48f7b3ab747c0323aec5208c7a0afa123ff68729
2017-02-07 23:31:02 +00:00
Peter Qiu
c4f4a1ac9e hotspot2: rename classes to comply with API guideline
am: a77809766c

Change-Id: Iaaf34a5ec744775e472d1b3eb8673ebf610b1c61
2017-02-07 23:30:19 +00:00
Treehugger Robot
93d66c83cf Merge changes from topic 'Passpoint API Rename'
* changes:
  hotspot2: expose Passpoint APIs as public
  hotspot2: fix class/function/variable names to comply with API guideline
  hotspot2: rename classes to comply with API guideline
2017-02-07 23:25:04 +00:00
Felipe Leme
f894be41d6 Re-added sanitization.
This code was accidentaly removed when rebasing the auth changes..

BUG: 33269702
BUG: 31001899

Test: manual verification
Test: CtsAutoFillServiceTestCases passes
Change-Id: I0dabad9b76ee6c523a546c494f147796a50531e7
2017-02-07 15:12:59 -08:00
Paul Lawrence
ce8f7cb388 Merge "Expand seccomp whitelist" am: 10e7aed13f am: 0ab0d47516
am: 53e6c94c0b

Change-Id: I4f6e9e4c705505861c7b61dcc2c36f3d997a402d
2017-02-07 23:08:00 +00:00
Paul Lawrence
53e6c94c0b Merge "Expand seccomp whitelist" am: 10e7aed13f
am: 0ab0d47516

Change-Id: Id7512df1f0df56f73352c82a3ad55eb5360ebd91
2017-02-07 23:03:32 +00:00
Paul Lawrence
0ab0d47516 Merge "Expand seccomp whitelist"
am: 10e7aed13f

Change-Id: I8060b31a8ac20ddd77b7139c5a3bbd8d146dbc27
2017-02-07 22:59:34 +00:00
Wyatt Riley
cf879db366 GNSS Batching - Default Implementation
Connections from .hal layer, through to
Location Manager System APIs

Bug: 31974439
Test: builds, boots, ordinary GNSS & new GNSS batching
      basic functional checks on Marlin
Change-Id: If75118c27b5ed34cfc16c9f817b60a3be5485095
2017-02-07 14:55:21 -08:00
Paul Lawrence
10e7aed13f Merge "Expand seccomp whitelist" 2017-02-07 22:50:44 +00:00
Soonil Nagarkar
c78d74e3ea Merge "Set default throttle to 30m." 2017-02-07 22:49:22 +00:00
Brad Ebinger
63073e0ae8 Merge "Perform camera permission and app ops check when setting camera for VT." am: ed5c217fc0 am: 3d6f878b75
am: ac3f482f15

Change-Id: I773c607ea2999e6d32c7fcc578cf7b3c86510521
2017-02-07 22:41:58 +00:00
Brad Ebinger
ac3f482f15 Merge "Perform camera permission and app ops check when setting camera for VT." am: ed5c217fc0
am: 3d6f878b75

Change-Id: I0ed577718d9ffd72ec7668889d4da4db0060cb5f
2017-02-07 22:37:31 +00:00
Brad Ebinger
3d6f878b75 Merge "Perform camera permission and app ops check when setting camera for VT."
am: ed5c217fc0

Change-Id: I0fd4ed2260a9654e2889121022192f62f86a3d0c
2017-02-07 22:33:05 +00:00
Romain Guy
636afc1877 Apply transfer function when rendering with linear textures
RGBA16F bitmaps are always encoded in linear space, which means we must
apply the opto-electronic transfer function before we can render them
in the framebuffer.

Since our linear bitmaps are assumed to be scRGB, values can be negative.
The OETF is a slightly modified sRGB OETF:

sign(x) * OETF_sRGB(abs(x))

This effectively mirrors the OETF over the negative domain.

This CL also removes the "optimized" shader generation path. With
current compilers, the optimized path doesn't do anything of value
and makes ProgramCache difficult to maintain. Shader compilers inline
everything and are really good at folding expressions and removing
unused code.

Bug: 32984164
Test: CtsUiRenderingTestCases
Change-Id: Ieb458ad53574e3a8959aa6bccbbd2d1fe203cbc5
2017-02-07 22:30:34 +00:00
Brad Ebinger
ed5c217fc0 Merge "Perform camera permission and app ops check when setting camera for VT." 2017-02-07 22:26:44 +00:00
TreeHugger Robot
95e76d7e3d Merge "Add android.permission.RESTRICTED_VR_ACCESS for privileged VR APIs." 2017-02-07 22:10:42 +00:00
Jason Long
1e92f02387 Improve AnchoredWindow with smart positioning logic.
* Add appToken.
* Add mWindowSizeListenerView for getting the displayable window size
  (screen - system windows - soft input).
* Add mContentView when we have all the necesssary info.
* Change mContentView only if something changes (height, bounds,
  displayBounds).

Bug: 34637800
Test: CTS
Change-Id: Icef5eb8d8e0b54376c84cbcaa5719aee0520e345
2017-02-07 13:58:12 -08:00
Felipe Leme
1bdf3f070b Set autofill id on virtual structures.
ViewStructure.newChild(virtualId) uses the AutoFillId of the parent,
which was not set anymore due do a previous refactoring, and was
causing this method to crash a custom view when
onProvideAutoFillVirtualStructure() was called on it.

Test: manual verification
Bug: 31001899

Change-Id: I602b421b0ec3a926ffdd52253d5b2498c4217d02
2017-02-07 13:50:53 -08:00
Jin Qian
edf0a3715d BatteryManager: Add battery status to getProperty
Bug: 34198239
Change-Id: I65cef6864b1074445342e18f49c7cecd0706b938
2017-02-07 21:41:39 +00:00
Dmitry Dementyev
f794c8dc1b GET_ACCOUNTS_PRIVILEGED permission check for Account Discovery API.
GET_ACCOUNTS_PRIVELEGED still works in Android O, but authenticators can
limit visibility for apps with the permission.
Bug: 34841115
Test: cts, manual tests.

Change-Id: Ibd87f6172969c550b6166f88176924e517393763
2017-02-07 13:39:11 -08:00
Peter Qiu
bffe405e1f hotspot2: expose Passpoint APIs as public
Bug: 34862444
Test: frameworks/base/wifi/tests/runtests.sh
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh

Change-Id: I8bf5c715b9088c673e59a73a78e18f6e6b64d1d1
2017-02-07 13:34:47 -08:00
Peter Qiu
da8a67e8a6 hotspot2: fix class/function/variable names to comply with API guideline
Bug: 34862444
Test: frameworks/base/wifi/tests/runtests.sh
Test: frameworsk/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: Ide425c06be46bc41c8f601e732dca0543de096b1
2017-02-07 13:34:46 -08:00
Peter Qiu
a77809766c hotspot2: rename classes to comply with API guideline
This is purely a file rename operation.

Bug: 34862444
Test: None
Change-Id: I297a228f3ee7e09c9cce5ca9f677eb1db478fd46
2017-02-07 13:34:46 -08:00
Selim Gurun
38d07a18bb Merge "Fix WebView crashes" 2017-02-07 21:29:00 +00:00
Winson Chung
cd161864a3 Merge changes I3ef361bd,I89a5184c
* changes:
  Refactor PiP logic in preparation for expanded state.
  Modifying RemoteAction callback to PendingIntent.
2017-02-07 21:18:15 +00:00