391960 Commits

Author SHA1 Message Date
Gus Prevas
37d67e207f Disables dismissing notification on leftward swipe.
This change modifies SwipeHelper to pass the direction of a swipe to the
provided callback when determining whether the swipe represents a valid
dismiss gesture, and modifies the callback defined by
NotificationStackScrollLayout to allow dismiss gestures only to the
right.

Test: manually
Change-Id: I7ff1e8f92e7da9ed36520195d823f9a62f9a64ba
2018-11-07 14:29:04 +00:00
Marcin Oczeretko
38762429f9 Fix javadoc in InteractionSessionId
Test: n/a
Change-Id: I71aa33b38d834ce2933f861127de9ff6b9c2bb6d
2018-11-07 14:20:56 +00:00
Beverly Tai
fdae52974a Revert "Temporarily disable ZenModeFiltering tests"
This reverts commit c85c9c5748a3e6a7132a95d10384985d3d5852cb.

Reason for revert: Breakage should be fixed in ag/5457346

Change-Id: I1117bc81999022e147926f61d371bceec8d7a174
2018-11-07 14:15:10 +00:00
Roshan Pius
c5cee1e4c0 Merge "WifiManager: Fix javadocs" 2018-11-07 14:01:20 +00:00
David Brazdil
23156cf008 Merge "Add entries to hiddenapi light greylist" 2018-11-07 13:42:28 +00:00
Roshan Pius
bd22c4a57b WifiManager: Fix javadocs
Bug: 113878056
Test: make docs
Change-Id: Ia63e7df59d67def62b189b1bd98c0b21ce36d5f4
2018-11-07 05:30:35 -08:00
Marcin Oczeretko
ae40d836c2 Merge "Fix WifiNetworkConfigBuilder javadocs" 2018-11-07 12:01:20 +00:00
Ricky Wai
13b0abe1bc Add feature flag for "show hidden launcher icon apps"
and "install app notification"

Bug: 111214100
Test: CTS test will be submitted with flag enabling commit
Change-Id: I604d75dc48e09039619f571d418a700106cbdd5d
2018-11-07 11:28:49 +00:00
Marcin Oczeretko
726479fa28 Fix WifiNetworkConfigBuilder javadocs
Test: n/a
Change-Id: Iee1964687569e5ce9545513b31d087817a9ed1e9
2018-11-07 11:24:34 +00:00
TreeHugger Robot
a9e4db5819 Merge "Smart actions and replies feature should not be guarded by ... AUTO_DEMOTE_NOTIFICATIONS" 2018-11-07 11:17:28 +00:00
Michal Karpinski
15ef6e23e4 Merge "Never generate synthetic AppInfo activity for any system app" 2018-11-07 11:07:56 +00:00
TreeHugger Robot
b2117bbc3a Merge "Fix unable finish booting when display added before boot" 2018-11-07 09:16:45 +00:00
TreeHugger Robot
e6bded0d4a Merge "Pass custom fallback info to minikin" 2018-11-07 09:01:42 +00:00
felkachang
fbf34f6d24 [automerger skipped] Merge "fix overlay on status bar because of two clock" into pi-dev am: 0317b241d8
am: 904c4d1c4f  -s ours

Change-Id: I615e16de8479ddd10835dc6ff7ea59b4c49d50fc
2018-11-07 00:45:13 -08:00
felkachang
904c4d1c4f Merge "fix overlay on status bar because of two clock" into pi-dev
am: 0317b241d8

Change-Id: I31578280f1043338eae61c529a5b7a2a7a2cd024
2018-11-07 00:33:31 -08:00
TreeHugger Robot
0317b241d8 Merge "fix overlay on status bar because of two clock" into pi-dev 2018-11-07 08:18:12 +00:00
TreeHugger Robot
661d7b8dba Merge "Support show KeyguardPresentation on all public displays." 2018-11-07 06:26:51 +00:00
TreeHugger Robot
a5b5f30996 Merge "WifiManager: Mark isScanAlwaysAvailable() deprecated" 2018-11-07 06:20:10 +00:00
Shuzhen Wang
68e8199c64 Merge "Camera: Unhide and update Y8 format spec" 2018-11-07 05:54:39 +00:00
felkachang
d40152e10b [automerger skipped] Merge "Fix the wrong number of icons in shelf for RTL" into pi-dev am: 8861d33dec
am: 93e9b45644  -s ours

Change-Id: I199cb60025b19e29739dcc716754dac717269d35
2018-11-06 21:14:56 -08:00
Chenjie Yu
e894f95053 Merge "ValueMetric overhaul" 2018-11-07 05:11:44 +00:00
felkachang
dcb5822aea [automerger skipped] Fix EditText show wrong position when ime show am: 6d1eca3c85
am: d2d52d2c3e  -s ours

