Commit Graph

369648 Commits

Author SHA1 Message Date
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
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 529bfe6f0a)
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 b623343f13)
2018-11-07 03:37:52 +00: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
TreeHugger Robot
51e3a842dc Merge "Import translations. DO NOT MERGE" into pi-dev 2018-11-06 14:59:37 +00:00
TreeHugger Robot
12c04b486d Merge "Import translations. DO NOT MERGE" into pi-dev 2018-11-06 14:56:17 +00:00
Bill Yi
bee19c412d Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ic5cec1018a7fe003e26b302ebcfc428b2a11e90f
2018-11-06 02:38:00 -08:00
Bill Yi
b45f7a4d06 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Id313d354fa683ea2978fc6b7e522185aca9fb92f
2018-11-05 22:32:52 -08:00
TreeHugger Robot
5f14fa5049 Merge "Import translations. DO NOT MERGE" into pi-dev 2018-11-06 05:43:20 +00:00
Bill Yi
8893eb5296 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I148459e4f329c6b216b527c7298dde03a1f2fb73
2018-11-05 18:37:56 -08:00
TreeHugger Robot
76af93f6d4 Merge "Reset wifi tethering state when failing in QS." into pi-dev 2018-11-06 02:27:13 +00:00
TreeHugger Robot
a6fc25f6d3 Merge "[DO NOT MERGE] AM: Use ActivityMetricsLogger to get app launch times" into pi-dev 2018-11-03 01:07:22 +00:00
Fabian Kozynski
bd74ac1a6d Merge "DO NOT MERGE Fixed size of buttons in switch user panel" into pi-dev 2018-11-02 23:46:04 +00:00
TreeHugger Robot
ba11cd3882 Merge "Import translations. DO NOT MERGE" into pi-dev 2018-11-02 23:25:01 +00:00
Bill Yi
3723df7d8a Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Idf4f50f8eca67e30c466635a126959fb5515dbc7
2018-11-02 13:37:39 -07:00
Vishnu Nair
cf23504955 [DO NOT MERGE] AM: Use ActivityMetricsLogger to get app launch times
- Make ActivityMetricsLogger the single source of truth for activity metrics and
use it to provide data for Tron, logcat, event logs and {@link android.app.WaitResult}
- Remove LaunchTimeTracker
- Remove workaround added for b/80084651
- Remove thisTime from WaitResult and logs
- Remove am_activity_fully_drawn_time EventLog Tag
- Update WaitResult parsing logic in AppLaunch
- Discard metrics if a launching activity is already visible.
- original bug: 67683350

Compatibility Changes:
- thisTime removed from logcat and eventlog. Only totalTime will be displayed.
- Change in activity visiblity during launch will invalidate totalTime. am start -w
  will only report WaitTime in this case.
- am_activity_fully_drawn_time is removed from event log.

Bug: 117235762
Test: atest  google/perf/app-startup/third-party-apps/cold-dropcache-stable-test -v
Test: manual tests
Test: check applaunch.txt matches test run

Change-Id: Ib033594b961be9227256eba2a519dd6c2e3db573
(cherry picked from commit 132ee83808)
(cherry picked from commit 017cddcbcb)
(cherry picked from commit f8accc5b30)
(cherry picked from commit af0ea31549)
2018-11-02 13:27:00 -07:00
TreeHugger Robot
fda76a4dec Merge "Import translations. DO NOT MERGE" into pi-dev 2018-11-02 18:21:30 +00:00
TreeHugger Robot
5653eab62b Merge "Import translations. DO NOT MERGE" into pi-dev 2018-11-02 17:20:23 +00:00
TreeHugger Robot
4a068991e7 Merge "Import translations. DO NOT MERGE" into pi-dev 2018-11-02 17:08:20 +00:00
TreeHugger Robot
c85df7908d Merge "Import translations. DO NOT MERGE" into pi-dev 2018-11-02 16:54:41 +00:00
TreeHugger Robot
f261355dad Merge "Import translations. DO NOT MERGE" into pi-dev 2018-11-02 15:54:34 +00:00
TreeHugger Robot
3c53bd0636 Merge "Import translations. DO NOT MERGE" into pi-dev 2018-11-02 15:41:36 +00:00
Bill Yi
cc42e06be0 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Iabf34af3136bdab888155ab61b413e75a7e9f7ea
2018-11-02 07:38:29 -07:00
Bill Yi
e7160f82cf Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I4937d3a35fc6bc106f05ced0f4eebfa919dc7ae1
2018-11-02 07:31:54 -07:00
Bill Yi
70c7b0702a Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I018ce29f4ec3ae26715ae9ce66144a2c9222906f
2018-11-02 05:47:07 -07:00
Bill Yi
47997b96fa Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I2f3f2d4c18d8c4921d22d7c28dd672c3d7a6258a
2018-11-02 05:40:30 -07:00
Bill Yi
454fa8fbf1 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Iac8c5017a5f148d4c7de9aeaf8127d5e10b86854
2018-11-02 03:54:40 -07:00
Bill Yi
28d6f81665 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I5d2c2e7a3e5cbdf820afc71ea2a340eb502982f6
2018-11-02 03:41:58 -07:00
Bill Yi
d720da63a0 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ia04ea97075ffea71bb2be920f7aa2df1684db7b2
2018-11-02 03:35:11 -07:00
Fabian Kozynski
80524aeb1e DO NOT MERGE Fixed size of buttons in switch user panel
Test: Accessibility Scanner
Fixes: 115582288

