Commit Graph

75436 Commits

Author SHA1 Message Date
Kweku Adams
93304b6850 incidentd: Adding Notification Listener and Disabling Effects Data to NotificationManager proto output.
RankingHelper will be done in another CL...that's likely a large CL on
its own.

BUG: 65750824
Test: flash on device and check incident.proto output
Change-Id: I740166aed6ac6769ee3e013cf2bd403256eb77dc
2017-09-21 12:46:49 -07:00
Yi Jin
4518ea94fd Merge changes Icdcbeded,I6753df11
* changes:
  Extract IncidentHeaderProto to a separated file for statsd to consume
  Implement Pii Stripper Part 3
2017-09-12 21:40:31 +00:00
Jeff Sharkey
16fd4b2dff Merge "Move even more vold commands over to Binder." 2017-09-12 19:21:02 +00:00
TreeHugger Robot
0d98a2f1e5 Merge "Log the "change selected text" gesture." 2017-09-12 16:43:50 +00:00
Amith Yamasani
7bd888bea6 Merge "Remove incorrect note about truncation in the javadoc" 2017-09-12 15:54:47 +00:00
Abodunrinwa Toki
78940eb859 Log the "change selected text" gesture.
This logs when the selected text is changed e.g. by typing on
the hard or soft keyboard.

Bug: 64914512
Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest
Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest
Change-Id: I82b3b2157856c607d08a82c0a3d9fb938af4c06a
2017-09-12 13:53:04 +01:00
TreeHugger Robot
33e9e7d5e6 Merge "Fix smart selection logging bugs." 2017-09-12 11:00:04 +00:00
Petar Šegina
c975213ddb Merge "Enable smart select animation for multiline scenarios" 2017-09-12 10:24:35 +00:00
Petar Šegina
02b345725b Merge "Filter out empty and unnecessary rectangles" 2017-09-12 10:23:36 +00:00
Jeff Sharkey
41cd681ff8 Move even more vold commands over to Binder.
This moves fstrim, obb and appfuse commands over to the new Binder
interface.  This change also separates creating/destroying and
mounting/unmounting of OBB volumes, which means they finally flow
nicely into the modern VolumeInfo/VolumeBase design.

Test: cts-tradefed run commandAndExit cts-dev -m CtsOsTestCases -t android.os.storage.cts.StorageManagerTest
Bug: 13758960
Change-Id: I4de45889828a9ab9858cc7c4f094a90eaff10f96
2017-09-11 18:44:34 -06:00
Amith Yamasani
8a0a614f45 Remove incorrect note about truncation in the javadoc
UsageStats is not truncating the events returned by queryEvents.
So removed the javadoc note that is no longer true.

Bug: 65556357
Test: N/A
Change-Id: I8206176951c3a3079b8317043f4cb696ffca67c0
2017-09-11 16:01:04 -07:00
Chad Brubaker
e7454950f6 Merge "Expand and expose Lockdown global action" 2017-09-11 22:04:07 +00:00
Evan Rosky
a0cff8b547 Merge "Fixed some small keyboard nav bugs (TabHost, directional focus)" into oc-mr1-dev am: c8b91ecbae
am: 2e7e7a9960

Change-Id: I4843d0b8409909d9b0c1af2950321918adc722bb
2017-09-11 21:24:01 +00:00
Evan Rosky
2e7e7a9960 Merge "Fixed some small keyboard nav bugs (TabHost, directional focus)" into oc-mr1-dev
am: c8b91ecbae

Change-Id: Ife498c2a72c2053f9d6d7f2ffee6ed63153f2a7b
2017-09-11 21:03:41 +00:00
Evan Rosky
c8b91ecbae Merge "Fixed some small keyboard nav bugs (TabHost, directional focus)" into oc-mr1-dev 2017-09-11 20:25:50 +00:00
Sunny Goyal
f4b3cbc273 Merge "Adding a copy constructor for RemoteViews" 2017-09-11 19:40:58 +00:00
Fyodor Kupolov
c5758a8851 Merge "Do not allow multi-threaded usage of TimingsTraceLog" 2017-09-11 19:36:44 +00:00
George Mount
e89a95b3e5 Merge "Fix showing views after failed transition to translucent window." into oc-mr1-dev am: 2f35f15ab0
am: 87f68c849f

Change-Id: I70b6b8ca3e61d53de0d03df914295ed655b12755
2017-09-11 18:42:06 +00:00
Andrei Stingaceanu
160d23ece3 Merge "TextView longpress 2 haptic feedback fix" into oc-mr1-dev am: 04b6095082
am: ddb8ced959

Change-Id: Id1ebf69c0f3c94f5c505c2bbe2f2dc52cb342fbf
2017-09-11 17:55:39 +00:00
George Mount
87f68c849f Merge "Fix showing views after failed transition to translucent window." into oc-mr1-dev
am: 2f35f15ab0

