OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "TextClassifier: Remove debug logs." into oc-dev
TreeHugger Robot [Fri, 5 May 2017 17:49:38 +0000 (17:49 +0000)]
Merge "TextClassifier: Remove debug logs." into oc-dev

7 years agoMerge "Add wifi throttling to backup blacklist." into oc-dev
TreeHugger Robot [Fri, 5 May 2017 17:15:48 +0000 (17:15 +0000)]
Merge "Add wifi throttling to backup blacklist." into oc-dev

7 years agoMerge "Make status bar disable() debugging more concise." into oc-dev
Daniel Sandler [Fri, 5 May 2017 16:46:51 +0000 (16:46 +0000)]
Merge "Make status bar disable() debugging more concise." into oc-dev

7 years agoMerge "Prevent NPE in ActivityStack#shouldbeVisible." into oc-dev
Bryce Lee [Fri, 5 May 2017 16:29:37 +0000 (16:29 +0000)]
Merge "Prevent NPE in ActivityStack#shouldbeVisible." into oc-dev

7 years agoMerge "Fix settings test for show_notification_channel_warnings" into oc-dev
TreeHugger Robot [Fri, 5 May 2017 16:20:53 +0000 (16:20 +0000)]
Merge "Fix settings test for show_notification_channel_warnings" into oc-dev

7 years agoMerge "WifiManagerTest: test for startLOHS return code" into oc-dev
Rebecca Silberstein [Fri, 5 May 2017 16:06:50 +0000 (16:06 +0000)]
Merge "WifiManagerTest: test for startLOHS return code" into oc-dev

7 years agoMerge "ImageWriter: Attach non-opaque Images as well." into oc-dev
Eino-Ville Talvala [Fri, 5 May 2017 16:06:03 +0000 (16:06 +0000)]
Merge "ImageWriter: Attach non-opaque Images as well." into oc-dev

7 years agoMerge "Ensure that we hide the menu without resizing when expanding." into oc-dev
Winson Chung [Fri, 5 May 2017 15:52:13 +0000 (15:52 +0000)]
Merge "Ensure that we hide the menu without resizing when expanding." into oc-dev

7 years agoMerge "Revert "Create auxiliary info for local instant apps"" into oc-dev
Bryce Lee [Fri, 5 May 2017 15:46:32 +0000 (15:46 +0000)]
Merge "Revert "Create auxiliary info for local instant apps"" into oc-dev

7 years agoRevert "Create auxiliary info for local instant apps"
Bryce Lee [Fri, 5 May 2017 15:38:44 +0000 (15:38 +0000)]
Revert "Create auxiliary info for local instant apps"

This reverts commit e15e7cb592a923eea029c12aa9fc144a3fbaddc0.

Change-Id: I116904fd8c2b28df7e03bc5ec2414ed67761b380

7 years agoMerge "Add TRON logging for bindApplication" into oc-dev
Jorim Jaggi [Fri, 5 May 2017 15:34:52 +0000 (15:34 +0000)]
Merge "Add TRON logging for bindApplication" into oc-dev

7 years agoMerge "Audio service: always unduck focus winner" into oc-dev
Jean-Michel Trivi [Fri, 5 May 2017 15:33:42 +0000 (15:33 +0000)]
Merge "Audio service: always unduck focus winner" into oc-dev

7 years agoMerge "Fix bounds calculation" into oc-dev
Jorim Jaggi [Fri, 5 May 2017 14:59:39 +0000 (14:59 +0000)]
Merge "Fix bounds calculation" into oc-dev

7 years agoMerge "Don't set the failure extra on split install" into oc-dev
TreeHugger Robot [Fri, 5 May 2017 14:21:14 +0000 (14:21 +0000)]
Merge "Don't set the failure extra on split install" into oc-dev

7 years agoMerge "Create auxiliary info for local instant apps" into oc-dev
TreeHugger Robot [Fri, 5 May 2017 14:20:47 +0000 (14:20 +0000)]
Merge "Create auxiliary info for local instant apps" into oc-dev

7 years agoPrevent NPE in ActivityStack#shouldbeVisible.
Bryce Lee [Thu, 4 May 2017 17:19:07 +0000 (10:19 -0700)]
Prevent NPE in ActivityStack#shouldbeVisible.

If there is a visibleBehind activity, we check to see if the top
activity in the top stack is not fullscreen. However, it is possible
for the top stack to be empty. This can happen if the previously top
activity is being re-installed.

This changelist addresses the issue by checking if the top activity is
null before referencing it.

