Commit Graph

3141 Commits

Author SHA1 Message Date
Roozbeh Pournader
a5511eb648 Merge "Replace JNI portion of AndroidBidi with calls to ICU4J" 2017-10-19 22:55:57 +00:00
Roozbeh Pournader
a15fd848cb Replace JNI portion of AndroidBidi with calls to ICU4J
We no longer need the native calls to ICU since we have ICU4J.

Fixes: 67786879
Test: bit FrameworksCoreTests:android.text.
Change-Id: Ib2ec93017000b4f0343756814ca388bd31457849
2017-10-19 11:20:46 -07:00
Mihai Popa
9069f17981 Merge "Enable the public TTC index attribute for fonts" 2017-10-19 10:12:09 +00:00
Fyodor Kupolov
6bb32a9a8b Allow creating CursorWindow of custom size
The default size is controlled by config_cursorWindowSize.

Test: SQLiteCursorTest
Bug: 62550963
Change-Id: Ic5c6550b2dd53401afc039ec257524a98bf2950e
2017-10-17 15:22:11 -07:00
Mihai Popa
e34ad1871b Enable the public TTC index attribute for fonts
This change adds support for specifying the TTC index on font entries,
relevant in the context of .ttc font files used to deliver multiple
fonts in the same file.
Bug: 37853920
Test: adb shell am instrument -w -e class android.content.res.FontResourcesParserTest com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner

Change-Id: I3f74e87dec78e1f5a68ccead80b0f637af1aa7a3
2017-10-13 12:44:21 +01:00
TreeHugger Robot
f055302a73 Merge "Flags to enable/disable smart selection in EditText" 2017-10-13 00:33:44 +00:00
Abodunrinwa Toki
0e6b43ed58 Flags to enable/disable smart selection in EditText
1. smart_selection_enabled_for_edit_text
   Disables smart selection for editable text.
2. smart_selection_dark_launch
   Dark launch TextClassifierImpl.suggestSelection(...)
   In this mode we run the method, but never change the user's
   selection to measure the quality of the results based on what
   the user actually wanted.

Bug: 65959640
Test: Manually tested flags turn on/off feature with 'adb shell
settings put global' and GServices override.
Test: bit FrameworksCoreTests:android.provider.SettingsBackupTest
Change-Id: Iacc561c8ee004b0123de66ad1ee06b1f56b4e4b4
2017-10-12 23:50:53 +01:00
Winson Chung
fb44d212f2 3/Removing unnecessary filtering logic for recent tasks in SystemUI
- Remove all code related to last-stack-active-time, quiet profile task
  handling, and visible task range filtering
- Remove the notion of firstActiveTime since that was only used to filter
  tasks in SystemUI, also convert lastActiveTime to elapsed real time since
  it is only used in the system to order active tasks, and in SystemUI as
  a part of the TaskKey for caching purposes (it is no longer used to
  determine the last visible task based on time)

Bug: 34270611
Test: runtest --path frameworks/base/services/tests/servicestests/src/com/android/server/am/RecentTasksTest.java
Change-Id: I44d494a521f60f302e0976fcf33490fe837f7cdb
2017-10-12 11:26:15 -07:00
Hugo Benichi
14f16b977c Merge "Import a few android.net unit tests into frameworks-net" am: 24660e5bb7 am: 1ce75f643c am: 3d4d464f0a
am: 86eb8a58af

Change-Id: I4922d8505e641652cea028c6d60a0f9996b130e6
2017-10-12 12:45:11 +00:00
Hugo Benichi
86eb8a58af Merge "Import a few android.net unit tests into frameworks-net" am: 24660e5bb7 am: 1ce75f643c
am: 3d4d464f0a

Change-Id: Icf9ccd265754f1b85720bb778633dc5ef515646e
2017-10-12 12:34:55 +00:00
Hugo Benichi
1ce75f643c Merge "Import a few android.net unit tests into frameworks-net"
am: 24660e5bb7

