Commit Graph

82720 Commits

Author SHA1 Message Date
TreeHugger Robot
95fc70bcec Merge "Changing RemoteViews to using MethodHandles instead of relection" 2017-08-31 20:11:00 +00:00
TreeHugger Robot
25706748aa Merge "Improve rectangle direction generation" 2017-08-31 18:05:23 +00:00
Sunny Goyal
271e32270b Changing RemoteViews to using MethodHandles instead of relection
Test: am instrument -w -e class android.widget.RemoteViewsTest com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner
Change-Id: I1c1eb58d863e1196a38fadb15e08ad2fdcff1d4d
2017-08-31 17:35:13 +00:00
TreeHugger Robot
f8900f1a48 Merge "Rename roundPercentage to roundRatio" 2017-08-31 17:29:50 +00:00
Petar Šegina
7272925026 Improve rectangle direction generation
The previous solution didn't take into account that the source rectangle
might be at either end of the selection, thus giving it the wrong
direction of CENTER, while it should have been RIGHT or LEFT.

Test: manual - verify that the rectangles expand properly in a smart
select animation when there are multiple rectangles and the source is
not in the center - e.g. a multiline case with the selection starting on
the first line

Change-Id: Id18ab8f9918e74a576503620dae2f7cdd593fb0e
2017-08-31 17:17:00 +01:00
Yohei Yukawa
9402bb4994 Merge "Fix wrong dump output of *Info#flags" into oc-mr1-dev am: c4a8b3625b
am: edaa2ea5b7

Change-Id: I491132d3841b55d258fa9221467815fe7ef6f006
2017-08-31 15:45:40 +00:00
Yohei Yukawa
edaa2ea5b7 Merge "Fix wrong dump output of *Info#flags" into oc-mr1-dev
am: c4a8b3625b

Change-Id: I43645394470ca01bd533da378ba9edc3abaa3a3b
2017-08-31 15:32:59 +00:00
Yohei Yukawa
8f272178a0 Fix wrong dump output of *Info#flags
This CL follows up to a previous CL [1] that introduced an ability to
control filtering level of
 - ActivityInfo#dump()
 - ApplicationInfo#dump()
 - ComponentInfo#dump()
 - ProviderInfo#dump()
 - ResolveInfo#dump()
 - ServiceInfo#dump()
but also masked following outputs as an unexpected side effect.
 - ActivityInfo#flags
 - ApplicationInfo#flags
 - ProviderInfo#flags
 - ServiceInfo#flags

With this CL, above *Info#flags are correctly dumped again.

 [1]: I0d01565babb87e68b840c9756a2ea730d699efc7
      6ac42aeed9

Test: Manually tested as follows.
 1. make -j SoftKeyboard
 2. adb install -r $OUT/system/app/SoftKeyboard/SoftKeyboard.apk
 3. adb shell dumpsys input_method
    -> Check 'com.example.android.softkeyboard' section
      -> make sure ServiceInfo#flags=0x0
      -> make sure ApplicationInfo#flags=0x38a8be44
           FLAG_HAS_CODE (1<<2)
           FLAG_ALLOW_CLEAR_USER_DATA (1<<6)
           FLAG_SUPPORTS_SMALL_SCREENS (1<<9)
           FLAG_SUPPORTS_NORMAL_SCREENS (1<<10)
           FLAG_SUPPORTS_LARGE_SCREENS (1<<11)
           FLAG_RESIZEABLE_FOR_SCREENS (1<<12)
           FLAG_SUPPORTS_SCREEN_DENSITIES (1<<13)
           FLAG_ALLOW_BACKUP (1<<15)
           FLAG_SUPPORTS_XLARGE_SCREENS (1<<19)
           FLAG_STOPPED (1<<21)
           FLAG_SUPPORTS_RTL (1<<22)
           FLAG_INSTALLED (1<<23)
           FLAG_FULL_BACKUP_ONLY (1<<26)
           FLAG_EXTRACT_NATIVE_LIBS (1<<28)
           FLAG_HARDWARE_ACCELERATED (1<<29)
