258020 Commits

Author SHA1 Message Date
Adrian Roos
4749930c37 MessagingStyle: Fix buggy measure in MessagingLinearLayout
Fixes a bug in MessagingLinearLayout where we would not
recompute the height of it after applying the computed
insets to the text views, leading to incorrect padding
and in rare cases a cut off message at the bottom.

Change-Id: If87a527555158e94e501832e9f49e380cc7da2bb
Test: runtest -x core/tests/coretests/src/com/android/internal/widget/MessagingLinearLayoutTest.java
Fixes: 31463075
(cherry picked from commit 4ac8f40d96196a2a36d7bda7d92eee9bbd4ee7e7)
2017-01-24 20:00:52 +00:00
TreeHugger Robot
fcb06b3735 Merge "[DO NOT MERGE] Do not log boot times for secondary users and upgrades" into nyc-mr2-dev 2017-01-24 18:55:18 +00:00
Jesse Hall
9294b75354 Merge "Don't lower priority of EGL Init thread" into nyc-mr2-dev 2017-01-24 18:08:15 +00:00
Jesse Hall
37e63c705e Don't lower priority of EGL Init thread
The EGL Init thread spends a lot of time loading shared libraries,
which involves reading pages and adjusting VM pages. Previously it was
a low priority thread, which meant that when it blocked while holding
a VM lock, it might take a while to be scheduled again once ready, so
it would hold the VM lock longer than necessary, blocking other
threads waiting on soft faults, etc. Classic priority inversion.
Leaving the thread at normal priority causes it to interfere *less*
with critical-path Activity launch work.

Bug: 34611670
Test: go/platform-startup, specifically:
    ./tradefed.sh run google/template/local --template:map test
    google/test/performance/app-launch-perf
    --post-boot-command "service call persistent_data_block 6 i32 1"
    --post-boot-command "service call persistent_data_block 7 i32 1"
    --apps Clock alarmclock --trial-launch --launch-iteration 10
    --launch-order cyclic --drop-cache --trace-directory sdcard
    --trace-iteration 2 --simple-perf-cmd "simpleperf stat -a"
    --report-metrics all --force-skip-system-props --alt-dir `pwd`

Change-Id: I17647c657da64d15f40f8f2b97ee3400e1f0be7f
2017-01-24 00:09:27 -08:00
Fyodor Kupolov
1cd8508ba8 [DO NOT MERGE] Do not log boot times for secondary users and upgrades
Do not log framework_boot_completed/framework_locked_boot_completed
for secondary users, runtime restarts or first boot/upgrade.

First boot/upgrade also applies to boot_system_server_ready/
boot_package_manager_init_ready

Cherry-picked from commit 4ba91b9a879290d3d810330d172161ab1f923da8

Test: Manual update with fingerprint change
Test: runtime restart - not logged

Bug: 34516002
Bug: 32807863
Change-Id: I64b960c96a0e45b4fefaf05547ea5ac5c701c765
2017-01-23 17:00:29 -08:00
Ta-wei Yen
70f920fa0c Merge "Fix typo in the IS_OMPT_VOICEMAIL field." into nyc-mr2-dev 2017-01-23 22:40:40 +00:00
Nancy Zheng
20d79203be Merge "Query for the settings package in KeyguardManager instead of hardcoding it." into cw-f-dev
am: 8ac1bff7e2

Change-Id: I2e4f9b4ea73ff5d0491b8cfda889a57aaac413ff
2017-01-23 21:32:28 +00:00
Nancy Zheng
11bdbd1145 Query for the settings package in KeyguardManager instead of hardcoding it.
am: e256a18dcd

Change-Id: I3eb7f475c44f815ad2f0e8e1f85c39e555774fcc
2017-01-23 21:32:26 +00:00
Nancy Zheng
8ac1bff7e2 Merge "Query for the settings package in KeyguardManager instead of hardcoding it." into cw-f-dev 2017-01-23 21:17:19 +00:00
Ta-wei Yen
57365441d4 Fix typo in the IS_OMPT_VOICEMAIL field.
This cause the voicemail content provider to crash on query.

