Commit Graph

278 Commits

Author SHA1 Message Date
TreeHugger Robot
d329889eea Merge "Let IME#onFinishInput called without dup onStartInput when screen-off" 2020-11-26 11:25:22 +00:00
Sean Stout
9b53f76524 Merge "Change shouldShowIme -> displayImePolicy" 2020-11-26 03:40:49 +00:00
Shuo Qian
f842c579f9 Merge "Add CAPABILITY_CALL_COMPOSER in PhoneAccount for enriched calling." 2020-11-26 03:39:25 +00:00
Shuo Qian
d24aea3148 Add CAPABILITY_CALL_COMPOSER in PhoneAccount for enriched calling.
Test: cts
Bug: 173437870
Change-Id: Ibd1b0f0bc66487cfdb05d3de46c7e8df74eeb8cc
2020-11-25 17:58:26 +00:00
Ming-Shin Lu
152eacec4f Let IME#onFinishInput called without dup onStartInput when screen-off
Also called IME#onStartInput without dup onFinishInput when screen-on,
to fix the long-standing IME input connection lifecycle issue when
device screen state changes.

Bug: 156215187
Bug: 26851566
Test: atest InputMethodStartInputLifecycleTest
Test: manual as below steps
      0) Enable InputMethodService debug flag.
      0-1) In Settings -> Develop options -> AppCompatibility Changes,
           Select Gboard and then toggle
           "FINISH_INPUT_NO_FALLBACK_CONNECTION" change.
      1) Launch a app with focused a editor and show soft-input
      2) When device screen turned-off, will see InputMethodService only
         callbacks below logs:
           CALL: doFinishInput
           CALL: onFinishInputView
           CALL: onFinishInput
      3) When device screen turned-on, will see InputMethodService only
         callbacks below logs:
           CALL: onStartInput
           CALL: onStartInputView

Change-Id: I8a657e75e274d842fb46b60375f6aeafeab96a59
2020-11-25 23:32:49 +08:00
Sean Stout
acd7a80462 Change shouldShowIme -> displayImePolicy
This CL allows for a Trusted Display to specify not only whether the IME
should show on itself or the fallback Display, but also whether the IME
should not show at all.

This behavior is useful if interacting with a display that has a built
in IME; it will prevent an IME from also showing on the default Display.

Bug: 170233231
Test: atest MultiDisplaySystemDecorationTests#testDisplayPolicyImeHideImeOperation
Change-Id: Id86db922e8f2c3ca065f830ee371cccaa7c36101
2020-11-25 15:22:51 +00:00
Junyu Lai
0e0b760e62 Merge "Expose getTx/RxBytes in TrafficStats" am: 6ef6648cd9 am: aca01cd0c1 am: e0f68a4855
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1440245

Change-Id: I755eb6294da6cba787f60d057997a4d239aaa095
2020-11-25 06:32:25 +00:00
Junyu Lai
e0f68a4855 Merge "Expose getTx/RxBytes in TrafficStats" am: 6ef6648cd9 am: aca01cd0c1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1440245

Change-Id: I065c1f80d2024edcafa144e907bf74da870ab000
2020-11-25 06:11:53 +00:00
Hall Liu
d2ff486718 Merge "Expose the carrier signaling broadcasts" 2020-11-24 23:24:10 +00:00
junyulai
e2dfbb3b65 Expose getTx/RxBytes in TrafficStats
Test: atest FrameworksNetTests TrafficStatsTest
      atest android.net.cts android.net.wifi.cts
Bug: 164965653
Change-Id: I17b9d0bc2404c5727d4c4530ad941439b7b71a54
2020-11-24 12:11:08 +08:00
Hui Yu
20f42909f8 BG-FGS-launch restriction exemptions.
1. Add a new permission START_FOREGROUND_SERVICES_FROM_BACKGROUND.
2. Add a new bind flag BIND_ALLOW_FOREGROUND_SERVICE_STARTS_FROM_BACKGROUND
3. BroadcastOptions.setTemporaryAppWhitelistDuration() is currently
protected with CHANGE_DEVICE_IDLE_TEMP_WHITELIST permission, also open
it for START_ACTIVITIES_FROM_BACKGROUND and
START_FOREGROUND_SERVICES_FROM_BACKGROUND permission.
4. Exempt SYSTEM_ALERT_WINDOW permission.
5. if Context.startForegroundService() or Service.startForeground() is
restricted by BG-FGS-launch restriction, and app's targetSdkVersion is S
and above, throw a IllegalStateException.