Fixes: 65057767
Change-Id: Icd1e18237e873844791ccdea7f424b6fe76137c0
2017-08-31 15:24:48 +00:00
Petar Šegina
0d37b1a71d Rename roundPercentage to roundRatio
Test: manual - verify smart select animation still works
Change-Id: Ic63236a47563b2daef57eeb52dd4fdbbb2cb1780
2017-08-31 15:03:18 +01:00
TreeHugger Robot
119ce2e2b6 Merge "Replace manual insetting with .inset()" 2017-08-31 13:27:59 +00:00
Petar Šegina
2dff78610a Replace manual insetting with .inset()
Test: manual - verify smart selection animation still works
Change-Id: Iea13ec8962777863121f49f47a13425bb0cc7d42
2017-08-31 12:13:12 +01:00
Petar Šegina
bd54bcbcfb Merge "Do not round corners on tall selection rectangles" 2017-08-31 11:05:10 +00:00
Benjamin Franz
326be27572 Merge "Profile Owner API to clear application data" 2017-08-31 08:59:30 +00:00
Nate Fischer
390245b09e Merge "WebView: fix setSafeBrowsingWhitelist table in docs" into oc-mr1-dev am: 0899236129
am: 6ad362b160

Change-Id: I20c3e85ed430cb23660ffbd02a2be39fdb361c59
2017-08-31 04:32:47 +00:00
Kang Li
0f99c1e74e Merge "Fixes NPE thrown in sort if new targets are added." into oc-mr1-dev am: f10b0d000e
am: adc714972a

Change-Id: Ie23c44a463fdd07be590c136fdda55bc0f6f0220
2017-08-31 04:06:02 +00:00
jackqdyulei
f334560a2f Merge "Add static lock in PowerProfile" into oc-mr1-dev am: dcadf1934a
am: 9950104f7a

Change-Id: I9e9c2399969d57f389c4cbe37c77d57d5e4e7175
2017-08-31 03:53:58 +00:00
TreeHugger Robot
433f7c5708 Merge "WebView: fix broken references to #onShowFileChooser" 2017-08-31 02:47:49 +00:00
Nate Fischer
6ad362b160 Merge "WebView: fix setSafeBrowsingWhitelist table in docs" into oc-mr1-dev
am: 0899236129

Change-Id: I7ef05d97811a5ca15a3bfc01d8743c28fbefd243
2017-08-31 02:40:22 +00:00
TreeHugger Robot
0899236129 Merge "WebView: fix setSafeBrowsingWhitelist table in docs" into oc-mr1-dev 2017-08-31 02:28:11 +00:00
TreeHugger Robot
ed82b166e7 Merge "Implement LineBreaker callback and fix indent repeating." 2017-08-31 01:41:01 +00:00
TreeHugger Robot
d65901b5a0 Merge changes I49057737,I68e3096d
* changes:
  Frameworks: Clean up SystemProperties
  Frameworks: Add warning to SystemProperties.get
2017-08-31 01:34:48 +00:00
Kang Li
adc714972a Merge "Fixes NPE thrown in sort if new targets are added." into oc-mr1-dev
am: f10b0d000e

Change-Id: I6befef8d1f27666e5a6c721378ba5c02cc769947
2017-08-31 00:52:18 +00:00
TreeHugger Robot
f10b0d000e Merge "Fixes NPE thrown in sort if new targets are added." into oc-mr1-dev 2017-08-31 00:34:57 +00:00
jackqdyulei
9950104f7a Merge "Add static lock in PowerProfile" into oc-mr1-dev
am: dcadf1934a

Change-Id: I3ae1a99852d5c9c4a87ee402b3e2e1cc88b8bd0d
2017-08-31 00:06:06 +00:00
TreeHugger Robot
dcadf1934a Merge "Add static lock in PowerProfile" into oc-mr1-dev 2017-08-30 23:35:07 +00:00
Abodunrinwa Toki
8a9866298d Merge "Introduce SmartSelectionEventTracker." into oc-mr1-dev am: 16da1f545c
am: f44588afb1

Change-Id: I3fcbd9d99c844068ec793c4f80319b85a9f90043
2017-08-30 23:18:13 +00:00
Abodunrinwa Toki
f44588afb1 Merge "Introduce SmartSelectionEventTracker." into oc-mr1-dev
am: 16da1f545c

