2879 Commits

Author SHA1 Message Date
TreeHugger Robot
1dd026d981 Merge "TIF: add BaseProgramColumns in TvContract" 2017-02-08 09:51:52 +00:00
TreeHugger Robot
61294f4c8b Merge "Removed value from AutoFillManager.virtualFocusChanged()." 2017-02-08 09:37:22 +00:00
TreeHugger Robot
084f004ad4 Merge "BatteryManager: Add battery status to getProperty" 2017-02-08 09:11:15 +00:00
Felipe Leme
7f60d35d94 Removed value from AutoFillManager.virtualFocusChanged().
BUG: 31001899

Test: manual verification
Test: CtsAutoFillServiceTestCases passes

Change-Id: I71c9f9b4b02b210121a1d15860c3c7172d26a62d
2017-02-07 17:23:56 -08:00
TreeHugger Robot
95e76d7e3d Merge "Add android.permission.RESTRICTED_VR_ACCESS for privileged VR APIs." 2017-02-07 22:10:42 +00:00
Jin Qian
edf0a3715d BatteryManager: Add battery status to getProperty
Bug: 34198239
Change-Id: I65cef6864b1074445342e18f49c7cecd0706b938
2017-02-07 21:41:39 +00:00
Winson Chung
cd161864a3 Merge changes I3ef361bd,I89a5184c
* changes:
  Refactor PiP logic in preparation for expanded state.
  Modifying RemoteAction callback to PendingIntent.
2017-02-07 21:18:15 +00:00
Phil Weaver
1e2758256a Merge "Provide text locations to accessibility services." 2017-02-07 19:14:09 +00:00
Felipe Leme
fb0f360222 Merge "Refined session management so Save can be automatically called." 2017-02-07 17:50:29 +00:00
Winson Chung
9c2a686757 Modifying RemoteAction callback to PendingIntent.
Test: android.server.cts.ActivityManagerPinnedStackTests
Bug: 34864798
Change-Id: I89a5184c2f067722cb1f5f962bbb8cbb91529092
2017-02-07 08:26:24 -08:00
Esteban Talavera
84e706fb9b Merge "Unhide getLockTaskPackages" 2017-02-07 15:04:48 +00:00
Esteban Talavera
bfb666da53 Unhide getLockTaskPackages
getLockTaskPackages is currently hidden, and can only be
called by a device or profile owner, which doesn't make
much sense. Unhidding it to be consistent with the rest
of the DevicePolicyManager APIs that have a getter for
each setter.

Bug: 34614754
Test: cts-tradefed run cts-dev --module DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerTest#testLockTask_affiliatedSecondaryUser
Test: cts-tradefed run cts-dev --module DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerTest#testLockTask_unaffiliatedUser
Test: Test:  cts-tradefed run cts-dev --module DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerTest#testLockTask_deviceOwnerUser
Change-Id: I6e03c2f47c0f9e7a635e798a1bf7f131a8e37c65
2017-02-07 12:01:20 +00:00
Felipe Leme
bab851c7c9 Refined session management so Save can be automatically called.
This is yet another big refactoring:

- AutoFillManager keeps track of its current AutoFillSession.
- Views call AFM.startSession(View) when they can trigger autofill.
  (virtual views can call it as well). At this point, the manager
  sets an AutoFillSession, gets the activity token, and passes it to
  the service.
- Subsequent calls to AFM.start() will be ignored since the session
  is set.
- When the Activity is gone, it calls AFM.finishSession().
- Simlilarly, virtual views could call it as well.
- Added getAutoFillValue() to View.
- Removed AFM.updateAutoFillInput(childId): virtual views should now
  call startSession(childId) to start a session, and use the
  VirtualViewListener callbacks for updates.
- Change AutoFillValue to use String (which is immutable) instead of
  CharSequence for text values.
- Check if view is enabled before auto-filling.
- Removed 'cmd autofill fill' since it would require the appCallback
- Automatically dismiss the snack bar after 30s
- Moved the "don't change autofill value when autofilling" Inception
  logic into the service side.