Change-Id: I6de904bed1c7035ed1e112c9cacc1b6c2bac4e8f
Fixes: 32180256
Test: bit FrameworksServicesTests:com.android.server.am.ActivityStackTests#testShouldBeVisibleWithVisibleBehindActivity

7 years agoMerge "Finish noHistory activities immediately after resumed activity shown." into...
Bryce Lee [Fri, 5 May 2017 14:08:21 +0000 (14:08 +0000)]
Merge "Finish noHistory activities immediately after resumed activity shown." into oc-dev

7 years agoAdd TRON logging for bindApplication
Jorim Jaggi [Fri, 5 May 2017 13:05:07 +0000 (15:05 +0200)]
Add TRON logging for bindApplication

Such that we know how much startup latency is the system to blame
and how much of it is the client process to blame.

Test: Open dead app, inspect logs
Change-Id: Ib8d359c2d59ef6f90893928f2b1d4e2ac2590d74
Fixes: 37327717

7 years agoFix bounds calculation
Jorim Jaggi [Thu, 4 May 2017 12:05:59 +0000 (14:05 +0200)]
Fix bounds calculation

Don't include the wallpaper window when calculating the frame
in multi-window.

Test: Go multi-window, go recents.
Change-Id: I8b4fb48767d6bdbda055d9c631811ad5a1dcaee6
Fixes: 36240988

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Fri, 5 May 2017 12:24:02 +0000 (12:24 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Fri, 5 May 2017 12:14:06 +0000 (12:14 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Fri, 5 May 2017 11:54:04 +0000 (11:54 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoMerge "ActivityManagerService: Add an overall stack dumping timeout." into oc-dev
TreeHugger Robot [Fri, 5 May 2017 10:56:41 +0000 (10:56 +0000)]
Merge "ActivityManagerService: Add an overall stack dumping timeout." into oc-dev

7 years agoMerge "Don't include IME in app screenshot" into oc-dev
Jorim Jaggi [Fri, 5 May 2017 10:43:39 +0000 (10:43 +0000)]
Merge "Don't include IME in app screenshot" into oc-dev

7 years agoMerge "Store "block uninstall" flag separately from the rest of package state." into...
Vladislav Kuzkokov [Fri, 5 May 2017 09:36:45 +0000 (09:36 +0000)]
Merge "Store "block uninstall" flag separately from the rest of package state." into oc-dev

7 years agoMerge "All kinds of little foreground services fixes." into oc-dev
TreeHugger Robot [Fri, 5 May 2017 09:00:42 +0000 (09:00 +0000)]
Merge "All kinds of little foreground services fixes." into oc-dev

7 years agoMerge "Adjust forced dexopt in case of stripped APKs." into oc-dev
Nicolas Geoffray [Fri, 5 May 2017 08:09:06 +0000 (08:09 +0000)]
Merge "Adjust forced dexopt in case of stripped APKs." into oc-dev

7 years agoAll kinds of little foreground services fixes.
Dianne Hackborn [Thu, 4 May 2017 23:53:11 +0000 (16:53 -0700)]
All kinds of little foreground services fixes.

- Better explanations of some strings.
- Fix to use the right package when an item is pressed in
  the foreground services dialog.
- Improve java docs on Service.startForeground().

Bug: 37925387
    735566 lv - Android - [Source] Context unclear or missing:
    Apps running in background
Bug: 37925888
    735566 lv - Android - [Source] Context unclear or missing:
    Tap for details on battery and data usage
Bug: 37897953
    735566 gl - Android - [Source] Context unclear or missing:
    LEFT_SIDE, RIGHT_SIDE
Bug: 37943079
    Music is dying mid playback

Test: manual
Change-Id: Ied41932c61f59335bd18dfba3fcb13af28a0bddd

7 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 5 May 2017 05:14:51 +0000 (22:14 -0700)]
Import translations. DO NOT MERGE

Change-Id: I9b5ebe94df837619db36f6d104daff7637c449b5
Auto-generated-cl: translation import

7 years agoMerge "SmartTextShare: Update generic labels for assist menu item." into oc-dev
TreeHugger Robot [Fri, 5 May 2017 05:00:42 +0000 (05:00 +0000)]
Merge "SmartTextShare: Update generic labels for assist menu item." into oc-dev

7 years agoMerge "RemovalClient sendRemoved should check remaining instead of fingerId" into...
TreeHugger Robot [Fri, 5 May 2017 04:34:29 +0000 (04:34 +0000)]
Merge "RemovalClient sendRemoved should check remaining instead of fingerId" into oc-dev

7 years agoMerge "Avoid unnecessary ULocale.addLikelySubtags()" into oc-dev
Yohei Yukawa [Fri, 5 May 2017 04:29:07 +0000 (04:29 +0000)]
Merge "Avoid unnecessary ULocale.addLikelySubtags()" into oc-dev

7 years agoMerge changes Ie1686719,Ie6af7751 into oc-dev
TreeHugger Robot [Fri, 5 May 2017 03:31:52 +0000 (03:31 +0000)]
Merge changes Ie1686719,Ie6af7751 into oc-dev

* changes:
  Fixed a bug where the media notification image was wrong
  Improved the gradient drawing of the media notification

7 years agoMerge "Audio service: only duck started players + refactor" into oc-dev
TreeHugger Robot [Fri, 5 May 2017 02:48:25 +0000 (02:48 +0000)]
Merge "Audio service: only duck started players + refactor" into oc-dev

7 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 5 May 2017 02:14:00 +0000 (19:14 -0700)]
Import translations. DO NOT MERGE

Change-Id: I5197115980fb305b5bbd25b15c4bffb1a7985743
Auto-generated-cl: translation import

7 years agoMerge "Hyphenate text in CheckedTextView" into oc-dev
TreeHugger Robot [Fri, 5 May 2017 02:03:39 +0000 (02:03 +0000)]
Merge "Hyphenate text in CheckedTextView" into oc-dev

7 years agoAudio service: always unduck focus winner
Jean-Michel Trivi [Fri, 5 May 2017 01:33:06 +0000 (18:33 -0700)]
Audio service: always unduck focus winner

When a FocusRequester gains focus, always unduck it.
This fixes a bug where a player could remain ducked even after
  regaining focus. The issue was that the unducking was only
  done in the focus gain if the loss had been
  AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK, which is the only one
  that could have caused a duck. But between the moment
  the app lost audio focus with LOSS_TRANSIENT_CAN_DUCK and
  the moment it regains focus, it could have lost the focus
  once more with LOSS_TRANSIENT. And in this case, it would
  not have been unducked.
The fix consists in always unducking an app that gains focus. If
  it wasn't ducked, that operation is a no-op.

Test: see bug
Bug: 37433811
Change-Id: I95a5bfcc2d5063986bd62841c1893bbbd00b45bf

7 years agoFixed a bug where the media notification image was wrong
Selim Cinek [Thu, 4 May 2017 23:27:28 +0000 (16:27 -0700)]
Fixed a bug where the media notification image was wrong

In RTL the gradient was being applied the wrong way.

Test: switch to RTL, play music
Change-Id: Ie1686719d56436712fd0e6c99ba2723ba53d0025
Fixes: 37996998

7 years agoImproved the gradient drawing of the media notification
Selim Cinek [Wed, 3 May 2017 22:17:10 +0000 (15:17 -0700)]
Improved the gradient drawing of the media notification

Previously we were drawing with a color on top of the
image instead of fading it out. This could lead to
visible artefacts in the background.
We're now fading out the alpha in a similar manner instead.

Test: runtest systemui
Change-Id: Ie6af7751a734b8fa44279eba970e7ca5ba67a4c0
Fixes: 37950482

7 years agoMerge "autofill service search uri is not backed up" into oc-dev
Philip P. Moltmann [Fri, 5 May 2017 01:22:14 +0000 (01:22 +0000)]
Merge "autofill service search uri is not backed up" into oc-dev

7 years agoMerge "Correct scope of "disabled?" check viz backup/restore decisions" into oc-dev
Chris Tate [Fri, 5 May 2017 01:10:38 +0000 (01:10 +0000)]
Merge "Correct scope of "disabled?" check viz backup/restore decisions" into oc-dev

7 years agoMerge "Avoid reflection when mocking UserManagerService" into oc-dev
Aurimas Liutikas [Fri, 5 May 2017 00:40:37 +0000 (00:40 +0000)]
Merge "Avoid reflection when mocking UserManagerService" into oc-dev

7 years agoMerge "Use sim language for VZW." into oc-dev
Amit Mahajan [Fri, 5 May 2017 00:39:30 +0000 (00:39 +0000)]
Merge "Use sim language for VZW." into oc-dev

7 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 5 May 2017 00:07:38 +0000 (17:07 -0700)]
Import translations. DO NOT MERGE