Change-Id: Ie527776ced88acf1139ac200b3a855bcd9beb76c
2017-08-30 22:52:23 +00:00
Nate Fischer
c4f8f89bcc WebView: fix broken references to #onShowFileChooser
WebChromeClient#onShowFileChooser was incorrectly referred to as
"showFileChooser" in two locations. Now these locations use the correct
name and the spot using "<code>" has been fixed to use "{@link}".

This also fixes a grammar error in the docs.

Bug: 65213653
Test: make docs (and manually verify the link works)
Change-Id: I17ba8ac3f76371a8b8a12b998ce4c956b6237119
2017-08-30 15:39:32 -07:00
Andreas Gampe
2e6b9cb563 Frameworks: Clean up SystemProperties
Clean up SystemProperties.java. Add annotations.

Clean up SystemProperties.cpp. Refactor for proper C++11.
Make sure C-string key construction is properly reused. Use
android::base functionality for actual reading.

Fix the test script to refer to the right location. Add some
test coverage.

Test: m
Test: frameworks/base/core/tests/systemproperties/run_core_systemproperties_test.sh --rebuild
Change-Id: I490577370da985f600fb1117e3c818d3f68bad5f
2017-08-30 15:37:27 -07:00
TreeHugger Robot
16da1f545c Merge "Introduce SmartSelectionEventTracker." into oc-mr1-dev 2017-08-30 22:13:58 +00:00
TreeHugger Robot
9dd369e0af Merge "Add statsd." 2017-08-30 22:09:08 +00:00
Seigo Nonaka
749e57e5c3 Implement LineBreaker callback and fix indent repeating.
The last indent should be repeated, so we need to pass an int array
instead of null even if the indent offset is out of array length.

Bug: 65024629
Test: bit CtsTextTestCases:android.text.cts.StaticLayoutTest
Test: bit CtsTextTestCases:android.text.cts.DynamicLayoutTest
Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest
Bug: 65024629

Change-Id: Ic1274d797db27ae1921135a27bab55e475369710
2017-08-30 14:57:50 -07:00
Kang Li
0935f152c7 Fixes NPE thrown in sort if new targets are added.
Test: manually tested it to verify that it works as expected.

Bug: 65035399
Change-Id: Ie99b05c5324f47cbac66687d7301ef62a7c83e55
2017-08-30 21:32:08 +00:00
Nate Fischer
fbebfa9d53 WebView: fix setSafeBrowsingWhitelist table in docs
No change to logic, only docs changes.

The documentation for setSafeBrowsingWhitelist uses a table to describe
whitelist rules. However, this table was previously formatted
incorrectly (it uses <th> elements for each cell, when normal data cells
should use <td> according to Android API guidelines).

This fixes the table to conform to the guidelines, adjusts white space
for consistency, and removes an unnecessary <p> element.

Bug: 65173825
Test: make docs (and manually verify the table looks correct)
Change-Id: I5d7390a44613aaa3acb147a69f8e0ce741e817ed
2017-08-30 21:03:19 +00:00
Joe Onorato
5dcbc6c015 Add statsd.
It doesn't start yet by default. When you start it manually, it sets
itself up as a binder system service and starts a thread to read the
event log.

Test: Run statsd, observe output. also run stats_test
Change-Id: If435d6a80fef3c1d957aedb61699bf5e9aae7e56
2017-08-30 12:36:31 -07:00
Jeff Sharkey
595987e619 Merge "Augment network stats based on SubscriptionPlan." into oc-mr1-dev am: f31cf45e82
am: 8ab5f7f324

Change-Id: Ica24924ff8e5c95bd14114fb0a1d82c21a7d30d4
2017-08-30 19:27:49 +00:00
Jeff Sharkey
8ab5f7f324 Merge "Augment network stats based on SubscriptionPlan." into oc-mr1-dev
am: f31cf45e82

