194138 Commits

Author SHA1 Message Date
Clara Bayarri
dfac443516 Fix Floating tool bar covers text during long press + drag
The existing implementation started the ActionMode even when knowing
a drag would start. Moved this logic to once the drag is complete,
to avoid the toolbar popping up while the user is still dragging.

Since the existing method selected the initial word when no other
selection existed, refactored that logic so it is also performed at
the start of the drag. Otherwise, the user sees no selection until
he drags over 2 or more words.

Bug: 21144634

Change-Id: I97cf89b1c4c3ebdbbd1af50bd1ce5aa4af72164b
2015-06-03 22:06:55 +01:00
Eino-Ville Talvala
60eb693b0d Merge "ImageFormat: Update definition of depth formats for confidence." into mnc-dev 2015-06-03 21:06:30 +00:00
Alex Klyubin
20a88152a5 Merge "Expose RSA Cipher from Android Keystore Provider." into mnc-dev 2015-06-03 21:00:35 +00:00
Alex Klyubin
4f389fd200 Expose RSA Cipher from Android Keystore Provider.
The RSA Cipher supports OAEPPadding, PKCS1Padding and NoPadding
padding schemes.

Bug: 18088752
Bug: 20912868
Change-Id: Ie050e12705bb553a402760a1d253fdb2247a1d50
2015-06-03 14:00:02 -07:00
Jonathan Basseri
b06411a90f Merge "Document procedure for adding carrier config variables." into mnc-dev 2015-06-03 20:59:13 +00:00
James Cook
8fd48ca377 Merge "Fix TabHost stealing focus on hardware keyboard keypress" into mnc-dev 2015-06-03 20:58:52 +00:00
Chris Craik
a2235eedde FastJNI for android.os.Trace
bug:21566713

Change-Id: I129e405fe46268b9d40974d3a43f06a1faf4cadd
2015-06-03 13:46:12 -07:00
Chris Craik
1b54fb27ac Delete MAKE_ENUM_FLAGS
bug:21595702

Settle on namespace-enum for consistency. Also removes k prefix.

Change-Id: Ib89f94cb9263de40b6e4636577dca4860867d0d8
2015-06-03 13:42:21 -07:00
Raph Levien
a6a082862b Rename setTextDir to setTextDirection
StaticLayout.Builder used "setTextDir" as a shorthand, but it's not
as clear as spelling it out. So, setTextDirection.

Bug: 21572282
Change-Id: Ia94476562d70678f963196b87bb63511d30836b6
2015-06-03 13:20:45 -07:00
Dmitriy Ivanov
6a644aff78 Fix build
Bug: 21602590
Change-Id: Iffb9a7b74dc97bf30aea2014b0e3d2a96097291b
2015-06-03 13:13:09 -07:00
Jason Monk
ba91fc8ae4 SettingsLib/Wifi: Run pause/resumes on main thread
To avoid our objects from disappearing out from under us.

Bug: 21581533
Change-Id: Ia6fc9e56271f79c7d8b0f86f9c35351c39c35d29
2015-06-03 13:13:09 -07:00
Filip Gruszczynski
48de126b71 Fix NPE when requesting outsets for detached view.
Outsets are used during measure/layout pass, but this can be called on a
view that is not currently attached.

Bug: 21602590
Change-Id: I23e3acc45ca4bf7684d8913f839e29e8e9e94d78
2015-06-03 13:13:08 -07:00
Nick Kralevich
dc6d513803 UsbDeviceManager: Don't unnecessarily touch properties
Before setting the properties persist.sys.usb.config or sys.usb.config,
check the existing values. If the values are the same as what we'd set it
to, don't perform the set.

Any USB property set, even if setting the property to the value it already
has, triggers one of the "on property" triggers in system/core/rootdir/init.usb.rc .
The script then reconfigures the driver unnecessarily, which causes instability
and dropped connections when trying to use ADB.

Avoid this instability by not performing property sets which would have
no effect.

Bug: 21404762
Bug: 18905620
Change-Id: Id3c2543308df994a0114a0661e20ca799c2dc0e8
2015-06-03 13:13:07 -07:00
Jeff Tinker
4575acf1e7 Merge "Fix bug in MediaCrypto.setMediaDrmSession" into mnc-dev 2015-06-03 20:03:29 +00:00
Mady Mellor
36d5a7b225 Ensure to reset state of selecting by word/char for new selections
Previously this value was only updated when interacting with the
selection handles, so if you started a selection, entered by-char mode,
and then started another selection you would still be in by-char mode.
This resulted in incorrect behavior.

This CL alters the logic to update the handle state whenever the cursor
is placed which will included the initial long press to select a word.