Change-Id: I1b02c06fa8d1461f9e26e8cca881cb3f2d0d8f1f
(cherry picked from commit 13155ef2f9)
2018-11-01 17:34:26 +00:00
Steve Elliott
7098d46260 [automerger skipped] DO NOT MERGE ANYWHERE: resolve merge conflicts of 77c1f60801 to oc-dr1-dev am: d2fa9c3ecf -s ours
am: e30c42e456  -s ours

Change-Id: I463ddbc2cf94f52d7b66d6dffb0b0c7233e8dfd3
2018-10-31 15:07:29 -07:00
Steve Elliott
e30c42e456 [automerger skipped] DO NOT MERGE ANYWHERE: resolve merge conflicts of 77c1f60801 to oc-dr1-dev
am: d2fa9c3ecf  -s ours

Change-Id: I2043a8ca20cd09064bc21f2d8d8841ec7281dfdf
2018-10-31 15:01:22 -07:00
Steve Elliott
d2fa9c3ecf DO NOT MERGE ANYWHERE: resolve merge conflicts of 77c1f60801 to oc-dr1-dev
Bug: 111603898
Test: manual
Change-Id: I5933f27f2fbd90a6de447fbf7f17063f6b7f1fb8
2018-10-31 16:29:12 +00:00
Wesley Wang
6b0b1dafbe Merge "Fix Power Menu vanish when display size is Large" into pi-dev 2018-10-31 02:58:09 +00:00
TreeHugger Robot
022cf30d17 Merge "Be the current user to get A2DP proxy" into pi-dev 2018-10-30 22:22:14 +00:00
TreeHugger Robot
8a7d8bceb5 Merge "Cherry-picking the following 3 getContentProviderImpl() CLs" into pi-dev 2018-10-30 19:25:40 +00:00
TreeHugger Robot
9dff553798 Merge "Use bilerp sampling when drawing TextureView with non-translate matrix" into pi-dev 2018-10-30 18:34:26 +00:00
Bill Yi
7b913f2f73 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I4a72b8f35ff02e45f0c746fc28ed7346cb59168f
2018-10-28 01:26:13 -07:00
TreeHugger Robot
edf20ebe48 Merge "Fix persisted job handling in bad-boot-RTC situations" into pi-dev 2018-10-27 14:26:30 +00:00
Tim Murray
59f3dc1995 ActivityThread: purge jemalloc at appropriate times
Don't let jemalloc sit around with unused pages.

Test: boots, works
bug 117795621

Change-Id: I1fc3fcf5aa2798c67ea8cada6eeec852b2bebee7
2018-10-26 21:37:50 +00:00
Amit Mahajan
1b26e44ce0 Adding new intent ACTION_SMS_MMS_DB_CREATED.
Test: manual (verified from logcat that intent is broadcast)
Bug: 115990430
Merged-in: I660cf2d04a1b57a58c8cefd212e5f8d73b329890
Change-Id: I660cf2d04a1b57a58c8cefd212e5f8d73b329890
(cherry picked from commit 8c1c45a710)
2018-10-25 15:57:47 -07:00
Stan Iliev
402fff1259 Use bilerp sampling when drawing TextureView with non-translate matrix
Draw TextureView with bilerp sampling, when the matrix is not
integer translate or identity. For example scaling matrix or
translation on X by 0.4f will draw with GL_LINEAR on OpenGL pipeline.
Translation on X by 3.0f will draw TextureView with GL_NEAREST.

