Commit Graph

2860 Commits

Author SHA1 Message Date
TreeHugger Robot
080838c0a4 Merge "Test if allocation supported; @removed clean up." 2017-07-16 05:18:36 +00:00
Jeff Sharkey
4233f032fd Test if allocation supported; @removed clean up.
SM.allocateBytes() doesn't offer a clear way to detect if a failed
request could ever succeed.  (For example, we can never work with
pipes, or files on an unsupported storage device.)  So give
developers a first-class API to test if allocation is supported.

If the underlying filesystem doesn't support fallocate(), fall back
to ftruncate() instead of failing completely.

Clean up @removed APIs that were refactoring during API 26 review
process.

Remove support for storing downloads on the /cache partition, which
doesn't exist on many devices.

Bug: 63057877
Test: bit DownloadProviderTests:*
Test: bit DocumentsUITests:com.android.documentsui.services.CopyJobTest
Test: bit DocumentsUITests:com.android.documentsui.services.MoveJobTest
Change-Id: I85d42a1a7240034b4f2a6f359011ac182bdce36e
2017-07-15 21:08:56 -06:00
Abodunrinwa Toki
76b51dc450 Disable smart sharing for password fields.
Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest
bit CtsWidgetTestCases:android.widget.cts.TextViewTest
Bug: 62340817
Change-Id: Ifbf2c39d9f304251adc8c4acdf1b4fd6914011d8
2017-07-14 18:31:04 +01:00
Seigo Nonaka
6fef520af5 Merge "Implement family fallback." 2017-07-13 20:02:29 +00:00
Seigo Nonaka
0d253e46aa Implement family fallback.
Introduce new attribute "fallbackFor" to font element.
By specifying name of the family to this attribute, that font is used
when the developer specifies the font family.
For example, if fonts.xml has the following family entry,
  <family lang="ja">
    <font fallbackFor="serif">NotoSerifJP-Regular.ttf</font>
    <font>NotoSansJP-Regular.ttf</font>
  </family>
the Japanese text is rendered by NotoSansJP-Regular.ttf by default.
Then, if developer specifies fontFamily="serif" in TextView, the Japanese
text is rendered by NotoSerifJP-Regular.ttf.

Bug: 37328609
Bug: 31491668
Test: bit FrameworksCoreTests:android.graphics.TypefaceSystemFallbackTest

Change-Id: I2744db7384c8056795e841c88b387545434131f4
2017-07-13 10:47:48 -07:00
Adrian Roos
e3fd65f9e5 Merge "AOD: Implement long press gesture to launch assist" into oc-dr1-dev am: 3fbd93056e
am: 6d626acdbf

Change-Id: Iabff9ca955aef414ad7e62e0c68e2774ff01c9b7
2017-07-13 12:17:44 +00:00
Adrian Roos
6d626acdbf Merge "AOD: Implement long press gesture to launch assist" into oc-dr1-dev
am: 3fbd93056e

Change-Id: I8bc8e01a97711fdd30ff59aeb72d38e8acaa7c75
2017-07-13 12:10:21 +00:00
Adrian Roos
3fbd93056e Merge "AOD: Implement long press gesture to launch assist" into oc-dr1-dev 2017-07-13 12:01:52 +00:00
Selim Cinek
a554ba6e2e Merge "Using transformation method in the ImageFloatingTextView" into oc-dr1-dev am: 997e4ac2bb
am: 727b06b498

Change-Id: I5bb0e7dd6712316f0e349795fb9d607a7bc92b9c
2017-07-12 19:36:02 +00:00
Selim Cinek
727b06b498 Merge "Using transformation method in the ImageFloatingTextView" into oc-dr1-dev
am: 997e4ac2bb

Change-Id: Ifffc5f1dfe2a5d606e5eae128cbe0a331d4aaf7c
2017-07-12 19:31:33 +00:00
TreeHugger Robot
997e4ac2bb Merge "Using transformation method in the ImageFloatingTextView" into oc-dr1-dev 2017-07-12 19:23:16 +00:00
Selim Cinek
47ec33918b Using transformation method in the ImageFloatingTextView
Otherwise things like singleline and password don't work.