Bug: 21301589
Change-Id: I15dbe6f2b76c7edd8ea4b3ba53e7107c47bc48fa
2015-06-03 19:53:52 +00:00
Adam Powell
c52e0d900c Merge "Properly restore RTL state in HorizontalScrollView" into mnc-dev 2015-06-03 19:52:26 +00:00
Winson Chung
e1e20e11a7 Fixing case where we were not preloading tasks correctly.
- Should use the actual isTopTaskHome check when preloading.

Bug: 21516523
Bug: 20882957

Change-Id: I60cf1e97f7704828426f72a45329c8c7b962a78c
2015-06-03 12:52:24 -07:00
Geoff Mendal
0771d9296d Merge "Import translations. DO NOT MERGE" into mnc-dev 2015-06-03 19:47:36 +00:00
Geoff Mendal
dfd2ffb970 Import translations. DO NOT MERGE
Change-Id: I8ad8251f4d867e6f2a64782541d7afba1b2bf4a7
Auto-generated-cl: translation import
2015-06-03 12:41:03 -07:00
Abodunrinwa Toki
e3eb183350 Fix floating toolbar position issues.
This CL makes the toolbar respect a viewport specified by
the content area (calculated from the globalVisibleRect and
windowInsets). By doing this the toolbar positions
itself appropraitely avoiding the status and nav bars.

Bug: 21324303
Change-Id: I3de9e114194dd43888b7f581ef12c3f8b813b3ca
2015-06-03 20:33:49 +01:00
Vinit Deshpande
e56782c0f4 Merge "make WiFi No Network Periodic Scans Interval to 5 minutes" into mnc-dev 2015-06-03 19:27:12 +00:00
Dmitriy Ivanov
77f55c5c60 Merge "Fix build" into mnc-dev 2015-06-03 19:19:49 +00:00
Dmitriy Ivanov
bac9576928 Fix build
Bug: 21602590
Change-Id: Iffb9a7b74dc97bf30aea2014b0e3d2a96097291b
2015-06-03 19:18:59 +00:00
Robert Shih
0c9fccf1ed Merge "media Utils: remove parse integer logspam" into mnc-dev 2015-06-03 19:07:28 +00:00
Pierre Vandwalle
c6de03b0cd make WiFi No Network Periodic Scans Interval to 5 minutes
Bug:21274132

Change-Id: I751319e82deca1e40a3926fd210dd71a55a785f7
(cherry picked from commit 5fcff4ed7db9f0897d8fdae78c05cbdefe258455)
2015-06-03 12:05:46 -07:00
Svetoslav
afa9e99c88 Merge "Fix finding views by accessibility id." into mnc-dev 2015-06-03 18:46:07 +00:00
Svetoslav
6cc4627d88 Fix finding views by accessibility id.
1. If a view has a node provider, then the latter takes over
   representation of the view tree. Hence, find by accessibility
   id should not return children of a view with a provider.

2. Views can change their importantce for accessibility, so an
   accessibility service may get a node and try to act on it
   but the node became not important in the meantime. Hence,
   find by accessibility id should respect importance.

Change-Id: Ib4d738c00f46c91300605a2928550f40705ea47b
2015-06-03 11:44:47 -07:00
Alan Viverette
4a7bb4624f Merge "Call dispatchFinishTemporaryDetach before returning a transient view" into mnc-dev 2015-06-03 18:28:50 +00:00
Jonathan Basseri
f270a8f3d6 Fix logic error in CarrierService.
CarrierService is supposed to filter intents in onBind and only accept
valid actions. The logic was off so that it rejected all bind attempts.

This was tricky to track down because clients get no clear signal that
onBind is returning null.

Bug: 21571360
Change-Id: Id82fce8dfa73a75fae1ce69f73b922addc7daa3e
2015-06-03 11:19:35 -07:00
Jonathan Basseri
13abe77f53 Merge "Fix logic error in CarrierService." into mnc-dev 2015-06-03 18:16:06 +00:00
Adrian Roos
27a2ce2e42 Continuous brightness slider
Changes the brightness slider to have no visible steps
when in auto brightness mode. Also changes mirror
logic to dispatching touches instead of forwarding values.

Bug: 19516826
Change-Id: Ib0233c2dcc6807da96a71d1f5619a117ca2a73bd
2015-06-03 18:14:57 +00:00
Riley Andrews
149cae2f86 Merge "Lower the priority of the LazyTaskWriter thread." into mnc-dev 2015-06-03 18:14:34 +00:00
Riley Andrews
f16c2e8b67 Lower the priority of the LazyTaskWriter thread.
This worker thread shouldn't be prioritized at the same level as user
tasks, preemptions of ui threads may result. Additionally, if we lower
its priority level, it will be scheduled on more efficient cores
in big little systems.

