summaryrefslogtreecommitdiff
path: root/core/java/android/app/RemoteAction.java
Commit message (Collapse)AuthorAgeFilesLines
* Use equals() to check equality of PictureInPictureParams.Garfield Tan2020-12-041-0/+20
| | | | | | | | | | | | Introduce equals() method to PictureInPictureParams and RemoteAction. Also makes a dup of PictureInPictureParams when filling task info to avoid the same instance being updated later which will interfere equality checks. Bug: 174786192 Test: PIP on YouTube looks OK. Change-Id: Ifd8534589d784719dfd5f9b37412ca8779a46983
* Rewrite Icons from the TCS.Abodunrinwa Toki2020-04-281-1/+1
| | | | | | | | | | | | | | | | | Because of the new app visibility constraints introduced in Android R, apps may be unable to load icons from the TextClassifierService (TCS). This is because the TCS returns "Icons" based on resources to the apps. These resources were globally available until this new restriction. In this CL, the TCMS rewrites responses with Icon(typ=RESOURCE) coming from a TCS to responses with Icon(typ=URI). The new icons are backed by a content provider that may be used to retrieve the necessary icons. Bug: 151847511 Test: atest tests/tests/textclassifier/src/android/view/textclassifier/cts Test: atest core/tests/coretests/src/android/view/textclassifier Test: Select a phone number text, check that the "Call" icon shows Change-Id: Ib63e54462508029cdf0e56c2c6a82ff4e81b02a8
* All Parcelable CREATOR fields are @NonNull.Jeff Sharkey2019-02-281-1/+1
| | | | | | | | | If they were null, then the Parcelable would fail to work. Bug: 126726802 Test: manual Change-Id: I7929ffa2f20e5de1c8e68e8263cca99496e9d014 Exempt-From-Owner-Approval: Trivial API annotations
* Fixing incomplete RemoteAction cloneJan Althaus2018-04-051-0/+1
| | | | | | Bug: 77631078 Test: atest CtsAndroidAppTestCases:android.app.cts.RemoteActionTest Change-Id: Ifd6617baf67993141e2ee85def8fb84c88cbe3e7
* Change TextClassification to use RemoteActionsJan Althaus2018-03-281-5/+19
| | | | | | | | | | | | | | | | | | | | | | | | | Behavioural changes: - Every action now as an icon, and instead hints via RemoteAction whether the icon should be shown or not. - Icons are now taken from the app default, not the activity. (That way, we can construct a lightweight resource backed Icon) - Legacy intents are no longer parceled for security reasons. (TextClassificatio wasn't parcelable in O) - TextClassifications built with the new API will always return null for getIntent, but provide a getOnClickListener. - Accessibility descriptions are now provided for action mode items. Testing changes: - Removed URI checks from TCM test because PendingIntent hides this info. Bug: 73950205 Test: atest FrameworksCoreTests:TextClassificationManagerTest Test: atest FrameworksCoreTests:TextClassificationTest Test: atest CtsViewTestCases:TextClassificationManagerTest Test: atest CtsViewTestCases:TextClassifierValueObjectsTest Test: atest CtsWidgetTestCases:TextViewTest Test: atest CtsWidgetTestCases:EditTextTest Change-Id: I6706d2c342a8bbb9de0146a48c8b8aac9d9c7d83
* Adding enabled state for remote actions.Winson Chung2017-03-161-1/+22
| | | | | | | | | - Actions can specify whether they are enabled (default) or disabled, and SystemUI will reflect the state in the PiP actions. Bug: 36363677 Test: Expand pip with dismissed action Change-Id: I36994868f82d8ba0fc87947a722d9f20b39425a1
* Modifying RemoteAction callback to PendingIntent.Winson Chung2017-02-071-42/+11
| | | | | | Test: android.server.cts.ActivityManagerPinnedStackTests Bug: 34864798 Change-Id: I89a5184c2f067722cb1f5f962bbb8cbb91529092
* Adding support for PIP actions.Winson Chung2016-12-141-0/+159
- Introduced generic RemoteAction to represents an action that can be made across processes with an icon and text description based on a Notification action. - Modified PinnedStackController to ensure that it notifies the listeners from the source of truth, this ensures that SysUI is in the right state if killed and re-registers itself. Test: Enable menu & minimize in SystemUI tuner. Test: android.server.cts.ActivityManagerPinnedStackTests Test: #testNumPipActions Change-Id: I5b5d0cf9de3f06b5687337d59cfb91e17355bdb1 Signed-off-by: Winson Chung <winsonc@google.com>