Test: runtest -x core/tests/coretests/src/com/android/internal/widget/ImageFloatingTextViewTest.java
Change-Id: I9d7d13c038be38319e6516715137789f612a43f7
Fixes: 36713596
2017-07-12 19:24:24 +02:00
Adrian Roos
d0963a07d1 AOD: Implement long press gesture to launch assist
Bug: 37684244
Test: adb shell settings put secure doze_pulse_on_long_press 1; turn screen off, long press, verify assistant is launched
Change-Id: I87335d3c091bbb17022d79e599f46fb826039b7d
2017-07-12 15:25:50 +02:00
qingxi
a6536cc85e Merge "Move eSIM factory reset implementation to RecoverySystem" into oc-dr1-dev
am: a249de50d1

Change-Id: I784617e0c34275adc5d177e6728b4b2c86dc1f5d
2017-07-12 02:31:24 +00:00
TreeHugger Robot
a249de50d1 Merge "Move eSIM factory reset implementation to RecoverySystem" into oc-dr1-dev 2017-07-12 02:17:42 +00:00
qingxi
e060ffd2ca Move eSIM factory reset implementation to RecoverySystem
This CL reverts the implementation of eSIM factory reset in
MasterClearReceiver and uses RecoverySystem#rebootWipeUserData to erase
eSIM data. Besides this, when the eSIM data isn't erased, we should call
EuiccManager#retainSubscriptionsForFactoryReset to let the fastboot know
that.

Bug: 62957212
Test: TreeHugger
Merged-In: I08ab9d53ec4fc73a65e8e7d0c39ac95b2d44d012
Change-Id: I08ab9d53ec4fc73a65e8e7d0c39ac95b2d44d012
2017-07-11 13:09:40 -07:00
qingxi
2f23151e97 Move eSIM factory reset implementation to RecoverySystem
This CL reverts the implementation of eSIM factory reset in
MasterClearReceiver and uses RecoverySystem#rebootWipeUserData to erase
eSIM data. Besides this, when the eSIM data isn't erased, we should call
EuiccManager#retainSubscriptionsForFactoryReset to let the fastboot know
that.

Bug: 62957212
Test: TreeHugger
Change-Id: I08ab9d53ec4fc73a65e8e7d0c39ac95b2d44d012
2017-07-11 10:35:29 -07:00
Jason Monk
0862e80eb3 Merge "Add screensaver settings to backup list" into oc-dr1-dev am: 2c3c58d917
am: 4c30304a8c

Change-Id: Icac69838617de8c58a0d9090dc4d78b14ad1a976
2017-07-10 20:37:47 +00:00
Jason Monk
4c30304a8c Merge "Add screensaver settings to backup list" into oc-dr1-dev
am: 2c3c58d917

Change-Id: I981327b35f341600f908d479d4a4d36356b18b1d
2017-07-10 20:29:25 +00:00
TreeHugger Robot
2c3c58d917 Merge "Add screensaver settings to backup list" into oc-dr1-dev 2017-07-10 20:17:56 +00:00
Jason Monk
df31effd5f Add screensaver settings to backup list
Test: manual
Change-Id: Icf47312e20b4ec44d02dc31ce575e89083a8be7d
Fixes: 35700553
2017-07-10 14:19:08 -04:00
Julia Reynolds
ed7b5c64e0 Merge "Limit the number of notis an app can enqueue" into oc-dr1-dev am: c65071d625
am: 8d4cd22ffb

Change-Id: I60ddda50a6d5a6a3028361435a340d6191f6c729
2017-07-10 17:14:57 +00:00
Julia Reynolds
8d4cd22ffb Merge "Limit the number of notis an app can enqueue" into oc-dr1-dev
am: c65071d625

Change-Id: I85e7117a88be1a629a953f1c721faba508d6d424
2017-07-10 17:06:23 +00:00
Julia Reynolds
6ad0aecf99 Limit the number of notis an app can enqueue
In addition to the number they can post. Also decrease
the number of posts per second to 5, but allow finished
progress notifications through.

Fixes: 63173849
Fixes: 63167456
Test: runtests systemui-notification & simultaneously
downloading 5 files.
Change-Id: I0c8ea35b3d9d38b000ea5fe383515e1d5a26bac7
2017-07-10 09:42:24 -04:00
Julia Reynolds
4db5955557 Allow setup apps to colorize notifications.
Fixes: 63147379
Test: runtest systemui-notification, core tests
Change-Id: I2077a9fd563826d978d0dc01be89dd0bbc09eebf
2017-07-10 09:17:39 -04:00
Julia Reynolds
6b734d0478 Merge "Allow setup apps to colorize notifications." into oc-dr1-dev
am: e4101089bb

