OSDN Git Service

android-x86/frameworks-base.git
7 years agoDon't show wifi in status bar in QS DO NOT MERGE
Jason Monk [Wed, 10 May 2017 14:57:27 +0000 (10:57 -0400)]
Don't show wifi in status bar in QS DO NOT MERGE

This is a partial revert of the revert of
d1ba5fbb54a02fad0c68f71183078527bfa9bd49

Test: manual
Change-Id: If5675620026c9e90855525a20a8fd92987acbf80
Fixes: 16544554

7 years agoMerge "NetworkStatsFactory: fix double accounting on IPv6 only networks" into oc-dev
Hugo Benichi [Wed, 10 May 2017 08:19:52 +0000 (08:19 +0000)]
Merge "NetworkStatsFactory: fix double accounting on IPv6 only networks" into oc-dev

7 years agoMerge "Allow null fill values to support authentication case" into oc-dev
TreeHugger Robot [Wed, 10 May 2017 06:18:47 +0000 (06:18 +0000)]
Merge "Allow null fill values to support authentication case" into oc-dev

7 years agoMerge "Refactor and improve logging." into oc-dev
TreeHugger Robot [Wed, 10 May 2017 06:08:09 +0000 (06:08 +0000)]
Merge "Refactor and improve logging." into oc-dev

7 years agoMerge "Allow NEXT_ALARM_CLOCK_CHANGED to launch manifest receivers" into oc-dev
TreeHugger Robot [Wed, 10 May 2017 05:11:00 +0000 (05:11 +0000)]
Merge "Allow NEXT_ALARM_CLOCK_CHANGED to launch manifest receivers" into oc-dev

7 years agoMerge "Track activity launch failure." into oc-dev
Sudheer Shanka [Wed, 10 May 2017 04:57:09 +0000 (04:57 +0000)]
Merge "Track activity launch failure." into oc-dev

7 years agoMerge "Forcing no animations to be played if swiping fast" into oc-dev
TreeHugger Robot [Wed, 10 May 2017 04:13:06 +0000 (04:13 +0000)]
Merge "Forcing no animations to be played if swiping fast" into oc-dev

7 years agoRefactor and improve logging.
Erik Kline [Mon, 8 May 2017 08:56:35 +0000 (17:56 +0900)]
Refactor and improve logging.

Test: as follows
    - build
    - flashed
    - booted
    - "runtest frameworks-net" passed
    - "dumpsys connectivity" shows new log output
Bug: 32163131
Bug: 36504926

Merged-In: Ieb9a8e3f85f41d18056a7827997f12986ff13ca1
Merged-In: I744b048224e0b8bf6fe4da763833b755441c0911
Merged-In: Ic0c384547687572058d5ef62977163b2560bfc69
Merged-In: Iae91c43d1bfd9fbedc88821a0bd3a5168ad3b719
Merged-In: I52606d4375c9b16de03123995737a994ba58b4d7
Merged-In: I35110b6479280abc650e0ee257045d241923faf9
Change-Id: I14d6da18660223f7cace156cb6594ee18928a7b0
(cherry picked from commit 1fdc2e23b5d8136e06cafd7de896b49e5f929c7f)

7 years agoMerge "Use "real" free space; refresh on large changes." into oc-dev
Jeff Sharkey [Wed, 10 May 2017 03:49:07 +0000 (03:49 +0000)]
Merge "Use "real" free space; refresh on large changes." into oc-dev

7 years agoMerge "Bluetooth: Fix interval low/min values" into oc-dev
TreeHugger Robot [Wed, 10 May 2017 03:15:48 +0000 (03:15 +0000)]
Merge "Bluetooth: Fix interval low/min values" into oc-dev

7 years agoMerge "Fix doc flag for device having multiple storages" into oc-dev
TreeHugger Robot [Wed, 10 May 2017 02:20:19 +0000 (02:20 +0000)]
Merge "Fix doc flag for device having multiple storages" into oc-dev

