Commit Graph

309172 Commits

Author SHA1 Message Date
Alison Cichowlas
3812446093 Merge "Tron - Omit overlong lines and warn when doing so." 2017-01-24 14:39:30 +00:00
Matt Sarett
341480bef5 Fix renderOverdraw() test
I'm not sure why this test was modifies, but this
restores the test to the original version, which passes.

Test: Passes unit test

BUG:34467659

Change-Id: I6699cf13d4b69301d57fa0cec9b24093e8263ba7
2017-01-24 09:05:39 -05:00
Julia Reynolds
924eed1ca6 Add updatable fields to Ranking
- NotificationChannel
- Badging

Test: runtest systemuinotification & cts

Change-Id: I7fd1f2dc06148927e9a4bd5b760d436e2c5e8a98
2017-01-24 08:43:38 -05:00
Jorim Jaggi
8b702edea1 Add starting windows while unlocking
- Modify screen capturing logic a bit such that it can also take a
  screenshot when the display is off.
- Also take snapshot when app visibility is changing without
  proper app transition.
- When unlocking, add strating windows for all visible apps.

Test: Unlock phone.
Test: Have an app that sleeps in onStart, make sure unlocking is
instant.
Bug: 31339431
Change-Id: I953ab6cb30d0d264554fd49a46bdc56e23356d13
2017-01-24 14:13:13 +01:00
Jorim Jaggi
9bafc7150e Starting window tests, yay!
Test: bit FrameworksServicesTests:com.android.server.wm.AppWindowContainerControllerTests
Fixes: 34364463
Fixes: 34361417
Change-Id: Ie1b8debc894e5cad8fe517912a1991a38661dfaa
2017-01-24 14:12:42 +01:00
Tobias Thierer
13fd56293c API: Update Collections to OpenJDK8u60
Bug: 29935305
Bug: 31896176
Test: make update-api
Change-Id: I94f0f8c6915fdc1c8151b816d0a988a07629e984
2017-01-24 12:52:11 +00:00
Joachim Sauer
e4fe6c283f Merge "Expose more ICU4J APIs." am: e5f0221f06 am: 5272231259
am: 94eb984734

Change-Id: I429dcc34cc09d8ceadb6bb6af42efce0572ed00f
2017-01-24 12:46:56 +00:00
Joachim Sauer
94eb984734 Merge "Expose more ICU4J APIs." am: e5f0221f06
am: 5272231259

Change-Id: I2714668baf99fb18d726212917a32e8e98b734a2
2017-01-24 12:41:57 +00:00
Joachim Sauer
5272231259 Merge "Expose more ICU4J APIs."
am: e5f0221f06

Change-Id: I77e300979bdfe781ad9ab7aff5241b92491e5660
2017-01-24 12:35:30 +00:00
Joachim Sauer
e5f0221f06 Merge "Expose more ICU4J APIs." 2017-01-24 12:30:12 +00:00
TreeHugger Robot
2cff9319e8 Merge "Merge commit '12562abcd47de4aee3b0469cb04bf771c2072113' into manual_merge_12562abcd47d" 2017-01-24 11:35:18 +00:00
Andre Lago
7bdc6d80ef [SettingsProvider] Auto disable ringtone sync
Disable the SYNC_PARENT_SOUNDS setting if a work profile ringtone is set

Test: cts-tradefed --test com.android.cts.devicepolicy.ManagedProfileTest
Bug: 30658854
Change-Id: I172f5396b47f03ac8afa365db0ec90f3a2dd0e29
2017-01-24 11:12:02 +00:00
Manu Cornet
8ea36af22b 2D Recents: Less drastic scale reduction for dismiss animation
Bug: 34651627
Test: Checked dismiss animations on local sw600dp device
Change-Id: I92569d8c908d62aceb7433eb64e8477f6cf3ec92
2017-01-24 18:50:13 +09:00
Manu Cornet
57b6149f8b 2D Recents: Fix issues with thumbnail scaling transitions
Draw the task view header again, make sure it is visible through
the whole transition, and that it scales as appropriate.