Change-Id: I25d7e172be92bc7c637b272de450966b409982a6
Auto-generated-cl: translation import

7 years agoHyphenate text in CheckedTextView
Roozbeh Pournader [Thu, 4 May 2017 23:41:14 +0000 (16:41 -0700)]
Hyphenate text in CheckedTextView

CheckedTextView style defaults are not derived from TextView, so they
were not getting hyphenated at all. Now they are hyphenated the same
way a normal TextView is hyphenated.

Test: Manual
Bug: 37763646
Change-Id: I3d14e5a1764561cc2922eea569d124c77cb53631

7 years agoAudio service: only duck started players + refactor
Jean-Michel Trivi [Wed, 3 May 2017 19:16:17 +0000 (12:16 -0700)]
Audio service: only duck started players + refactor

Refactor management of list of ducked players:
  DuckingManager has a list of DuckedApps, which reference
  the ducked players per uid.
Only consider ducking a player when it is in STARTED state.
When a player is released, remove it from the list of ducked players.

Test: play audio in GPM while having driving directions, music ducks
Bug: 37433811
Change-Id: I038a963432c0df6c9470a3a4fb80049d55e8719c

7 years agoAvoid unnecessary ULocale.addLikelySubtags()
Yohei Yukawa [Thu, 4 May 2017 23:28:18 +0000 (16:28 -0700)]
Avoid unnecessary ULocale.addLikelySubtags()