Bug: 34610526
Change-Id: I561ae6616fe66ea49630fa6c4eb9280fdc24b153
Fixes: 34610526
Test: VoicemailContentProviderTest
2017-01-23 12:50:35 -08:00
TreeHugger Robot
40758bb7d2 Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev 2017-01-22 00:50:20 +00:00
TreeHugger Robot
96701d3c94 Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev 2017-01-22 00:49:16 +00:00
Bill Yi
f60d275a45 Import translations. DO NOT MERGE
Change-Id: I62a808a76324482f44009f4ab8cf5916ba2f0477
Auto-generated-cl: translation import
2017-01-21 13:29:01 -08:00
Bill Yi
7eefc3ed2a Import translations. DO NOT MERGE
Change-Id: I5784ba9ac936cab4b2d809ff49d4e070c039cebe
Auto-generated-cl: translation import
2017-01-21 11:57:08 -08:00
Bill Yi
c78569cc23 Import translations. DO NOT MERGE
Change-Id: I015ec135dd7a62e001bee4c1356a9bc87814aa6d
Auto-generated-cl: translation import
2017-01-21 11:48:44 -08:00
Christine Franks
e1a7e67dc0 Merge "DO NOT MERGE - Require password to FR in carrier demo mode" into nyc-mr2-dev 2017-01-21 05:36:12 +00:00
TreeHugger Robot
f2a54b6a39 Merge "Load EGL early in Activity launch, instead of in Zygote" into nyc-mr2-dev 2017-01-21 05:04:24 +00:00
Christine Franks
319b44e6e9 DO NOT MERGE - Require password to FR in carrier demo mode
Bug: 34341567
Test: manual - password not required for regular user factory resets
and is required in carrier demo mode.

Change-Id: If696e5c5c806e31399e33a151b0d36e7a950ceb0
2017-01-21 02:25:39 +00:00
Jesse Hall
fd104e7fde Load EGL early in Activity launch, instead of in Zygote
Preloading EGL in Zygote was originally a memory footprint
optimization, but it turns out to be an important app startup time
optimization as well. Preloading EGL in Zygote is incompatible with
updatable graphics drivers, but we don't want to do it on-demand as
part of drawing the first frame either, since that increases
first-frame latency unacceptably.

This change removes Zygote preload, and instead loads EGL on a
low-priority background thread immediately after choosing which
graphics driver to use. This means it is usually done well before
drawing the first frame, without significantly disrupting other
activity launch work.

Test: observe systrace of Calculator launch on bullhead
Bug: 34404021
Change-Id: I6a0f6b90ade21848a10d51ddae62c936f70151b5
Merged-In: I887aa09bd35b088b16f53a89838a0c7c98f15761
2017-01-20 15:58:20 -08:00
Nancy Zheng
e256a18dcd Query for the settings package in KeyguardManager instead of
hardcoding it.

Bug: 33047002
Change-Id: I57bfab4750540789937d50c72ec05bb7a4535ae1
2017-01-20 13:46:31 -08:00
Philipp Weiß
c281fd12af Merge "DO NOT MERGE Finalize device-monitoring dialog strings" into nyc-mr2-dev 2017-01-20 19:12:48 +00:00
phweiss
232b0d4088 DO NOT MERGE Finalize device-monitoring dialog strings
Add Char-limits, do minor style changes and remove STOPSHIP comment.

Related change on master:
ag/1800040
0d08ca7d7fa12217f4a6562764b4ea65f3fa31f2

BUG:33655277
BUG:31207965
BUG:29748723
Test: only string changes
Change-Id: I37d1b509c6344d7f7d144fc0d8950f45faeaaef4
2017-01-20 18:31:52 +00:00
Ta-wei Yen
c1a1348b99 Merge "Add voicemail backup/restore columns" into nyc-mr2-dev 2017-01-20 18:31:45 +00:00
Fyodor Kupolov
1dcfc423cd Merge "[DO NOT MERGE] Do not report boot timings on first boot or runtime restart" into nyc-mr2-dev 2017-01-20 18:18:01 +00:00
Fyodor Kupolov
83a218c416 [DO NOT MERGE] Do not report boot timings on first boot or runtime restart
During first boot after OTA, additional dexopting has to be done
during PM initialization. Timings for OTA are reported separately,
so we should ignore first boot to avoid skewing the metrics.