Change-Id: I14f8f499ac62ed47d40ca9b2a7bff0c79120dcd7
2017-07-07 19:31:57 +00:00
Roozbeh Pournader
a074d8c50c Merge "Trying to fix flaky tests related to testCharSequence*" 2017-07-07 19:30:11 +00:00
Julia Reynolds
d71c5a9426 Allow setup apps to colorize notifications.
Fixes: 63147379
Test: runtest systemui-notification, core tests
Change-Id: I2077a9fd563826d978d0dc01be89dd0bbc09eebf
2017-07-07 17:22:43 +00:00
Adam Vartanian
81bf49a5bc Merge "Streamline testInstall_compatibleContext()" am: 476d58c6bd am: 2886890793 am: 5cba3b343f
am: 10bb021b2e

Change-Id: I6f6823bba6ca3071b942010c8181834195b632e6
2017-07-07 08:00:14 +00:00
Adam Vartanian
10bb021b2e Merge "Streamline testInstall_compatibleContext()" am: 476d58c6bd am: 2886890793
am: 5cba3b343f

Change-Id: I922f53fa48cb0acaa8c663202d7b1e5ffc2683f9
2017-07-07 07:50:56 +00:00
Adam Vartanian
2886890793 Merge "Streamline testInstall_compatibleContext()"
am: 476d58c6bd

Change-Id: I99631c3166ced487e990f28f0e7c10c180d6473a
2017-07-07 07:36:34 +00:00
Roozbeh Pournader
c38d390c5c Trying to fix flaky tests related to testCharSequence*
We now recycle the Parcels after use. Hoping this fixes/reduces flakiness.

Bug: 62715590
Test: adb shell am instrument -w -e package android.text com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner
Change-Id: Ifbce8d8a7d823d36aa7bfbeae49059ae15abd334
2017-07-06 17:16:33 -07:00
Daniel Nishi
932f36050c Merge "Add a Setting for whether or not we have been disabled by policy." into oc-dr1-dev
am: a48cf1e619

Change-Id: I4a1531a293f5c3493db22f73bc5511a97e756f52
2017-07-06 22:03:36 +00:00
Daniel Nishi
fa1143658b Add a Setting for whether or not we have been disabled by policy.
Bug: 62106274, 35698183
Test: StorageManager robotests
Merged-In: I1788d6143362130df88950c6843fa78b67182d5e
(cherry picked from commit da7332c070)
2017-07-06 20:00:25 +00:00
Daniel Nishi
f02beb06da Merge "Add a Setting for whether or not we have been disabled by policy." 2017-07-06 18:29:53 +00:00
Adam Vartanian
7b2c66b678 Streamline testInstall_compatibleContext()
Conscrypt is making ClientSessionContext#getSession() private since
users shouldn't be calling it, which causes this test to fail to build.
While this test uses it, in practice the only non-Conscrypt code it's
testing is SSLSessionCache#install(), the rest of it just tests that
Conscrypt works properly.  We reduce the test to just a test of the
SSLSessionCache code, since Conscrypt's tests should suffice for testing
Conscrypt's use of the cache.

Test: adb shell am instrument -w -e class android.net.SSLSessionCacheTest com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner
Change-Id: Iea61c47eb2c002629dd2f50c81d5bc4f7221c654
2017-07-06 15:43:52 +01:00
TreeHugger Robot
969d492531 Merge changes from topic 'hackbod_completion'
* changes:
  Fix issue #63095854: adb shell cmd jobscheduler timeout reports...
  Add reporting of how jobs complete.
2017-07-06 02:02:21 +00:00
jackqdyulei
ec16169922 Merge "Update the smearing methods in framework." into oc-dr1-dev am: 386d8133c4
am: 8f386f6e24

Change-Id: Iaee832c78d18de4b592af672bb9da28b34b1fd5e
2017-07-06 01:11:45 +00:00
jackqdyulei
8f386f6e24 Merge "Update the smearing methods in framework." into oc-dr1-dev
am: 386d8133c4

