Commit Graph

481493 Commits

Author SHA1 Message Date
Lorenzo Colitti
a40ff70cad Set the NetworkInfo subtype to 0.
For non-telephony networks, this was always set to 0 before R.
In R, it is currently set to the same value as the network type.
This is incorrect because the two have different namespaces.
or example, currently, any network of type WIFI (==1) will have
a subtype of NETWORK_TYPE_GPRS (==1). Similarly, all ETHERNET
networks will have subtype NETWORK_TYPE_1XRTT, all VPN networks
will have a subtype of NETWORK_TYPE_TD_SCDMA, etd.

Bug: 161653721
Test: builds, boots
Change-Id: I07e111c1762e0021c931cefc27f193f78578748b
2020-07-28 09:20:19 +00:00
TreeHugger Robot
83578eaa95 Merge "Update mandatory concurrent stream docs to specify support for lower resolutions." into rvc-dev 2020-07-28 01:47:32 +00:00
Jayant Chowdhary
d537ce04fb Update mandatory concurrent stream docs to specify support for lower resolutions.
Bug: 162110784

Test: make doc-comment-check-docs

Change-Id: I8a2677df320f8f496b185fd80234f04dd9eed97f
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
2020-07-27 17:18:12 -07:00
Zimuzo Ezeozue
0df699ae72 Merge "Reduce demo user FUSE volume mount timeout" into rvc-dev 2020-07-25 15:31:00 +00:00
TreeHugger Robot
863c82fa76 Merge "Propagate AudioAttributes flags to VibrationAttributes" into rvc-dev 2020-07-24 23:55:38 +00:00
TreeHugger Robot
855eb749ed Merge "Allow network stack UID caller to retrieve cell identity" into rvc-dev 2020-07-24 21:42:45 +00:00
TreeHugger Robot
af2f54f4e3 Merge "Ignore GONE views in shade when processing sections" into rvc-dev 2020-07-24 21:41:57 +00:00
Patrick Baumann
69b18e57fc Merge "Fix unintended preferred activity reset" into rvc-dev 2020-07-24 20:50:27 +00:00
Jack Yu
56cfdd1e87 Allow network stack UID caller to retrieve cell identity
For backwards compatibility, we allow phone, system UID to
access cell identity through getServiceState. Cell broadcast
service, which is used to be part of telephony, now is running
under network stack UID. We should consider network stack UID as
trustable components like system/telephony.

Fix: 157618105
Test: Manual
Change-Id: I9b2dfc778752e130f5c7e44c4b2e45b63ac6f918
2020-07-24 19:54:25 +00:00
Steve Elliott
dfd9f17703 Ignore GONE views in shade when processing sections
Fixes: 161606040
Test: atest
Change-Id: I8ab108aea23ea6a139f758abdaf222f5f3641104
2020-07-24 18:56:31 +00:00
Patrick Baumann
312755820a Fix unintended preferred activity reset
When the preferred handler of an action is saved with "always", the set
of components displayed as options to the user are saved with it. On
subsequent queries, if that set of components change, the preference is
cleared to allow the user to consider the new set. With the introduction
of app visibility filtering in R (and to a lesser extent, Instant Apps
in O), the set of apps that an app can see may be less than the set that
the system can. As a result, if the caller calls resolveIntent and
cannot see all of the apps the system can, it may reset the user
preference unexpectedly.

This change ensures that before we clear the user preference that we're
comparing against the full set of apps. As such, if we encounter a call
to the method from an app that cannot see all apps, we avoid any
mutations and instead just return the set of apps that the user can see
or the preferred app if it's part of the set they can see. If the system
calls or if the call is part of an activity start, we'll allow reset of
the preference.

Test: Manual - Install 3 cameras, verify preference only reset on start
Fixes: 157548344
Change-Id: Icb50a66500edba26c4c6c3e80a6a9c544d4d63d6
2020-07-24 11:42:37 -07:00
Christopher Tate
fc76b97d1b Skip bg PSS collection for apps using a camera
Bug: 144138979
Test: grant camera appOp and observe logging
Test: use camera app and observe logging
Change-Id: I6422b432f0d6fcf411073c0528a4ee485d46f005
(cherry picked from commit 5a7e662751)
2020-07-24 17:11:01 +00:00
Zim
1d6554f0e1 Reduce demo user FUSE volume mount timeout
A long timeout seems to break demo users when calling
DevicePolicyManagerService#enableSystemApp.

We soft-revert Ia8f6f121448f6b5e484fd3e8cca845fdd89afc23 just for demo
users while investigating the root cause.