Change-Id: Ie360f3af438f0c1b58620048258d7ba666363744
2017-09-11 17:40:46 +00:00
TreeHugger Robot
2f35f15ab0 Merge "Fix showing views after failed transition to translucent window." into oc-mr1-dev 2017-09-11 17:25:33 +00:00
Abodunrinwa Toki
d62a86e64c Fix smart selection logging bugs.
- Fix count with selection start index inside a word
- Properly handle whitespace characters
- Set the model version tag

Bug: 64914512
Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest
Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest
Test: Manually tested that logs are correct. Will follow up with automated tests.
Change-Id: Ib73b52ebce999f2cb6e5734e556cd09e47c89a29
2017-09-11 18:23:44 +01:00
Yohei Yukawa
e1ca7f2056 Merge "Revert "Remove a compat hack SurfaceView#setWindowType()"" into oc-mr1-dev am: a729236399
am: b0b685bab7

Change-Id: I3a5278b423544fc1f64f4c3424ea67899d4d5975
2017-09-11 15:59:47 +00:00
Jorim Jaggi
a72e9bf527 Merge "Fix window movement animations" 2017-09-11 15:06:10 +00:00
Petar Šegina
ba1b8566e4 Filter out empty and unnecessary rectangles
Layout::getSelection will sometimes give us rectangles which are
redundant - specifically, those with dimension zero and those that may
already be contained in some other rectangles. In order to keep the
smart select animation simple and in line with what the user would
visually expect, we remove these rectangles.

Test: manual - verify smart select animation over multiple lines
Test: bit FrameworksCoreTests:android.widget.SelectionActionModeHelperTest
Change-Id: Ia4406d9505366245609b44e3ec3743f84820ba0a
2017-09-11 15:41:12 +01:00
Petar Šegina
9b5b70cf20 Enable smart select animation for multiline scenarios
Test: manual - verify that smart select works when the selection spans
multiple lines

Change-Id: I7a8113559560dc4657c36c66c6059a44d03bf1ae
2017-09-11 15:38:22 +01:00
Paul Duffin
0a22778237 Remove org.apache.http.legacy from bootclasspath
Updated data/etc/platform.xml to make the org.apache.http.legacy library
usable by applications. The runtime location of the
org.apache.http.legacy library is
/system/framework/org.apache.http.legacy.boot.jar not
/system/framework/org.apache.http.legacy.jar.

Stop removing org.apache.http.legacy from the required and optional
shared library lists and instead add it to the required list if it is
not present in either and the package is targeted at SDK
version <= O_MR1.

Bug: 18027885
Test: make FrameworksCoreTests, install and run
Change-Id: I686e3c20f5860e58825e1b88f220f9b8c335849c
2017-09-11 11:28:41 +01:00
Andrei Stingaceanu
ddb8ced959 Merge "TextView longpress 2 haptic feedback fix" into oc-mr1-dev
am: 04b6095082

Change-Id: I1467a1af9a9bc0c23435b1e3b34a4ac257b9244c
2017-09-11 09:44:47 +00:00
Andrei Stingaceanu
04b6095082 Merge "TextView longpress 2 haptic feedback fix" into oc-mr1-dev 2017-09-11 09:39:22 +00:00
Yohei Yukawa
b0b685bab7 Merge "Revert "Remove a compat hack SurfaceView#setWindowType()"" into oc-mr1-dev
am: a729236399

Change-Id: Ibc4e2f176cd46b6de4cc6f6e6f28e3309a00f1a2
2017-09-10 05:39:50 +00:00
TreeHugger Robot
a729236399 Merge "Revert "Remove a compat hack SurfaceView#setWindowType()"" into oc-mr1-dev 2017-09-10 05:31:42 +00:00
Felipe Leme
4cefd85dd0 Merge "Documented use of AutofillManager.notifyViewVisibilityChanged()" into oc-mr1-dev
am: beff427903

Change-Id: I3281358455bae103eb8e5f9f8d375f44dd0a4803
2017-09-10 04:44:18 +00:00
TreeHugger Robot
beff427903 Merge "Documented use of AutofillManager.notifyViewVisibilityChanged()" into oc-mr1-dev 2017-09-10 04:37:35 +00:00
Yohei Yukawa
9309c19513 Revert "Remove a compat hack SurfaceView#setWindowType()"
This CL reverts my previous CL [1] that aimed to get rid of
a nasty compatibility hack that was introduced for Bug 36345857.

For those who are interested in, what happenned are:

 1. @hide method SurfaceView#setWindowType() was removed [2].
 2. It broke some app (Bug 36345857).  We had to work around
    it by re-introducing SurfaceView#setWindowType()
    temporarily [3].
 3. Some app switched to the correct implementation when
    running on Android O devices.
 4. We removed that compatibility hack [1] (Bug 62054282).
 5. Android O MR1 is set to be "REL" [4].
 6. It broke some app, probably because of some unfortunate
    mistake in the version check logic in that app.
 7. We end up introducing the same hack again for O MR1.

 [1]: Icee198c554de558cfa4ffe0b264064969839654e
      7a1ad6d97c
 [2]: Ie56b6f7ab16f32d7fc459b8eba26594337ad55de
      d5c7dd6da8
 [3]: I5217f6417a73690ae8a978754218b7b089070fdd
      3b5011afc9
 [4]: I054e3ecff49803e61e7741753fe6764a567d72c4
      62a835d0ef89e51f4a97fecf8576224551b545a5