Bug: 33752154
Test: Checked/screencasted app -> recents -> app transitions.
Change-Id: I9b87183cba51d5469ea9d45181bccfafeb85cff2
2017-01-24 18:19:08 +09:00
Yohei Yukawa
410cc501b2 Fix ImeSubtypeListItem#compareTo()
It turns out that ImeSubtypeListItem#compareTo() does not satisfy the
contract of Comparable#compareTo(), which can trigger
IllegalArgumentException from Collections.sort() depending on the
runtime condition.

This CL makes it clear that two instances of ImeSubtypeListItem will be
compared with with those fileds in the following order.

  1. ImeSubtypeListItem#mImeName
  2. ImeSubtypeListItem#mSubtypeName
  3. ImeSubtypeListItem#mIsSystemLocale
  4. ImeSubtypeListItem#mIsSystemLanguage

Bug: 34255739
Test: adb shell am instrument -w -e class com.android.internal.inputmethod.InputMethodSubtypeSwitchingControllerTest com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner
Change-Id: I47f902cc8f5873926d238c30e462d08d7dbebcf7
2017-01-24 00:29:07 -08:00
Erik Kline
0b4b94b085 Merge "All upstream mobile connection management is now in UpstreamNetworkMonitor" am: c1987487a2 am: 555812a3e2
am: 65e01ec4ed

Change-Id: Idfe2c34bad70e0044d7281ba9b9aaaf26f7e2fb5
2017-01-24 08:11:51 +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
Erik Kline
65e01ec4ed Merge "All upstream mobile connection management is now in UpstreamNetworkMonitor" am: c1987487a2
am: 555812a3e2

Change-Id: Icac0e50bae970e7aaa9eecc3d7be3c19b2111a78
2017-01-24 08:05:25 +00:00
Erik Kline
555812a3e2 Merge "All upstream mobile connection management is now in UpstreamNetworkMonitor"
am: c1987487a2

Change-Id: I2b7e0f63c8198c8fde52396f989c16d795e612a8
2017-01-24 08:00:48 +00:00
Treehugger Robot
c1987487a2 Merge "All upstream mobile connection management is now in UpstreamNetworkMonitor" 2017-01-24 07:54:21 +00:00
Hugo Benichi
141923e5b6 DO NOT MERGE frameworks-test: adding missing @SmallTest
This activates all frameworks-test tests in runs of the continuous
platform tests.