Test: Manual
Bug: 161702661
Change-Id: I8ff153f2649e3a1d05f2e3e6e382bbba8c79630c
2020-07-24 12:08:33 +01:00
Xin Li
e303dd658d Merge "Merge stage-aosp-rvc-ts-dev into rvc-dev" into rvc-dev 2020-07-24 08:11:42 +00:00
TreeHugger Robot
aca9854a66 Merge "Fix missing IME switcher icon (w/ a hardware keyboard)" into rvc-dev 2020-07-23 21:59:18 +00:00
Jing Ji
fcaa94e2dc Merge "Java docs update: Advise not to include PII in setProcessStateSummary" into rvc-dev 2020-07-23 21:53:31 +00:00
Xin Li
88d715438a Merge stage-aosp-rvc-ts-dev into rvc-dev
Bug: 148878042
Merged-In: I5f50166322b662b457e1b79b2ce62c622ddd1013
Change-Id: Ie1e7f69f6cf6f47bce173ef22eaaf0ed17dda4af
2020-07-23 14:39:39 -07:00
Yabin Huang
ebc11f1b20 Merge "Revert "Update FocusFinder"" into stage-aosp-rvc-ts-dev 2020-07-23 20:55:36 +00:00
Lais Andrade
c2777148df Propagate AudioAttributes flags to VibrationAttributes
Set supported flags from AudioAttributes into VibrationAttributes on the
builder constructor.

Fix: b/161761418
Test: manual
Change-Id: I4a8e1db278843b2f9f19aba43b0b8f264cb696bd
2020-07-23 18:05:09 +00:00
Yabin Huang
6c01bf5f87 Revert "Update FocusFinder"
Revert submission 11830696-b/158492287-stage-aosp-rvc-ts-dev

Reason for revert: It's too late to merge this CL to rvc-dev. Let's revert it and merge it to rvc-qpr-dev.
Reverted Changes:
Ib5c1854d1:Update FocusFinder

Change-Id: I5f50166322b662b457e1b79b2ce62c622ddd1013
2020-07-23 17:52:12 +00:00
Yohei Yukawa
5749b51f8c Fix missing IME switcher icon (w/ a hardware keyboard)
This is a follow up CL to our previous CL [1], which aimed to adjust
the timing to change navbar icons that depend on the IME window
visibility.

One thing we overlooked is that only InputMethodService#IME_VISIBLE
needed to be cleared to keep the back button icon to behave as if the
IME window was invisible.  For the IME switcher icon to work as
intended, the current protocol requires InputMethodService.IME_ACTIVE
to remain to be set even when an IME window is invisible as long as
there is an active session between the app and the IME.

 [1]: I4dc9d6513d0559156f7da39244f3fc5ebc952ed4
      c22eec9d35

Fix: 160283619
Test: Manually done as follows:
  1. Build aosp_coral-userdebug and flash it
  2. make -j SoftKeyboard
  3. adb install -r $OUT/system/app/SoftKeyboard/SoftKeyboard.apk
  4. adb shell ime enable com.example.android.softkeyboard/.SoftKeyboard
  5. adb shell ime set com.example.android.softkeyboard/.SoftKeyboard
  6. Open any app that has an EditText
  7. Focus in to the EditText. Make sure the IME shows up and the IME
     switcher icon is visible on the navbar.
  8. Attach a hardware keyboard. Make sure that the IME becomes hidden
     while the IME switcher icon remains to be visible on the navbar.
  9. Detach the hardware keyboard.  Make sure that the IME switcher
     icon remains to be visible on the navbar.
Change-Id: I4a9ddf514a32a221c2372be0ca166fbdac555932
Merged-In: I4a9ddf514a32a221c2372be0ca166fbdac555932
2020-07-23 17:01:31 +00:00
Patrick Baumann
32ff9bfad4 Merge "Grant visibility even when not granting URI perm" into rvc-dev 2020-07-23 05:20:12 +00:00
Patrick Baumann
9406f1dea8 Grant visibility even when not granting URI perm
This change modifies the flow of uri permission grants to ensure that
even when we're not granting URI permissions, we still take the
opportunity to grant app visibility.

This change also re-grants visibility based on any persisted URI grants
at boot time.

Bug: 161912313
Bug: 161721834
Change-Id: I077b263fc3dc01f3505c39fc0e36d3419bab3c5f
2020-07-22 14:13:04 -07:00
Calin Juravle
40b9f0967e Merge "EventSequenceValidator: Only record the debug log in debugging level." into rvc-dev 2020-07-22 19:09:02 +00:00
Jing Ji
3bda3bf8c6 Java docs update: Advise not to include PII in setProcessStateSummary
Bug: 161812603
Test: m -j offline-sdk-docs & manual verify the javadoc
Change-Id: I741bbf7b83badcd7f1610f31bbd41a49b8b975fb
2020-07-22 11:03:30 -07:00
TreeHugger Robot
dd4a89ba14 Merge "Fix NavigationBarColorTest" into rvc-dev 2020-07-22 09:13:13 +00:00
Taran Singh
588fa46cf4 Fix NavigationBarColorTest
Manually partially revert I4910c2a06cc67b0470477b245fc1de54b75f10f9 so
that we don't use a window that's animating away as control target.

