305803 Commits

Author SHA1 Message Date
TreeHugger Robot
39455174d7 Merge "TIF: change the column names to be consistent with other fields" 2017-02-02 22:54:00 +00:00
TreeHugger Robot
45c87d943d Merge "Enabling USB Debugging Connected notification on Android TV" 2017-02-02 21:57:28 +00:00
Adam Lesinski
dc5cd8b323 Merge "AssetManager2: Add other support methods" 2017-02-02 21:48:14 +00:00
TreeHugger Robot
de3f962e8a Merge "Update the drag to dismiss UI to be closer to design" 2017-02-02 21:40:19 +00:00
TreeHugger Robot
4fc4100e2d Merge "Add comment to netstats proto" 2017-02-02 21:21:14 +00:00
Alex Deymo
85adc21488 Merge "Compile native network functionis into libandroid_net." am: b1cb60d920 am: 5292c727b7 am: b92ba328e4
am: ff727728b5

Change-Id: Iab936db453c1c2dc28cdb19bfa9ed6b10471c54d
2017-02-02 21:11:51 +00:00
Jason Monk
d7af66d0c3 Merge "Move recents CommandQueue callbacks to recents" 2017-02-02 21:09:29 +00:00
Alex Deymo
f2f6961b7b Compile native network functionis into libandroid_net. am: f3b7411060 am: af657d14fc am: 74a410ec81
am: 2e61c0eea3

Change-Id: I7a1d3c40bcf76a3e6eabb3eddff159a53af0c5c1
2017-02-02 21:08:08 +00:00
Hugo Benichi
dfc152bd32 Merge "Revert "Merge "Define Network notification proto constants." am: 05550d9ed8 am: 6236f49f0e am: 7b39349792"" into nyc-mr2-dev-plus-aosp
am: c23ff1d477

Change-Id: I9161929f3a7308be4764dbb50e443a46fdc4960c
2017-02-02 21:05:11 +00:00
Hugo Benichi
f0d5ce73fe Revert "Merge "Define Network notification proto constants." am: 05550d9ed8 am: 6236f49f0e am: 7b39349792"
am: 6776f79012  -s ours

Change-Id: I80ce623da40db32faa3bef88ee2612a1a163e777
2017-02-02 21:05:00 +00:00
Abodunrinwa Toki
fafdb7372f Fix TextClassifier.getTextClassificationResult()
Gracefully handles situations where a default app cannot be found
to handle the intent.

1. If we can not find any app to handle the intent,
   do not include an "assist" menu item entry to fire the intent.
   Also, do not linkify the entry.
2. If we do not have a default app to handle the intent,
   show a generic title for apps that will handle the intent
   and do not include an icon.

In the ideal case where we find a default app to include the intent,
show the app's (preferably activity's) title and icon.

Test: Manually tested. There's an AI to write more automated tests.
Bug: 34777322
Bug: 34927631
Change-Id: Ia94efbbdda3da8f181fac9228cd2d3a76cb727d3
2017-02-02 20:35:51 +00:00
Geoffrey Pitsch
580f32d7b0 Merge "SystemUI uses Builder API with NotificationChannel" 2017-02-02 20:25:48 +00:00
TreeHugger Robot
e8ae5566fb Merge "Batterystats commands to simulate screen on/off" 2017-02-02 20:05:45 +00:00
TreeHugger Robot
1feb6cefd1 Merge "AudioService: query a11y manager at init for a11y volume active" 2017-02-02 20:05:20 +00:00
TreeHugger Robot
42ad9aabe3 Merge "Fixing crash when task is already parent of activity." 2017-02-02 20:05:02 +00:00
Erik Kline
e8bc75bfcc Merge "Add ConnectivityManager.networkCapabilitiesForType()" am: c313123afe am: 6f32aa0259 am: 7196e935a8
am: c700509ade

Change-Id: I15fe6fe4c9aec3d244b46516c2992ded33337a9f
2017-02-02 20:03:51 +00:00
Hugo Benichi
b81bc507ff Merge "Define Network notification proto constants." am: 05550d9ed8 am: 6236f49f0e am: 7b39349792
am: 814a59ba82  -s ours

