To avoid the race condition when other preferred activities are being
configured while home role is being set.
This reverts commit d30570e29a.
Reason for revert: Resubmission after fix
Bug: 178191941
Test: presubmit
Change-Id: Ib9777aba92462eec1d7c595833a86cfeddc02c1b
Added logic to StretchEffect to be able to calculate the
stretched position of a pixel on an input texture based
on the current stretch parameters.
Updated shader to leverage linear easing instead of
cubic in order to have a reversible method that
can be used to map input textures to the corresponding
stretch position.
Bug: 179047472
Test: manual
Change-Id: Id32afcf0df1cca03e68ac0c594d307a1090264f2
Update API to include userId rather than using the default Context
userId.
Fixes: 187344132
Test: Toggling muted mic works
Change-Id: I2771117d97f89e961a6fb9949d28f0edbb4b5591
DataInputStream is cached for the lmkd socket communication
Since the LmkdConnection ByteBuffer is allocated once,
no need to dynamically allocate DataInputStream,
just do a reset() before using
Bug: 184698933
Test: lmkd_unit_test - test check_for_oom tests lmkd message send to AMS
Test: statsd_testdrive 51 54 to inspect statsd logged atoms data
Change-Id: I9b65d82618654d59236c79be8cd8da66bc90c91c
device is bonding, we either broadcast cached UUIDs or wait for SDP to
be performed after the device is bonded.
Tag: #feature
Bug: 187157597
Test: Manual
Change-Id: I1bd694195c4e974b7cd72f81848a6343b45c98fd
1. DEVICE and ALL_APPS are now combined in one screen
2. Totals are displayed at the top
3. Column headers are shown conditionally
4. New icon for totals
5. Swipe-to-refresh
Bug: 187370721
Test: mp :BatteryStatsViewer && adb shell am start -n com.android.frameworks.core.batterystatsviewer/.BatteryConsumerPickerActivity
Change-Id: Ic250fe54b3fe3c54ff461218f126fc83f9921fd9
- Added support to subscribe for a lmkd LMK_ASYNC_EVENT_STAT event
- Added processing LMK_KILL_OCCURRED and LMK_STATE_CHANGED packets
with logging to statsd
- Added statsd auto-generated code wrapping the statsd logging
Bug: 184698933
Test: lmkd_unit_test - test check_for_oom tests lmkd message send to AMS
Test: statsd_testdrive 51 54 to inspect statsd logged atoms data
Change-Id: I69ef1a9daa5532244a15665bff06d0ad6b370869
Subtract out time spent blocked in dequeueBuffer. Also subtract out any
time UI spents waiting on render thread while render thread is blocked
dequeueBuffer, though this calculation is fairly crude.
Test: Checked bouncyball returns reasonable-ish numbers even when HWUI
is ahead of surface flinger
Bug: 187556381
Change-Id: I368c446d93990ff8b7b645e30509405ba799c79c
Introduces:
Execution.assertIsMainThread()
Execution.isMainThread()
Which can be injected and manipulated during tests
Bug: 186481467
Test: atest
Change-Id: Iba1cee95946452e3f74e55865d2a7fee2089798d
The NEM has a dependency on the ranker that it really shouldn't have
(because the ranker has a dependency on things that might want to have a
dependency on the NEM). This makes it a lazy dependency for now -- this
should be a field that gets set on the NEM eventually.
Bug: 186481467
Test: atest
Change-Id: Ic5192c787ad367fadfc1e43eb529f7663ab81d77
Bug: 187206399
Test: atest AlarmManagerServiceTest
Test: Manual test with a test app.
- Grant the permission to test app and make sure it can start FGS.
Log:
```
05-07 10:12:08.671 1000 1579 9475 I ActivityManager: Background started FGS: Allowed [callingPackage: com.google.omakoto.testapp; callingUid: 10294; uidState: RCVR; intent: Intent { act=fgs cmp=com.google.omakoto.testapp/.MyFgs }; code:(unknown:207); tempAllowListReason:<broadcast:1000:android.app.action.SCHEDULE_EXACT_ALARM_PERMISSION_STATE_CHANGED,reason:,reasonCode:(unknown:207),duration:10000,callingUid:1000>; targetSdkVersion:30; callerTargetSdkVersion:30; startForegroundCount:0]
```
- Grant the permission to a different app and make sure the test app
won't receive the broadcast.
Test: CTS -- Incoming
Change-Id: Iefe3e12dcf51318d8433532ba3048caa69b1edcd
Both landscape or portrait display screen scenarios
should be handled when logicalWidth and LogicalHeight
are updated during the rotation of a pip activity
Bug: 185196174
Signed-off-by: Salini Venate <salini.venate@intel.com>
Signed-off-by: Swee Yee Fonn <swee.yee.fonn@intel.com>
Change-Id: Ic0dffb059f1a430ae5b08d91f1fa0d7b585c25ef
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testPinnedStackInBoundsAfterRotation