Change-Id: I74164b4363a3248d38d3e4eda928aed2b41e2413
2018-11-06 21:01:17 -08:00
felkachang
93e9b45644 Merge "Fix the wrong number of icons in shelf for RTL" into pi-dev
am: 8861d33dec

Change-Id: I42aba38e24a3a9bb5c7084a07cf68ef191d07a75
2018-11-06 20:56:52 -08:00
felkachang
d2d52d2c3e Fix EditText show wrong position when ime show
am: 6d1eca3c85

Change-Id: I7cfa1b33d24bbcb8d4bd23728ea0b9c1cc198dbc
2018-11-06 20:51:03 -08:00
TreeHugger Robot
8861d33dec Merge "Fix the wrong number of icons in shelf for RTL" into pi-dev 2018-11-07 04:35:40 +00:00
Seigo Nonaka
f69e7037ba Pass custom fallback info to minikin
The custom fallback info is used for determine the priority between
custom fallback and locale fallback. The custom fallback should be
given priority over locale fallback.

Bug: 116512426
Test: minikin_tests
Test: atest TypefaceCustomFallbackBuilderTest
Change-Id: I79cc82fa990d7705ea5c40e9b0be40d062c218dc
2018-11-07 03:52:35 +00:00
Seigo Nonaka
11d5f41618 Merge "Introduce new API for specifying user font fallback" 2018-11-07 03:45:07 +00:00
felkachang
6d1eca3c85 Fix EditText show wrong position when ime show
In landscape and largest density, the area that could show the heads
up notification is smaller than normal density. To handle the heads
up notification should be different with the normal notification in
both of targetScrollForView and getScrollRange because
StackScrollAlgorithm translation heads up notification as
mHeadsUpInset but neither targetScrollForView nor getScrollRange has
have the same consideration.

The solution make the StackScrollAlgorithm to considerate scroll
value to move up the heads up notification.

The getScrollRange need to consider more about the difference
between heads up showing and non-heads up showing. The top padding
and the total content height are the major considerations.

Test: manual test
Test: atest SystemUITests
Change-Id: I46bb960a81f6ab5be4d8e39738e8fb64245dd4eb
Merged-In: I46bb960a81f6ab5be4d8e39738e8fb64245dd4eb
Fixes: 110388615
(cherry picked from commit 529bfe6f0a4c5a8683b4dc6a6256b30f7e08bc16)
2018-11-07 03:40:25 +00:00
felkachang
6eb868a5e5 Fix the wrong number of icons in shelf for RTL
In NotificationShelf, mShelfIcons.setActualLayoutWidth's parameter
comes from the return value of mCollapsedIcons.getFinalTranslationX.
both of mCollapsedIcons.getFinalTranslationX and 'start' has the
operator '+' and mCollapsedIcons.getFinalTranslationX should return
the value that doesn't translate to the xTranslation. The root cause
is that mCollapsedIcons.getFinalTranslationX should return the
'start tranlation' rather xTranslation.

The solution is to make the mixing usage between 'start tranlation'
and xTranslation to be seperated. And, 'start translation' is called
xAnchorStart. To get the 'start translation' by counting
(getWidth() - mLastVisibleIconState.xTranslation - iconWidth) to get
xAnchorStart.

Change-Id: Iec6893446ba161cce50e9b018e43f94782b91f11
Merged-In: Iec6893446ba161cce50e9b018e43f94782b91f11
Fixes: 111861498
Test: manual test
(cherry picked from commit b623343f1324b0d1c5baa01260d789c371ad0849)
2018-11-07 03:37:52 +00:00
Varun Shah
8823180ac4 Merge "Updated documentation for OnSharedPreferenceChangeListener." 2018-11-07 03:30:05 +00:00
TreeHugger Robot
ea87b1fa7c Merge "Add AppOpsManager.opToDefaultMode() as system API." 2018-11-07 02:43:27 +00:00
TreeHugger Robot
196c960723 Merge "Fix import lines in SystemServer.java" 2018-11-07 02:32:39 +00:00
TreeHugger Robot
6d9ece3c0d Merge "MediaPlayer2: clean up part of code" 2018-11-07 02:30:58 +00:00
TreeHugger Robot
c526bdf8ab Merge changes Ie8685a12,I87abde9f
* changes:
  am: Add unit tests for ActivityMetricsLaunchObserver
  am: Add new LaunchObserver to track app launch sequences
2018-11-07 02:00:25 +00:00
Ryan Mitchell
5db396d5cc Only resolve non-dynamic resource references
Only resolve non-dynamic references and attributes if the package is
loaded as a library or if a shared library is attempting to retrieve
its own resources.

Bug: 116486668
Bug: 116620612
Test: libandroidfw_tests & manual test of broken apps
      & atest FieldsClassificationTest#testGetAlgorith