Bug: 117890671
Test: Passed CtsViewTestCases and CtsUiRenderingTestCases
Change-Id: I72033410c8b0ab637c2e6b816ac9b04434286fbb
Merged-In: I3acd710ff2cb4ee7b14dd4b7d9227842187130c9
2018-10-25 16:28:27 -04:00
Bill Yi
5fb899d15b Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ib190758dc7e8929d33dc72a8c9deea2eeb6cc38b
2018-10-25 02:47:52 -07:00
Makoto Onuki
59e4771263 Cherry-picking the following 3 getContentProviderImpl() CLs
- http://ag/5163037

Fix a race in AMS.getContentProviderImpl().

If the provider process has just been killed by AM but appDiedLocked()
hasn't been called yet, this method would wait on the wrong
ContentProviderRecord.

- http://ag/5201125

Fix getContentProviderImpl() permission issue

- http://ag/5284403

Add timeout to AMS.getContentProviderImpl()

Bug: 116876013
Bug: 110030490
Test: manual test with the following debug code:
+                final String prop = "debug.am.provider.fake-kill." + cpr.proc.processName;
+                if (SystemProperties.getBoolean(prop, false)) {
+                    cpr.proc.kill("fake-kill", true);
+                    SystemProperties.set(prop, "0");
+                }
                providerRunning = !cpr.proc.killed;

Then:
setprop debug.am.provider.fake-kill.android.process.acore 1
And launch the contacts app when acore is already running, and make sure
the timeout log shows up on logcat.

Test: Also do it with work profile contacts

Change-Id: I765d61a1b2719a92dff7db0162335f2c09c33421
Merged-in: I2c4ba1e87c2d47f2013befff10c49b3dc337a9a7
Merged-in: Ia35a9d36a34257873edbdcaefcf85d2373f3295e
Merged-in: Id5e7fff228d777eb0d1804654600d9ea156e36fd
2018-10-24 11:39:57 -07:00
Bill Lin
2f97046a4e Merge "Device show "No SIM card" and then showing carrier name during boot" into pi-dev 2018-10-24 09:35:33 +00:00
Steve Elliott
bd1a7fa5c3 [automerger skipped] DO NOT MERGE: Add configurable default setting for assistant componentname
am: d5bed0f4b6  -s ours

Change-Id: Ic2a4a2d452d55ec87f678c7c4573b819aa145ebf
2018-10-23 11:06:30 -07:00
TreeHugger Robot
71cedf9b0c Merge "AudioService: Add Hearing Aid Switch Control" into pi-dev 2018-10-23 09:04:49 +00:00
Wesley.CW Wang
b429e172f1 Fix Power Menu vanish when display size is Large
- Break the power button alignment when power menu height larger then screen height,
remove power menu padding and set gravity to center vertical within the screen.

Test: Manually, set display size or font size to large, larger or largest & check
power menu should be center vertical/horizontal when power menu height
larger then screen height.
Bug: 110761858

Change-Id: Ice7f816a30fa0f565a9098b3d6d5989aca9a4e5b
Merged-In: Ice7f816a30fa0f565a9098b3d6d5989aca9a4e5b
2018-10-23 16:27:41 +08:00
Daniel Sandler
afda78ad15 Merge "Add configurable default setting for assistant componentname" into pi-dev 2018-10-22 13:42:07 +00:00
Dan Sandler
ad1908c428 Add configurable default setting for assistant componentname
By requiring an explicit default setting, it eliminates all ambiguous
states where a disambiguation would normally be shown. With this
change in place, at no point should a disambiguation be shown.

(Note: this is a fix to Change-Id: Ib32daf that clarifies
the logic if R.string.config_defaultAssistantComponentName
has not been set in a given build.)

Test: manual
Bug: 111603898
Change-Id: Id39fdf700ed4ef08ebbc333b5452223430ac2e48
Merged-In: Ib32dafbd3c6fcbe11186dc8ecab6b09c9b734067
2018-10-19 18:12:40 -04:00