Change-Id: I41655938d6d1df19130847210437f047c8b65cdf
2017-10-12 12:13:20 +00:00
Hugo Benichi
da7edaff32 Import a few android.net unit tests into frameworks-net
Bug: 62918393
Test: runtest frameworks-net
Change-Id: I3c7c60bcfeffec5c5ec287810312349237a2868a
2017-10-12 15:55:22 +09:00
Mike Ma
ee1e5ab213 Merge "Attribute UNKNOWN display state to OFF" 2017-10-11 17:36:03 +00:00
TreeHugger Robot
e81dded976 Merge "Unify print test tools into a library." 2017-10-10 23:59:54 +00:00
Mike Ma
a7724753d7 Attribute UNKNOWN display state to OFF
When device restarts, screen state is set to unknown, all
timebases stop. Then if setBatteryStateLocked() is called
with unplugged state, onBatteryTimeBase starts, but
onBatteryScreenOffTimeBase does not, so does ScreenOnTimer,
since screen state == unknown. So this duration is lost.
This fix attributes unknown state to ScreenOff.

Fixes: 67608353
Test: added a unit test in BatteryStatsNoteTest
Change-Id: Iee68898522564963e7d0b0110f1aee9248aacfe8
2017-10-10 22:39:53 +00:00
Philip P. Moltmann
13fba9dbe7 Unify print test tools into a library.
Test: - adb shell am instrument -w com.android.printspooler.outofprocess.tests/android.support.test.runner.AndroidJUnitRunner
      - adb shell am instrument -w -e class android.content.pm.PackageManagerTests com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner
Change-Id: I58e2dcb492a7f528a5554f7ace83940ad0d82297
2017-10-10 10:54:10 -07:00
TreeHugger Robot
1334afec1f Merge changes from topic "wear_small_battery-master"
* changes:
  Revert device idle timing changes for small battery devices.
  Removing watch specific DeviceIdleController logic in favor of small battery device flag
2017-10-09 20:37:29 +00:00
Mike Ma
8cb8bdf657 Merge "Add AOD metrics in batterystats" into oc-mr1-dev
am: 6204a60c53

Change-Id: Ife567f987a1585cb1108725db6ad63516a8dc67a
2017-10-06 07:17:25 +00:00
Mike Ma
6204a60c53 Merge "Add AOD metrics in batterystats" into oc-mr1-dev 2017-10-06 07:01:36 +00:00
Mike Ma
1ce1d3a42c Add AOD metrics in batterystats
Fixes: 64899521
Test: manual - flash build, reset batteryStats, use device > 1 hr
with alternating pattern between screen on/off/AOD. Dump stats, check
all screen related stats look normal, esp. record matches actual time
spent in each screen state. In raw bugreport:
Search "amount discharged" for % discharge;
Search "Screen on/off/doze discharge" for mAh discharge;
Search "time on battery" for up/real time in each state.

Test: Added two unit tests for note AOD screen state

Merged-In: I7193a36751124dd380818b2b665303c0f0d8c984
Change-Id: I51cead7f92abd9e4c620f7dfde393993cdad494e
2017-10-06 00:50:03 +00:00
shreerag
597da8ad11 Removing watch specific DeviceIdleController logic in favor of small battery device flag
Bug: 28091250
Change-Id: Iaeda3c8249287fec7d17e575071de22cad344cea
(cherry picked from commit b964832da6a6ba0615c1f7606b22b5fd89c45491)
2017-10-05 16:08:09 -07:00
Mike Ma
c2f518a9dd Add AOD metrics in batterystats
Fixes: 64899521
Test: manual - flash build, reset batteryStats, use device > 1 hr
with alternating pattern between screen on/off/AOD. Dump stats, check
all screen related stats look normal, esp. record matches actual time
spent in each screen state. In raw bugreport:
Search "amount discharged" for % discharge;
Search "Screen on/off/doze discharge" for mAh discharge;
Search "time on battery" for up/real time in each state.

Test: Added two unit tests for note AOD screen state
Change-Id: I7193a36751124dd380818b2b665303c0f0d8c984
2017-10-05 15:28:55 -07:00
TreeHugger Robot
a06a6f9934 Merge "Add tests for line breaking that considers overhangs" 2017-10-04 22:56:32 +00:00
Roozbeh Pournader
d170532c8e Add tests for line breaking that considers overhangs
This adds tests as well as a test font that has large overhangs for
some letters.