Bug: 171305836
Test: atest cts/tests/app/src/android/app/cts/ActivityManagerFgsBgStartTest.java#testFgsBindingFlagFGS
atest cts/tests/app/src/android/app/cts/ActivityManagerFgsBgStartTest.java#testFgsBindingFlagActivity
atest cts/tests/app/src/android/app/cts/ActivityManagerFgsBgStartTest.java#testFgsStartSystemAlertWindow
atest cts/tests/app/src/android/app/cts/ActivityManagerFgsBgStartTest.java#testFgsStartFromBGException

Change-Id: Iff3ed65e174a8406d4d6045cda42bdde6cecf30d
2020-11-23 11:19:59 -08:00
Sarah Chin
3eb09ed2b3 Merge "Expose PinResult and ICC PIN/PUK APIs as SystemApi" am: 2391403601 am: 78fa0b0e6a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1506404

Change-Id: Ib2f5b536b9a78a70aa6eb3dbb48dbdd7e94a14c2
2020-11-23 18:50:26 +00:00
Sarah Chin
2391403601 Merge "Expose PinResult and ICC PIN/PUK APIs as SystemApi" 2020-11-23 17:50:19 +00:00
Bernardo Rufino
9aee235f28 Merge "Create recents protectionLevel" 2020-11-23 09:30:38 +00:00
TreeHugger Robot
66daa23b1b Merge "Implment get/query APIs for properties" 2020-11-21 19:38:01 +00:00
Todd Kennedy
569435e0eb Implment get/query APIs for properties
Bug: 169258655
Test: atest CtsContentTestCases:PackageManagerGetPropertyTest
Test: atest CtsContentTestCases:PackageManagerQueryPropertyTest
Change-Id: I91d58cd42e7f1f10b0e494ff9f318a9e3fa073db
2020-11-21 08:12:13 -08:00
Santiago Seifert
0deba940b9 Merge "Replace literal with constant in annotation" 2020-11-21 10:06:37 +00:00
TreeHugger Robot
f44c1f8095 Merge "Add package name and class name to Property" 2020-11-21 07:58:55 +00:00
Todd Kennedy
c0b203cc38 Add package name and class name to Property
Instead of returning the package/property name from the
query methods, make it part of the Property object itself.

Bug: 169258655
Test: atest FrameworksServicesTests:PackageParserTest
Change-Id: I1c620cde317dc05fb49367a226a612bc01ae7f55
2020-11-20 21:31:13 -08:00
Jack Nudelman
30f372a774 Add ThermalMitigation API to Telephony.
go/telephony-thermal-mitigation

Test: make, cts
Bug: 158872959

Change-Id: Ib4be5edf063e4c54e9238b0403f59e1621df671e
2020-11-20 20:58:45 -08:00
Daniel Bright
0f9531a53b Merge "Add support for pdu session id" am: 3798c10c1d am: 9b90235154
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1507547

Change-Id: I5f0bd8c18d3e55ceac10bcb14f72dc914f7e2da3
2020-11-21 00:03:27 +00:00
Sarah Chin
cafa63af2b Expose PinResult and ICC PIN/PUK APIs as SystemApi
Test: atest TelephonyManagerTest
Fix: 171884262
Change-Id: I9cdc11c49e4ca602cfa1464e5f424c4a96798cfe
Merged-In: I9cdc11c49e4ca602cfa1464e5f424c4a96798cfe
2020-11-20 15:18:03 -08:00
Daniel Bright
926aff5e7b Add support for pdu session id
Added startHandover and cancelHandover to DataService and DataServiceManager
so that it can be called by data connection

Test: Tested that handover still worked with logs.  IWlan -> Cell + Cell -> IWlan
Bug: 155176305
Merged-In: Ia59d7e9bf9a450da4b51a2884166d3b0fa93a7c9
Change-Id: Ia59d7e9bf9a450da4b51a2884166d3b0fa93a7c9
2020-11-20 12:23:43 -08:00
Daniel Bright
b6ca2e00f2 Merge "Added global retry support" am: 5b38038d57 am: 237bb0bdaf
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1504714

