Commit Graph

258066 Commits

Author SHA1 Message Date
Selim Cinek
23301afb8e Fixed an issue where heads-upped notifications would stay
If a heads up notification was briefly removed right after
it was added it could linger around in systemUI until
the panel collapsed.
We need to make sure not to apply this improvement if
reordering isn't allowed, otherwise it will never time out

Test: existing tests pass
Bug: 34608075
Merged-In: I7768f6111ada30edcb997a42940e5e336efe1cf2
Change-Id: I7768f6111ada30edcb997a42940e5e336efe1cf2
2017-02-01 00:15:58 +00:00
Robert Greenwalt
66d545bfe9 Merge "SFR sims should treat Spain as roaming" into nyc-mr2-dev 2017-01-30 18:14:24 +00:00
Makoto Onuki
85ecba4423 Merge "Do not call RecoverySystem with DPMS lock held" into nyc-mr2-dev 2017-01-30 17:18:03 +00:00
Torbjorn Eklund
05bd58fc4f SFR sims should treat Spain as roaming
Since there are unnecessary "config_operatorConsideredNonRoaming" values
in the following file, UE mistakenly recognizes all Spain network as
non-roaming when SFR sim is inserted. Fix the issue by removing the
values.
 - core/res/res/values-mcc208-mnc10/config.xml

Bug: 34369673
Bug: 33902721
Change-Id: I7353e260ec7d3d298346a48c74b7b71bb75b14de
2017-01-30 08:23:16 -08:00
Makoto Onuki
efdec8f568 Do not call RecoverySystem with DPMS lock held
Note DPM.wipeData() on a secondary user is now blocking, just like
it's been always blocking on the primary user.

Test: Manually tested wipeData() with ApiDemos, both on 1) the primary user,
2) a secondary user and 3) work profile.

Test: adb shell am instrument -e class com.android.server.devicepolicy.DevicePolicyManagerTest -w com.android.frameworks.servicestests

Bug 30681079

Change-Id: Ia832bed0f22396998d6307ab46e262dae9463838
Merged-in: Ib97a92a6af87a5589d2643b9ae0522395735e1a5
2017-01-27 14:08:01 -08:00
TreeHugger Robot
d9ab9df05b Merge "Fixed the logic for tethering provisioning re-evaluation" into nyc-mr2-dev 2017-01-27 20:36:33 +00:00
Jack Yu
3294256ba5 Fixed the logic for tethering provisioning re-evaluation
Previously we only re-evaluate provisioning for SIM swap case
The new logic covers both SIM swap case
(ABSENT->NOT_READY->UNKNOWN->READY->LOADED) and modem reset
case (NOT_READY->READY->LOADED)

Test: Manual
bug: 33815946

Merged-In: I9960123605b10d3fa5f3584c6c8b70b616acd6f8
Change-Id: I9960123605b10d3fa5f3584c6c8b70b616acd6f8
2017-01-27 17:37:58 +00:00
Paul Navin
90e9bbc814 Add hidden API for whether permission review mode is on.
am: 7b89a7b1f7

Change-Id: Ic7f4d30bd689bf5677600552030a3e696b16dfbb
2017-01-27 16:54:58 +00:00
Jason Monk
76812ac8ac Merge "Add separate roaming icon for status bar + QS" into nyc-mr2-dev 2017-01-27 15:08:06 +00:00
Paul Navin
7b89a7b1f7 Add hidden API for whether permission review mode is on.
BUG: 34240393
Change-Id: I68e55767a7da1d457a6cedd210aac9e339fb996c
2017-01-27 03:42:32 +00:00
Daniel Nishi
56d29925ac Merge "Add a flag to enable/disable the diskstats logging service." into nyc-mr2-dev 2017-01-27 00:35:24 +00:00
TreeHugger Robot
6470caa2e2 Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev 2017-01-27 00:26:12 +00:00
Daniel Nishi
88e45dcd1f Add a flag to enable/disable the diskstats logging service.
Bug: 34704947
Test: Service tests
Change-Id: I224cfb38682f1fd2bd33750b664bd3aacdaa4bde
2017-01-26 14:24:28 -08:00
Winson Chung
c52a3cb704 Merge "DO NOT MERGE Fixing crash in SystemUI fetching task description icons." into nyc-mr2-dev 2017-01-26 22:17:13 +00:00
Jason Monk
f62e889394 Add separate roaming icon for status bar + QS
Now data + roaming will be shown at the same time.