This CL gets rid of unnecessary operations from
LocaleUtils.filterByLanguage() to speed it up, especially for the case
where there is an IME that has many subtypes.

ULocale.addLikelySubtags(ULocale) is known to be slow. Given an IME
that has N IME subtypes, LocaleUtils.filterByLanguage() calls it no
less than N times even when the only one system language is selected.
This has contributed to device boot time (Bug 32343335) time and user
switching time (Bug 28750507) since Android N where IME support
started taking multi-locale into account.

With this CL, LocaleUtils.filterByLanguage() no longer calls it
for a subtype unless its language part of the locale matches one of
user-selected system locales.

The only assumption we made here is

 for any Locale objects l1 and l2
   TextUtils.equals(l1.getLanguage(), l2.getLanguage())
 and
   TextUtils.equals(ul1.getLanguage(), ul2.getLanguage())
 are equivalent, where
   ul1 = ULocale.addLikelySubtags(ULocale.forLocale(l1)) and
   ul2 = ULocale.addLikelySubtags(ULocale.forLocale(l2))

This should be reasonable assumption, at least for locales we want to
care about for IMEs. Under this assumption there is no behavior
change at all.

Test: bit FrameworksCoreTests:com.android.internal.inputmethod.LocaleUtilsTest
Bug: 37647204
Change-Id: Ic96900fcaf3db8b7046a50b3fe6ad65aceada369

7 years agoEnsure that we hide the menu without resizing when expanding.
Winson Chung [Thu, 4 May 2017 22:06:18 +0000 (15:06 -0700)]
Ensure that we hide the menu without resizing when expanding.

- This should be done when expanding/dismissing from the menu activity,
  otherwise the menu state change can cause a stack-resize animation that
  clobbers the expand or dismiss animation.

Bug: 37650245
Test: Launch Duo in PIP, end call from notification tray
Change-Id: Ie880715ae7be28a4fe2dd0d294e369b62e776c35

7 years agoMerge "Stack is visible if behind docked which is behind pinned stack (1/2)" into...
TreeHugger Robot [Thu, 4 May 2017 23:11:11 +0000 (23:11 +0000)]
Merge "Stack is visible if behind docked which is behind pinned stack (1/2)" into oc-dev

7 years agoMerge "Limit btsnoop file size (3/9)" into oc-dev
Ajay Panicker [Thu, 4 May 2017 22:56:16 +0000 (22:56 +0000)]
Merge "Limit btsnoop file size (3/9)" into oc-dev

7 years agoMerge "Fix frozen alarm issue" into oc-dev
TreeHugger Robot [Thu, 4 May 2017 21:12:35 +0000 (21:12 +0000)]
Merge "Fix frozen alarm issue" into oc-dev

7 years agoAdd wifi throttling to backup blacklist.
Wei Wang [Thu, 4 May 2017 20:16:32 +0000 (13:16 -0700)]
Add wifi throttling to backup blacklist.

Test: Ran SettingsBackupTest test.

Bug: 37684646

Change-Id: I3cd2e30fc6736f36b8569400941a3128e06d2f48

7 years agoMerge "Do not clear recent intrusive flag if still intrusive" into oc-dev
Julia Reynolds [Thu, 4 May 2017 20:55:45 +0000 (20:55 +0000)]
Merge "Do not clear recent intrusive flag if still intrusive" into oc-dev

7 years agoMerge "Remove notification settings for deleted users" into oc-dev
Julia Reynolds [Thu, 4 May 2017 20:54:14 +0000 (20:54 +0000)]
Merge "Remove notification settings for deleted users" into oc-dev