Change-Id: I49a7df6fb43d6c067aeacf9ff0cbd5477cb42f7d
2015-06-03 18:13:18 +00:00
Jason Monk
ccaee1e678 Merge "SettingsLib/Wifi: Run pause/resumes on main thread" into mnc-dev 2015-06-03 18:13:13 +00:00
Jason Monk
e04ae8aced SettingsLib/Wifi: Run pause/resumes on main thread
To avoid our objects from disappearing out from under us.

Bug: 21581533
Change-Id: Ia6fc9e56271f79c7d8b0f86f9c35351c39c35d29
2015-06-03 14:11:11 -04:00
Raph Levien
e7934a6576 Merge "Apply contextStart consistently in getRunAdvance" into mnc-dev 2015-06-03 18:04:10 +00:00
Raph Levien
36ff86c9a3 Apply contextStart consistently in getRunAdvance
The contextStart needs to be applied to all offsets relative to the
actual start of context. The code was missing "offset", which caused
mischief especially in mixed LTR and RTL text.

Bug: 21573666
Change-Id: I47a1b6cde5862442b9c7236ee72b2ceb0df9b2e9
2015-06-03 10:58:33 -07:00
Adam Powell
a3aa6d8278 Properly restore RTL state in HorizontalScrollView
Fix an incorrect unparceling of the previous saved state in
HorizontalScrollView. Remove an unneeded field in the saved state by
storing scroll offset from start instead of scrollX + isRtl.

Bug 20666194

Change-Id: I1ec45b3e3bd0846b5f659356df7ff94f42e61055
2015-06-03 10:56:45 -07:00
Eino-Ville Talvala
eebb834934 ImageFormat: Update definition of depth formats for confidence.
DEPTH16: Use high 3 bits for confidence measurement, with
0 = 100% confidence, 1 = 0% confidence, 2 = 1/7 (14.3%) confidence, etc.

DEPTH_POINT_CLOUD: Add confidence as 4th entry to each point,
with a value in range 0.f - 1.f inclusive.

Bug: 20123879
Change-Id: I23317b922ac727751156fa418ed239a696a898e5
2015-06-03 17:52:35 +00:00
Robert Shih
dcb5ab97f6 media Utils: remove parse integer logspam
Bug: 21569707
Change-Id: I808ce760f55cf6aad8376bc7ca3b3c5a88cb6b01
2015-06-03 10:51:28 -07:00
Filip Gruszczynski
844fbff80c Merge "Fix NPE when requesting outsets for detached view." into mnc-dev 2015-06-03 17:50:44 +00:00
Abodunrinwa Toki
96e727d1e6 Merge "Fix FloatingToolbar positioning for RTL." into mnc-dev 2015-06-03 17:47:47 +00:00
Filip Gruszczynski
e660d4e96a Fix NPE when requesting outsets for detached view.
Outsets are used during measure/layout pass, but this can be called on a
view that is not currently attached.

Bug: 21602590
Change-Id: I23e3acc45ca4bf7684d8913f839e29e8e9e94d78
2015-06-03 10:43:48 -07:00
Yohei Yukawa
168d38aa3c Merge "Convert subtypes whose locale is "tl" to "fil"." into mnc-dev 2015-06-03 17:41:18 +00:00
Alan Viverette
6c413ce638 Call dispatchFinishTemporaryDetach before returning a transient view
ListView caches transient state views for reuse during layout, which calls
dispatchStartTemporaryDetach() before caching the view. This should always
be followed by a corresponding dispatchFinishTemporaryDetach() before
removing the view from the cache and returning it for reuse. While this
was the case for other types of cached views, we missed this call for
views placed in one of the two transient view caches.

Bug: 17387206
Change-Id: I360945006558b2783c098183a7cc9bc28d05d9ab
2015-06-03 10:35:44 -07:00
Jonathan Basseri
c0e7a0416d Fix logic error in CarrierService.
CarrierService is supposed to filter intents in onBind and only accept
valid actions. The logic was off so that it rejected all bind attempts.

This was tricky to track down because clients get no clear signal that
onBind is returning null.

Bug: 21571360
Change-Id: If37a52e30d0c7fd0205f23595f39be3d55db69d4
2015-06-03 10:29:39 -07:00
Alex Klyubin
85f4b7b38c Merge "Fix block mode numbering (CTR got added as 4 rather than 3)" into mnc-dev 2015-06-03 17:25:38 +00:00
Geoff Mendal
4f31c07fdd Merge "Import translations. DO NOT MERGE" into mnc-dev 2015-06-03 17:22:07 +00:00
Geoff Mendal
8c554b015e Merge "Import translations. DO NOT MERGE" into mnc-dev 2015-06-03 17:20:09 +00:00
Geoff Mendal
48b3a1dc1c Merge "Import translations. DO NOT MERGE" into mnc-dev 2015-06-03 17:19:36 +00:00