Change-Id: I383384c1cd30e5ab4f88a5e95a9b0068e573fe2d
2017-07-06 01:00:59 +00:00
TreeHugger Robot
b3f68233d9 Merge "Stop tracking user specific uid cpu time on user stop" 2017-07-06 00:42:09 +00:00
Daniel Nishi
da7332c070 Add a Setting for whether or not we have been disabled by policy.
Bug: 62106274, 35698183
Test: StorageManager robotests

Change-Id: I1788d6143362130df88950c6843fa78b67182d5e
2017-07-05 16:52:26 -07:00
Suprabh Shukla
e6e723d588 Stop tracking user specific uid cpu time on user stop
Telling kernel module uid_cputime to stop accounting time for uids
belonging to a stopped user. Upon user remove, removing uid states for
those uids.

Test: adb shell am instrument -e class \
com.android.internal.os.BatteryStatsUserLifecycleTests -w \
com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner

adb shell am instrument -e class android.util.SparseLongArrayTest -w \
com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner

Bug: 62390461
Change-Id: Ibe07778465e3d2c13679e4d88d32f7b92fa959d9
2017-07-05 15:39:42 -07:00
Fyodor Kupolov
3fae6d5a4c Added -g option
Test: sh frameworks/base/core/tests/coretests/src/android/database/run_newdb_perf_test.sh
Change-Id: I29f5371a1f96f457bb32df431388f1aedb62f81a
2017-07-05 15:23:16 -07:00
jackqdyulei
ce0fd25e2c Update the smearing methods in framework.
1. Fix the bug about foregroundActivityTime. It should take microseconds
as parameter and return microseconds
2. Use the min time of foregroundActivity time and Top time as "screen
time"
3. Hide bluetooth, wifi, idle but don't smear it

Bug: 63176214
Test: runtest -x BatteryStatsHelperTest
Change-Id: I5798577da17d60fb3e3b18351deb31ae77939154
2017-07-05 13:14:08 -07:00
Fyodor Kupolov
35e82f1401 Script to run db perf tests
Runs NewDatabasePerformanceTestSuite 5 times and outputs the summary

Test: sh frameworks/base/core/tests/coretests/src/android/database/run_newdb_perf_test.sh
Change-Id: Ibec41b2a546e9fd5a7f626e3d90c9f3060a98f1e
2017-07-05 11:13:00 -07:00
Fyodor Kupolov
db0da015de Merge "Support for lookaside configuration params" 2017-06-30 16:47:35 +00:00
Dianne Hackborn
94326cb56a Add reporting of how jobs complete.
In both battery stats and job scheduler statistics, keep track of
the reason jobs are ending.  This can help to identify apps that
are having bad behavior with jobs (in particular, regularly timing
out their job instead of finishing it when done).

Test: manual
Change-Id: Icc12d5e0dc0df1906716e7d995c56d50a9fa148a
2017-06-28 17:44:00 -07:00
Fyodor Kupolov
d3b0c7e7e2 Support for lookaside configuration params
Modified SQLiteDatabase to allow passing lookaside configuration to its
static initializer. Encapsulated config in OpenParams and added an
overloaded version of openDatabase with the new parameter.

Configuration is changed in SQLiteConnection::nativeOpen, immediately
after opening the database since lookaside memory configuration can only
be changed when no connection is using it.

Added SQLiteOpenHelper.setLookasideConfig method that is called from
the constructor of the subclass.

Test: bit FrameworksCoreTests:android.database.DatabaseGeneralTest
Test: bit FrameworksCoreTests:android.database.SQLiteOpenHelperTest
Bug: 38499845
Change-Id: Ifb761229b43c89c090939030fc25b8c480b9b9e2
2017-06-28 14:07:53 -07:00
Bryan Mawhinney
99d8980af7 Fix SettingsBackupTest and reenable @Presubmit
Test: runtest --path frameworks/base/core/tests/coretests/src/android/provider/SettingsBackupTest.java
Change-Id: I9df513529a2ce812f5e3181657cc8b346b1ec71e
2017-06-28 16:23:32 +01:00
Christine Franks
a1d9d3bfbb Merge "Blacklist Night display settings for testing" into oc-dr1-dev am: 4608c69f23
am: 02808bc7c9

Change-Id: Ibaa6aa302992f1336ebf25e31d9102874eda72fa
2017-06-27 22:09:27 +00:00