OSDN Git Service
David Brazdil [Wed, 21 Mar 2018 10:33:07 +0000 (10:33 +0000)]
Merge "Add hidden API uses to light greylist" into pi-dev
David Brazdil [Wed, 21 Mar 2018 10:12:57 +0000 (10:12 +0000)]
Merge "Temporarily whitelist platform test packages for hidden API" into pi-dev
Ben Lin [Wed, 21 Mar 2018 06:07:45 +0000 (06:07 +0000)]
Merge "Add new Intent start a package's Open By Default page directly." into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 05:34:16 +0000 (05:34 +0000)]
Merge "Allow statsd to be given empty config." into pi-dev
Winson Chung [Wed, 21 Mar 2018 04:37:02 +0000 (04:37 +0000)]
Merge "Create task record with window container controller when adding task" into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 04:28:54 +0000 (04:28 +0000)]
Merge "Stop creating PrecomputedText in StaticLayout" into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 03:27:56 +0000 (03:27 +0000)]
Merge changes from topic "SoundTriggerJobService-steps" into pi-dev
* changes:
Throttle number of sound trigger operations / day
Add SoundTriggerDetectionService
Expose SoundTriggerManager and SoundTrigger APIs
TreeHugger Robot [Wed, 21 Mar 2018 03:25:49 +0000 (03:25 +0000)]
Merge "Fix confusing Log.e message in SpellCheckerSession" into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 02:57:19 +0000 (02:57 +0000)]
Merge "Screen off animation" into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 02:31:19 +0000 (02:31 +0000)]
Merge "Get current and default brightness configs." into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 02:20:10 +0000 (02:20 +0000)]
Merge "Fix docs for LocationRequest#setLowPowerMode()" into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 02:05:12 +0000 (02:05 +0000)]
Merge "Use AsyncTask.SERIAL_EXECUTOR as the default executor for scan" into pi-dev
Seigo Nonaka [Tue, 20 Mar 2018 22:18:59 +0000 (15:18 -0700)]
Stop creating PrecomputedText in StaticLayout
No performance regressions are expected
android.text.PrecomputedTextPerfTest:
create NoStyled Hyphenation : 17,849,966 -> 17,858,570: (+0.0%)
create NoStyled Hyphenation WidthOnly : 17,814,338 -> 17,801,205: (-0.1%)
create NoStyled NoHyphenation : 7,123,449 -> 7,068,308: (-0.8%)
create NoStyled NoHyphenation WidthOnly : 7,108,169 -> 7,074,908: (-0.5%)
create Styled Hyphenation : 12,179,203 -> 12,131,020: (-0.4%)
create Styled Hyphenation WidthOnly : 12,112,347 -> 12,241,311: (+1.1%)
create Styled NoHyphenation : 11,870,126 -> 11,880,442: (+0.1%)
create Styled NoHyphenation WidthOnly : 11,836,742 -> 11,860,292: (+0.2%)
android.text.StaticLayoutPerfTest:
create PrecomputedText Balanced Hyphenation : 697,713 -> 691,148: (-0.9%)
create PrecomputedText Balanced NoHyphenation: 517,113 -> 498,106: (-3.7%)
create PrecomputedText Greedy Hyphenation : 468,243 -> 455,015: (-2.8%)
create PrecomputedText Greedy NoHyphenation : 479,514 -> 461,617: (-3.7%)
create RandomText Balanced Hyphenation : 17,183,044 -> 17,049,811: (-0.8%)
create RandomText Balanced NoHyphenation : 7,183,745 -> 7,025,070: (-2.2%)
create RandomText Greedy Hyphenation : 7,130,841 -> 6,995,785: (-1.9%)
create RandomText Greedy NoHyphenation : 7,122,398 -> 7,037,074: (-1.2%)
draw PrecomputedText NoStyled : 520,306 -> 551,465: (+6.0%)
draw PrecomputedText NoStyled WithoutCache : 545,773 -> 566,956: (+3.9%)
draw PrecomputedText Styled : 826,044 -> 838,979: (+1.6%)
draw PrecomputedText Styled WithoutCache : 829,958 -> 841,749: (+1.4%)
draw RandomText NoStyled : 537,079 -> 545,428: (+1.6%)
draw RandomText NoStyled WithoutCache : 6,473,166 -> 6,445,194: (-0.4%)
draw RandomText Styled : 995,033 -> 1,015,913: (+2.1%)
draw RandomText Styled WithoutCache : 2,725,313 -> 2,770,604: (+1.7%)
android.widget.TextViewPrecomputedTextPerfTest:
newLayout PrecomputedText : 754,311 -> 718,130: (-4.8%)
newLayout PrecomputedText Selectable : 17,716,239 -> 17,484,046: (-1.3%)
newLayout RandomText : 16,657,952 -> 16,511,625: (-0.9%)
newLayout RandomText Selectable : 17,675,222 -> 17,520,653: (-0.9%)
onDraw PrecomputedText : 1,307,123 -> 1,280,009: (-2.1%)
onDraw PrecomputedText Selectable : 17,613,031 -> 17,404,379: (-1.2%)
onDraw RandomText : 17,369,256 -> 17,295,363: (-0.4%)
onDraw RandomText Selectable : 18,207,392 -> 18,077,660: (-0.7%)
onMeasure PrecomputedText : 748,537 -> 739,128: (-1.3%)
onMeasure PrecomputedText Selectable : 17,842,953 -> 17,784,459: (-0.3%)
onMeasure RandomText : 16,633,454 -> 16,549,182: (-0.5%)
onMeasure RandomText Selectable : 18,022,286 -> 17,873,919: (-0.8%)
setText PrecomputedText : 120,769 -> 119,496: (-1.1%)
setText PrecomputedText Selectable : 162,411 -> 150,809: (-7.1%)
setText RandomText : 11,096 -> 10,956: (-1.3%)
setText RandomText Selectable : 48,852 -> 48,593: (-0.5%)
Bug:
72998298
Test: atest CtsWidgetTestCases:EditTextTest
CtsWidgetTestCases:TextViewFadingEdgeTest
FrameworksCoreTests:TextViewFallbackLineSpacingTest
FrameworksCoreTests:TextViewTest FrameworksCoreTests:TypefaceTest
CtsGraphicsTestCases:TypefaceTest CtsWidgetTestCases:TextViewTest
CtsTextTestCases FrameworksCoreTests:android.text
CtsWidgetTestCases:TextViewPrecomputedTextTest
Change-Id: I3af758ecc5a15975c4e59c6378faf7c14c3bd65b
Yohei Yukawa [Tue, 20 Mar 2018 23:28:59 +0000 (16:28 -0700)]
Fix confusing Log.e message in SpellCheckerSession
With this CL, calling SpellCheckerSession#close() multiple times will
no longer show the following error message in logcat, which was quite
confusing.
E SpellCheckerSession: ignoring processOrEnqueueTask due to
unexpected mState=TASK_CLOSE scp.mWhat=TASK_CLOSE
Note that with a recent CL [1], we now more often see the above
message. A typical scenario is:
1. App creates SpellCheckerSession x.
2. App calls x.close().
3. x is garbage-collected. ART calls x.finalize(), which internally
calls x.close() again.
[1]: I4e00c3a2cec93d1dacff20546e481fe757279661
9b64367193ffb252f869fb9f65a60b51a654119e
Bug:
72974646
Fix:
72974646
Test: Made sure that no error message in question with a test app
that calls SpellCheckerSession#close() multiple times then
trigger SpellCheckerSession#finalize().
Change-Id: Ie9690860e6d0406dc6746cd03c28f693e65c1dde
TreeHugger Robot [Wed, 21 Mar 2018 01:13:21 +0000 (01:13 +0000)]
Merge "Disable app_stacks and last_kmsg until they get selinux permissions." into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 01:04:15 +0000 (01:04 +0000)]
Merge "heif: address api review comments" into pi-dev
Selim Cinek [Wed, 21 Mar 2018 00:53:50 +0000 (00:53 +0000)]
Merge changes from topic "heads_up_redesign" into pi-dev
* changes:
Added new appear and disappear animations for heads up
Polished the heads up experience
Removed the heads up scrim and replaced it with more elevation
Insetting heads up notifications
Ensured that the heads-up notifications are always rounded
TreeHugger Robot [Wed, 21 Mar 2018 00:40:19 +0000 (00:40 +0000)]
Merge "Distinguish between createSurface error codes." into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 00:38:35 +0000 (00:38 +0000)]
Merge "Move the trusted root CA certs for RecoverableKeyStore to our own folder" into pi-dev
Howard Ro [Wed, 21 Mar 2018 00:31:23 +0000 (00:31 +0000)]
Merge "Fix recovery of stats data from previous input while using ProtoOutputStream" into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 00:08:28 +0000 (00:08 +0000)]
Merge "API Review: Documentation improvement for standby buckets" into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 00:07:03 +0000 (00:07 +0000)]
Merge "GPS metrics collection" into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 00:06:40 +0000 (00:06 +0000)]
Merge "Introduce new constructor for not copying NoCopySpan" into pi-dev
Yu-Han Yang [Tue, 20 Mar 2018 22:43:56 +0000 (15:43 -0700)]
Fix docs for LocationRequest#setLowPowerMode()
Bug:
74218111
Change-Id: Ib77a58c21e2cc3601221c8b5cc13eb416dccfbc9
Fixes:
74218111
Test: N/A
TreeHugger Robot [Tue, 20 Mar 2018 23:54:01 +0000 (23:54 +0000)]
Merge "Fingerprint vibrate doesn't change based on DND" into pi-dev
TreeHugger Robot [Tue, 20 Mar 2018 23:46:06 +0000 (23:46 +0000)]
Merge "Fingerprint navigation settings is a secure setting" into pi-dev
TreeHugger Robot [Tue, 20 Mar 2018 23:38:36 +0000 (23:38 +0000)]
Merge "Ability to hide/unhide suspended app notifications" into pi-dev
TreeHugger Robot [Tue, 20 Mar 2018 23:38:10 +0000 (23:38 +0000)]
Merge "Better javadoc and rename several methods in ApnSetting." into pi-dev
TreeHugger Robot [Tue, 20 Mar 2018 23:36:37 +0000 (23:36 +0000)]
Merge "Check if the given user is unlocked when unlock by token" into pi-dev
Nathan Harold [Tue, 20 Mar 2018 23:35:58 +0000 (23:35 +0000)]
Merge "Add alpha Strings to CellIdentityTdscdma" into pi-dev
TreeHugger Robot [Tue, 20 Mar 2018 23:31:24 +0000 (23:31 +0000)]
Merge "Fix pulling interval may become 0 in cts" into pi-dev
Makoto Onuki [Tue, 20 Mar 2018 23:31:02 +0000 (23:31 +0000)]
Merge "Revert "Dispatch global settings changes to all users."" into pi-dev
Makoto Onuki [Tue, 20 Mar 2018 23:27:47 +0000 (23:27 +0000)]
Revert "Dispatch global settings changes to all users."
This reverts commit
989157e1a6ae6049769a6d02af518cf9cd21bd79.
Reason for revert: Crashing stuff -- http://b/
76031092
Bug:
76031092
Change-Id: I190280b4f7bd2c6fda5d88fe25fd609d1cf6d7fb
Yi Jin [Tue, 20 Mar 2018 22:51:14 +0000 (15:51 -0700)]
Disable app_stacks and last_kmsg until they get selinux permissions.
Bug:
73487276
Test: atest CtsIncidentHostTestCases:com.android.server.cts.IncidentdIsolatedTest
and atest CtsIncidentHostTestCases:com.android.server.cts.IncidentdTest
Change-Id: Ifc0813d59c243a1b4afa150bbcfa4b072a044ffc
TreeHugger Robot [Tue, 20 Mar 2018 23:00:45 +0000 (23:00 +0000)]
Merge "Prevent callbacks after onStop is called." into pi-dev
Lucas Dupin [Thu, 8 Feb 2018 21:14:50 +0000 (13:14 -0800)]
Screen off animation
SysUI can now control the screen off animation as long as
config_dozeAfterScreenOff is set to false.
The current implementation collapses the notification shade and moves
the clock whenever the use is on the lock screen, or will fade the
scrims and show the clock when the keyguard is occluded.
Display state change (on, doze, doze_suspended) is delayed to let the
animations occur at 60Hz.
Test: atest packages/SystemUI/tests/src/com/android/systemui/doze/DozeUiTest.java
Test: atest packages/SystemUI/tests/src/com/android/systemui/doze/DozeWallpaperStateTest.java
Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ScrimControllerTest.java
Test: atest tests/src/com/android/systemui/statusbar/phone/DozeScrimControllerTest.java
Test: atest tests/src/com/android/systemui/statusbar/phone/DozeParametersTest.java
Test: atest packages/SystemUI/tests/src/com/android/systemui/keyguard/WakefulnessLifecycleTest.java
Fixes:
73178121
Change-Id: Id5d964452f342d4e97bedf1084efa808604e602c
David Chen [Tue, 20 Mar 2018 21:38:56 +0000 (14:38 -0700)]
Allow statsd to be given empty config.
Statsd clients may want to set an empty config temporarily, so it's
more convenient to allow them to set an empty config instead of
having to use the removeConfig and then having to remember to call
StatsManager#setDataFetchOperation.
Test: Added unit-tests and check they pass on marlin-eng.
Bug:
74997752
Change-Id: I2e762e5ec01e5a2c9a3469fb330b53fefbd734d6
Winson Chung [Wed, 14 Mar 2018 18:36:42 +0000 (11:36 -0700)]
Create task record with window container controller when adding task
- Call through the stack to create the task record completely instead of
creating the record directly when adding a new task. If adding the task
fails, also remove the task from the stack
- Remove unused caching members (they were never set) optimization when
adding tasks
Bug:
73898704
Test: Manual, install APK from bug, and start up to ensure that SysUI
does not crash
Change-Id: I5ef778e6e8ff90c225dadcf8494de5e09798bd8b
Jiuyu Sun [Tue, 20 Mar 2018 22:53:31 +0000 (22:53 +0000)]
Merge "Mark eraseSubscriptions as @SystemApi." into pi-dev
Andrii Kulian [Tue, 20 Mar 2018 22:42:21 +0000 (22:42 +0000)]
Merge "Use transaction for local activity relaunch" into pi-dev
TreeHugger Robot [Tue, 20 Mar 2018 22:40:53 +0000 (22:40 +0000)]
Merge "Ensure QS contains at least 6 tiles." into pi-dev
Nathan Harold [Mon, 19 Mar 2018 23:59:40 +0000 (16:59 -0700)]
Add alpha Strings to CellIdentityTdscdma
Add equivalent alphaLong and alphaShort to
TD-SCDMA so that it's equivalent to LTE, WCDMA,
GSM, etc.
Bug:
75980473
Test: compilation
Change-Id: Ibaa8a7daafb44f7fc94f0fd6aaa193b67793eea4
Selim Cinek [Sat, 17 Mar 2018 00:37:50 +0000 (17:37 -0700)]
Added new appear and disappear animations for heads up
The heads up notifications now appear directly out of the
statusbar icon in a smoother way. This also fixes the
landscape presentation, which was completely wrong
before.
Test: runtest systemui
Change-Id: I84e65d5216f74a9eb1717d3e7c111d66c0b43c65
Fixes:
72748440
Selim Cinek [Thu, 15 Mar 2018 19:13:51 +0000 (12:13 -0700)]
Polished the heads up experience
Test: runtest systemui
Fixes:
72748440
Change-Id: I7025119675ed260b5fe53593ea3764918593cc5e
Selim Cinek [Thu, 15 Mar 2018 16:17:47 +0000 (09:17 -0700)]
Removed the heads up scrim and replaced it with more elevation
Fixes:
72748440
Test: runtest systemui
Change-Id: Id1eb413a2a44589727d212c0fefe3a1b742bb25e
Selim Cinek [Wed, 28 Feb 2018 01:35:47 +0000 (17:35 -0800)]
Insetting heads up notifications
Heads up notifications are now corretly respecting insets.
instead of overlapping with any possible notches, we're
insetting heads up notifications and splitting the main
content from the header.
Fixes:
72748440
Test: runtest systemui
Change-Id: Ie53ea31fef4e468239c4346f9d1f192bcb26e11d
Selim Cinek [Wed, 28 Feb 2018 01:05:45 +0000 (17:05 -0800)]
Ensured that the heads-up notifications are always rounded
Previously they would have a random rounding. We're now introducing
a roundness manager that isolates this from the notification list.
Bug:
72748440
Test: runtest systemui
Change-Id: I5e9e7528a55536c802b5262168664e47fbec310e
TreeHugger Robot [Tue, 20 Mar 2018 22:20:22 +0000 (22:20 +0000)]
Merge "[DO NOT MERGE] Make TCMS multi-user-aware" into pi-dev
Bo Zhu [Tue, 20 Mar 2018 21:27:07 +0000 (14:27 -0700)]
Move the trusted root CA certs for RecoverableKeyStore to our own folder
Bug:
74621071
Test: runtest frameworks-core -p android.security.keystore.recovery
Change-Id: I3668594b29f56832f2a1fe78b01f585c897bf952
Andrii Kulian [Tue, 20 Mar 2018 22:01:27 +0000 (22:01 +0000)]
Merge "Don't set override display info for ActivityView" into pi-dev
Jorim Jaggi [Tue, 20 Mar 2018 22:01:10 +0000 (22:01 +0000)]
Merge "Wait with reparenting back until all app animations are done" into pi-dev
yro [Fri, 16 Mar 2018 02:42:05 +0000 (19:42 -0700)]
Fix recovery of stats data from previous input while using
ProtoOutputStream
- Specify the length of message to avoid libprotoutil from thinking that
we are trying to write bool
- We only attach the previous dump file to the upload file where config
key matches
- Store ConfigMetricsReport (instead of ConfigMetricsReportList) onto
disk
- Stop use stack after scope in StorageManager
- Migrate UidMap to use ProtoOutputStream and renaming variables to
prevent confusion
Bug:
74021554
Bug:
75968524
Test: manual test, statsd_test, CTS tests
Change-Id: Iedf52633d7f5b985f5a934a3fb5a0c3c3b2e7fd1
Jorim Jaggi [Mon, 19 Mar 2018 13:53:23 +0000 (14:53 +0100)]
Wait with reparenting back until all app animations are done
An activity A that has a shorter animation that is above another
activity B with a longer animation in the same task, the animation
layer would put the B on top of A, but from the hierarchy, A needs
to be on top of B. Thus, we defer reparenting A to the original
hierarchy such that it stays on top of B until B finishes
animating.
Test: Above scenario
Test: AnimatingAppWindowTokenRegistryTest
Fixes:
75246892
Change-Id: I73796376c1cbeb8327262a304911ce2abfbbb0b6
Eino-Ville Talvala [Tue, 20 Mar 2018 21:58:15 +0000 (21:58 +0000)]
Merge "Camera2: Deprecate LENS_RADIAL_DISTORTION, add LENS_DISTORTION" into pi-dev
TreeHugger Robot [Tue, 20 Mar 2018 21:58:01 +0000 (21:58 +0000)]
Merge "Fix cutoff g in "Restarting"/"Shutting down" messages." into pi-dev
Alice Sheng [Tue, 20 Mar 2018 21:56:40 +0000 (21:56 +0000)]
Merge "Revert "Revert "Add setting for enabling CPU frequency scaling.""" into pi-dev
TreeHugger Robot [Tue, 20 Mar 2018 21:46:40 +0000 (21:46 +0000)]
Merge "[DO NOT MERGE] Eliminate duplicate layers in A11yService#getWindows()" into pi-dev
Kevin Chyn [Tue, 20 Mar 2018 21:42:39 +0000 (14:42 -0700)]
Fingerprint navigation settings is a secure setting
Fixes:
76025501
Test: turning on/off the navigation setting actually turns on/off
the ability to swipe the notification panel
Change-Id: I465fcebfc1e248bd37a609f404462ae8a45cf31b
Beverly [Tue, 6 Mar 2018 20:02:44 +0000 (15:02 -0500)]
Ability to hide/unhide suspended app notifications
Test: NotificationListenerVerifierActivity.java
Test: atest NotificationDataTest NotificationListenerServiceTest NotificationManagerServiceTest
Bug:
73965645
Change-Id: I49a02e9fd84dfaa1891437a5d8fc52109a43cded
TreeHugger Robot [Tue, 20 Mar 2018 21:39:52 +0000 (21:39 +0000)]
Merge "[DO NOT MERGE] Magnify status bar" into pi-dev
TreeHugger Robot [Tue, 20 Mar 2018 21:34:01 +0000 (21:34 +0000)]
Merge "Log visual interruptions to usagestats." into pi-dev
Seigo Nonaka [Tue, 20 Mar 2018 02:02:39 +0000 (19:02 -0700)]
Introduce new constructor for not copying NoCopySpan
To hold the original text in PrecomputedText, need to create
SpannableString, but copying NoCopySpan causes some side effect.
This CL introduces a way of copying SpannableString/SpannedString
with all spans other than NoCopySpan.
Bug:
72998298
Bug:
35638900
Test: atest CtsWidgetTestCases:EditTextTest
CtsWidgetTestCases:TextViewFadingEdgeTest
FrameworksCoreTests:TextViewFallbackLineSpacingTest
FrameworksCoreTests:TextViewTest FrameworksCoreTests:TypefaceTest
CtsGraphicsTestCases:TypefaceTest CtsWidgetTestCases:TextViewTest
CtsTextTestCases FrameworksCoreTests:android.text
CtsWidgetTestCases:TextViewPrecomputedTextTest
Change-Id: I20dea2114ccaa54b16ff679c97682a5003f9a4c1
TreeHugger Robot [Tue, 20 Mar 2018 21:31:58 +0000 (21:31 +0000)]
Merge "Make SYSTEM_INTERACTION a SystemApi" into pi-dev
Beverly [Tue, 20 Mar 2018 21:19:07 +0000 (17:19 -0400)]
Fingerprint vibrate doesn't change based on DND
Add sonification audio attributes to fingerprint vibration,
so it doesn't get 'muted' by DND.
Bug:
76016723
Test: manual
Change-Id: Ib0ccab2003853ced01d3be97032d261bdc1b6430
TreeHugger Robot [Tue, 20 Mar 2018 21:20:52 +0000 (21:20 +0000)]
Merge "Fixed Save logic so it's not triggered when field was not autofilled." into pi-dev
Siddharth Ray [Fri, 16 Mar 2018 19:01:52 +0000 (12:01 -0700)]
GPS metrics collection
GPS metrics will be collected only when in navigating state.
BUG:
74983572
Change-Id: Ib4133bb1017370840c26ab1b5886c5d0ef9f7f84
Brad Ebinger [Tue, 20 Mar 2018 21:16:31 +0000 (21:16 +0000)]
Merge "Add empty CdmaSmsSubaddress to CDMA PDU parsing" into pi-dev
TreeHugger Robot [Tue, 20 Mar 2018 21:13:26 +0000 (21:13 +0000)]
Merge "Minor changes to the API to align the choice of password hashing algorithm" into pi-dev
Chad Brubaker [Tue, 20 Mar 2018 21:11:11 +0000 (21:11 +0000)]
Merge "Update lockdown icon color" into pi-dev
Andrii Kulian [Tue, 20 Mar 2018 21:11:09 +0000 (21:11 +0000)]
Merge "Don't throw exception for duplicate stop" into pi-dev
Ye Wen [Tue, 20 Mar 2018 21:09:26 +0000 (21:09 +0000)]
Merge "Fix default permission granting for system TextClassifier." into pi-dev
Andrii Kulian [Tue, 20 Mar 2018 04:51:53 +0000 (21:51 -0700)]
Use transaction for local activity relaunch
To know that onPostCreate callback should be executed we should use
TransactionExecutor for the entire transaction. It will fill
PendingActions object during the launch and the callback will be
triggered after onStart.
This CL changes local activity relaunch to use Lifecycler
infrastructure.
Bug:
72029061
Bug:
64610483
Fixes:
73747058
Test: ActivityLifecycleTests
Change-Id: I7d3fa6339fa6fe2634d0d1635f76e4d6ba03beb2
TreeHugger Robot [Tue, 20 Mar 2018 21:01:11 +0000 (21:01 +0000)]
Merge "Remove unused string." into pi-dev
Philip P. Moltmann [Sat, 10 Mar 2018 04:22:58 +0000 (20:22 -0800)]
Throttle number of sound trigger operations / day
It is not clear when the day should start. Further a day might have
25 hours in the case of daylight savings time.
Hence a day in this case is the last 24 hours, not a calendar day.
Keeping track of the time of each operation might waste memory as we
don't need that much precision.
Hence keep track how many operations were performed in the last 24
hours in buckets of hours. If the total count reaches a maximum suppress
any further operations.
The maximum is configurable via global settings. It can be updated
by apps that have the appropriate permissions. Hence if the default
value turns out to be incorrect, it can be adjusted after release.
This does not throttle based on battery state as it is better to
completely unload the sound model to not even have a detection event.
Test: atest SoundTriggerDetectionServiceTests (separate CL)
atest android.provider.SettingsBackupTest
Bug:
73829108
Change-Id: Ied8570b60b61b6a055bd2576d1502c1b36424efa
Philip P. Moltmann [Sat, 10 Mar 2018 00:55:55 +0000 (16:55 -0800)]
Add SoundTriggerDetectionService
The service is meant to replace the PendingIntent based API. Once all
users of the PendingIntent based API switched the PendingIntent based API
will be removed.
To have as little as possible impact on the whole SoundTrigger framework
the RemoteSoundTriggerDetectionService class implements the same
interface as the PendingIntent based class. Hence the exising code has
very little change. Further once the old code can be removed the amount
of changed (and added) code is limited.
The RemoteSoundTriggerDetectionService -> SoundTriggerDetectionService
is a vanilla as possible service implementation. The special behaviors
are:
- The system holds a wakelock while service operations are in progress
and the service is bound as foreground. Hence the service can e.g.
listen to the microphone.
- Service operations have a certain amount of time they are allowed to
run. Once every operation is either finished or the the operation
exceeded the allotted time, the system calls onStopOperation for each
still pending operation. This is a similar model as for the commonly
used JobService.
Please note that if the time allowed for an operation is 15s and
op1 was run as 0si, and op1 was run at 5s, the service is allowed to run
until 20s. Hence _both_ onStopOperations will happen at 20s. This is
done for ease of implementation but should not give the service more
power than calling onStopOperation exactly 15s after each operation is
triggered.
- If an operation is done before the allotted time is reached, the
service can declare the operation as finished manually by calling
onOperationFinished. This is a call back into the system, hence a
'client' binder is sent to the service. If the operation is finished
by calling this method onStopOperation will not be called.
- As the service instance might be killed and restored between
operations we add a opaque bundle 'params' to each operations. The users
of the API can use this to send data from the start command to the
operations. It can also just be set to null. The params are not meant to
store changing state in between operations. Such state needs to be
persisted using the regular methods (e.g. write it to disk)
- A service can be used for multiple recognition sessions. Each
recognition is uniquelity defined by its sound model UUID. Hence each
operation gets at least tree arguments: Operation ID, sound mode UUID, params
- As a small optimization the params are cached inside of the service
instance.
The time allowed for each operation is in a @SystemAPI global setting,
so the service can make sure it finishes the operations before they are
stopped. It might take some time to deliver the operations via the
binder, hence it is not recommended to try to use every last ms of
allotted time.
Test: atest SoundTriggerDetectionServiceTest (added in separate CL)
atest android.provider.SettingsBackupTest
Change-Id: I47f813b7a5138a6f24732197813a605d29f85a93
Fixes:
73829108
Philip P. Moltmann [Tue, 6 Mar 2018 21:44:07 +0000 (13:44 -0800)]
Expose SoundTriggerManager and SoundTrigger APIs
These APIs require a system permissions, hence SystemAPI.
As SoundTrigger is now partially SystemApi and partially internal API a
lot of @hide tags are needed to keep hiding the still internal classes,
fields and methods. As SoundTrigger is heavily used via reflection no
structural change to this class can be made.
The MANAGE_SOUND_TRIGGER permission should be visible to the apps as
the apps need to know which permission to request in their manifest.
If it wouldn't be exposed it would just be a magic string.
Test: built
Change-Id: Ic93d67639e2605c26c961acdd827c14cb0a68f47
Bug:
73829108,
71981721
Amin Shaikh [Tue, 20 Mar 2018 20:01:47 +0000 (16:01 -0400)]
Ensure QS contains at least 6 tiles.
Do not allow users to remove QS tiles in the customizer if they
currently have 6 or fewer tiles.
Bug:
72511412
Test: visual
Change-Id: I02be1ee330a81db3d3af6a371187294d71f4db65
Xi Han [Tue, 20 Mar 2018 20:49:13 +0000 (20:49 +0000)]
Merge "Add @Nullable annotations to getOperatorAlphaLong and getOperatorAlphaShort to CellIdentity." into pi-dev
TreeHugger Robot [Tue, 20 Mar 2018 20:30:31 +0000 (20:30 +0000)]
Merge "Moves the settings changed logging for statsd." into pi-dev
TreeHugger Robot [Tue, 20 Mar 2018 20:16:08 +0000 (20:16 +0000)]
Merge "Expose if running a11y service has crashed" into pi-dev
TreeHugger Robot [Tue, 20 Mar 2018 20:07:11 +0000 (20:07 +0000)]
Merge "Handle PDFium API change" into pi-dev
Sunny Goyal [Tue, 20 Mar 2018 20:03:47 +0000 (20:03 +0000)]
Merge "Updating javadoc for updateAppWidgetProviderInfo API" into pi-dev
TreeHugger Robot [Tue, 20 Mar 2018 19:56:51 +0000 (19:56 +0000)]
Merge "Move the setActiveDevice logic from Settings to SettingsLib (1/2)" into pi-dev
Andrii Kulian [Wed, 14 Mar 2018 23:24:07 +0000 (16:24 -0700)]
Don't set override display info for ActivityView
ActivityView content should never be letter- or pillar-boxed
and it doesn't have overscan areas, so we can skip setting
display override info for a virtual display that backs it.
Bug:
72220802
Test: Manually resize with ActivityView demo app
Change-Id: I211449eaea50ec5d3214d63e7eb93a1d2ed2c0fd
Eugene Susla [Fri, 16 Mar 2018 21:33:31 +0000 (14:33 -0700)]
[DO NOT MERGE] Make TCMS multi-user-aware
Bug:
74392619
Fixes:
72481438
Test: presubmit
Change-Id: I1a04fe59216ac94ade8db0c2f56b83ca648db1e7
(cherry picked from commit
835c8b3962854a70b977bb7dbfe240321f8daebd)
Eugene Susla [Fri, 16 Mar 2018 21:35:31 +0000 (14:35 -0700)]
[DO NOT MERGE] Eliminate duplicate layers in A11yService#getWindows()
Fixes:
73904014
Test: using TestBack, ensure the attached bug is fixed
Change-Id: I097ca47563420d658cea083a3b6f8d5e7d02991c
(cherry picked from commit
8f0124190ac0386a9429724b5fdf8f491b8cad05)
Eugene Susla [Tue, 13 Mar 2018 19:24:50 +0000 (12:24 -0700)]
[DO NOT MERGE] Magnify status bar
This regressed with the recent z-ordering wm refactoring
Changing it back to old behabvior
Fixes:
74463331
Test: ensure attached bug is fixed
Change-Id: I7938a4b32a237e2fdf2e9f7bb64bab17366cb174
(cherry picked from commit
9552b26ad73bf8b2a4d4caf185ebbf94e638add3)
Amit Mahajan [Tue, 20 Mar 2018 19:27:10 +0000 (19:27 +0000)]
Merge "Revert "TelephonyManager System APIs process"" into pi-dev
Julia Reynolds [Wed, 7 Mar 2018 17:12:09 +0000 (12:12 -0500)]
Log visual interruptions to usagestats.
Test: runtest systemui-notification, cts
Bug:
74318867
Change-Id: I6233240c2a7940225cadde0258b5d7ba88b86aaf
Winson Chung [Tue, 20 Mar 2018 19:06:26 +0000 (19:06 +0000)]
Merge "Allow the shell to start task overlay activities." into pi-dev
Amin Shaikh [Mon, 19 Mar 2018 18:59:18 +0000 (14:59 -0400)]
Remove unused string.
Bug:
74486080
Test: make
Change-Id: Ibe21b9b5c8c9a19b6bd3b73faa65f572159347d0
Amith Yamasani [Fri, 16 Mar 2018 23:08:57 +0000 (16:08 -0700)]
API Review: Documentation improvement for standby buckets
Specify how to compare with bucket constants since new
bucket constants could be introduced later.
Fixes:
73790511
Test: builds
Change-Id: Ib99ec5fe208bc612869df8bfc69a26ee6be31fa5
TreeHugger Robot [Tue, 20 Mar 2018 18:56:27 +0000 (18:56 +0000)]
Merge "Dispatch global settings changes to all users." into pi-dev
TreeHugger Robot [Tue, 20 Mar 2018 18:54:46 +0000 (18:54 +0000)]
Merge "Set Hearing Aid volume after connection" into pi-dev
TreeHugger Robot [Tue, 20 Mar 2018 18:41:13 +0000 (18:41 +0000)]
Merge "Update work notifivation settings on upgrade." into pi-dev
TreeHugger Robot [Tue, 20 Mar 2018 18:32:41 +0000 (18:32 +0000)]
Merge "Cleaning up notification proto." into pi-dev
TreeHugger Robot [Tue, 20 Mar 2018 18:17:15 +0000 (18:17 +0000)]
Merge "Adding a empty constructor so that the class can be emulated" into pi-dev
Lucas Dupin [Tue, 20 Mar 2018 18:16:02 +0000 (18:16 +0000)]
Merge changes I09f58bdc,Iaf6cee33 into pi-dev
* changes:
Hide SHOW_WHEN_LOCKED activity under scrim
Temporarily show wallpaper when pulsing
yuemingw [Thu, 1 Mar 2018 14:42:57 +0000 (14:42 +0000)]
Better javadoc and rename several methods in ApnSetting.
Test: runtest -x frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/DevicePolicyManagerTest.java
run cts --module CtsDevicePolicyManagerTestCases --test com.android.cts.devicepolicy.DeviceOwnerTest#testOverrideApn
Bug:
73087996
Change-Id: I5232c92a44ab505946956f81965a205f170aa52b
Cassie [Tue, 20 Mar 2018 17:15:50 +0000 (10:15 -0700)]
Add @Nullable annotations to getOperatorAlphaLong and
getOperatorAlphaShort to CellIdentity.
Bug:
75984192
Test: Unit test
Change-Id: I71feb20075559c7b28d4aa346a603f0d11ca69da