Commit Graph

17699 Commits

Author SHA1 Message Date
TreeHugger Robot
d1e123cbad Merge "Autofill: Add API for virtual view visibility" 2017-07-12 17:36:29 +00:00
Svetoslav Ganov
4db89ba82e Autofill: Add API for virtual view visibility
Test: VirtualContainerActivityTest

bug:38509603

Change-Id: I3546c99d0b13316337c5015e003337b8019194a9
2017-07-11 19:43:01 -07:00
TreeHugger Robot
071072f33e Merge "Implement Luhn checksum algo" 2017-07-12 01:06:55 +00:00
Nate Fischer
1753646c28 Merge "Add SafeBrowsingResponse abstract class" 2017-07-11 20:35:23 +00:00
Nate Fischer
2f7af06efb Add SafeBrowsingResponse abstract class
This adds a new class called SafeBrowsingResponse to replace the
ValueCallback parameter for WebViewClient#onSafeBrowsingHit. This
class contains specific methods for each of the available actions.

This also removes the SAFE_BROWSING_ACTION_* constants from the
WebViewClient class.

Bug: 62723291
Test: N/A
Change-Id: Ie4fe878ea470f7aea7a716ae9edb80b53b73e172
2017-07-11 20:32:04 +00:00
Philip P. Moltmann
4e5ce39039 Implement Luhn checksum algo
Ignore all non-digits. If only digits should be allowed, the
developer can use a combination of SimpleRegexValidator and
RequiredValidators.

Bug: 62534917
Test: cts-tradefed run cts-dev -m CtsAutoFillServiceTestCases
          --test=android.autofillservice.cts.LuhnChecksumValidatorTest

Change-Id: I4a7c68a236c3d4cb967f1bc61115df89e584a86d
2017-07-11 09:19:31 -07:00
TreeHugger Robot
99f0e0ef1e Merge "Verify regex on ImageTransformation" 2017-07-11 01:40:09 +00:00
Philip P. Moltmann
de78fabb74 Verify regex on ImageTransformation
Also change the constructor of the Builder of this class

Bug: 62534917
Test: cts-tradefed run cts-dev -m CtsAutoFillServiceTestCases
Change-Id: Ie54f3a1d4b3a0ecd25945d3deafb4858423f926e
2017-07-10 16:54:52 -07:00
Philip P. Moltmann
ebbe2d4899 Verify regex on CharSequenceTransformation
... Also
- change the constructor of the Builder of this class
- Do not crash if the subsitutions for the regexes are invalid

Change-Id: I965d5830f4932eb40ec22d7fa308815955920a99
Bug: 62534917
Test: cts-tradefed run cts-dev -m CtsAutoFillServiceTestCases
2017-07-10 15:15:48 -07:00
TreeHugger Robot
de295549d1 Merge "Hide some systemapi methods" 2017-07-10 17:59:36 +00:00
TreeHugger Robot
b2f9ab3347 Merge "Allow splits to declare a classloader type." 2017-07-10 15:01:52 +00:00
Przemyslaw Szczepaniak
a2c84e7afa Merge "Track libcore commit 2fd032687ba3d4d7f6af560482c5aba525584621" am: c895fcef8f am: 03e304e4e8 am: 0d53000386
am: 193c7d05c8

Change-Id: I2f31a97b8392a1085b485eed831fc67a57dc46ba
2017-07-10 14:09:01 +00:00
Przemyslaw Szczepaniak
193c7d05c8 Merge "Track libcore commit 2fd032687ba3d4d7f6af560482c5aba525584621" am: c895fcef8f am: 03e304e4e8
am: 0d53000386

Change-Id: I7e6064ba6d0b74584eec526d61ebb46abc02ad4f
2017-07-10 14:02:33 +00:00
Przemyslaw Szczepaniak
03e304e4e8 Merge "Track libcore commit 2fd032687ba3d4d7f6af560482c5aba525584621"
am: c895fcef8f

Change-Id: I1aecc608b0eaa807489683526a9267003eb975b1
2017-07-10 13:40:49 +00:00
Przemyslaw Szczepaniak
44d7cd06d2 Track libcore commit 2fd032687ba3d4d7f6af560482c5aba525584621
Test: Make
Bug: 62779247
Change-Id: I919df93b20e809f42a27225403e1549b763b0a60
2017-07-10 11:56:55 +00:00
Lucas Dupin
f058f7a58d Merge "Merge "Hide all color hints references" into oc-dr1-dev am: b1ab0ff21e" into oc-dr1-dev-plus-aosp
am: 6e7e4ed024

Change-Id: I66ba5dd375d68f90ab21a37e37735d0e22a9a933
2017-07-07 03:07:42 +00:00
Lucas Dupin
1446809f30 Merge "Hide all color hints references" into oc-dr1-dev
am: b1ab0ff21e