Change-Id: I6c6492529d7de439dd6c9f2aadf9bfa4b2349c78
2020-11-20 19:47:39 +00:00
Daniel Bright
5b38038d57 Merge "Added global retry support" 2020-11-20 18:48:36 +00:00
Santiago Seifert
0acd7893f3 Replace literal with constant in annotation
Bug: 168585020
Bug: 173713007
Test: Manual build.
Change-Id: I8ffc52d9472a1a1eae83af439e477991c252337d
2020-11-20 18:46:47 +00:00
Chavi Weingarten
3f7cb9bcf5 Merge "Updated ImpressionAttestation API signatures" 2020-11-20 16:50:20 +00:00
Todd Kennedy
e2d6cd588a Merge "Add PackageManager.Property class" 2020-11-20 16:35:37 +00:00
Sarah Chin
cdd8d10a04 Merge "Expose get/setCdmaRoamingMode and get/setCdmaSubscriptionMode as system API" am: 0099578124 am: e8966fb50a am: b99c3e87a6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1506400

Change-Id: Ifd8d48a727d6ef1a1513e31aa8d2f2e35a06cb12
2020-11-20 04:43:01 +00:00
TreeHugger Robot
a9eb7e88d5 Merge "Revert "[Telephony] PhoneStateListener redesign for new event"" 2020-11-20 02:34:12 +00:00
Hall Liu
1f1dbee262 Revert "[Telephony] PhoneStateListener redesign for new event"
Revert "[Telephony] PhoneStateListener redesign - cts test"

Revert "[Telephony] PhoneStateListener redesign"

Revert submission 12947610-PhoneStateListener_Redesign

Reason for revert: Multiple test failures: b/173726360, b/173724464, b/173722831
Reverted Changes:
Id69d2b2e7:[Telephony] PhoneStateListener redesign - remove L...
I210f371ed:[Telephony] PhoneStateListener redesign - cts test...
I97e93707f:[Telephony] PhoneStateListener redesign - cts test...
Ibdbaa7d65:[Telephony] PhoneStateListener redesign - cts test...
I5ed16d700:[Telephony] PhoneStateListener redesign - cts test...
I40cc4c234:[Telephony] PhoneStateListener redesign for new ev...
Idd69f5e48:[Telephony] PhoneStateListener redesign
I827471472:[Telephony] PhoneStateListener redesign - cts test...
Bug: 173726360
Bug: 173724464
Bug: 173722831
Change-Id: Iba85a04db03c9fb9c4d4102618e65fcff537d815
2020-11-20 02:32:42 +00:00
TreeHugger Robot
63c92061a1 Merge "Create getSystemSelectionChannel API" 2020-11-20 02:16:17 +00:00
Sarah Chin
6fdc279b55 Merge "Add TestApi for getSupportedRadioAccessFamily" am: 0b2d583b45 am: 1a7ff7db8c am: b71d2d2c85
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1505074

Change-Id: I569073c5fa8d75a14c00ef16f875cd19fa306509
2020-11-20 01:22:24 +00:00
Sarah Chin
8024ac22fe Merge changes from topic "signalstrength_ctr" am: 4d8ff9fca7 am: 32c817a654 am: 8e619d81c1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1505251

Change-Id: Ifbb336cec55d5f8122365ae5e3ab407a236f10e6
2020-11-20 00:50:08 +00:00
Sarah Chin
b3fd799eb0 Expose SignalStrength copy constructor am: 34cb6f99e7 am: b0ed9bd725 am: 80fbbe764a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1480896

Change-Id: I5fdd5681002c33b581473b9674ae65116e958c1a
2020-11-20 00:49:52 +00:00
Sarah Chin
26144d4c21 Create getSystemSelectionChannel API
Test: atest TelephonyManagerTest
Bug: 152813408
Change-Id: I2d80284b92414f403af977cbe193766eac08a6e0
2020-11-19 16:10:13 -08:00
Sarah Chin
b0ed9bd725 Expose SignalStrength copy constructor am: 34cb6f99e7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1480896

Change-Id: I631ab54d9959abd8af52d76f9796c25f14a901d9
2020-11-19 23:47:02 +00:00
Sarah Chin
a9224e55b8 Merge changes from topics "cdma_eri_api", "cdma_eri_displaynumber" am: b6d1f47cf9 am: 4319ed36db am: 22575e2c57
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1504955