Bug: 63938206
Test: bit FrameworksCoreTests:android.text.LineBreakingOverhangsTest
Change-Id: I94c3c03419e525ec10b5158e476a94a9e319891d
2017-10-04 14:06:11 -07:00
Fan Zhang
141bd92987 Merge "Add helper method to override flag" 2017-10-04 20:11:44 +00:00
TreeHugger Robot
a4fabd3ef2 Merge "Add more fields in Suggestion model" 2017-10-03 22:20:10 +00:00
Fan Zhang
cfd02742e4 Add helper method to override flag
Bug: 36222960
Test: atest FrameworksCoreFeatureFlagTests
Change-Id: I45edc5171e66e4ac8e84cfc58a9fdf9bae2b136a
2017-10-03 14:51:11 -07:00
Fan Zhang
6abced38e5 Add more fields in Suggestion model
- Icon and suggestionType are needed to customize suggestion UI in
  Settings.

Bug: 65065268
Test: instrumentation test
Change-Id: I62ca80128d327a2c2e925ed37529c0255ca37a8a
2017-10-03 13:27:42 -07:00
TreeHugger Robot
0bba4b0625 Merge "Correct character in description of glyph widths" 2017-10-03 20:24:09 +00:00
Roozbeh Pournader
6f4f1e9065 Correct character in description of glyph widths
A previous change, I2c0f0365824caef6959b213ddae5a03f8cf62c7c,
mistakenly listed a comma for the codepoint U+002E. The correct
character is a full stop.

Test: none
Change-Id: I9121473d7332f8ffd29f304fe19291d35d3cb1aa
2017-10-03 11:08:29 -07:00
Chris Wren
5a860604e3 Merge "Enable experimentation on notification snooze options" into oc-mr1-dev am: 9cb14a0c95
am: 4706c262fa

Change-Id: Ic99064fcb8a51b8d66ce5b55e4e2da52cbc1557b
2017-10-03 00:28:16 +00:00
Chris Wren
4706c262fa Merge "Enable experimentation on notification snooze options" into oc-mr1-dev
am: 9cb14a0c95

Change-Id: Ia54ca5b12479f22c9bef54b1f488bcb74e15423f
2017-10-03 00:19:02 +00:00
Chris Wren
e901a7e0ed Enable experimentation on notification snooze options
Bug: 67003813
Test: runtest systemui

Change-Id: Id46ef3938e2edc633f64cec7b66e10d80c9a0bff
2017-10-02 17:38:16 -04:00
Colin Cross
98560499aa Delete jack support am: 72ad4a04ee
am: 9519197497

Change-Id: I1602c75659c5f5fb9362444b639f020c5d7ed319
2017-10-02 20:03:49 +00:00
Colin Cross
1c034700de Delete jack support
Remove references to jack makefiles that no longer exist.

Bug: 65302138
Test: m -j checkbuild
Change-Id: I9fbee7db0167300edf59a85badeff87b4b25f846
Merged-In: I9fbee7db0167300edf59a85badeff87b4b25f846
(cherry picked from commit c6fbe4ef07)
2017-10-02 11:15:42 -07:00
Colin Cross
72ad4a04ee Delete jack support
Remove references to jack makefiles that no longer exist.

Bug: 65302138
Test: m -j checkbuild
Change-Id: I9fbee7db0167300edf59a85badeff87b4b25f846
Merged-In: I9fbee7db0167300edf59a85badeff87b4b25f846
(cherry picked from commit c6fbe4ef07)
2017-10-02 18:13:39 +00:00
Colin Cross
c6fbe4ef07 Delete jack support
Remove references to jack makefiles that no longer exist.

Bug: 65302138
Test: m -j checkbuild
Change-Id: I9fbee7db0167300edf59a85badeff87b4b25f846
2017-10-01 17:56:56 -07:00
Seigo Nonaka
699939fefa Stop inheriting TextPaint and use self crafted font for testing.
getTextRunAdvances is a private API.
This is groundwork for removing addMeasuredRun from StaticLayout.
There is a special hack in MeasuredText to work with overloaded
getTextRunAdvances but getTextRunAdvances is private API. Looks like
this test is the only user of that hack.