Change-Id: Iafa147a12cfa9ba559458c72ab47553c847cd115
2017-02-02 20:02:40 +00:00
TreeHugger Robot
62e1a05076 Merge "Alert Windows behavioral changes" 2017-02-02 19:47:29 +00:00
Winson Chung
ba7db92d16 Fixing crash when task is already parent of activity.
- When launching an activity into a task, it's parent is already set
  which can cause the reparent call to crash.  Instead, just move the
  activity to the top.

Bug: 34933399
Test: Launch an app that doesn't support multiwindow, and engage split
      screen, or launch a PiP activity and tap to show the menu

Change-Id: Iaa36003e88f4021f2483dedc71802023369d6558
2017-02-02 19:43:54 +00:00
TreeHugger Robot
c21f12d4eb Merge "Add hidden KeyProtection API to specify SID" 2017-02-02 19:39:45 +00:00
TreeHugger Robot
c54e1a6017 Merge "TextClassificationManager: Make certain methods thread-safe" 2017-02-02 19:13:45 +00:00
Jason Monk
764da991de Move recents CommandQueue callbacks to recents
This will make it a more common and less broken place for both
handset and TV.

Fixes: 34813216
Test: make and click on recents button.
Change-Id: I2fd9c3103e2be28a19497719ac5763c064beeed1
2017-02-02 14:13:16 -05:00
Mady Mellor
d4e40fb097 Update the drag to dismiss UI to be closer to design
Rather than a circular target for drag to dismiss, there is text / icon
as well as a gradient. As the PIP approaches the text / icon they grow
in size. If the PIP is released overtop of the text / icon, it is
dismissed.

Test: Using PIP test app, have a PIP, drag it to dismiss target area.
Change-Id: I339ad14e144dfd61f0e990ba4d2559642a47b141
2017-02-02 11:08:26 -08:00
Chad Brubaker
aea3ec67a2 Merge "Allow ephemeral apps to reach any CATEGORY_BROWSABLE" 2017-02-02 19:08:00 +00:00
Makoto Onuki
9e0800d3b7 Add comment to netstats proto
Test: Build only
Change-Id: I29d7dbda0f0a8b393f250a9106bcb696e0c2431a
2017-02-02 10:54:03 -08:00
Alex Deymo
ff727728b5 Merge "Compile native network functionis into libandroid_net." am: b1cb60d920 am: 5292c727b7
am: b92ba328e4

Change-Id: I1ef1f2caebed6e7eab3a68981886a0bdd758c0e9
2017-02-02 18:33:57 +00:00
Alex Deymo
2e61c0eea3 Compile native network functionis into libandroid_net. am: f3b7411060 am: af657d14fc
am: 74a410ec81

Change-Id: I0072d540b707d217b28bc6f1ba0a6947bb812639
2017-02-02 18:32:23 +00:00
Diego Perez
66f66e802e Merge "Update native delegates" 2017-02-02 18:29:38 +00:00
Alex Deymo
b92ba328e4 Merge "Compile native network functionis into libandroid_net." am: b1cb60d920
am: 5292c727b7

Change-Id: I81f4a2ecf25fe324afa78b5dfb9fd4f7d264e1c6
2017-02-02 18:25:48 +00:00
Dmitri Plotnikov
d7ee7d4b34 Enabling USB Debugging Connected notification on Android TV
Bug: 34859109
Test: verified that the notification showed up in LeanbackLauncher
Change-Id: I2d5798e994df74b7d3211ccf7f22a6aff44bd681
2017-02-02 10:24:27 -08:00
Alex Deymo
74a410ec81 Compile native network functionis into libandroid_net. am: f3b7411060
am: af657d14fc

Change-Id: Ic8e457c36a35afd296ae97704e0703dbae781d40
2017-02-02 18:23:21 +00:00
Alex Deymo
5292c727b7 Merge "Compile native network functionis into libandroid_net."
am: b1cb60d920

Change-Id: Ia0cf31b962cd26b9c7d1d4917b3523e7f3fbfa2c
2017-02-02 18:16:45 +00:00
Alex Deymo
af657d14fc Compile native network functionis into libandroid_net.
am: f3b7411060