Change-Id: Ia6c6d5893d841f21d181363dc01f77efa6579a8f
2017-08-30 19:14:21 +00:00
Jeff Sharkey
f31cf45e82 Merge "Augment network stats based on SubscriptionPlan." into oc-mr1-dev 2017-08-30 19:01:18 +00:00
Jim Miller
a507fc4b9e Merge "Add a constant to allow system-provided fingerprint dialogs" into oc-mr1-dev am: fb8e9b9096
am: 8ad2bd4b53

Change-Id: Ic25a7a89485ec1791befafd4933a8cdd3741ce2e
2017-08-30 18:19:50 +00:00
Jim Miller
8ad2bd4b53 Merge "Add a constant to allow system-provided fingerprint dialogs" into oc-mr1-dev
am: fb8e9b9096

Change-Id: I2ce2160b4ffa4f088321710a33475debfd7b1212
2017-08-30 18:04:57 +00:00
TreeHugger Robot
fb8e9b9096 Merge "Add a constant to allow system-provided fingerprint dialogs" into oc-mr1-dev 2017-08-30 17:47:46 +00:00
Jeff Sharkey
f4de294297 Augment network stats based on SubscriptionPlan.
When a carrier provides an "anchor" of data usage at a specific
moment in time, augment the network statistics used by warning/limit
thresholds and Settings UI.  For example, if the OS measured 500MB
of usage, but the carrier says only 400MB has been used, we "squish"
down the OS measured usage to match that anchor.

Callers using the hidden API will have their data augmented by
default, and the public API offers a way to opt-into augmentation.

Thorough testing to verify behavior.

Test: bit FrameworksNetTests:android.net.,com.android.server.net.
Test: cts-tradefed run commandAndExit cts-dev -m CtsUsageStatsTestCases -t android.app.usage.cts.NetworkUsageStatsTest
Bug: 64534190
Change-Id: Id3d4d7625bbf04f57643e51dbf376e3fa0ea8eca
2017-08-30 10:01:10 -06:00
TreeHugger Robot
680ce93049 Merge "Add theme attribute for light navigation bar" 2017-08-30 15:16:00 +00:00
Jorim Jaggi
11b58a917c Add theme attribute for light navigation bar
Such that apps can set this in the theme and get a splash screen
that has a light navigation bar if requested.

Test: LightBarThemeTest
Change-Id: Iee93c49743f66ecad76e0a056ba16a1785f22784
Fixes: 62429332
2017-08-30 15:37:19 +02:00
Jorim Jaggi
e7d2b85068 Nuke everything obsoleted by task snapshots
Test: go/wm-smoke
Change-Id: If9c9c2e66d97d6a5fa94d0d62ae7459fdde2a9a0
2017-08-30 14:59:36 +02:00
Abodunrinwa Toki
692b196cc1 Introduce SmartSelectionEventTracker.
This will be used for logging text selection interaction.

Bug: 64914512
Test: No test. Everything builds fine.
Change-Id: Idb28864e0fc969be05d81855b2e7cd8389bd835e
2017-08-30 13:38:51 +01:00
Andreas Gampe
6bf1cff1dd Frameworks: Add warning to SystemProperties.get
Add a warning that calling get() is unsafe when the system property
may not contain a valid UTF-encoded string.

Bug: 63177684
Test: m
Change-Id: I68e3096d770a32fe204be5c130a3ada9d3db7c0b
2017-08-30 04:23:35 -07:00
Christopher Tate
4531b36031 Merge "Note cross-user permission requirement for relevant wallpaper operations" into oc-mr1-dev am: a050d6302f
am: 5296d3cc22

Change-Id: Iab41d0294670605f1d7ba933d534ed872d1d9b64
2017-08-30 02:01:06 +00:00
Evan Rosky
3b322865f6 Merge "Merge "Clear focused-in-cluster on focusability changes" into oc-mr1-dev am: 102520f88e" into oc-mr1-dev-plus-aosp
am: 2af6037836

Change-Id: Ie1622654c6e295daed8ad0a08d04d1f554c33354
2017-08-30 00:23:53 +00:00
Christopher Tate
5296d3cc22 Merge "Note cross-user permission requirement for relevant wallpaper operations" into oc-mr1-dev
am: a050d6302f

Change-Id: I6568f85ca95ab4e20f5f5195c7b7eb4982e8ec57
2017-08-30 00:05:36 +00:00