Test: runtest systemui
Bug: 31205845
Change-Id: I8fe167a0909c952ad0824e24e178857df2541554
2017-01-26 13:48:16 -05:00
Michal Karpinski
c399e4d964 Merge "DO NOT MERGE Change batch finalization timeout mechanism from Handler#sendMessageDelayed() to a wakeful alarm" into nyc-mr2-dev 2017-01-26 14:52:20 +00:00
Michal Karpinski
1710e5f079 DO NOT MERGE Change batch finalization timeout mechanism from
Handler#sendMessageDelayed() to a wakeful alarm

Messages sent with Handler#sendMessageDelayed() didn't get delivered
until the device woke up after being idle, which resulted in
potentially very long windows of logs accumulation and highly possible
network log loss from before the device becaming idle.

Bug: 34157435
Test: manual with decreased timeout over a few timeout iterations
Change-Id: I22d9cc743acb1a478d2da5407c5718e7f95e89cb
2017-01-26 12:48:56 +00:00
TreeHugger Robot
36f8170bbc Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev 2017-01-26 07:10:25 +00:00
TreeHugger Robot
6201ee5c68 Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev 2017-01-26 07:07:38 +00:00
Winson Chung
452ff6db94 DO NOT MERGE Fixing crash in SystemUI fetching task description icons.
When we compose the TaskDescription for the task, we update it with
information from each activity from top down.  If an activity has a
saved icon, the filepath for that icon will be encoded with the user
id of the activity and saved into the task description.  However, if
that activity's user is different from the user id of the root
activity of the task, we will later try to fetch the icon with the
user id of the task which will cause an exception to be thrown.

Instead, because the task description describes the task and information
belonging to the task description is always fetched as the user of
that task, we can save the icon with the task's user encoded instead
of the activity's.

Bug: 34692261
Test: Launch primary user activity with a custom task description icon
      in a task that is rooted with a work profile activity, then restart
      before the primary user activity is finished.

Change-Id: I66240cd488271e677cce7923cfef8e3e0cea5621
2017-01-26 05:35:38 +00:00
Elliot Waite
b69d7554d7 Merge "Fix @links in reference docs." into nyc-mr1-dev am: 3366d4beb4
am: 6cc3802e50

Change-Id: I52ddc7a726e5b12d136e0e524225422e5e6aa1a6
2017-01-26 04:40:47 +00:00
Elliot Waite
de2557f369 Fix @links in reference docs. am: 54de77470d
am: ab978c035e

Change-Id: Ibec2b85708f9ff923156f4d867c9c2f71c75d41c
2017-01-26 04:39:53 +00:00
Elliot Waite
6cc3802e50 Merge "Fix @links in reference docs." into nyc-mr1-dev
am: 3366d4beb4

Change-Id: I90aa2e4ca0553d5816024486015514b3e5d7bc86
2017-01-26 04:35:00 +00:00
Elliot Waite
ab978c035e Fix @links in reference docs.
am: 54de77470d