- Etc...

BUG: 34819567
BUG: 33269702
BUG: 31001899

Test: manual verification
Test: CtsAutoFillServiceTestCases passes

Change-Id: I5fad928d4d666701302049d142026a1efa7291cd
2017-02-06 18:22:03 -08:00
Dongwon Kang
c6eb54ce43 TIF: add BaseProgramColumns in TvContract
Programs and RecordedPrograms have a lot in common. This change
introduces BaseProgramColumns which removes the duplicates.
This will be also helpful for the further clean-up.

Test: build & passes CtsTvTestCases without modification
Bug: 34853064
Change-Id: I4ad352a9a904e7fef57c56acec5583df92b4226c
2017-02-06 16:59:29 -08:00
Casey Burkhardt
edb54686c2 Merge "Initial implementation of Nav Bar Accessibility Button" 2017-02-07 00:14:49 +00:00
Eugene Susla
444eb97c0c Merge "CompanionDeviceManager" 2017-02-06 22:19:54 +00:00
TreeHugger Robot
fbffd434df Merge "Adding text input mode to TimePicker." 2017-02-06 21:35:26 +00:00
Phil Weaver
c2e28932d2 Provide text locations to accessibility services.
Bug: 30170631
Test: New CTS tests on linked CL.
Change-Id: I723e3777189c8df71c59dada00abdf339ebc983d
2017-02-06 12:57:17 -08:00
Casey Burkhardt
048c2bc19a Initial implementation of Nav Bar Accessibility Button
This allows an AccessibilityService to set a flag in its
AccessibilityServiceInfo that triggers the navigation bar to show an
Accessibility Button and observe callbacks when the button is clicked
or there are changes in the visibility of the navigation bar.

Test: Manual (Created a sample AccessibilityService) + CTS
Bug:29231271
Change-Id: I03d653d85bc37df28ed71d8bba94b7c75fe56e43
2017-02-06 12:56:08 -08:00
Eugene Susla
6ed45d8cd3 CompanionDeviceManager
This introduces an API for apps that support companion devices to provide a
more streamlined flow for pairing and setting up the device

Bug: 30932767
Test: Using a toy app, invoke the newly introduced API (CompanionDeviceManager),
 and go through the flow. Ensure filtering works, and device is returned to
 the calling app. Ensure the calling app can pair to the selected device.
Change-Id: I0aeb653afd65e4adead13ea9c7248ec20971b04a
2017-02-06 12:50:55 -08:00
Aurimas Liutikas
ab14d825c3 Adding text input mode to TimePicker.
Test: Tests will have a follow up CL.
Bug:30044800

Change-Id: I71a0fba97026da76251768016edf1b159617abb9
2017-02-06 11:29:38 -08:00
Jean-Michel Trivi
49e57a2d9f Merge "API for app to know what to set in Activity.setVolumeControlStream()" 2017-02-06 18:54:35 +00:00
TreeHugger Robot
ad2409a26c Merge "Add Vulkan compute level system feature" 2017-02-06 18:47:38 +00:00
TreeHugger Robot
0e51ca472e Merge "MediaSession: Add methods for queue managements" 2017-02-06 17:57:42 +00:00
TreeHugger Robot
40eb0ba427 Merge "Revert "Implicitly cast views obtained via View.findView methods"" 2017-02-06 17:37:49 +00:00
Jesse Hall
1cd7e93195 Add Vulkan compute level system feature
The names of specific Vulkan API features can't be documented yet,
because they won't be ratified by Khronos before the documentation
becomes public in a developer preview.

Bug: 34745152
Test: android.graphics.cts.VulkanFeaturesTest
Change-Id: I9af673bcb5b0c74bde72ab7a579573894170a55d
2017-02-06 08:57:42 -08:00
TreeHugger Robot
3d6f51d18b Merge "Additional badging APIs." 2017-02-06 16:49:35 +00:00
Narayan Kamath
11bbd9e27c Merge "MethodHandles: Expose additional API." am: 869141fef7 am: a93d04a765 am: f29140955f
am: a866751b9f