The following metrics were updated:
 - framework_locked_boot_completed
 - framework_boot_completed
 
Cherry-picked from commit 1d87e40d4214a7f6d20a58d6f27cca174f0d974e

Test: manual
Bug: 32807863
Change-Id: I9d545cf38118f45f3f13597df2949d0ae4abd26a
2017-01-20 17:32:50 +00:00
TreeHugger Robot
fb764b7035 Merge "2D Recents: round task thumbnails properly." into nyc-mr2-dev 2017-01-20 04:05:31 +00:00
Ta-wei Yen
f48d5ce630 Add voicemail backup/restore columns
BACKED_UP and RESTORED are required for dialer voicemail backup/restore
feature for N MR2. As there are no API bump the fields will be hidden
in NMR2. These fields will be made public in O.

ARCHIVED and IS_OMTP_VOICEMAIL is not used for NMR2, but added in
advance to avoid multiple database upgrades.

IS_OMTP_VOICEMAIL will be used in O to dedupe multiple apps implementing
VisualVoicemailService. All voicemail inserted by the service should
set this field to 1. The UI should only display voicemails with this
field set to 1 when the source_package is also the current active
VisualVoicemailService, as other sources represents the same source of
truth(the carrier) but is outdated.

For example, the query should be
WHERE (is_omtp_voicemail == 0) OR 
(is_omtp_voicemail == 1 AND source_package = "current.vvm.package")

Test: VoicemailProviderTest
Bug: 34463609
Change-Id: I0f3e58fabff2102adf5bc29d81dac46c7e71d410
2017-01-20 02:26:04 +00:00
Svet Ganov
a2bbc26979 Use separate switch ops for runtime permissions
am: e710a6fc66

Change-Id: I86cd237bffdde972de69b91fa086ac5f5ec349e8
2017-01-20 01:41:11 +00:00
Jiaquan He
90f4f5290b 2D Recents: round task thumbnails properly.
Test: Checked that on local sw600dp devices, task views are rounded with
8dp. Also checked that Recents works properly on phones.
Bug: 32101881

Change-Id: I6f7a09a12c3e3f1f7270bed1ae25b291fadfb8f2
2017-01-19 16:01:26 -08:00
Jiaquan He
44db90262e 2D Recents: handle keyboard config changes.
While attaching or detaching a physical keyboard, we should handle the
configuration change in RecentsActivity, so that the activity isn't
relaunched and causes abnormal behaviors.

Test: Checked that while keyboard is attached or detached, Recents
behaves normally.
Bug: 32101881

Change-Id: Ibd185aeb48b31dbde032e235fdcaa17fbcdd9c8a
2017-01-19 15:29:54 -08:00
TreeHugger Robot
683ea24d6e Merge "Add arrow key navigation support to Grid-based Recents." into nyc-mr2-dev 2017-01-19 19:36:44 +00:00
Svet Ganov
e710a6fc66 Use separate switch ops for runtime permissions
If permissions review is enabled we allow individual
control of fine graned permissions in the SMS group.
This change ensures these permissions use the
corresponding app op as a switch to allow indifidual
control.

Change-Id: I83cd78a78a8266df8324b8a10cd9e36c04ff3112
(cherry picked from commit 99e4d51584202433f1628faa3441e5ced5cf7a0f)
2017-01-19 12:31:42 +00:00
TreeHugger Robot
18f1a35d46 Merge "Eschew unspecified IP addresses for DNS servers" into nyc-mr2-dev 2017-01-19 07:57:15 +00:00
Lorenzo Colitti
bb08c408a8 Merge "VPN reconnection fails after manually disabling VPN" into nyc-mr2-dev 2017-01-19 06:27:24 +00:00
Erik Kline
a19f9f281a Eschew unspecified IP addresses for DNS servers
Test: as follows
    - built
    - flashed
    - booted
    - runtest frameworks-wifi passes (though no test covers this code yet)