Change-Id: Ie026572b55906384cb6f71c5947180c788eb5f64
2020-11-19 23:46:55 +00:00
Sarah Chin
67b50363b4 Expose CDMA ERI API am: 1b48e894c5 am: bc0ff8946f am: d33a6e1615
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1504953

Change-Id: I866acc633c1f3479038dc93826749e71b0a78b32
2020-11-19 23:46:44 +00:00
Sarah Chin
c315bf8c7d Expose get/setCdmaRoamingMode and get/setCdmaSubscriptionMode as system API
Test: atest TelephonyManagerTest
Fix: 171884158
Fix: 171883908
Change-Id: I5fe64d4bfb463af40b6e0ccfad1515266e40f7f6
Merged-In: I5fe64d4bfb463af40b6e0ccfad1515266e40f7f6
2020-11-19 14:37:35 -08:00
Sarah Chin
0b2d583b45 Merge "Add TestApi for getSupportedRadioAccessFamily" 2020-11-19 22:01:46 +00:00
Sarah Chin
4d8ff9fca7 Merge changes from topic "signalstrength_ctr"
* changes:
  Make SignalStrength constructor public
  Expose SignalStrength copy constructor
2020-11-19 22:01:14 +00:00
Jack Yu
b9b195be23 Added global retry support
The retry timer suggested by the network will persist
accross network requests. Also changed the retry timer
to a 64-bit value to be consistent with types used in
Android time APIs.

Test: FrameworksTelephonytests
Fix: 159672248
Merged-In: I632d4dc07fb545fa04eb3aefb0ff3270ee8f6ff8
Change-Id: I632d4dc07fb545fa04eb3aefb0ff3270ee8f6ff8
2020-11-19 12:09:30 -08:00
chaviw
2252f0b197 Updated ImpressionAttestation API signatures
1. Updated verifyImpressionToken to send back a boolean instead of an
integer. Updated docs
2. Added salt value to generateImpressionToken and verifyImpressionToken

Test: Builds
Bug: 155825630
Change-Id: I672500ef2337796775f9d9f32e626df69a886f9f
2020-11-19 11:35:05 -08:00
Alex Buynytskyy
27eb04a5a3 API feedback.
Bug: 160605420
Test: atest ChecksumsTest
Change-Id: If6796d6779228c1972750822aea5057df5148b70
2020-11-19 17:00:41 +00:00
Bernardo Rufino
0dec6c042c Create recents protectionLevel
In preparation for permission BROADCAST_CLOSE_SYSTEM_DIALOGS
(go/close-system-dialogs), which will be signature|recents in order to
lock down Intent.ACTION_CLOSE_SYSTEM_DIALOGS. That intent is used by
recents when it's invoked.

Currently, recents is configured via existing config
config_recentsComponentName, so using that to determine the recents
package in PM.

It's my understanding that the package defined in such config will be
responsible for recents no matter which launcher is active. It's also my
understanding that the package being explicit in the system config means
that package has to come from the system image, hence it's fine to use
ensureSystemPackageName() in PM. Please advise if any of
this is wrong.

Test: Will work on CTS once we agree on the proposal here.
Bug: 159105552
Change-Id: I9f73e1f05d8df26666da156b672e370dce5030de
2020-11-19 14:39:51 +00:00
Bernardo Rufino
f48a5e3d13 Merge "Optionally wait animations on syncInputTransactions/injectInputEvent" 2020-11-19 14:07:13 +00:00
TreeHugger Robot
58ccd68127 Merge "Add Ip Cid Change Event for Filter" 2020-11-19 10:11:13 +00:00
Sarah Chin
c6481cce40 Replace IconIndex as DisplayNumber
Test: atest TelephonyManagerTest
Fix: 171770692
Change-Id: I256649ad0ddcada29e4a7012de3e5889348adb17
Merged-In: I256649ad0ddcada29e4a7012de3e5889348adb17
2020-11-19 02:02:04 -08:00
Sarah Chin
1b48e894c5 Expose CDMA ERI API
Also remove CdmaEriInformation class, since it's not necessary to expose
the entire class.

Test: atest TelephonyManagerTest
Bug: 170421676
Change-Id: I810a492330e82f47949826a4b127164a5b950702
Merged-In: I810a492330e82f47949826a4b127164a5b950702
2020-11-19 01:54:57 -08:00