Commit Graph

1959 Commits

Author SHA1 Message Date
Julia Reynolds
e8326c9688 Merge "Wrap legacyExtra generation in targetsdk check" into qt-dev am: 11110b74ac am: 29399a1bdb
am: e73aa97665

Change-Id: I9ed08f4fbedbbcbdb3c7af6e2676bfdbd447888c
2019-06-12 11:21:05 -07:00
Julia Reynolds
b9dceee067 Wrap legacyExtra generation in targetsdk check
Newer listeners don't need that information!

Test: atest
Fixes: 134964922
Change-Id: I1eb2fe4d339a7ae4950d905d62bd34eebbdb5657
2019-06-12 14:05:40 +00:00
Daniel Sandler
285cb3eaf9 Merge "Dramatically simplify NotificationRankingUpdate." into qt-dev am: d4d9b233b2 am: dc4d3ec131
am: 86fbef2984

Change-Id: I322f738ff99b811f4796e4f331ca440694685f2d
2019-06-07 10:42:51 -07:00
Dan Sandler
ba666f8f54 Dramatically simplify NotificationRankingUpdate.
It is now simply a container for a parceled RankingMap,
which can be unparceled entirely into objects in the
listener's heap and discarded. Notification key strings are
interned (by reference into the Ranking data structure).

This should save a considerable amount of RAM:

 - parceled Bundles hanging around in the listener process,
   waiting to be unparceled, never freed
 - a dozen copies of the notification key string

Bug: 133763354
Test: atest NotificationManagerServiceTest NotificationListenerServiceTest NotificationDataTest
Test: coretests, cts, etc.
Change-Id: I5d8ab5c8f27c70f4af7051b24608ba0d1f2dd5cd
2019-06-06 15:43:23 -04:00
Julia Reynolds
265d093cd9 Use connected boolean as NLS does vs IBinder
To determine if the CPS can get/send messages. Apparently
the IBinder can be cached in ActivityManager and onBind() is not
always called when a service is connected the second time.

Test: manual; ensure a service recieves an onsubscribe for an
active rule post requestUnbind/requestRebind
Fixes: 62584038

Change-Id: Iffe37242509f3bf26e609e6b423f3928c00156ad
2019-06-05 10:45:29 -04:00
Jan Althaus
3353af52db Merge "Adding issuer information to NAS Adjustments" into qt-dev am: bce92301c2 am: 7fffe8f039
am: 3fbe5bf889

Change-Id: I1fb9cecfb1b8992356fca6783df39429ccd2a049
2019-05-28 12:22:34 -07:00
Jan Althaus
367eb8ca1f Adding issuer information to NAS Adjustments
Test: manually tested with ExtServices and AiAi as NAS
Bug: 132679875
Change-Id: I3b4b3135037fe3f82b18e7c024931842986c70bb
2019-05-23 19:35:01 +00:00
Julia Reynolds
4a57894445 Merge "Merge "Revert "Adding issuer information to NAS Adjustments"" into qt-dev am: 95706d0c60 am: 5266e598e9" into qt-r1-dev-plus-aosp
am: dce86ccebb

Change-Id: I048e3725e5ced6d85bb360f5d1a38db22c4b7781
2019-05-22 12:32:25 -07:00
TreeHugger Robot
99885212fa Merge "Fixed Cancellation for PendingAutofillRequest." into qt-dev 2019-05-22 18:52:32 +00:00
Hyunyoung Song
8942a3c8cb Merge "Add a rule to compile IWallpaperService.aidl" into qt-dev am: 1ef1abed52 am: 6826b8ad9a
am: 9e49f858b1

Change-Id: Ibbc77738e321183c25d8e6b543aa9d904379b256
2019-05-22 03:55:10 -07:00
Jan Althaus
65e2fe71eb Merge "Merge "Adding issuer information to NAS Adjustments" into qt-dev am: 71e6ac93f3 am: 277a30f7f7" into qt-r1-dev-plus-aosp
am: 99816c8226