Change-Id: I95d0ac752a02a7213b5e284e8a51180167639e0b
2017-02-06 14:29:43 +00:00
Narayan Kamath
f29140955f Merge "MethodHandles: Expose additional API." am: 869141fef7
am: a93d04a765

Change-Id: I7eef5b76fadc6303ae37b95fb855b16d2411bdb9
2017-02-06 14:21:07 +00:00
Narayan Kamath
869141fef7 Merge "MethodHandles: Expose additional API." 2017-02-06 14:09:46 +00:00
Julia Reynolds
13d898c523 Additional badging APIs.
- shortcut id
- icon
- updated documentation for number

Test: cts
Change-Id: I0424b8879e79b3da70cc378c0ca96e14e328ea34
2017-02-06 08:53:50 -05:00
Orion Hodson
6c149326d8 Merge "Add bytecodes for invoke-polymorphic" am: ef59955f58 am: dcaa9fd642 am: 4fc15223c2
am: 633d8c12db

Change-Id: If1f2b3280672a80a28ba78407d05b866641278ff
2017-02-06 10:50:01 +00:00
Orion Hodson
4fc15223c2 Merge "Add bytecodes for invoke-polymorphic" am: ef59955f58
am: dcaa9fd642

Change-Id: I4dba3f073900fa47cb1c4fa8ec36fb8f547fd982
2017-02-06 10:37:24 +00:00
Orion Hodson
ef59955f58 Merge "Add bytecodes for invoke-polymorphic" 2017-02-06 10:21:55 +00:00
Ben Weiss
995f4b5721 Merge "Extract and unhide TransitionListenerAdapter" 2017-02-06 10:16:50 +00:00
Sungsoo
99c1f9f453 MediaSession: Add methods for queue managements
Bug: 30203831
Test: Passed MediaControllerTest
Change-Id: Ibc33572d21bd83d47660be8f41173b9cea206015
2017-02-06 17:38:13 +09:00
Svet Ganov
0f4928f1f7 Refactoring of auto fill - lifecycle, auth, improvements
1. Move management of the remote fill service in a dedicated
   class that abstracts away the async and ephemeral nature
   of the binding.

2. Update auth to move fingerprint out of the platform and
   allow response and dataset auth.

3. Cleaned up the fill and save callback classes.

4. The UI is now shared among all sessions and cleaned up.

5. Reshuffled the remote callbacks to have cleaner separation.

6. Cleaned up and tightened the reponse and dataset classes.

7. Added API to support communicationn with intent based auth.

Test: CTS + manually

bug:31001899

Change-Id: Idc924a01d1aea82807e0397ff7293d2b8470d4d6
2017-02-06 04:02:35 +00:00
Jean-Michel Trivi
a690473348 API for app to know what to set in Activity.setVolumeControlStream()
Stream types are deprecated to describe an audio playback use case.
But they are used for volume control. This API helps the developer
  go from an AudioAttributes instance used for playback, to a
  stream type used to describe which volume stream type should be
  used when the user presses on the volume keys.

Test: see AudioAttributes cts test
Bug 21267880

Change-Id: I2b9da5b282e8ed2342c61c14a7f59b874d0ce979
2017-02-04 16:35:25 -08:00
TreeHugger Robot
de9c63b8ae Merge "Update Account Discovery API." 2017-02-04 01:18:21 +00:00
Dianne Hackborn
340417356d Implement issue : Enable Instrumentation tests for multi-process apps
New android:targetProcess attribute on <instrumentation> allows you to
specify the processes the instrumentation will run in.

This reworks how instrumentation is run in the activity manager to better
formalize its state and semantics, allowing us to keep track of it across
multiple processes.  This also clearly defines what happens when multiple
instrumentations are running at the same time, which is useful for writing
CTS tests that test the instrumentation APIs themselves.