7 years agoMerge "AOD: Change DozeTriggersTest to run on prox-less devices" into oc-dev
Adrian Roos [Thu, 4 May 2017 19:45:34 +0000 (19:45 +0000)]
Merge "AOD: Change DozeTriggersTest to run on prox-less devices" into oc-dev

7 years agoMerge "TrustManagerService: Fix service binding leak" into oc-dev
Adrian Roos [Thu, 4 May 2017 19:44:37 +0000 (19:44 +0000)]
Merge "TrustManagerService: Fix service binding leak" into oc-dev

7 years agoAvoid reflection when mocking UserManagerService
Fyodor Kupolov [Thu, 4 May 2017 19:22:25 +0000 (12:22 -0700)]
Avoid reflection when mocking UserManagerService

Fixed a crash due to a change in the private constructor signature

Test: PackageManagerSettingsTests are passing
Bug: 37989886
Change-Id: I5d46f6018b4bdb369b2e39ad3020235e7f2c5a2e

7 years agoMerge "Fix an NPE that can result from a race condition." into oc-dev
TreeHugger Robot [Thu, 4 May 2017 19:17:57 +0000 (19:17 +0000)]
Merge "Fix an NPE that can result from a race condition." into oc-dev

7 years agoFix settings test for show_notification_channel_warnings
Geoffrey Pitsch [Thu, 4 May 2017 18:56:33 +0000 (14:56 -0400)]
Fix settings test for show_notification_channel_warnings

Test: runtest --path
core/tests/coretests/src/android/provider/SettingsBackupTesst.jav
Bug: 37684646

Change-Id: I77ff42107979b22ca2d4b81a406fc69a5b16417f

7 years agoRemovalClient sendRemoved should check remaining instead of fingerId
Kevin Chyn [Thu, 4 May 2017 18:47:38 +0000 (11:47 -0700)]
RemovalClient sendRemoved should check remaining instead of fingerId

Test: for each of the following, make sure code goes into
if (client != null && client.onRemoved(fingerId, groupId, remaining)) {
    removeClient(client);
}

1) remove single fingerprint
2) remove all fingerprint by removing password

Change-Id: I6f1ebd42c05fd57225dd4808766791ff1922b09e
Fixes: 37992170

7 years agoMerge "Remove default network recommendation provider." into oc-dev
TreeHugger Robot [Thu, 4 May 2017 18:24:52 +0000 (18:24 +0000)]
Merge "Remove default network recommendation provider." into oc-dev

7 years agoautofill service search uri is not backed up
Philip P. Moltmann [Thu, 4 May 2017 18:07:05 +0000 (11:07 -0700)]
autofill service search uri is not backed up

This is expected as the settings is set by the app market of the device
each time the marked it set up.

Bug: 37684646
Test:  mmma -j40 frameworks/base/core/tests/coretests &&
       adb install -r ${ANDROID_PRODUCT_OUT}/data/app/FrameworksCoreTests/FrameworksCoreTests.apk &&
       adb shell am instrument -w -e class android.provider.SettingsBackupTest com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner

Change-Id: Ie9502150d0861173ab58ed7d096d3900704b8915

7 years agoImageWriter: Attach non-opaque Images as well.
Eino-Ville Talvala [Tue, 2 May 2017 19:44:05 +0000 (12:44 -0700)]
ImageWriter: Attach non-opaque Images as well.

With all the work under the hood of ImageReader/Writer in the last few
releases, this is much more straightforward to enable.

Only trick is to ensure that the Image detached from the ImageReader
correctly clears out its planes, if present.

Bug: 19962027
Test: Camera CTS still passes on angler, sailfish, ryu
Change-Id: Ic8a1f3e2f45cf15971d76e308a5af25eb2fd66f1

7 years agoDo not clear recent intrusive flag if still intrusive
Julia Reynolds [Wed, 3 May 2017 20:00:20 +0000 (16:00 -0400)]
Do not clear recent intrusive flag if still intrusive

Test: manual, post two noisy progress notifications that update
every second. before change, they start swapping after ten seconds.
after change, no swapping.
Fixes: 36299000

Change-Id: Ia16c36660ae6d59b51b7c5b3521ad43de45aa952

7 years agoMerge "Fix issue #37938835: Undismissable "Camera is running in the..." into oc-dev
Dianne Hackborn [Thu, 4 May 2017 17:28:08 +0000 (17:28 +0000)]
Merge "Fix issue #37938835: Undismissable "Camera is running in the..." into oc-dev