Test: $ runtest frameworks-net passes (expect Tether
Bug: 32561414

(cherry picked from commit fa8a6f6220)

Change-Id: I84f9aecfbf9ebe07c6fcfec26acb2c2cfaae2d60
2017-01-24 15:42:45 +09:00
Hugo Benichi
ad4db4ed58 ConnectivityServiceTest: remove flaky waitForIdle test.
This patch removes testNotWaitingForIdleCausesRaceConditions() from
ConnectivityServiceTest because it is in nature flaky and prevents using
ConnectivityServiceTest as a patch presubmit check. Estimated failure
rate is 1/15 on Nexus 6p.

This patch also simplifies how ConnectivityServiceTest waits for
handlers to become idle by removing IdleableHandlerThread and turning it
into a signle static method.

Test: $ runtest frameworks-net
Bug: 31479480
Change-Id: I2d78709cbb61d5d01cd59cff326469417f73f1ab
2017-01-24 15:22:48 +09:00
Hugo Benichi
dfb559a363 ConnectivityServiceTest: fix flaky tests
This patch adjusts timeouts in ConnectivityServiceTest to fix tests
known to fail spruriously.

Test: ran the following tests 500 times without observing any failure
 - testBackgroundNetworks()
 - testMultipleLingering()
 - testPacketKeepalives()
 - testSatisfiedNetworkRequestDoesNotTriggerOnUnavailable()
 - testSatisfiedThenLostNetworkRequestDoesNotTriggerOnUnavailable()
Bug: 32561414
Change-Id: I184fe7189aac768a65b927cc42eefaf8b1b3f930
2017-01-24 15:21:18 +09:00
Seigo Nonaka
8b48e62445 Follow minikin::FontFamily constructor signature change.
This is 2nd attempt of Id10ca97f6f6f5bbe4999c1ad2736423a204d6e87.
The root caus of crash is due touching null pointer in nUnrefFamily.
After above change, native object may not be created on error case.
In that case, nUnrefFamily can not be called. In addition to this issue
there is also memory leak on error case. This fixes it by introducing
abortCreation method.

Also this contains fix of layout lib breakage done by jgaillard@.
Originally submitted by Ic8872a43993bcb0a157c5e3f0ce423af9b47f606

Here is original commit message of reverted change.

minikin::FontFamily no longer has addFont function, instead it accept
vector of Fonts in its constructor. To follow this signature change,
holding minikin::Font instance in native and build minikin::FontFamily
instance in FontFamily.freeze() method.

Bug: 34042446
Bug: 28119474
Bug: 34378805
Test: hwui test has passed
Test: m layoutlib layoutlib-tests
Change-Id: Ic34ebaa8191273d4c9f49c43124f15a1da5f7b78
2017-01-24 15:10:29 +09:00
Yuichi Araki
4d35cca96c AAPT: Add --no-version-transitions flag
Add a new flag to disable versioning of Transition related XMLs.
Transition support library will use this to handle these XMLs on older
API levels.

Test: make libaapt_tests AaptTestAppOne
Bug: 34427868
Change-Id: I66e81cca049e71ef6704177b2ca21c9cdeaff78f
2017-01-24 14:59:51 +09:00
TreeHugger Robot
1a29288420 Merge "Add an accidentally removed call to update libs" 2017-01-24 05:58:40 +00:00
TreeHugger Robot
bcde3dce83 Merge "More APIs for cache status and behavior." 2017-01-24 05:32:58 +00:00
Chulwoo Lee
e0712b2661 Add intent to browse recording schedules
Test: Cts passes. Will add tests to Cts-Verifier.
Bug: 30843557
Change-Id: If84b3ae862f204a25343b0ad3b1c262826e6130e
2017-01-23 21:14:05 -08:00
Erik Kline
5645af4e2a All upstream mobile connection management is now in UpstreamNetworkMonitor
Test: as follows
    - built (bullhead)
    - flashed
    - booted
    - runtest frameworks-net passes
Bug: 32163131

Change-Id: Ifbd430d5bf2d2191469c9810ad8f073506abde46
2017-01-24 14:11:51 +09:00
TreeHugger Robot
78b09a00a8 Merge "Fix crashloop in CarStatusBar." 2017-01-24 04:04:39 +00:00
Jeff Sharkey
9bed070b09 More APIs for cache status and behavior.
Add APIs for apps to query their cache usage compared to their
currently allocated quota.  Since an app's private storage may live
on a different storage volume than the primary shared/external
storage, offer APIs to retrieve those values separately.

Add APIs to control two new cache purging behaviors:

-- setCacheBehaviorAtomic() which causes a marked directory and its
contents to be treated as an atomic unit.
-- setCacheBehaviorTombstone() which causes the OS to truncate
files instead of deleting them.

Test: builds, boots
Bug: 33811826, 33965858, 27948817
Change-Id: I45de165623775c359f78b4ee544c2b5831b8d483
2017-01-23 21:02:12 -07:00
Jeff Sharkey
9727f22fc0 Merge "Introduce RecoverableSecurityException." 2017-01-24 03:19:18 +00:00
Winson Chung
734c9c0556 Fixing error calculating the top pinned activity.
- When the menu was open, we were not calculating the correct
  top-activity to determine whether to relaunch fullscreen or to show
  media controller actions for.  Also fixes a bad condition check
  where we were setting the expand to fullscreen flag incorrectly.

Bug: 33754261
Test: Open a PIP activity, try to launch it again from launcher while the menu is visible
Change-Id: I3fd3dfe83a017c76cca9709f29c08621b16fb088
2017-01-23 19:08:37 -08:00
Mark Rathjen
7599f1366e Resolve Android security comments for Android ID migration.
- Use 32 byte key instead of 16 byte.
- Use HMAC-SHA256 instead of SHA256 for ssaid generation.
- Update HMAC with all package signatures.
- Use delimiter in between digest arguments.

This change will cause the ssaid of non-legacy installed apps (apps installed
post Android ID migration OTA) to change after an uninstall and reinstall sequence.

Bug: 34395671
Test: Unit tests, CTS tests, Manual tests
Change-Id: I19dec57947368ee5000c2c630b1e4030d46a4ab3
2017-01-23 19:06:41 -08:00
Chen Xu
5ef316e34d Merge "support suw and post-suw cases for default app" am: 9fc8d99c76 am: ea55399ecc
am: f2a5e432b0

Change-Id: Ica33178ed47d877d6ab723a42dce032456e15201
2017-01-24 02:48:00 +00:00
Jason Parks
7a190b08fe Merge "Allow the profile owner to enforce auto time." 2017-01-24 02:46:29 +00:00
Chen Xu
f2a5e432b0 Merge "support suw and post-suw cases for default app" am: 9fc8d99c76
am: ea55399ecc

Change-Id: I1b3a5c7aed8a2930ed98c81b1c2c391769d87fe5
2017-01-24 02:43:28 +00:00
Chen Xu
ea55399ecc Merge "support suw and post-suw cases for default app"
am: 9fc8d99c76

Change-Id: I7a451bf2cfdfd6db65208a46db9d664039297ace
2017-01-24 02:39:55 +00:00
Chen Xu
9fc8d99c76 Merge "support suw and post-suw cases for default app" 2017-01-24 02:30:58 +00:00
Android Build Merger (Role)
9ac9632ed3 Merge "Change HFP Client API to support multi device am: c8399321e9" into nyc-mr2-dev-plus-aosp 2017-01-24 02:20:10 +00:00
Sanket Agarwal
3978435d5a Change HFP Client API to support multi device
am: c8399321e9

Change-Id: I96dd85f1bee2f39f683d6ee11b5ab4e8b9a7f217
2017-01-24 02:18:54 +00:00
Ta-wei Yen
5c2aa05bfb Merge "Fix typo in the IS_OMPT_VOICEMAIL field." into nyc-mr2-dev
am: 70f920fa0c

Change-Id: If2936ae00b37750362a56975ba7c42a6c30984aa
2017-01-24 02:18:30 +00:00
Ta-wei Yen
e696c3d911 Fix typo in the IS_OMPT_VOICEMAIL field.
am: 57365441d4

Change-Id: I060ed862bd929875848753d77e6fc3ff8a48e32c
2017-01-24 02:18:26 +00:00
Chris Tate
0d4d74d619 Merge "Document dependency between Intent symbols and dumpstate" 2017-01-24 02:17:15 +00:00
TreeHugger Robot
8af7d0e850 Merge "Expose colorimetry capabilities on Display" 2017-01-24 02:15:58 +00:00
Christopher Tate
bdc394118c Document dependency between Intent symbols and dumpstate
Bug 34594835

Test: N/A
Change-Id: I4494c224bc6341c7a41b79361ba599befc408341
2017-01-23 18:15:27 -08:00
Rakesh Iyer
545e47d758 Fix crashloop in CarStatusBar.
System ui seems to be undergoing a refactor to bring in
dependency injection, in the process, mBatteryController
in CarStatusBar was not being set, causing a NPE.

Since it looks like the work is still ongoing, this is
just a spot fix for the crash, once the dependency injection
migration is complete, we can reexamine the CarStatusBar
implementation.

Bug: 34633087
Test: Verified that system booted correctly.
Change-Id: Idd3e0286fd87196ae572349904d5bef744d54353
2017-01-23 18:10:21 -08:00
pkanwar
a28dcbcd87 Create Public API which exposes if the device is in a state where simultaneous
voice and data are possible.

BUG: 32912296
Test: Not required.
Change-Id: If603aa37c774157f0a3af12ca4ac6bafad94340d
2017-01-23 17:54:06 -08:00
Yohei Yukawa
8977e0693f Merge "Delay tasks from IMMS constructor to later phase" 2017-01-24 01:51:07 +00:00
TreeHugger Robot
5c5e0ac419 Merge "Eliminating sections." 2017-01-24 01:41:57 +00:00