Fix: 161659326
Bug: 153145997
Test: atest NavigationBarColorTest#testSetNavigationBarColor

Change-Id: I68db516c91da69e0f4dcbdfab6d6a757c4cdc75b
2020-07-21 17:49:17 -07:00
Kevin Hufnagle
5c4491e04b Merge "docs: Use more inclusive pronouns" into rvc-dev 2020-07-22 00:07:00 +00:00
Bill Yi
2414b21d4e Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I991ffe8511741fa1cb216a7e2996dc99da0fb74e
2020-07-20 23:07:56 -07:00
Xin Li
816360a9b5 Merge ab/6692658 into stage-aosp-rvc-ts-dev
Bug: 148878042
Merged-In: Ib6b5679f22901d2d9e7996e25b19318cc1916460
Change-Id: Ib8d508dd51391958ac12cc5b67a46c89f6703bf3
2020-07-21 05:14:10 +00:00
Wale Ogunwale
309cfa3431 Merge "Prevent exception when surrounding text retrieval" into rvc-dev 2020-07-21 01:03:03 +00:00
Kevin Hufnagle
56cd67c4e4 docs: Use more inclusive pronouns
Change "his" to "their" in 2 places

Change-Id: Ib03e1967edd5d13f999c9290aabc56db33bf4fc0
Test: none (docs-only change)
Bug: 160937339
2020-07-20 22:55:07 +00:00
TreeHugger Robot
4daab7b2d6 Merge "Resume-on-Reboot: remove special string" into rvc-dev 2020-07-20 22:31:15 +00:00
yawanng
edd2c90631 EventSequenceValidator: Only record the debug log in debugging level.
The stack trace log may confuse other developers and mistakenly points
to IORap as the bug cause.

cherry-pick from ef5e1a6dbe

Bug: 161145462
Test: Make and check the logcat.
Merged-In: I3cb24cace060cff381ab3c5770ff6c1c948a2d89
Change-Id: I3cb24cace060cff381ab3c5770ff6c1c948a2d89
2020-07-19 11:55:16 -07:00
TreeHugger Robot
c294687770 Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-dev 2020-07-19 18:49:45 +00:00
Eric Laurent
148c8bc210 Merge "AudioService: Add metrics for audio mode" into rvc-dev 2020-07-19 16:46:20 +00:00
Bill Yi
f797890c09 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ib6b5679f22901d2d9e7996e25b19318cc1916460
2020-07-19 08:54:49 -07:00
TreeHugger Robot
d3f766ee0f Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-dev 2020-07-19 14:52:06 +00:00
TreeHugger Robot
f6d4adeef4 Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-dev 2020-07-19 14:48:47 +00:00
Bill Yi
4483224a7e Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I6925f9b46eea739365ccaa263e64d977e6aa9b25
2020-07-19 00:05:22 -07:00
Bill Yi
8c4c530422 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I18c501af0e75d2afd6b857b02a93e03dfc9bab56
2020-07-18 23:37:31 -07:00
TreeHugger Robot
851960cdd1 Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-dev 2020-07-18 07:06:04 +00:00
Bill Yi
3f5dd27b0b Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Iec90fad5c9d26c9d2345a5f390f8a714b9bac815
2020-07-17 21:18:53 -07:00
Bill Yi
72d3135ecb Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ia2cb81141a0d3530bb345c3e57b73fd04b7912cf
2020-07-17 19:37:54 -07:00
Sudheer Shanka
20f7d15884 Merge "Don't try to handle callbacks until mSystemReady is set." into rvc-dev 2020-07-17 23:34:32 +00:00
Wale Ogunwale
3affbe4d9f Merge "Revert "Call preserveSurfaces when detaching children."" into rvc-dev 2020-07-17 23:28:44 +00:00
Wale Ogunwale
0bf88c5ad2 Merge "Fix wrong candidate window when display immersive_mode_confirm." into rvc-dev 2020-07-17 23:28:04 +00:00
Wale Ogunwale
25602430fd Merge "Allow status bar to be transparent, and clear LIGHT flags." into rvc-dev 2020-07-17 23:22:06 +00:00
Kevin Hufnagle
176b2e0c7f Merge "Adding documentation to note new intent action changes coming with Android 11." into rvc-dev 2020-07-17 22:56:58 +00:00
Sudheer Shanka
9129418140 Merge "Check app idle states and inform listeners on power-save-wl change." into rvc-dev 2020-07-17 22:48:44 +00:00