Change-Id: Id4dce6d75cd559644c63eb813f5c866bd152d79f
2019-05-21 19:05:26 -07:00
Adam He
79e0ba05ec Fixed Cancellation for PendingAutofillRequest.
1. mCallback.cancel() now correctly cancels the pending request.
2. AutofillProxy.update() now updates the CancellationSignal.

Fixes: 132459064
Test: atest android.autofillservice.cts.augmented
Change-Id: If8b2ab5c0fd8db4cfad440bf47031f6d85c28ae5
Merged-In: If8b2ab5c0fd8db4cfad440bf47031f6d85c28ae5
2019-05-21 21:13:03 +00:00
Julia Reynolds
95706d0c60 Merge "Revert "Adding issuer information to NAS Adjustments"" into qt-dev 2019-05-21 18:59:33 +00:00
Hyunyoung Song
1ef1abed52 Merge "Add a rule to compile IWallpaperService.aidl" into qt-dev 2019-05-21 16:35:20 +00:00
TreeHugger Robot
f953da0c20 Merge "DO NOT MERGE - Minor fix on internal method name." into qt-dev 2019-05-21 15:41:53 +00:00
Julia Reynolds
b58434a869 Revert "Adding issuer information to NAS Adjustments"
This reverts commit 3b33a04fb3.

Reason for revert: This is crashing ExtServices on qt-dev

Bug: 132679875
Change-Id: I60b7b6b8db33585f62e108389367c74ce682b922
2019-05-21 15:04:27 +00:00
Jan Althaus
3b33a04fb3 Adding issuer information to NAS Adjustments
Test: manually tested with AiAi NAS
Fixes: 132679875

Change-Id: I5d4bf41383143e9573ddad5c08205e1dca3ba6b3
2019-05-21 08:57:02 +02:00
TreeHugger Robot
49654f21e2 Merge "Fixed Cancellation for PendingAutofillRequest." 2019-05-20 21:47:16 +00:00
Hyunyoung Song
096e40510d Add a rule to compile IWallpaperService.aidl
Test: builds
Bug: 133160356

Change-Id: Ib2bcf5a091c603a08dcdb14126bc284575e75806
2019-05-20 14:46:19 -07:00
Fabian Kozynski
a7bf18223f Merge "Merge "Sets Tile default state to INACTIVE" into qt-dev am: 0d7d8d2baf am: d97c3d29e2" into qt-r1-dev-plus-aosp
am: 27e92caebe

Change-Id: I453d0274631e6c49ed918985ba7860fb8be5bd6b
2019-05-20 13:44:54 -07:00
TreeHugger Robot
0d7d8d2baf Merge "Sets Tile default state to INACTIVE" into qt-dev 2019-05-20 13:34:25 +00:00
Adam He
1d320ec6b1 Fixed Cancellation for PendingAutofillRequest.
1. mCallback.cancel() now correctly cancels the pending request.
2. AutofillProxy.update() now updates the CancellationSignal.

Fixes: 132459064
Test: atest android.autofillservice.cts.augmented
Change-Id: If8b2ab5c0fd8db4cfad440bf47031f6d85c28ae5
(cherry picked from commit 33bbf2aa2f1e5dabce5bd94e9b1c950cdcda1448)
2019-05-17 13:29:44 -07:00
Felipe Leme
15b44fe1e3 DO NOT MERGE - Minor fix on internal method name.
Test: atest CtsContentCaptureServiceTestCases

Bug: 130726495

Change-Id: I608fde123882ef58698957e76a5e8cc023153ef0
2019-05-17 19:11:00 +00:00
Adam He
815979d5df Merge "Metrics for content capture." into qt-dev 2019-05-16 19:53:04 +00:00
Fabian Kozynski
5c6f04df30 Sets Tile default state to INACTIVE
When the Tile is created, we don't have its actual state, so it has to
start with some default state. Between the tile being bound and the
first time the state is updated by TileService, this is the default
state.

When the Tile for CustomTile is created, set its default state to
INACTIVE. On the first update it after it's bound it will be set
correctly. This is probably less upsetting than an ACTIVE tile that
suddenly becomes INACTIVE.

Test: manual using logs to verify that the Tile is never ACTIVE when it
shouldn't.
Fixes: 132813963