Bug: 36345857
Bug: 62054282
Fixes: 65508814
Test: Manually verified that Bug 65508814 is not reproducible
Change-Id: If8a3f726789daa22f73e1962e938f071d3c09414
2017-09-09 17:45:27 -07:00
Felipe Leme
c59aef08fb Merge "Don't log TYPE_DATASET_SELECTED on dataset authentication." into oc-mr1-dev
am: 627cc3c7ae

Change-Id: I04fa1c1c89c8bd31eb99ffd9bfd56ee00ee63dd8
2017-09-09 09:13:07 +00:00
TreeHugger Robot
627cc3c7ae Merge "Don't log TYPE_DATASET_SELECTED on dataset authentication." into oc-mr1-dev 2017-09-09 09:04:39 +00:00
Felipe Leme
a669df1b6c Merge "Added more logging to diagnose a racy runtime restart." into oc-mr1-dev
am: 09545e3fa7

Change-Id: Icdc462cabbba4b62935a9a62635831ed5f9cb1ec
2017-09-09 04:18:04 +00:00
TreeHugger Robot
09545e3fa7 Merge "Added more logging to diagnose a racy runtime restart." into oc-mr1-dev 2017-09-09 04:01:35 +00:00
Phil Weaver
a43ed2ecb4 Merge "Don't call disconnected AccessibilityServices" into oc-mr1-dev am: 17788eb4b1
am: fecc0a6d60

Change-Id: Ie5677ab0632462a5979ec79d77471a5500117fd7
2017-09-09 00:52:32 +00:00
Calin Juravle
acef92cde7 Merge "Handle configuration splits when creating the class loader context" into oc-mr1-dev am: ed54b41e3c
am: b2e1a3cbc2

Change-Id: I9c36d6cd44a6f65a3bbd6ea89f1f328e7fbfcfc6
2017-09-09 00:29:41 +00:00
Phil Weaver
fecc0a6d60 Merge "Don't call disconnected AccessibilityServices" into oc-mr1-dev
am: 17788eb4b1

Change-Id: Ifea6164d4329596fb8b22e50c8cfa8e56ce47e00
2017-09-09 00:26:17 +00:00
Calin Juravle
b2e1a3cbc2 Merge "Handle configuration splits when creating the class loader context" into oc-mr1-dev
am: ed54b41e3c

Change-Id: I34d37f77255226ec46bb833b64d8196b746f413e
2017-09-09 00:00:14 +00:00
Yin-Chia Yeh
efb5934683 Merge "Camera: fix race in onRepeatingRequestError callback" into oc-mr1-dev am: f23334869d
am: 811029f71d

Change-Id: Ib156c92bde8571cad70b1fe2cef0f03d9eae54b4
2017-09-08 23:59:32 +00:00
Yin-Chia Yeh
811029f71d Merge "Camera: fix race in onRepeatingRequestError callback" into oc-mr1-dev
am: f23334869d

Change-Id: I0c3c9544e37219110178c864ff2ec6b28b467f63
2017-09-08 23:34:27 +00:00
George Mount
476aeeaba2 Fix showing views after failed transition to translucent window.
Bug: 65268614

When an activity transition was used with the top activity being
translucent, and the top activity calls finish() instead of
finishAfterTransition(), the transitioned views were not being
drawn properly. The source of the problem was that
setTransitionVisibility() was being used instead of setVisibility().
Transitions normally use setTransitionVisibility() to modify
the view's visibility without triggering an invalidation. But
when we want the view to be invalidated by the visibility change,
setTransitionVisibility() prevents the invalidate() from
actually invalidating the view.

Test: manual
Change-Id: I250ea232052d1a1309d3341504cba77543a94eec
2017-09-08 16:01:10 -07:00
Felipe Leme
2ad2e7c065 Merge "Javadoc: Added alternative to Package verification." into oc-dev am: 092349600d am: 33d476c170 am: 66e3c9aaf8
am: 210485221c

Change-Id: I6beec69db2fcdb2914859f7ff78974822dc40d8e
2017-09-08 22:15:44 +00:00
Felipe Leme
210485221c Merge "Javadoc: Added alternative to Package verification." into oc-dev am: 092349600d am: 33d476c170
am: 66e3c9aaf8

Change-Id: I07156ab1aec1415ed3c484da0fe3567896c073b7
2017-09-08 22:00:59 +00:00
Phil Weaver
17788eb4b1 Merge "Don't call disconnected AccessibilityServices" into oc-mr1-dev 2017-09-08 21:56:38 +00:00
Jeff Sharkey
ee6523014e Merge "Move "volume" commands over to Binder." 2017-09-08 21:55:51 +00:00
Calin Juravle
ed54b41e3c Merge "Handle configuration splits when creating the class loader context" into oc-mr1-dev 2017-09-08 21:55:28 +00:00