7 years agoMerge "Better handle MSIM DDS changed event" into oc-dev
Brad Ebinger [Thu, 4 May 2017 17:11:46 +0000 (17:11 +0000)]
Merge "Better handle MSIM DDS changed event" into oc-dev

7 years agoLimit btsnoop file size (3/9)
Ajay Panicker [Tue, 18 Apr 2017 03:42:22 +0000 (20:42 -0700)]
Limit btsnoop file size (3/9)

Limit btsnoop file size by rotating between snoop files. The rotation occurrs
when a fixed number of packets have been logged and will start overwriting
the older file.

Bug: 35998031
Test: Enable snoop logs from developer options and let logs get large
Change-Id: I40d5da4c1b1c9b45908e5790d130f1c5e804c773

7 years agoActivityManagerService: Add an overall stack dumping timeout.
Narayan Kamath [Wed, 3 May 2017 19:56:10 +0000 (20:56 +0100)]
ActivityManagerService: Add an overall stack dumping timeout.

An ANR can result in stack dumps of a generally unbounded number
of processes. Dumping occurs on a thread that's patrolled by the
watchdog, so we should make sure that all dumps trigger within a
specified timeout.

Test: Manual; by setting the timeout to 1s.
Bug: 37177331

Change-Id: I626272dfbcc9f8b57c1ef1321fac43cdb937a885

7 years agoUse sim language for VZW.
Amit Mahajan [Thu, 4 May 2017 16:06:07 +0000 (09:06 -0700)]
Use sim language for VZW.

Instead of doing it 204-04 + gid, change has been made for
MCC 204. This can be revisited if there is any 204 carrier for
which sim language is not set correctly.

Test: none; reverting to earlier behavior for these mcc-mncs
Bug: 37704287
Change-Id: I30661e6467bbf5afc3ebb2ae58ddf36df7d55ce6

7 years agoMerge "Workaround launching PiP task with CLEAR_TASK & NEW_TASK flag." into oc-dev
Winson Chung [Thu, 4 May 2017 16:16:28 +0000 (16:16 +0000)]
Merge "Workaround launching PiP task with CLEAR_TASK & NEW_TASK flag." into oc-dev

7 years agoStore "block uninstall" flag separately from the rest of package state.
Vladislav Kuzkokov [Mon, 24 Oct 2016 07:27:16 +0000 (09:27 +0200)]
Store "block uninstall" flag separately from the rest of package state.

This allows to set "block uninstall" prior to installation and avoid the
inevitable race that happens when Device Policy app tries to force install and
then immediately block uninstall.

BUG=31043188
Test: Block com.chrome.beta in TestDPC. install, fail to uninstall through adb, unblock, uninstall

Change-Id: I5ffa2abcb003982eccfb77585c43b59532dd501d
(cherry picked from commit 1fff9dcb9d0a4d7224ff8aa0f39e82df0b30152c)

7 years agoFix frozen alarm issue
Makoto Onuki [Thu, 4 May 2017 15:38:07 +0000 (08:38 -0700)]
Fix frozen alarm issue

Bug 34724174
Test: Manual test with "dumpsys alarm" + putting device into doze

Change-Id: I1d9ec3ac1e78ea263b2598a8c7ab4157ec40c535

7 years agoMerge "Only classify text when the toolbar is shown." into oc-dev
TreeHugger Robot [Thu, 4 May 2017 15:15:30 +0000 (15:15 +0000)]
Merge "Only classify text when the toolbar is shown." into oc-dev

7 years agoMerge "Developer setting to show toast for notifications without a channel" into...
TreeHugger Robot [Thu, 4 May 2017 14:08:58 +0000 (14:08 +0000)]
Merge "Developer setting to show toast for notifications without a channel" into oc-dev

7 years agoMerge "ignore exception calling unlinkToDeath" into oc-dev
TreeHugger Robot [Thu, 4 May 2017 13:23:46 +0000 (13:23 +0000)]
Merge "ignore exception calling unlinkToDeath" into oc-dev

7 years agoOnly classify text when the toolbar is shown.
Abodunrinwa Toki [Wed, 3 May 2017 19:22:55 +0000 (20:22 +0100)]
Only classify text when the toolbar is shown.

classifyText() is used to generate a menu item in the selection toolbar
to handle the selected text. In this cl we avoid calling classifyText()
when the selection is changing but instead call it when we are about to
show the toolbar.

Previously, we depended on invalidateActionModeAsync() to classify text
after a call to startActionMode(). Now that we've introduced
invalidateActionMode() we need to be able to tell
startSelectionActionMode() that we also want the text to be classified,
hence the introduction of an input parameter, "adjustSelection", to
startSelectionActionModeAysnc().

Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest
Bug: 34966796
Change-Id: I5b9fc9e8ab443f024f8ca461df5a4bcc6485d26b