Change-Id: I58bad0a2a16ca42366a5772f62fe82c74a6e2fb7
2019-05-16 14:23:58 -04:00
Adam He
ff2185346e Metrics for content capture.
Bug: 119613670
Test: statsd_testdrive & manual test
Change-Id: Ib2c61d2a3c08a9db779790417eb0177c2420d8fd
Merged-In: If43465ccee7454a7ebf9e15caa23fce7bae33cfe
2019-05-15 11:12:02 -07:00
Adam He
3a314441af Merge "Metrics for content capture." 2019-05-15 17:44:52 +00:00
Mehdi Alizadeh
799669e177 Merge "Updates java doc in AppPredictionService" into qt-dev am: 60c9f4803a
am: 2f0c8f7e69

Change-Id: I4f5d97f19d864d96b41536b076c890c4e9b29298
2019-05-14 19:40:36 -07:00
Mehdi Alizadeh
8ed33831c9 Updates java doc in AppPredictionService
Bug: 123591863
Test: None
Change-Id: I1ef31e6c723199432f852ad38e1af35d6017cc1f
2019-05-14 15:05:31 -07:00
Adam He
420947c4cc Metrics for content capture.
Bug: 119613670
Test: statsd_testdrive & manual test
Change-Id: If43465ccee7454a7ebf9e15caa23fce7bae33cfe
2019-05-14 11:33:33 -07:00
Fabian Kozynski
dec71b7aad Merge "Fix race condition in TileServices" into qt-dev am: 5e23231f82
am: 66068f508d

Change-Id: I30fc07f2b0c971aa7773ad5f2683a44bb794d9c1
2019-05-10 18:13:36 -07:00
Fabian Kozynski
5e23231f82 Merge "Fix race condition in TileServices" into qt-dev 2019-05-10 14:22:25 +00:00
Felipe Leme
4439ee663f Renamed UserDataRemovalRequest to DataRemovalRequest.
Test: m update-api
Test: atest CtsContentCaptureServiceTestCases

Bug: 130726495

Change-Id: I691b9de40863421395e910f6e28186d8a91b08f2
2019-05-08 10:36:36 -07:00
Felipe Leme
c0df895a41 Added moar augmented-autofill metrics:
- AUTOFILL_AUGMENTED_WHITELIST_REQUEST
- AUTOFILL_AUGMENTED_RESPONSE
- FIELD_AUTOFILL_AUGMENTED_ONLY on AUTOFILL_SESSION_FINISHED

Test: adb shell logcat -b events | grep sysui
Test: atest CtsContentCaptureServiceTestCases # sanity check

Bug: 112192360
Fixes: 122858578

Merged-In: Ia6bfced9396dd9e3f8ef2a6c45415dc22f4327c9
Change-Id: Ia6bfced9396dd9e3f8ef2a6c45415dc22f4327c9
2019-05-07 11:46:12 -07:00
TreeHugger Robot
0e74e825d3 Merge "Added moar augmented-autofill metrics:" 2019-05-06 23:04:17 +00:00
Felipe Leme
b8662f1201 Added moar augmented-autofill metrics:
- AUTOFILL_AUGMENTED_WHITELIST_REQUEST
- AUTOFILL_AUGMENTED_RESPONSE
- FIELD_AUTOFILL_AUGMENTED_ONLY on AUTOFILL_SESSION_FINISHED

Test: adb shell logcat -b events | grep sysui
Test: atest CtsContentCaptureServiceTestCases # sanity check

Bug: 112192360
Fixes: 122858578

Change-Id: Ia6bfced9396dd9e3f8ef2a6c45415dc22f4327c9
2019-05-06 12:04:48 -07:00
George Hodulik
14a896e31e Merge "Add null check in AppPredictionService callback wrapper." into qt-dev am: 940284bbbe
am: 53ee9da669