Adds a couple new APIs to Instrumentation that helps with the new
situation where instrumentation can run concurrently in multiple processes.

Test: new CTS tests added (textXxxProcessInstrumentation in
ActivityManagerTest.java in cts/tests/app/src)

Change-Id: I2811e6c75bc98d4856045b2f0a45fb24af5d366f
2017-02-03 16:07:54 -08:00
Alan Viverette
177f37367e Revert "Implicitly cast views obtained via View.findView methods"
This reverts commit 06c2fffdaa81544522de751846754f781a9970a9.

Reason for revert: Java 8 doesn't support this magic.

Change-Id: Iaa41f4e4d0072b9a97cff9cd3788403d4ab79d13
2017-02-03 17:08:47 -05:00
Peter Qiu
90dd7b29e3 Merge changes from topic 'Passpoint API rename'
* changes:
  hotspot2: expose Passpoint APIs as public
  hotspot2: fix class/function/variable names to comply with API guideline
  hotspot2: rename classes to comply with API guideline
2017-02-03 21:02:39 +00:00
TreeHugger Robot
39455174d7 Merge "TIF: change the column names to be consistent with other fields" 2017-02-02 22:54:00 +00:00
Dmitry Dementyev
e366f82cef Update Account Discovery API.
Use package name instead of uid.
Check calling package name in getAccounts methods.

Bug: 34841115, 34841115
Test: cts tests, manual tests.
Change-Id: I8a9e6aea5e2b6677be4bc414836b842239c5b6ac
2017-02-02 12:41:40 -08:00
TreeHugger Robot
62e1a05076 Merge "Alert Windows behavioral changes" 2017-02-02 19:47:29 +00:00
Peter Qiu
d46383ee0b hotspot2: expose Passpoint APIs as public
Bug: 34862444
Test: frameworks/base/wifi/tests/runtests.sh
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh

Change-Id: I8bf5c715b9088c673e59a73a78e18f6e6b64d1d1
2017-02-02 11:45:13 -08:00
Peter Qiu
eeeb10c645 Merge "wifi: WifiConfiguration: add isHomeProviderNetwork field" am: e724f82b3d
am: 281fae21f8

Change-Id: I1baeb7afdff6fbc399ab16ef7aa266506ef7aacb
2017-02-02 19:42:51 +00:00
Hangyu Kuang
48a3cb6984 Merge "media: Add 3gpp output format to MediaMuxer." 2017-02-02 18:07:22 +00:00
Wale Ogunwale
5cd907d3d6 Alert Windows behavioral changes
- Introduced TYPE_APPLICATION_OVERLAY window type. Can be used by apps
to display windows on top of other app windows, but below critical
system windows.
- Deprecate alert window types TYPE_PHONE, TYPE_SYSTEM_ALERT,
TYPE_SYSTEM_OVERLAY, TYPE_PRIORITY_PHONE, and TYPE_SYSTEM_ERROR.
Apps should now use TYPE_APP_OVERLAY for this.
- Apps targetting O or greater are not allowed to add the old alert
window types.
Apps targetting less than O can still add the old types.
Apps with permission INTERNAL_SYSTEM_WINDOW (system signature apps) can
still add the old types.
- Z-order old alert windows types below TYPE_APPLICATION_OVERLAY if
they are added by an app without the INTERNAL_SYSTEM_WINDOW permission.

Test: android.server.cts.AlertWindowsTests
Bug: 33256752
Change-Id: I12170955a7a333151d3387c169b51c53c32164fc
2017-02-02 08:20:49 -08:00
Narayan Kamath
ff5659fbc3 Revert "Call ActivityCallbacks after corresponding activity methods"
This reverts commit 660cf30e2100d8ed40198c95f93b61e5d1cdb10c.

bug: 34415265
bug: 34914977
Test: chrome launches

Change-Id: I170365fd47313bafb0d722e6d55ee119336137c4
2017-02-02 13:55:31 +00:00