Bug: 34210527
Change-Id: I2d44445982dfb3221f7b6394daf0479c1fa8a6e1
2017-01-19 15:27:08 +09:00
TreeHugger Robot
7c0a5220cb Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev 2017-01-19 04:43:49 +00:00
TreeHugger Robot
9ba372781e Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev 2017-01-19 04:43:06 +00:00
Hisanobu Watanabe
2b465d889c VPN reconnection fails after manually disabling VPN
When disabling VPN manually, there was no trigger for ipsec-tools to
send “delete message” to VPN server. Therefore, connection information
is left in VPN server and next connection fails.

Fix this issue as below:
- Add “delete message” sending via flush in ipsec-tools when racoon
  daemon stops
- Keep daemon alive when VPN.java exit() to let it finish sending to
  VPN server
- Move close(socket) and stop(daemon) in VPN.java execute()
  and monitorDaemons() to run() to gather cleaning block.

(cherry picked from commit 047454c759b46bbadb87ee3b64bf3e29afda48d6)

Change-Id: Ibfbd389b17de5b5a5d23cba59c8d1e05fbe12c15
Bug: 28279646
Bug: 33467086
2017-01-19 12:38:22 +09:00
Michael Wright
b1ccd81fba Merge "Validate custom pointer icons aren't null." into cw-f-dev
am: 05b2d3eb0d

Change-Id: I3a11e06dfe3f476b791838241bfb36e5362063ab
2017-01-19 02:16:46 +00:00
Michael Wright
92f7fab9f6 Validate custom pointer icons aren't null.
am: 35068079c8

Change-Id: I37fdde3c1ea735c4888760f3aab43caf7711dd0e
2017-01-19 02:16:42 +00:00
TreeHugger Robot
05b2d3eb0d Merge "Validate custom pointer icons aren't null." into cw-f-dev 2017-01-19 02:12:20 +00:00
TreeHugger Robot
12ea12aab5 Merge "2D Recents: polish the app -> recents transition" into nyc-mr2-dev 2017-01-19 01:26:03 +00:00
Bill Yi
61385acb7a Import translations. DO NOT MERGE
Change-Id: I5becba7c3473850f08ce948491d37b2cc2f5e35f
Auto-generated-cl: translation import
2017-01-18 17:06:36 -08:00
Bill Yi
c2eddc99cd Import translations. DO NOT MERGE
Change-Id: I0c14cd3eb5a5d0a4d1640458bcad2aa160cdddca
Auto-generated-cl: translation import
2017-01-18 16:57:28 -08:00
Daniel Nishi
1cf89cb8ee Merge "Remove the requirement of the --checkin flag." into nyc-mr2-dev 2017-01-19 00:33:16 +00:00
Manu Cornet
fc6ac0a78a 2D Recents: polish the app -> recents transition
* Do not draw the header as part of the transition thumbnail
  since the header is already shown. Just let the thumbnail
  slot into the task view already drawn on screen.
* Shift the target rectangle by the header height so that
  the end state of the animation corresponds exactly to the
  task view layout.
* Remove unused local variable.

Bug: 32101881
Bug: 33752154
Test: Checked/screencasted recents -> app -> recents animations on local sw600dp device
Change-Id: I4c8ce52b378567114735e6bd582572124a2a354c
2017-01-18 15:55:51 -08:00
TreeHugger Robot
81e8bdd420 Merge "2D Recents: use a different background color for drop targets" into nyc-mr2-dev 2017-01-18 23:51:35 +00:00
TreeHugger Robot
146f68a445 Merge "2D Recents: to and from home, animate task views as a block" into nyc-mr2-dev 2017-01-18 23:34:07 +00:00
Christine Franks
64a16be2ba Merge "DO NOT MERGE - Fix demo mode reset notification" into nyc-mr2-dev 2017-01-18 23:24:46 +00:00
TreeHugger Robot
32a16bada4 Merge "Add isChildDocument to MtpDocumentsProvider." into nyc-mr2-dev 2017-01-18 23:09:41 +00:00