Change-Id: I54e5d27f52d197ae2512ab7216e12e11cf5c8c30
2017-07-07 02:42:35 +00:00
TreeHugger Robot
b1ab0ff21e Merge "Hide all color hints references" into oc-dr1-dev 2017-07-07 00:12:08 +00:00
Alex Light
4276eb8ae9 Merge "Unhide InMemoryDexClassLoader ByteBuffer[] constructor" am: a4267fd89f am: c9b8de6136 am: e45205825f
am: 48f04c9da2

Change-Id: I44b433ac58d83ad029ee74e211385e0bd6e1ab19
2017-07-06 21:36:45 +00:00
Alex Light
48f04c9da2 Merge "Unhide InMemoryDexClassLoader ByteBuffer[] constructor" am: a4267fd89f am: c9b8de6136
am: e45205825f

Change-Id: I703cfcec537911bb46b917b93ed6647031bf3ba6
2017-07-06 21:24:27 +00:00
Alex Light
c9b8de6136 Merge "Unhide InMemoryDexClassLoader ByteBuffer[] constructor"
am: a4267fd89f

Change-Id: If31e5d218bd00b3281923c80cd4f61ca734d4388
2017-07-06 21:10:11 +00:00
Abodunrinwa Toki
5b0a5fc160 Merge "Make ActionMode.isUiFocusable a TestApi" 2017-07-06 20:44:58 +00:00
Alex Light
f3aac96db4 Unhide InMemoryDexClassLoader ByteBuffer[] constructor
This constructor lets one give multiple dex files as byte buffers for
the InMemoryDexClassLoader.

Bug: 63390204
Test: Builds
Change-Id: I5b8a7860dbc365c0a51dbaf4540b9fa53c922546
2017-07-06 11:25:18 -07:00
Narayan Kamath
f9419f0f85 Allow splits to declare a classloader type.
Add an attribute android:classLoader which can be set to the name
of the classloader the base or split wishes to use. For now, this can
only be set to "dalvik.system.PathClassLoader" or
"dalvik.system.DelegateLastClassLoader". The current implementation
only allows the classloader to exist in the boot classpath but that
restriction can be loosened in a future change if necessary.

Test: cts-tradefed run cts-dev -m CtsAppSecurityHostTestCases
Bug: 36044779

Change-Id: I5a51f7aa0c8c4c398d2f46129eb06785cc8e3c3f
2017-07-06 11:57:36 +01:00
Tobias Thierer
8f367b2069 Merge "Merge "Merge "Merge "Track update of org.json API" am: c5a65bc152" into stage-aosp-master am: 93cc3d86ad" into oc-dev-plus-aosp am: d01571b951" into oc-dr1-dev-plus-aosp
am: d44c1a7d13

Change-Id: I2caf9a53291b29ad995da5084358c3bbcbb6bff1
2017-07-05 23:44:20 +00:00
Tobias Thierer
94c79b030f Merge "Merge "Merge "Track update of org.json API" am: c5a65bc152" into stage-aosp-master am: 93cc3d86ad" into oc-dev-plus-aosp
am: d01571b951

Change-Id: I50aa3812696208517848869ee646f272290d6275
2017-07-05 23:09:23 +00:00
Siarhei Vishniakou
0a5d805ae1 Merge "Hide VIRTUAL_KEY_RELEASE constant." into oc-dr1-dev am: 20a240fc5d
am: c7b722117c

Change-Id: Icec2d07d2edf93fc9c9e130eeea175e5418cc518
2017-07-05 22:51:57 +00:00
Tobias Thierer
ddffcdb6bd Merge "Track update of org.json API"
am: c5a65bc152

Change-Id: I755b8be63f4a9dbe11d1c14c0d9f3f8cd3e93916
2017-07-05 22:33:10 +00:00
TreeHugger Robot
f8074ab476 Merge "Expose TestApi needed by PermissionTests" 2017-07-05 21:02:44 +00:00
TreeHugger Robot
93c2838ec1 Merge "Create new permission READ_CONTENT_RATING_SYSTEMS" 2017-07-05 19:06:57 +00:00
Julia Reynolds
7ca33079fd Hide some systemapi methods
Test: make
Change-Id: I0234ca06f68f0a25e1923e171cb6ef19d848aecd
Fixes: 62342239
Fixes: 62264035
2017-07-05 09:17:49 -04:00
TreeHugger Robot
4c3c19fbc1 Merge "Added PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS window flag." 2017-07-01 02:06:02 +00:00
Abodunrinwa Toki
ba51f15998 Make ActionMode.isUiFocusable a TestApi
Test: bit CtsViewTestCases:android.view.cts.ActionModeTest
Bug: 62070427
Change-Id: I21b24d2a497bdc5234539bcc662ad707bb7f34dc
2017-07-01 02:10:04 +01:00
Wale Ogunwale
01ad4345f9 Added PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS window flag.
When a window with this flag is visible, then any other window added
by an application process that requires OP_SYSTEM_ALERT_WINDOW
permission or that are of TYPE_TOAST will be hidden.

Bug: 62196835
Test: go/wm-smoke
Test: Added the new flag to the RecentsActivity onCreate, launched FB
chat heads and observed the head head become invisible when Recents is
visible and the chat head become visible when Recents is no longer
visible.