Change-Id: Icb827796a65072a39452dbe577d5e18f085ea4e2
2018-11-07 01:28:53 +00:00
Felipe Leme
70c0261109 Merge "Refactored InteractionSessionId." 2018-11-07 01:22:45 +00:00
Felipe Leme
15fe040f87 Merge "Initial implementation of IntelligenceService.onContentCaptureEvents()" 2018-11-07 01:21:47 +00:00
Chenjie Yu
c715b9e0cc ValueMetric overhaul
This is savaged from the large cl.

1. Simplify the logic in ValueMetricProducer.
1.1 for pull data on bucket boundary, we pull on bucket end, instead of
playing with timestamp twice.
1.2 for data that require diffing, we keep a rolling diff base that gets
updated.
1.3 Now we check condition in onMatchedLogEventInternalLocked for pushed atoms. For pulled atoms, check before commit time. This was very error prone in P and caused multiple bugs. It is much simpler now.
2. Treat pushed and pulled atoms the same way and share the same
aggregation types.
4. Allow decreasing values for diffing.
5. Allow diffing for pushed atoms.
6. For diff based aggregation, if the diff value is zero, we skip
output.

Bug: 117224984
Bug: 115683963
Bug: 117975256
Bug: 113268259
Test: unit test
Change-Id: I6ee306e9f6e5a166b392c443594704e7d2792ef5
2018-11-06 17:07:29 -08:00
Jia-yi Chen
b95e7b7bc2 [automerger skipped] Merge "Persist data to disk when system shuts down" into pi-dev am: 29226627d0
am: 560055e29d  -s ours

Change-Id: Id4a0549d14b3b94bb35683d236d2e1059d230ad0
2018-11-06 17:07:13 -08:00
Tyler Gunn
d851c54c66 Merge "Add disconnect cause when outgoing call fails due to ongoing OTASP prov." am: 009b2dd158 am: 226c56a6be
am: 9027a990c7

Change-Id: Ief5f5b8f84e6eb29b6d463b40b79024a7dd6c99b
2018-11-06 17:00:28 -08:00
Jia-yi Chen
560055e29d Merge "Persist data to disk when system shuts down" into pi-dev
am: 29226627d0

Change-Id: I18a5f507f0e50d1212ee40573a3a6a687e5d0052
2018-11-06 16:52:37 -08:00
Tyler Gunn
9027a990c7 Merge "Add disconnect cause when outgoing call fails due to ongoing OTASP prov." am: 009b2dd158
am: 226c56a6be

Change-Id: I80e04be656eedf2f47cacf269cf5e2478ca2cc90
2018-11-06 16:47:00 -08:00
Jia-yi Chen
29226627d0 Merge "Persist data to disk when system shuts down" into pi-dev 2018-11-07 00:39:12 +00:00
Tyler Gunn
226c56a6be Merge "Add disconnect cause when outgoing call fails due to ongoing OTASP prov."
am: 009b2dd158

Change-Id: Ic1f54bf78a95f85032e028957d50a30ef984b48c
2018-11-06 16:37:50 -08:00
Eugene Susla
12e52e8ab8 Add more OWNERS to DefaultPermissionGrantPolicy
All changes to DPGP are required by gerrit to be reviewed by one of the owners
Some of the changes are simple enough that the blocks this causes is
not worth it

This change must be submitted through aosp

Test: test later in gerrit
Change-Id: I8d066a403376c7e620664abda1dbb71d9c87bb04
2018-11-06 16:30:30 -08:00
TreeHugger Robot
630630cf6b Merge "Clean up some nested template formatting" 2018-11-07 00:23:27 +00:00
Alex Light
dfe6c07b96 Merge "Correct illegal mockito usage." am: 5bb1e8c9bc am: 7901714521
am: 756d5ae29a

Change-Id: Ibae90ae05b36129a34a358bb60ffd7ad23e3c4a4
2018-11-06 16:11:53 -08:00
Igor Murashkin
cb76aac913 am: Add unit tests for ActivityMetricsLaunchObserver
Add mockito-based behavioral unit tests for the LaunchObserver.
Verify each state transition.

Test: atest WmTests:ActivityMetricsLaunchObserverTests
Bug: 72170747
Bug: 112680320
Change-Id: Ie8685a1262ccc7730aa5c574274f7ad0caeeedef
2018-11-06 16:03:38 -08:00
Igor Murashkin
212d06c4d0 am: Add new LaunchObserver to track app launch sequences
Add interface for code outside of activity-manager to get callbacks when an application
launch sequence occurs.

This will be connected in a follow-up CL to iorapd (see also IIorap.aidl) to enable
faster application start via prefetching.

Test: manual + logcat
Bug: 72170747
Bug: 112680320
Change-Id: I87abde9fa3f739abc5db4ccec48d2068ea32980d
2018-11-06 16:03:31 -08:00
Alex Light
756d5ae29a Merge "Correct illegal mockito usage." am: 5bb1e8c9bc
am: 7901714521

Change-Id: I2eb72a34d8fa13514ad8946937972a725638711c
2018-11-06 15:54:40 -08:00