7 years agoDon't include IME in app screenshot
Jorim Jaggi [Thu, 4 May 2017 11:54:22 +0000 (13:54 +0200)]
Don't include IME in app screenshot

Test: Compose message in messenger, go to recents, make sure
IME is not visible in snapshot
Fixes: 37084760

Change-Id: Ic311eb452590fa26adb1ecedb7ae5eba3275d88c

7 years agoAdjust forced dexopt in case of stripped APKs.
Nicolas Geoffray [Wed, 3 May 2017 10:51:53 +0000 (11:51 +0100)]
Adjust forced dexopt in case of stripped APKs.

We cannot compile from scratch for strip APK. So
if getDexOptNeeded returns NotNeeded, pretend there was
a compiler filter change, in order to pick up the vdex file.

bug: 37558732
Test: "adb shell cmd package compile" of a stripped /system apk

(cherry picked from commit 96d12a93aeffb8f6db80a7b415cb7d4eb2c4198c)

Change-Id: I3b699a18799ea035ff78c60578c08f8803a17e36

7 years agoMerge "Handle volume keys to apps in Vr mode" into oc-dev
TreeHugger Robot [Thu, 4 May 2017 11:26:53 +0000 (11:26 +0000)]
Merge "Handle volume keys to apps in Vr mode" into oc-dev

7 years agoMerge "selectBackupTransportAsync should report failure when backup is not available...
TreeHugger Robot [Thu, 4 May 2017 08:43:59 +0000 (08:43 +0000)]
Merge "selectBackupTransportAsync should report failure when backup is not available" into oc-dev

7 years agoMerge "Reset touch location after touch slop is exceeded in recents" into oc-dev
TreeHugger Robot [Thu, 4 May 2017 06:35:48 +0000 (06:35 +0000)]
Merge "Reset touch location after touch slop is exceeded in recents" into oc-dev

7 years agoMerge "Allow TIMEZONE_CHANGED to launch apps" into oc-dev
TreeHugger Robot [Thu, 4 May 2017 06:27:29 +0000 (06:27 +0000)]
Merge "Allow TIMEZONE_CHANGED to launch apps" into oc-dev

7 years agoFix an NPE that can result from a race condition.
Sundeep Ghuman [Wed, 3 May 2017 19:45:44 +0000 (12:45 -0700)]
Fix an NPE that can result from a race condition.

NetworkInfo and WifiInfo are set via broadcast receiver so while in a
true stable state network info should not be null if wifi info is, this
can occur in rare instances due to a race condition. It is convention in
AccessPoint.java to always null check network info.

Bug: b/37951301
Test: runtest --path
frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/WifiTrackerTest.java

Change-Id: Ia1b357c84b961a555ec24a5b930ade35ddf8dbba

7 years agoMerge "Rename CompatibilityDisplay to Vr2dDisplay" into oc-dev
Karthik Ravi Shankar [Thu, 4 May 2017 05:17:13 +0000 (05:17 +0000)]
Merge "Rename CompatibilityDisplay to Vr2dDisplay" into oc-dev

7 years agoRename CompatibilityDisplay to Vr2dDisplay
Karthik Ravi Shankar [Mon, 1 May 2017 08:34:19 +0000 (01:34 -0700)]
Rename CompatibilityDisplay to Vr2dDisplay

CompatibilityDisplay used for displaying 2D activities in Vr world. This
is confusing in more than one way. To clarify what it really means,
rename it to Vr2dDisplay.

Changes in this CL -

- /s/CompatibilityDisplay/Vr2dDisplay
- /s/Compatibility/Vr2d - in CompatibilityDisplay context.

Bug: 37851944
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test
CtsServicesHostTestCases android.server.cts.ActivityManagerDisplayTests
passes on Marlin.

Change-Id: I0a442302fa9d0f48bbd0c01a7766b94369e04386
Signed-off-by: Karthik Ravi Shankar <karthikrs@google.com>
7 years agoMerge "Added TaskSnapshotCacheTest back to presubmit" into oc-dev
TreeHugger Robot [Thu, 4 May 2017 02:51:58 +0000 (02:51 +0000)]
Merge "Added TaskSnapshotCacheTest back to presubmit" into oc-dev

7 years agoMerge "Always start a manual request, even if view was already autofilled." into...
TreeHugger Robot [Thu, 4 May 2017 01:47:00 +0000 (01:47 +0000)]
Merge "Always start a manual request, even if view was already autofilled." into oc-dev