Change-Id: I1a3e3c5b1696a5f5b95eac187acb5a03863b4a0b
2017-06-30 14:27:38 -07:00
Philip P. Moltmann
eb0a0ae7ae Expose TestApi needed by PermissionTests
Test: No code change
Bug: 32898128
Change-Id: Iab5a20e253d34bdd763aef82db5aad15f4ccff31
2017-06-30 13:15:19 -07:00
Siarhei Vishniakou
ff1121a735 Hide VIRTUAL_KEY_RELEASE constant.
The constant will become visible once
the corresponding feature is supported.

Bug: 62433331
Test: make
Change-Id: I310338033dd861e9fd0cc1492a8e34fb53ce0415
2017-06-30 11:02:02 -07:00
Fyodor Kupolov
db0da015de Merge "Support for lookaside configuration params" 2017-06-30 16:47:35 +00:00
Albert Chaulk
c8600632b1 Merge "Add getCurrentImeTouchRegion to the WindowManager API" into oc-dr1-dev am: 4bf79089c4
am: 1bfecb614e

Change-Id: I17be0a9b64ae628fedcfa61dbddb4cbcaaa58b79
2017-06-30 03:34:13 +00:00
Chavi Weingarten
a46b76fd50 Merge "Added Activity flags to show on lock screen." 2017-06-29 22:41:05 +00:00
Nate Fischer
a3bcb76fb6 Merge "WebView: add APIs for setSafeBrowsingWhiteList" 2017-06-29 22:35:18 +00:00
chaviw
59b9885bc8 Added Activity flags to show on lock screen.
Added two new flags to the Activity to turn the screen on and
show on the lock screen. These can be used instead of the Window flags
LayouParams.FLAG_TURN_SCREEN_ON and LayoutParams.FLAG_SHOW_WHEN_LOCKED
to prevent the double onStart/onResume lifecycle events.

The flags can be set as an attr for the Activity in the AndroidManifest
using android:showWhenLocked="true" and android:turnScreenOn="true".
They can also be set through methods in the Activity class using
setShowWhenLocked(true) and setTurnScreen(true).

Fixes: 36850100
Test: Created sample application, tests/ShowWhenLockedApp, that set the
      flags in the manifest and code. Tested multiple scenarios to
      launch the Activity with the flags set and unset.
Test: cts-tradefed run commandAndExit cts-dev --module CtsServicesHostTestCases -t android.server.cts.KeyguardTransitionTests
Test: cts-tradefed run commandAndExit cts-dev --module CtsServicesHostTestCases -t android.server.cts.ActivityManagerActivityVisibilityTests
Test: cts-tradefed run commandAndExit cts-dev --module CtsServicesHostTestCases -t android.server.cts.KeyguardTests

Change-Id: I44f0e313df4531d49c7ac56108b6bf80e41fefc1
2017-06-29 13:33:43 -07:00
Tomasz Wasilczyk
284bd0180a Merge "Add AM/FM check for BandDescriptor." 2017-06-29 18:02:37 +00:00
Albert Chaulk
2ccb0b72e3 Add getCurrentImeTouchRegion to the WindowManager API
This is a followup to ag/2370980/ to expose the API more
externally as a WindowManager API. This allows application
access without needing to reflect on IWindowManager.Stub.

We require this to get the current IME touch region to
display it properly in VR contexts.

Test: Manual
Bug: 62194867

Change-Id: Ibbf336e1e473b65d4c76a1492da187d50cfda424
2017-06-29 13:44:19 -04:00
John Reck
4dbcd23b5a Merge "Add SharedMemory API" 2017-06-29 17:35:17 +00:00
TreeHugger Robot
ee39d54a8d Merge "Initial implementation of the new Save APIs." 2017-06-29 02:43:36 +00:00
John Reck
dea6a02761 Add SharedMemory API
SharedMemory is parcelable and AIDL friendly
and exposes cool things like dropping write permissions
that are useful for shared memory to have.

Also exposes getFileDescriptor() on MemoryFile
since that was necessary to use MemoryFile
with IPC previously and there are a sizeable
number of reflections that access it, so just make
it public.

Test: SharedMemory CTS tests pass

Change-Id: I71a322abf2eb55267d7299a8e41f847339af8b08
2017-06-28 16:49:12 -07:00
Shubang
d3307ffc8a Create new permission READ_CONTENT_RATING_SYSTEMS
Bug: 63016153
Test: make
Change-Id: Id770424f7d502790968c84039ee3624a2fa2d639
2017-06-28 15:31:52 -07:00
Felipe Leme
979013d027 Initial implementation of the new Save APIs.
Test: manual verification with sample app (CTS tests coming later)

Bug: 62534917

Change-Id: I085a9c933bb5e8316d673976e059e13abd7098e5
2017-06-28 15:13:21 -07:00
Tomasz Wasilczyk
2880b9a15b Add AM/FM check for BandDescriptor.
Bug: b/36864090
Test: it builds
Change-Id: I846eb73fb284ebb8137557c0bdf68fab852145d7
2017-06-28 14:31:03 -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