Change-Id: Id38c30bad13d6b61ed504a06471b9f197b360f7b
2017-01-26 04:34:57 +00:00
TreeHugger Robot
32e6da5b84 Merge "DO NOT MERGE: Allow launcher icon to be config'd in overlay." into nyc-mr2-dev 2017-01-26 04:31:38 +00:00
Elliot Waite
3366d4beb4 Merge "Fix @links in reference docs." into nyc-mr1-dev 2017-01-26 04:29:46 +00:00
Bill Yi
9c0c94c1b5 Import translations. DO NOT MERGE
Change-Id: I4d22b911e1f4a4828ef3eb5eed69b3ccc112552e
Auto-generated-cl: translation import
2017-01-25 19:35:15 -08:00
Bill Yi
30b5edfd23 Import translations. DO NOT MERGE
Change-Id: Ied49499c963a70d4cadba0789f513ec9a056d16b
Auto-generated-cl: translation import
2017-01-25 17:47:34 -08:00
Bill Yi
951b1616fc Import translations. DO NOT MERGE
Change-Id: I4540e172a904da8037f3cceab7fff06bf3e94803
Auto-generated-cl: translation import
2017-01-25 17:38:56 -08:00
Elliot Waite
54de77470d Fix @links in reference docs.
Change-Id: I40cea46efd80c448640ff69753698fe8404da40b
2017-01-25 17:00:55 -08:00
Steve McKay
24cd592b24 DO NOT MERGE: Allow launcher icon to be config'd in overlay.
Bug: 34441010
Test: Build and view in launcher.
Change-Id: I1f6cb4f2f6cb234e55aac1657aa6cdaa4a22550f
2017-01-25 20:41:14 +00:00
Jerry Zhang
55772c73c0 Merge changes from topic 'usb_bugfix' into nyc-mr2-dev
* changes:
  Refactored setCurrentFunction and setUsbDataUnlocked into single method.
  Clean up persistent usb state on boot.
  Fixed handling of usb state during adb changes.
2017-01-25 20:30:22 +00:00
Andrew Sapperstein
a60f7151e6 Merge "Decrease frequency of high temp warnings" into nyc-mr2-dev 2017-01-25 16:01:07 +00:00
Andrew Sapperstein
97bfa0f17d Decrease frequency of high temp warnings
Instead of showing any time the temp is above throttling temp,
if the user has dismissed the notification (or clicked it), the notification
will not reshow until the temperature has gone below the throttling
temp and come back.

Test: manual
Change-Id: I4cef9144dfcff03a5e70ccd5b12efaab1e74d15b
Fixes: 34346625
2017-01-24 16:38:50 -08:00
TreeHugger Robot
ae5d4ff831 Merge "MessagingStyle: Fix buggy measure in MessagingLinearLayout" into nyc-mr2-dev 2017-01-25 00:24:38 +00:00
Siyamed Sinir
9e1f4e8891 Merge "Make SpannableStringBuilder.getSpans thread-safe" into nyc-mr2-dev 2017-01-24 22:20:04 +00:00
Siyamed Sinir
48d84c378b Merge "Fix SpannableStringBuilder getSpans sort" into nyc-mr2-dev 2017-01-24 22:05:05 +00:00
Jerry Zhang
4882496232 Refactored setCurrentFunction and setUsbDataUnlocked into single method.
This gets rid of an extraneous configuration change when going from
adb to adb + file transfer as previously the config would have been
reset once for functions and once for data unlocked.

It also simplifies some of the code.

Bug: 31814300
Test: manually changing usb configurations
Change-Id: Ica10a195338b2189db13113f44657393db110bee
(cherry picked from commit 7a396be6d5)
2017-01-24 13:26:51 -08:00
TreeHugger Robot
5bfedd8af0 Merge "Vodafone SIMs should treat Spain as roaming" into nyc-mr2-dev 2017-01-24 20:55:11 +00:00
TreeHugger Robot
0a26aa9b31 Merge "Add Settings.Global configs to high temp warning." into nyc-mr2-dev 2017-01-24 20:02:25 +00:00
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 4ac8f40d96)
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 4ba91b9a87

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
Andrew Sapperstein
63db9254cf Add Settings.Global configs to high temp warning.
Test: manual
Bug: 34480261
Merged-In: Icfd08c1c7dae456920b3978918ee01469e1dec95
Change-Id: I9ed444dfb89f86d94f3a0db699324318f5bf78d0
2017-01-23 16:50:58 -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
Siyamed Sinir
4234144a2b Make SpannableStringBuilder.getSpans thread-safe
Add cached int buffers for sorting.

Test: All CtsTextTestCases

Merged-In: Ice0b3c3fffc541b26aca94c93fd01e30e13efe2e

Bug: 33609774
Change-Id: Ib728654a384cfc072d1c190611e4553aa8957fa8
2017-01-23 14:39:35 -08: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