Bug: 67009717
Bug: 65024629
Test: bit FrameworksCoreTests:android.text.StaticLayoutLineBreakingTest
Change-Id: I2c0f0365824caef6959b213ddae5a03f8cf62c7c
2017-09-29 17:39:39 +00:00
TreeHugger Robot
7d208271e5 Merge "Invert the animation over RTL selections" 2017-09-29 15:04:53 +00:00
TreeHugger Robot
dbc2bfeaf4 Merge "Finish removing ASEC." 2017-09-28 22:37:40 +00:00
TreeHugger Robot
0a60465fc9 Merge "Remove AppCacheTest." 2017-09-28 21:57:43 +00:00
Jeff Sharkey
3ff1f2150f Remove AppCacheTest.
We have much more robust testing of cache behavior (such as behavior
across multiple apps) over in StorageHostTest.testCache() CTS.

Test: none
Bug: 64039580
Change-Id: I43281e016a37b507e9801e2bc2c2f74c2e76cf65
2017-09-28 13:40:35 -06:00
Jeff Sharkey
bdb71e0185 Fix StorageManagerIntegrationTest.
OBB files need to be stored on external storage; we no longer support
globally readable files from private app data.

Test: bit FrameworksCoreTests:android.os.storage.StorageManagerIntegrationTest
Bug: 64039580
Change-Id: I491006b691c76f80466da59b1bd728afaec7ed94
2017-09-28 13:23:16 -06:00
Petar Šegina
7c8196f1dc Invert the animation over RTL selections
When smart select is performed over right-to-left text (either
standalone or mixed with left-to-right text), the animation should flow
in from the opposite side than what it does over left-to-right text.

Test: manual - verify smart select still works
Test: manual - manually set the layout flags to RTL and verify the
animation behaves as expected
Test: bit FrameworksCoreTests:android.widget.SelectionActionModeHelperTest

Change-Id: I2e7766e7dfe74e0861e91fc50b061da74432aee0
2017-09-28 20:06:32 +01:00
Jeff Sharkey
f8bb2445ff Finish removing ASEC.
Awhile back we explicitly blocked any new ASEC installs, with the
expectation that we'd eventually remove the logic entirely.  We've
had them disabled for about a week now without incident, so let's
rip out the remaining code.

Test: bit FrameworksCoreTests:android.content.pm.PackageHelperTests
Test: bit FrameworksCoreTests:android.content.pm.PackageManagerTests
Bug: 32913676
Change-Id: I1ecc35487420731f5c4bdf03bca5751548ce51b3
2017-09-28 11:32:57 -06:00
TreeHugger Robot
5d6cb0f864 Merge "Pass text direction from StaticLayout to Layout" 2017-09-22 14:28:00 +00:00
Roozbeh Pournader
158dfafb39 Pass text direction from StaticLayout to Layout
Previously, the text direction was not passed from StaticLayout to
Layout when a StaticLayout was constructed using a builder, resulting
in inconsistency between the direction of a StaticLayout and the
Layout itself. Now we pass the text direction to Layout.

Fixes: 66463721
Test: bit CtsTextTestCases:android.text.cts.DynamicLayoutTest
Test: bit CtsTextTestCases:android.text.cts.StaticLayoutTest
Test: bit CtsWidgetTestCases:android.widget.cts.EditTextTest
Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest
Test: bit FrameworksCoreTests:android.text.DynamicLayoutTest
Test: bit FrameworksCoreTests:android.text.StaticLayoutTest
Test: bit FrameworksCoreTests:android.widget.TextViewTest
Change-Id: Ifaa9d108283292469f0f41c80350162b1d042a93
2017-09-21 13:31:14 -07:00
TreeHugger Robot
a762cae719 Merge "Preventing data overwirte in a Parcel" 2017-09-21 20:24:59 +00:00
Sunny Goyal
5b7689f287 Preventing data overwirte in a Parcel
Test: am instrument -w -e class android.widget.RemoteViewsTest com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner
Bug: 65576228
Change-Id: Ia1f072c1451eba3c6c13833c5a813e754df901e2
2017-09-21 11:32:13 -07:00
TreeHugger Robot
fdb129f3f3 Merge "Pass text direction from DynamicLayout to Layout" 2017-09-21 02:59:06 +00:00