7 years agoMerge "Add persistent state for Bluetooth high quality audio support" into oc-dev
TreeHugger Robot [Thu, 4 May 2017 01:37:02 +0000 (01:37 +0000)]
Merge "Add persistent state for Bluetooth high quality audio support" into oc-dev

7 years agoAllow TIMEZONE_CHANGED to launch apps
Christopher Tate [Thu, 4 May 2017 01:10:39 +0000 (18:10 -0700)]
Allow TIMEZONE_CHANGED to launch apps

Bug 37866305
Test: manual

Change-Id: If15df909e99e910c012f2a7b33ae8600c0f97d8d

7 years agoFix issue #37938835: Undismissable "Camera is running in the...
Dianne Hackborn [Thu, 4 May 2017 01:04:05 +0000 (18:04 -0700)]
Fix issue #37938835: Undismissable "Camera is running in the...

...background" notification even after force stopping camera

Ensure we have a message scheduled to dismiss the next app every
time we go through the app list.  Also don't show the notification
for an app when it is in the foreground.

Test: manual

Change-Id: Idd93c8d9f8252b880c8b4bf069c71ad71a6b27c9

7 years agoMerge "Revert "Don't add other's child as header or footer"" into oc-dev
TreeHugger Robot [Thu, 4 May 2017 01:03:56 +0000 (01:03 +0000)]
Merge "Revert "Don't add other's child as header or footer"" into oc-dev

7 years agoMerge "Fix potential race in DexManager" into oc-dev
Calin Juravle [Thu, 4 May 2017 00:35:39 +0000 (00:35 +0000)]
Merge "Fix potential race in DexManager" into oc-dev

7 years agoMerge "Don't copy NoCopySpans for assist and autofill" into oc-dev
Siyamed Sinir [Thu, 4 May 2017 00:27:27 +0000 (00:27 +0000)]
Merge "Don't copy NoCopySpans for assist and autofill" into oc-dev

7 years agoMerge "Reduce the timeout for waiting for the network state update." into oc-dev
Sudheer Shanka [Thu, 4 May 2017 00:26:52 +0000 (00:26 +0000)]
Merge "Reduce the timeout for waiting for the network state update." into oc-dev

7 years agoMerge "Avoid reading HW bitmap pixels twice" into oc-dev
TreeHugger Robot [Thu, 4 May 2017 00:14:13 +0000 (00:14 +0000)]
Merge "Avoid reading HW bitmap pixels twice" into oc-dev

7 years agoReset touch location after touch slop is exceeded in recents
Matthew Ng [Tue, 2 May 2017 23:47:53 +0000 (16:47 -0700)]
Reset touch location after touch slop is exceeded in recents

There was a jump when a user touch moves over the slop value. To fix
this the location is updated to new y position so that the move
animation of the card after has no visual jump.

Change-Id: Ia9b1d04cc0b2983c2e61114ebbf3bdeb154404e9
Fixes: 35720341
Test: manual - enter recents and slowly drag a card vertically and
notice no jump with the fix, moving after the slop has a consistent
motion

7 years agoMerge "Revert "O is API 26"" into oc-dev
Ian Pedowitz [Thu, 4 May 2017 00:07:05 +0000 (00:07 +0000)]
Merge "Revert "O is API 26"" into oc-dev

7 years agoStack is visible if behind docked which is behind pinned stack (1/2)
Matthew Ng [Mon, 1 May 2017 20:59:50 +0000 (13:59 -0700)]
Stack is visible if behind docked which is behind pinned stack (1/2)

Handles the case if pip is shown with splitscreen when the stack order
is pinned, docked, current stack, etc (top to bottom). Added a condition
to check to make sure that this order of stacks allows the current stack
to be visible. Also added a condition to not hide docked stack when pip
appears (this only occurs with command line or cts tests); added TODO
for refactor.

Change-Id: I53bd55014c08c60f360b95ed7100ef49778f891b
Fixes: 37294521
Test: run-test CtsServicesHostTestCases
android.server.cts.ActivityManagerPinnedStackTests#
testPinnedStackWithDockedStack

7 years agoMerge "Grant ephemeral app access during service bind" into oc-dev
TreeHugger Robot [Wed, 3 May 2017 23:58:19 +0000 (23:58 +0000)]
Merge "Grant ephemeral app access during service bind" into oc-dev

7 years agoMerge "Accessibility shortcut on Android TV." into oc-dev
Sujith Ramakrishnan [Wed, 3 May 2017 23:56:18 +0000 (23:56 +0000)]
Merge "Accessibility shortcut on Android TV." into oc-dev