Previous behavior:
1. Detect a valid touch.
2. Enable HBM.
3. Notify the HAL about onPointerDown when HBM is enabled.
New behavior:
1. Detect a valid touch and report onPointerDown right away.
2. Enable HBM.
3. Notify the HAL about onUiReady when HBM is enabled.
Bug: 184361899
Test: atest UdfpsControllerTest
Test: on device
Change-Id: I48aa3945902a8ca151aabe61a5e71e910773bd88
If an alarm is removed from the service for some reason, the bugreport
contains no useful information about it. Recording the last 10 removes
with their reason. For now, the set of reasons includes:
- Data cleared on the calling app.
- App requested to cancel it.
- Exact alarm permission revoked.
- PendingIntent used to set the alarm was cancelled.
More reasons can be added as seen useful in the future.
Test: adb shell dumpsys alarm
atest FrameworksMockingServicesTests:com.android.server.alarm
atest CtsAlarmManagerTestCases
Fixes: 184677899
Change-Id: I9d67b90572b5d731ad5d224ae7d537ae176508d5
If an ApkAssets is created and destroyed before being put into an
AssetManager, the native layer may not have been synchronized in the
thread that does Java object finalization. So when the Java object gets
deleted on the finalization thread, it may see old/unallocated native
data and not delete the native object correctly.
Similar to how we already lock on the native AssetManager whenever
entering the JNI layer, we should also do the same for ApkAssets.
Bug: 186528775
Test: boot and no crashes
Change-Id: I5fcb9e788a9e3cb8baeb92fa6efc882d5bbbf0b0
Several years ago ParcelFileDescriptor.parseMode() was fixed to match
the behavior of fopen(), since developers expect consistent behavior
between managed and native code. FileUtilsTest.testTranslateMode()
verifies that all these modes are correctly translated.
However, this unintentionally changed the behavior of
ContentResolver.openOutputStream(), which only sends the 'w' mode
to the remote process. Developers expect this API to behave like
the FileOutputStream constructor, which always truncates the file
unless opened with the append mode.
Since some remote providers may not be prepared to handle the 't'
mode, this change carefully uses Os.ftruncate() to restore this
expected behavior in all cases.
For other APIs that return opened files, this strategy is applied
to restore the original behavior, but only when the target SDK of
the app is expecting this truncation to take place. The reason for
this is that moving forward our goal should always enable
ContentInterface APIs to be a transparent conversation between apps
without attempting to alter the behavior. Apps talking with older
providers can apply the Os.ftruncate() logic themselves, if
desired, once they target Android Q or higher.
Bug: 157888856, 180680924
Test: atest CtsContentTestCases:ContentResolverTest
Change-Id: Iacec49164c4ce3891db0270635e9f458dea7becd
This was left in place for Google3 compatibility during development; this
is no longer required as the usages have been cleaned up.
Test: Build / run CTS
Fixes: 186659702
Change-Id: Ib386c3f9912870b11b1a37863dccfa9d3b5cb7a9
Marquee for long text and increase size to match spec
Fixes: 186005103
Fixes: 185673140
Test: visual
Change-Id: I50774cc06f75f420baab78dc51328a2bdfae14bc
Also a few polish:
1. update the tile icon.
2. do not use ActivityStarter to launch wallet activty when cards exist.
Fix: 185579396
Test: manual
Test: atest
Change-Id: I1ddc938f600708fc88fd9217d2286d3c273e6f72
Add a debug log to identify calls to showSoftInput from Insets API.
Fix: 1865976
Test: manually using steps:
1. Use an app like launcher that uses Insets API to show IME.
2. dump using adb shell dumpsys input_method
3. Verify log.
4. use another app that shows IME using showSoftInput like gmail
5. verify the log
Change-Id: I6ba0d3f7912855f31e033735557b44eeed3e6652
Test: manual - open a bubble, tap the 'manage' button
- tap the overflow
=> observe that the manage menu is hidden smoothly &
then the overflow is shown
Fixes: 185263101
Change-Id: I1703db6c5eacdec6eaab7bdebac9a910cd0ccfa9
In S, to simplify shortcut usage report, calling pushDynamicShortcut now
leads to usage report so that developer only needs to deal with one api.
Bug: 151359749
Test: atest ShortcutManagerTest1 ShortcutManagerTest2
ShortcutManagerTest3 ShortcutManagerTest4 ShortcutManagerTest5
ShortcutManagerTest6 ShortcutManagerTest7 ShortcutManagerTest8
ShortcutManagerTest9 ShortcutManagerTest10 ShortcutManagerTest11
Test: atest CtsShortcutManagerTestCases
Change-Id: Ib7b0de0c8343475c2e09078240a87f9b29d55880
Add the restricted keyword to the set-standby-bucket help command
options.
Bug: 145551233
Test: `adb shell am help`
Change-Id: I6cd5c52b29ff7431f340aa46a50210ecc9f2952a
* When the COPE work profile is removed, security
and network logging should be stopped and removed.
Manual testing
* Set up device in COPE mode
* Enable network logging and security logging
using TestDPC
* Add debugger breakpoint in DPMS.wipeData
* Select 'Remove work profile' in TestDPC
* Verify DPMS SecurityLogMonitor has been stopped
* Verify DPMS NetworkLogger is null
Bug: 182453624
Test: manual testing
Change-Id: I62df832023f12620e936b49240ecdb1cc2a722f5