Change-Id: Ib01eaf11caacb35ba905012f06d0777d237dd2d1
2017-02-02 18:11:40 +00:00
Anthony Chen
b3f0849c3e Merge "Refactor notification to allow for overlay by Android Auto." 2017-02-02 18:09:43 +00:00
TreeHugger Robot
e70ef857fb Merge "Fix leaks in sysui" 2017-02-02 18:08:29 +00:00
TreeHugger Robot
61d7a8a7f5 Merge "port status bar logs to Tron V2" 2017-02-02 18:07:56 +00:00
Hangyu Kuang
48a3cb6984 Merge "media: Add 3gpp output format to MediaMuxer." 2017-02-02 18:07:22 +00:00
Treehugger Robot
b1cb60d920 Merge "Compile native network functionis into libandroid_net." 2017-02-02 17:59:55 +00:00
Rubin Xu
59ced28f0f Add hidden KeyProtection API to specify SID
Allows the caller to specify which SID the given key
should be bound to, overriding the default rule of
binding to the current root/fingerprint SID.

This is a prerequsite for introducing synthetic password
based authentication flow.

Test: cts-tradefed run cts -m CtsKeystoreTestCases
Bug: 33126414
Change-Id: Ide03c0f4fd33ecca7a169ea763c3d4d0b173d1dd
2017-02-02 17:53:32 +00:00
Abodunrinwa Toki
4039454f6f TextClassificationManager: Make certain methods thread-safe
1. getDefaultTextClassifier()
2. getLanguageDetector()

Test: CtsWidgetTestCases passes
Change-Id: Ie0cb866cdefea2839efb38a1113e434a3e8159b0
2017-02-02 17:16:36 +00:00
TreeHugger Robot
ddb80216b9 Merge "Addition separation of adding vs. reparenting activity" 2017-02-02 16:58:57 +00:00
Diego Perez
2a1b23966a Update native delegates
After changes 9ff994d98846, 6e3658a63843 and 18e9f9f37783
Test: Existing layoutlib tests

Change-Id: I8e39f26ccb0a8cb73a724f16734e66cf95c08656
2017-02-02 16:53:18 +00:00
Erik Kline
ee929e69fb Merge "Add test for repeated calls to registerMobileUpstreamRequest()" am: 603eefd5d5 am: 180a3d07a8 am: d85f448274
am: 2ebea21074

Change-Id: I2e0ab82edd8997188c8c16dce6373ccb19657e3d
2017-02-02 16:52:43 +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
Jerome Gaillard
abf19d1aa4 Merge changes Ic8254f0f,I1f285c3b
* changes:
  Ignore justified in layoutlib for the moment
  Update Canvas_Delegate after Change I3edc963a
2017-02-02 16:12:26 +00:00
Geoffrey Pitsch
1dc93bc407 SystemUI uses Builder API with NotificationChannel
Some changes to channels based on UX feedback.

Test: runtest systemui
Change-Id: I1b2f661ba145d6926035f992231dc3c2f8cbf844
2017-02-02 11:12:05 -05:00
TreeHugger Robot
8308526d88 Merge "Framework: Preloaded-classes tuning" 2017-02-02 16:07:43 +00:00
Jason Monk
de850bbcaa Fix leaks in sysui
Add support for testing for PluginManager and TunerService leaks
and add tests for the known leaks and fix them. Also port PluginManager
and TunerService to Dependency to make them easier to handle in
tests.

Test: runtest systemui
Change-Id: I5642539ee24dd72f802905106decd0c87b41b4eb
Fixes: 34846972
2017-02-02 10:58:18 -05:00
Wale Ogunwale
a0cd15e1a0 Addition separation of adding vs. reparenting activity
- Removed method ActivityRecord.setTask which did only half of what
is needed when adding a task and also only did half of what is needed
for reparenting. Previous callers now need to call either
ActivityRecord.reparent() to reparent and activity or
TaskRecord.addActivityAtIndex() to add an activity to a task.
- Fixed some NPE that resulted from the above change.

Test: adb shell am instrument -w -e class
com.google.android.setupwizard.tests.activity.SetupWizardExitActivityTest
com.google.android.setupwizard.tests.activity
Bug: 34179495

Change-Id: Ic69487f51d1bd139825e6a8054a49ce143065a57
2017-02-02 06:48:56 -08:00
Gustav Sennton
f9295bcc24 Merge "Make sure we cannot use packages targeting pre-O as WebView packages." 2017-02-02 14:34:04 +00:00