Change-Id: Id49ec22dbe522dece23050b7bd7766bb293544a2
2019-05-06 11:44:00 -07:00
George Hodulik
940284bbbe Merge "Add null check in AppPredictionService callback wrapper." into qt-dev 2019-05-06 17:58:43 +00:00
George Hodulik
b3aa6562e5 Add null check in AppPredictionService callback wrapper.
Bug: 131917369
Test: Killed launcher and confirmed the binder died callback was called and callback was removed.
Test: compiles
Change-Id: I40612aeca2de2f197e17379355e6d9e46193ae5e
2019-05-06 17:58:24 +00:00
Felipe Leme
a12c887ee8 Merge "Removed unusued constant (FLAG_AUGMENTED_AUTOFILL_REQUEST)." into qt-dev am: 19864d570c
am: a8973adaff

Change-Id: I90d1ea8634d48e667f0d977ee030d243c43d9944
2019-05-06 10:29:39 -07:00
TreeHugger Robot
19864d570c Merge "Removed unusued constant (FLAG_AUGMENTED_AUTOFILL_REQUEST)." into qt-dev 2019-05-06 16:52:00 +00:00
Felipe Leme
8fc8838e74 Removed unusued constant (FLAG_AUGMENTED_AUTOFILL_REQUEST).
Test: atest CtsContentCaptureServiceTestCases
Bug: 123100811
Bug: 122858578

Change-Id: I030cb12343e6c07cbcd1d6ba08e1051109531aab
2019-05-06 16:48:44 +00:00
Julia Reynolds
1948358bf6 Merge "Remove separate recent app tracking" into qt-dev am: 165ac85b33
am: 6553e65446

Change-Id: Ifb36dead6a6977863207e2929e17cefe41ae01e6
2019-05-04 07:49:57 -07:00
TreeHugger Robot
165ac85b33 Merge "Remove separate recent app tracking" into qt-dev 2019-05-04 14:30:29 +00:00
Zak Cohen
deb9104342 Merge "Remove temporary deprecated methods ContentSuggestionsService." into qt-dev am: ae5afab030
am: f60c87c389

Change-Id: I87d74d400ca051a6a425c84647fa008489040263
2019-05-04 00:49:25 -07:00
Julia Reynolds
8bd8fdf506 Remove separate recent app tracking
Just use UsageStats

Test: atest
Bug: 131641848
Change-Id: I40c0f3dd3a2b67ed1f52062b3cbadec6bed0f189
2019-05-03 20:50:07 +00:00
Zak Cohen
5aa8b6df09 Remove temporary deprecated methods ContentSuggestionsService.
Bug: 127532182
Test: CTS test
Change-Id: Icc0bc012a5e1a2c85d108a7fa7df481e570cd43a
2019-05-03 20:48:08 +00:00
Fabian Kozynski
e6395dd71a Fix race condition in TileServices
TileServices#getTileWrapper created a TileServiceManager (that triggered
the binding of TileService through a Handler) and after populated the
maps with the respective tokens. As one of the keys is the
TileServiceManager, this had to do after creating it.

This created the situation that in certain cases, the binding would
happen before all the maps were populated (in particular mTokenMap but
sometimes mServices).

By decoupling the binding triggering from TileServiceManager constructor
into a separate method in TileServiceManager we can guarantee that by
the time the service is bound, the maps are populated. Also added some
guards to make sure that this method has been called and the tile has
been added.

The new method is called after populating the maps, and it would not
make sense for the TileService to be bound if the maps are not
populated.

Test: atest TileServiceMaanger TileLifecycleManager TileServicesTest
Test: atest CtsAppTestCases:android.app.cts.TileServiceTest (approx 50
times)
Test: test TileServiceTest ActiveTileServiceTest
Test: Development tiles and adding Grayscale tile work perfectly
Fixes: 124735442
Fixes: 129684780
Fixes: 130796699

Change-Id: Ie3c7277756c74551ba2e6b3e88dad4a98aeafc96
2019-05-03 12:18:43 -04:00
Leon Scroggins
1d03ca5aa2 Merge "Pass ColorSpace along with HardwareBuffers" into qt-dev am: 6e5efabcfd
am: e6034a30f0

Change-Id: I6997e9aa1126f4ae9c3de578d3770264f648300c
2019-05-03 04:32:00 -07:00
Leon Scroggins
6e5efabcfd Merge "Pass ColorSpace along with HardwareBuffers" into qt-dev 2019-05-02 15:15:02 +00:00