7 years agoMerge "Close databases in onStop user" into oc-dev
TreeHugger Robot [Wed, 10 May 2017 02:11:29 +0000 (02:11 +0000)]
Merge "Close databases in onStop user" into oc-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Wed, 10 May 2017 01:44:25 +0000 (01:44 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoMerge "Fix broken android.view.DisabledTest." into oc-dev
TreeHugger Robot [Wed, 10 May 2017 01:43:52 +0000 (01:43 +0000)]
Merge "Fix broken android.view.DisabledTest." into oc-dev

7 years agoMerge "Fixes for handling users + default for USB" into oc-dev
TreeHugger Robot [Wed, 10 May 2017 01:39:28 +0000 (01:39 +0000)]
Merge "Fixes for handling users + default for USB" into oc-dev

7 years agoBluetooth: Fix interval low/min values
Jakub Pawlowski [Tue, 9 May 2017 21:28:21 +0000 (14:28 -0700)]
Bluetooth: Fix interval low/min values

Bug: 38175945
Test: none
Change-Id: Idf487c7aafc518f2c57be78a1fa979b2c4a383d6
(cherry picked from commit 6b1f39502c7d5f71b42d82ac6d511ee0afd1191e)

7 years agoAllow null fill values to support authentication case
Svetoslav Ganov [Wed, 10 May 2017 00:40:24 +0000 (17:40 -0700)]
Allow null fill values to support authentication case

If a dataset needs to be authenticated the fill service
may not have the values but needs to tell the system for
which fields to show the fill UI. We now allow passing
a null value to mean the view is a part of the dataset
semantically but its value should remain unchanged.

If a dataset has no values, i.e. the related autofill ids
are mapped to null, we cannot properly filter. In this case
we always match such items regardless what the user typed.

While at this improved accessibility support for filtering
to announce when the number of items being filtered changes.

Also while at this allowed a dataset authentication to return
a response which replaces the current response and refreshes
the UI. Matching datasets with null values to any text plus
allowing a response to be returned from a dataset auth enables
the use case where there is always "Import" item at the
end of the list which when clicked can show arbitrarily more
data entries associated to other apps.

Another change is that we now provide the client state
bundle on both request and dataset auth.

Finally, this change gets rid of dataset waiting auth and
response waiting auth concepts since the reference to the
response and the dataset is piped with the auth request.

Fixed a bug where the width of the autofill UI was not
properly measured by going over all items in the adapter.
Now we measure enough height to fit the first three and the
width id the width of the widest item in the adapter.

Test: Added LoginActivityTest#testDatasetAuthTwoFieldsReplaceResponse
      Added LoginActivityTest#testDatasetAuthTwoFieldsNoValues
      Added LiginActivityTest#filterTextNullValuesAlwaysMatched
      All autofill CTS tests pass

bug:37724701
bug:37424539

Change-Id: Ic19e5d7cbdbb7d110c9e7da0ad60b540cbf1aecf

7 years agoMerge "AOD: Disable not-yet-ready always-on feature" into oc-dev
TreeHugger Robot [Wed, 10 May 2017 00:32:32 +0000 (00:32 +0000)]
Merge "AOD: Disable not-yet-ready always-on feature" into oc-dev

7 years agoMerge "Warn when other's child is added to ListView as header/footer." into oc-dev
TreeHugger Robot [Wed, 10 May 2017 00:20:50 +0000 (00:20 +0000)]
Merge "Warn when other's child is added to ListView as header/footer." into oc-dev

7 years agoNetworkStatsFactory: fix double accounting on IPv6 only networks
Hugo Benichi [Fri, 7 Apr 2017 06:20:56 +0000 (15:20 +0900)]
NetworkStatsFactory: fix double accounting on IPv6 only networks

For 464xlat scenarios on IPv6 networks, the clatd interface setup
introduces double counting of apps ipv4 traffic. NetworkStatsFactory was
accounting for this on the tx path, but not on the rx path. Also it did
not accounted for the 20 bytes added by the IPv6 header.

This patch subtract correctly the rx and tx traffic from the root uid on
the underlying interface, and also adds correctly the 20 bytes cost per
packet on the stacked interface for 464xlat traffic.

Test: added several new unit tests, based on synthetic data and real
      data also.
Bug: 33681750
Change-Id: I4867fe181938d94b5594b3d88896a3c4e01d895c
Merged-In: I2675643b220acbc6110179fa937d4c313b6f5e32

(cherry picked from commit e1bb3a14d1ee1aba2f92e5bccf659774699eaffe)

7 years agoMerge "Fixes issue where the notification menu was not visible after RTL changes...
Mady Mellor [Tue, 9 May 2017 23:41:23 +0000 (23:41 +0000)]
Merge "Fixes issue where the notification menu was not visible after RTL changes" into oc-dev

7 years agoAllow NEXT_ALARM_CLOCK_CHANGED to launch manifest receivers
Christopher Tate [Tue, 9 May 2017 23:02:25 +0000 (16:02 -0700)]
Allow NEXT_ALARM_CLOCK_CHANGED to launch manifest receivers

Bug 37452651
Test: manual

Change-Id: If74fe1baff956d8cd888fe40b521f2c0b852b3ee

7 years agoMerge "Fix broken SystemApi docs." into oc-dev
Jeff Sharkey [Tue, 9 May 2017 22:56:18 +0000 (22:56 +0000)]
Merge "Fix broken SystemApi docs." into oc-dev

7 years agoUse "real" free space; refresh on large changes.
Jeff Sharkey [Tue, 9 May 2017 22:55:29 +0000 (16:55 -0600)]
Use "real" free space; refresh on large changes.

For volumes where the OS manages cached data, use the "free space" as
reported by StorageStatsManager, which is the same value shown in
the Settings app and other UI elements.

Also, when the storage space changes significantly, invalidate anyone
who was holding a cached "free space" value.

Test: builds, boots
Bug: 38146029
Change-Id: I4b3a484a8bf32cd137a83f1ea441beca6dc6719a

7 years agoMerge "Fixed the ordering of colorized media notifications" into oc-dev
Selim Cinek [Tue, 9 May 2017 21:06:58 +0000 (21:06 +0000)]
Merge "Fixed the ordering of colorized media notifications" into oc-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
Bill Yi [Tue, 9 May 2017 20:20:06 +0000 (20:20 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoMerge "Add some logging for buggy calls to AM" into oc-dev
TreeHugger Robot [Tue, 9 May 2017 19:43:54 +0000 (19:43 +0000)]
Merge "Add some logging for buggy calls to AM" into oc-dev

7 years agoAOD: Disable not-yet-ready always-on feature
Adrian Roos [Tue, 9 May 2017 19:30:21 +0000 (12:30 -0700)]
AOD: Disable not-yet-ready always-on feature

Fixes: 37982136
Test: Verify Ambient Display options are gone from SysuiTuner on userdebug builds
Merged-In: I0b20ba7c352bac7c278f659f0e29496cc342d381
Change-Id: Id61e5fa8f3c42ea17e6e878ec1c8a2555fe93320

7 years agoFix broken android.view.DisabledTest.
Aurimas Liutikas [Tue, 9 May 2017 18:08:34 +0000 (11:08 -0700)]
Fix broken android.view.DisabledTest.

The test was calling setOnClickListener off the main thread.

Test: ran manually and it now passes
Bug: 38166715
Change-Id: I63777467a789c6a060b340d6b410ac2e744db678

7 years agoMerge "Always remove orphaned starting windows, no matter what the state" into oc-dev
Jorim Jaggi [Tue, 9 May 2017 18:31:48 +0000 (18:31 +0000)]
Merge "Always remove orphaned starting windows, no matter what the state" into oc-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Tue, 9 May 2017 18:21:59 +0000 (18:21 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoMerge "Always force set functions on disconnect" into oc-dev
Jerry Zhang [Tue, 9 May 2017 18:10:23 +0000 (18:10 +0000)]
Merge "Always force set functions on disconnect" into oc-dev

7 years agoMerge "AAPT2: Ignore namespaced elements in AndroidManifest.xml" into oc-dev
TreeHugger Robot [Tue, 9 May 2017 17:58:43 +0000 (17:58 +0000)]
Merge "AAPT2: Ignore namespaced elements in AndroidManifest.xml" into oc-dev

7 years agoFix broken SystemApi docs.
Jeff Sharkey [Tue, 9 May 2017 17:57:05 +0000 (11:57 -0600)]
Fix broken SystemApi docs.

These broken docs were causing the docs build to completely fail.

Test: make -j32 online-system-api-sdk-docs
Bug: 38164929
Change-Id: I7f5fd4922e20e1a42af953f86f3c652655bc9192

7 years agoMerge "Protect shared element transitions from removed views." into oc-dev
TreeHugger Robot [Tue, 9 May 2017 17:22:08 +0000 (17:22 +0000)]
Merge "Protect shared element transitions from removed views." into oc-dev

7 years agoFixes for handling users + default for USB
Philip P. Moltmann [Sat, 29 Apr 2017 00:25:37 +0000 (17:25 -0700)]
Fixes for handling users + default for USB

Once a user plugs in a USB device (or accessory) the user can decide
which app should be started by default once the device is plugged in.
I.e. this app becomes the "default" for this USB device. If the user has
a work profile the default app is set for all profiles of the current
profile group (i.e. personal and work profile) as at any point in time
one profile group is visible on the screen.

There were some issues in the code:
- fix small obvious bugs

- use userPackage (==packageName + user) everywhere instead of only
  packageName as we have to distinguish between apps of different
  profiles.
- Stop accessing userPackage.packageName whereever possible to avoid
  mistakenly ignoring the user

- Monitor packages of all users and deal only with users of the current
  profile group.
- Do not react to package changes/updates/modifications. While it is
  possible that an app gained the ability to deal with new USB devices on
  update, we should not clear the default app for a default device. This
  is because (1) this situation is exceedingly rare and (2) we do not
  easily know when an app gained the ability to deal with a device. The
  user can still manually clear the USB default app via Settings.

- The old DeviceFilter.matches code did not make sense. An app that
  wanted to replace the previous default app would have needed to know
  the serial number of the device.

Test: - Searched for access to UserPackage.packageName and we only use it
        directly three times now. I checked these occurances and it is save
        to use.
      - Ran the following test
        - Install app that can handle a USB device in personal profile
- make this app the default for this USB device
- Install same app in work profile -> default was be cleared as
                                              it is not clear if the user
      might prefer the other app
- make the work app the default for this USB device
- update non-work app -> default should not be cleared as the the
                                 update is usually not triggered by the
 user and we should just keep the
 selection the user made before
- update work app -> App is already default
- uninstall work app -> default should be cleared as the default
                                app was removed
Fixes: 36610004
Change-Id: I294b582c36228169ac12a02d8007a4541e386d57

7 years agoMerge "Destroy Allocation with ScriptIntrinsicLut" into oc-dev
Yang Ni [Tue, 9 May 2017 17:00:18 +0000 (17:00 +0000)]
Merge "Destroy Allocation with ScriptIntrinsicLut" into oc-dev

7 years agoMerge "Destroy Allocation right away on exception" into oc-dev
Yang Ni [Tue, 9 May 2017 16:59:34 +0000 (16:59 +0000)]
Merge "Destroy Allocation right away on exception" into oc-dev

7 years agoMerge "Fix VectorDrawable size rounding issue" into oc-dev
Tenghui Zhu [Tue, 9 May 2017 16:38:30 +0000 (16:38 +0000)]
Merge "Fix VectorDrawable size rounding issue" into oc-dev

7 years agoMerge "Don't commit snooze on horizontal swipes or when its in its expanded state...
TreeHugger Robot [Tue, 9 May 2017 16:29:45 +0000 (16:29 +0000)]
Merge "Don't commit snooze on horizontal swipes or when its in its expanded state" into oc-dev

7 years agoMerge "Fix IME Keyguard exit animation" into oc-dev
TreeHugger Robot [Tue, 9 May 2017 16:24:08 +0000 (16:24 +0000)]
Merge "Fix IME Keyguard exit animation" into oc-dev

7 years agoMerge "Add BLE results counter to batterystats" into oc-dev
TreeHugger Robot [Tue, 9 May 2017 16:03:16 +0000 (16:03 +0000)]
Merge "Add BLE results counter to batterystats" into oc-dev

7 years agoMerge "Remove redundant TextClassificationService" into oc-dev
TreeHugger Robot [Tue, 9 May 2017 16:02:10 +0000 (16:02 +0000)]
Merge "Remove redundant TextClassificationService" into oc-dev

7 years agoMerge "SurfaceView: Release Surface with SurfaceControl." into oc-dev
Rob Carr [Tue, 9 May 2017 15:49:20 +0000 (15:49 +0000)]
Merge "SurfaceView: Release Surface with SurfaceControl." into oc-dev

7 years agoMerge "NumberPicker a11y (and a11y-inspired) fixes" into oc-dev
Phil Weaver [Tue, 9 May 2017 15:35:54 +0000 (15:35 +0000)]
Merge "NumberPicker a11y (and a11y-inspired) fixes" into oc-dev

7 years agoMerge "Always throw a ConnectionException on error" into oc-dev
TreeHugger Robot [Tue, 9 May 2017 15:32:22 +0000 (15:32 +0000)]
Merge "Always throw a ConnectionException on error" into oc-dev

7 years agoMerge "Fix crash in a11y cache" into oc-dev
Phil Weaver [Tue, 9 May 2017 15:30:24 +0000 (15:30 +0000)]
Merge "Fix crash in a11y cache" into oc-dev

7 years agoMerge "Fix double bolding" into oc-dev
TreeHugger Robot [Tue, 9 May 2017 15:13:48 +0000 (15:13 +0000)]
Merge "Fix double bolding" into oc-dev

7 years agoAlways remove orphaned starting windows, no matter what the state
Jorim Jaggi [Tue, 9 May 2017 14:27:24 +0000 (16:27 +0200)]
Always remove orphaned starting windows, no matter what the state

We orphaned a starting window because of the following sequence:
- Task was moved to front, thus starting window was added.
- activityPaused on Launcher was called
- In the meantime, any other activity was launched.
- When activityPause was completed, we didn't set the visibility
of the original task *not* to true. Thus, we didn't have any
signal to remove the starting window.

Note that this was more easy to repro with trampoline activities,
but in theory can also happen without trampoline activities.

We already have a way to remove orphaned starting windows so
let's reuse them independantly of the activity state.

Test: Hot launch calendar, immediately press home again. Make sure
not starting window is leaked.
Fixes: 37888853

Change-Id: Ide72c55e66a15b44a51380208bbb29dda00f7694

7 years agoFix IME Keyguard exit animation
Jorim Jaggi [Mon, 8 May 2017 21:42:02 +0000 (23:42 +0200)]
Fix IME Keyguard exit animation

Keyguard exit animation was always applied no matter whether the
current window is shown or not. Because Keyguard exit starts with
alpha=0, this lead to a flicker with the IME window as a frame
later IME was applied its dismissal animation, which reverts it to
alpha=1 at the beginning.

Fix this by only applying exit animation if window is currently
hidden only by policy. Requires readding the old visibility method
*cough cough cough*

Ideally we would apply non-app window policy visibility/animation
at the same place...but today is not the day! (to minimize risk)

Test: Set password, unlock phone
Test: Don't set password, unlock to activity with IME up
Change-Id: I46110c80da4438223282903fd4defeba2c3f0550
Fixes: 36200726

7 years agoRemove redundant TextClassificationService
Abodunrinwa Toki [Thu, 4 May 2017 15:29:04 +0000 (16:29 +0100)]
Remove redundant TextClassificationService

Text classification is now being done entirely in the app's proccess.
See android.view.textclassifier.TextClassificationManager
Reverts Ic428d00f291e268211866b3fc6b7acbc3eb04e1e

Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest
Fixes: 36852122
Change-Id: Iffff3ab6e7d3b761576eb6bdcd5032db34b7a1b2

7 years agoMerge "Update SystemUpdatePolicy wording" into oc-dev
Rubin Xu [Tue, 9 May 2017 11:48:56 +0000 (11:48 +0000)]
Merge "Update SystemUpdatePolicy wording" into oc-dev

7 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 9 May 2017 10:08:54 +0000 (03:08 -0700)]
Import translations. DO NOT MERGE

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

7 years agoWarn when other's child is added to ListView as header/footer.
Daichi Hirono [Tue, 9 May 2017 09:17:34 +0000 (18:17 +0900)]
Warn when other's child is added to ListView as header/footer.

If other's child is added to ListView as header/footer, it may crash
while layouting. To notify users invalid use case, the CL adds warning.

Bug: 37726743
Test: Manually inspect logcat after adding other's child as header.
Change-Id: I1a66fa9a74e4f15e9d8a696a3957db88fc5bbfbe

7 years agoMerge "FingerprintService: refresh auth id after enroll and remove." into oc-dev
Charles He [Tue, 9 May 2017 07:58:20 +0000 (07:58 +0000)]
Merge "FingerprintService: refresh auth id after enroll and remove." into oc-dev

7 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 9 May 2017 07:32:46 +0000 (00:32 -0700)]
Import translations. DO NOT MERGE

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

7 years agoMerge "Move some NetworkStats tests to tests/net." into oc-dev
TreeHugger Robot [Tue, 9 May 2017 06:36:35 +0000 (06:36 +0000)]
Merge "Move some NetworkStats tests to tests/net." into oc-dev

7 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 9 May 2017 05:38:21 +0000 (22:38 -0700)]
Import translations. DO NOT MERGE

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

7 years agoMerge "Handling the touch better when the screen turns off" into oc-dev
TreeHugger Robot [Tue, 9 May 2017 04:54:20 +0000 (04:54 +0000)]
Merge "Handling the touch better when the screen turns off" into oc-dev

7 years agoFix double bolding
Seigo Nonaka [Tue, 2 May 2017 05:17:36 +0000 (22:17 -0700)]
Fix double bolding

resolveStyle increases minikinStyle's weight value based on Skia's style
value. Since we compute Skia's style based on given weight value, we
should not add extra bold weight to minikinStyle.

This CL also fixes misunderstanding of base weight.
The base weight is only used for computing weight relative to the
weighted alias. Thus, base weight should not be updated except for
createWeightAlias method.

To be clear, this CL changes the function names but keeps the same
semantics as before.

Test: adb shell /data/nativetest/hwui_unit_tests/hwui_unit_tests
Test: am instrument -w -e class android.graphics.cts.TypefaceTest\
      android.graphics.cts/android.support.test.runner.AndroidJUnitRunner
Bug: 37880319
Merged-In: Ied73189b11792fb062da46f45afd2db664e6ecb4

Change-Id: I82350a1bfb99ce198b955f127949e21bccccb1cb

7 years agoMerge "Fixing issue with wrong initial multi-window mode." into oc-dev
Winson Chung [Tue, 9 May 2017 03:58:02 +0000 (03:58 +0000)]
Merge "Fixing issue with wrong initial multi-window mode." into oc-dev

7 years agoForcing no animations to be played if swiping fast
Selim Cinek [Tue, 9 May 2017 02:45:40 +0000 (19:45 -0700)]
Forcing no animations to be played if swiping fast

To avoid animations when expanding, we're now also
forcing no icon animations to play at all.

Test: add min prio notifications, expand quickly, observe no animations
Change-Id: I49888c351b1ed0a61ad54a548943afdac1bae6d2
Fixes: 37293033

7 years agoMerge "Fixed issue with associating WindowToken with null binder." into oc-dev
TreeHugger Robot [Tue, 9 May 2017 02:39:55 +0000 (02:39 +0000)]
Merge "Fixed issue with associating WindowToken with null binder." into oc-dev

7 years agoMerge "Fix left/top in ViewNode for suppressed parents" into oc-dev
TreeHugger Robot [Tue, 9 May 2017 02:15:36 +0000 (02:15 +0000)]
Merge "Fix left/top in ViewNode for suppressed parents" into oc-dev

7 years agoMerge "Don't bring up backup agents in secondary app processes" into oc-dev
TreeHugger Robot [Tue, 9 May 2017 01:58:44 +0000 (01:58 +0000)]
Merge "Don't bring up backup agents in secondary app processes" into oc-dev

7 years agoMerge changes I7c2c9411,Ibc72c84d,Ib3968644 into oc-dev
TreeHugger Robot [Tue, 9 May 2017 01:49:52 +0000 (01:49 +0000)]
Merge changes I7c2c9411,Ibc72c84d,Ib3968644 into oc-dev

* changes:
  No need to deal with windowTokens
  Persistable accessibility ID from ContextWrappers
  Check callbacks when operting on UI

7 years agoAAPT2: Ignore namespaced elements in AndroidManifest.xml
Adam Lesinski [Tue, 9 May 2017 01:36:33 +0000 (18:36 -0700)]
AAPT2: Ignore namespaced elements in AndroidManifest.xml

Some third party stores/tools expect manifest elements
under their namespace, and AAPT2 shouldn't fail if these
are present.

Bug: 37943705
Test: make aapt2_tests
Change-Id: I87b7500c7da5e8e79fc2a78b30e8e4334124af3d

7 years agoMerge "Fix bugs in cast QS tile" into oc-dev
TreeHugger Robot [Tue, 9 May 2017 01:28:29 +0000 (01:28 +0000)]
Merge "Fix bugs in cast QS tile" into oc-dev

7 years agoMerge "Update AccountManager visibility JavaDoc." into oc-dev
TreeHugger Robot [Tue, 9 May 2017 01:17:25 +0000 (01:17 +0000)]
Merge "Update AccountManager visibility JavaDoc." into oc-dev

7 years agoMerge "TIF: allow time also in COLUMN_RELEASE_DATE" into oc-dev
Dongwon Kang [Mon, 8 May 2017 23:56:04 +0000 (23:56 +0000)]
Merge "TIF: allow time also in COLUMN_RELEASE_DATE" into oc-dev

7 years agoAdd some logging for buggy calls to AM
Amith Yamasani [Mon, 8 May 2017 23:46:19 +0000 (16:46 -0700)]
Add some logging for buggy calls to AM

Log which uid/pid/transactioncode caused a problem in
ActivityManagerService.

Bug: 38130899
Test: N/A
Change-Id: Ice50c472768780b8864651fb31d972094a4993c1

7 years agoMerge "Revert "Only allow AM to update display orientation based on app containers...
TreeHugger Robot [Mon, 8 May 2017 23:35:10 +0000 (23:35 +0000)]
Merge "Revert "Only allow AM to update display orientation based on app containers"" into oc-dev

7 years agoAlways throw a ConnectionException on error
Todd Kennedy [Mon, 8 May 2017 23:09:42 +0000 (16:09 -0700)]
Always throw a ConnectionException on error

There was a single case where we would return a 'null' for the service
connect; if bindServiceAsUser() returned 'false'. Handle this condition
with an exception. Also make the exception descriptive enough so we
can add the correct resolution status to the resolution logs.

Change-Id: I6cee25adfa74745579577cb9726f8dd9c2950746
Fixes: 38131147
Test: Manual; restart the resolver and see the exceptions

7 years agoMerge "Read the autofill highlight from rootView context" into oc-dev
Philip P. Moltmann [Mon, 8 May 2017 23:06:24 +0000 (23:06 +0000)]
Merge "Read the autofill highlight from rootView context" into oc-dev

7 years agoMerge "Adjust icon width to match the width with framework" into oc-dev
TreeHugger Robot [Mon, 8 May 2017 22:58:55 +0000 (22:58 +0000)]
Merge "Adjust icon width to match the width with framework" into oc-dev

7 years agoHandling the touch better when the screen turns off
Selim Cinek [Wed, 3 May 2017 03:02:30 +0000 (20:02 -0700)]
Handling the touch better when the screen turns off

Previously we were only cancelling touches when
showing keyguard, but this is not enough, since
a user might be touching it while on the keyguard
(e.g with falsing)

Fixes: 37287962
Fixes: 36416066
Fixes: 37696557
Test: manual, turn of screen while interacting
Merged-In: I572ade2380986ef087468dff721b1d1dfa7a48ab
Change-Id: I572ade2380986ef087468dff721b1d1dfa7a48ab

7 years agoMerge changes from topic 'enableZslApi' into oc-dev
TreeHugger Robot [Mon, 8 May 2017 22:28:29 +0000 (22:28 +0000)]
Merge changes from topic 'enableZslApi' into oc-dev

* changes:
  camera: Clarify TEMPLATE_ZERO_SHUTTER_LAG
  camera: Clarify ZSL supports

7 years agoMerge "TV PIP: Fix broken TV PIP" into oc-dev
TreeHugger Robot [Mon, 8 May 2017 22:26:13 +0000 (22:26 +0000)]
Merge "TV PIP: Fix broken TV PIP" into oc-dev

7 years agoAlways force set functions on disconnect
Jerry Zhang [Mon, 8 May 2017 22:13:50 +0000 (15:13 -0700)]
Always force set functions on disconnect

Functionfs no_disconnect mode will close the function on
disconnect so the current handling won't suffice for cases
where the mtp process is killed while MtpService is running.
This can happen when anything in Media/DownloadProvider ANRs
or similar.

Solve this by always setting the config at disconnect time.

Bug: 38010151
Test: Connect with MTP, am force-stop com.android.providers.media,
reconnect

Change-Id: Iaf012f6e2f11151f34d834efe08777dd02c0aec5

7 years agoMerge "Exit transient mode as soon as status bar window is fullscreen" into oc-dev
TreeHugger Robot [Mon, 8 May 2017 21:48:25 +0000 (21:48 +0000)]
Merge "Exit transient mode as soon as status bar window is fullscreen" into oc-dev

7 years agoMerge "PowerManagerService: open power HAL less aggressively" into oc-dev
TreeHugger Robot [Mon, 8 May 2017 21:46:24 +0000 (21:46 +0000)]
Merge "PowerManagerService: open power HAL less aggressively" into oc-dev

7 years agoMerge "TIF: specify that selection is not allowed in CONTENT_URI" into oc-dev
Dongwon Kang [Mon, 8 May 2017 21:36:56 +0000 (21:36 +0000)]
Merge "TIF: specify that selection is not allowed in CONTENT_URI" into oc-dev

7 years agoRevert "Only allow AM to update display orientation based on app containers"
Wale Ogunwale [Mon, 8 May 2017 21:22:42 +0000 (14:22 -0700)]
Revert "Only allow AM to update display orientation based on app containers"

This reverts commit 5f1ae6aaca78a14d25e28042df32df642ab3d29e.

This caused b/38021942.

Change-Id: Idb23e5ede7aaa4a927e148c0daab3f56ac449d66
Fixes: 38021942
Bug: 37550022
Test: manual

7 years agoMerge "docs: Changing "http" to "https" in Javadoc examples" into oc-dev
Andrew Solovay [Mon, 8 May 2017 21:29:18 +0000 (21:29 +0000)]
Merge "docs: Changing "http" to "https" in Javadoc examples" into oc-dev

7 years agoMerge "DO NOT MERGE: Add light sample filtering logic for devices with ambient light...
Android Build Merger (Role) [Mon, 8 May 2017 21:11:57 +0000 (21:11 +0000)]
Merge "DO NOT MERGE: Add light sample filtering logic for devices with ambient light sensors that can be regularly obstructed. am: 5b8250964b am: cc1435b7f3  -s ours" into oc-dev

7 years agoMerge changes from topic 'background_inflation' into oc-dev
Selim Cinek [Mon, 8 May 2017 21:11:31 +0000 (21:11 +0000)]
Merge changes from topic 'background_inflation' into oc-dev

* changes:
  Fixed the contrast for low-priority notifications
  Moving Row inflation to the background too
  Moving the inflation to the background

7 years agoDO NOT MERGE: Add light sample filtering logic for devices with ambient light sensors...
Julius D'souza [Mon, 8 May 2017 21:10:56 +0000 (21:10 +0000)]
DO NOT MERGE: Add light sample filtering logic for devices with ambient light sensors that can be regularly obstructed. am: 5b8250964b
am: cc1435b7f3  -s ours

Change-Id: I3cda2a1e68db2488799248e58d7b2a53782f3860

7 years agoMerge "Also check if view visible to user before engaging fill" into oc-dev
TreeHugger Robot [Mon, 8 May 2017 21:10:47 +0000 (21:10 +0000)]
Merge "Also check if view visible to user before engaging fill" into oc-dev

7 years agoMerge "Fixed placemente of Autofill UI for virtual views." into oc-dev
Felipe Leme [Mon, 8 May 2017 21:07:57 +0000 (21:07 +0000)]
Merge "Fixed placemente of Autofill UI for virtual views." into oc-dev

7 years agoMerge "DO NOT MERGE: Add light sample filtering logic for devices with ambient light...
Android Build Merger (Role) [Mon, 8 May 2017 21:05:59 +0000 (21:05 +0000)]
Merge "DO NOT MERGE: Add light sample filtering logic for devices with ambient light sensors that can be regularly obstructed. am: 5b8250964b am: cc1435b7f3  -s ours" into oc-dev

7 years agoDO NOT MERGE: Add light sample filtering logic for devices with ambient light sensors...
Julius D'souza [Mon, 8 May 2017 21:05:07 +0000 (21:05 +0000)]
DO NOT MERGE: Add light sample filtering logic for devices with ambient light sensors that can be regularly obstructed. am: 5b8250964b
am: cc1435b7f3  -s ours

Change-Id: Ibdd53338d09ad1ad241023761b2ed8272f088b1f

7 years agoMerge "Properly measure dataset presentations" into oc-dev
TreeHugger Robot [Mon, 8 May 2017 21:04:09 +0000 (21:04 +0000)]
Merge "Properly measure dataset presentations" into oc-dev

7 years agoNo need to deal with windowTokens
Philip P. Moltmann [Sat, 6 May 2017 18:28:38 +0000 (11:28 -0700)]
No need to deal with windowTokens

we have a link to the client which is enough to find the views.

Also there was some cases where the windowToken was not updated
properly. This is moot now.

Also: Read a array of views from the client to speed up the
client<->AutofillManager communication.

Fixes: 38070352
Test: CtsAutoFillServiceTestCases
      1 Started autofill, saw fill UI
      2 Home button
      3 Kill activity in background
      4 Recents -> back to activity
      5 Saw fill UI restored
Change-Id: I7c2c9411204fa5d65867efae9b7296399121c3a2

7 years agoDO NOT MERGE: Add light sample filtering logic for devices with ambient light sensors...
Julius D'souza [Mon, 8 May 2017 20:57:56 +0000 (20:57 +0000)]
DO NOT MERGE: Add light sample filtering logic for devices with ambient light sensors that can be regularly obstructed.
am: 5b8250964b

Change-Id: Ifbebbcba8838b83a5c2e7d6d815784733cc95618

7 years agoFix VectorDrawable size rounding issue
ztenghui [Thu, 4 May 2017 22:24:25 +0000 (15:24 -0700)]
Fix VectorDrawable size rounding issue

b/36668701
Test: Added new CTS test for this.
Change-Id: Ifcd74bc89e85841bf9f47eca8eb7d4eb401cf6ff

7 years agoMerge "Fix AuthenticationCallback leak in FingerprintManager" into oc-dev
TreeHugger Robot [Mon, 8 May 2017 20:42:13 +0000 (20:42 +0000)]
Merge "Fix AuthenticationCallback leak in FingerprintManager" into oc-dev

7 years agoMerge "Toggling minimized state with overview moves divider to correct position"...
TreeHugger Robot [Mon, 8 May 2017 20:36:07 +0000 (20:36 +0000)]
Merge "Toggling minimized state with overview moves divider to correct position" into oc-dev

7 years agoPersistable accessibility ID from ContextWrappers
Philip P. Moltmann [Sat, 6 May 2017 17:41:40 +0000 (10:41 -0700)]
Persistable accessibility ID from ContextWrappers

Only IDs beyond LAST_APP_ACCESSIBILITY_ID can be reliably used for
autofilling. Other ids might change occasionally.

All Views attached to activities get usable IDs. Hence if a
ContextWrapper wraps an activity forward the goodness.

Also make sure that we don't accidentially autofill an unsafe view.

Test: Before the messaging handed out unusable Ids because it uses a
      Contextwrapper. Now it hands out good ideas (accoring to dumpsys)
      CtsAutoFillServiceTestCases
Bug: 38070352
Change-Id: Ibc72c84d77197019939abd231e8960988af7a592

7 years agoCheck callbacks when operting on UI
Philip P. Moltmann [Mon, 8 May 2017 20:16:24 +0000 (13:16 -0700)]
Check callbacks when operting on UI

This makes sure that only the session that current owns the UI can make
changes to the UI:

The callback is the ID of the current owner. The only caller that does
not ID itself (and thereby causes the Ui to close in any way) is the
ACTION_CLOSE_SYSTEM_DIALOGS path.

Change-Id: Ib396864411f362b59deb500251c37896ecbc7de7
Fixes: 38042845
Test: CtsAutoFillServicesTestCases

7 years agoMerge "Calls cancel on mDimAnimator to ensure that ref counts are accurate." into...
TreeHugger Robot [Mon, 8 May 2017 20:28:16 +0000 (20:28 +0000)]
Merge "Calls cancel on mDimAnimator to ensure that ref counts are accurate." into oc-dev