summaryrefslogtreecommitdiff
path: root/java
AgeCommit message (Collapse)Author
2024-07-15Update ImageLoader interface to receive preview sizes along with the URI Andrey Epin
The UI calculates and provides view sizes but they are not used by the existing ImageLoader implementations thus no functional change is expected. Bug: 348665058 Test: atest IntentResolver-tests-unit Test: atest IntentResolver-tests-activity Test: inject debug logging and verify preview values being requested for app preview types Flag: EXEMPT refactor Change-Id: I0e282f773c424b6fe81587a71e1b8630452ac63c
2024-07-15Merge "Limit max item aspect ratio" into main Treehugger Robot
2024-07-15Merge "Delete unused class ChooserRequestParameters" into main Treehugger Robot
2024-07-15Limit max item aspect ratio Andrey Yepin
Limit max item aspect ratio to make sure it is always visible on the screen (incliding paddings) Fix: 351094699 Test: manual test Flag: EXEMPT bugfix Change-Id: I8748bb7ee1b9cde03da1f6d15075d04e806197db
2024-07-12Request preview size, WIDTH and HEIGHT columns for additional content Andrey Yepin
Fix: 352818692 Test: atest IntentResolver-tests-unit Flag: EXEMPT bugfix Change-Id: I0fb0c7916a428eca064bc08def049ae4bc59818a
2024-07-10Remove fix_partial_image_edit_transition Andrey Yepin
Launched. Bug: 339583191 Test: presubmits Flag: EXEMPT removing com.android.intentresolver.fix_partial_image_edit_transition Change-Id: I8e826f05690dcfdf4bed1cfcdf036218fe3b708e
2024-07-10Remove bespoke_label_view Andrey Yepin
Launched. Bug: 302188527 Test: presubmits Flag: EXEMPT removing com.android.intentresolver.bespoke_label_view Change-Id: Ia3f3b80b6e854f4ecd569936e144815e5ab592d7
2024-07-10Remove fix_target_list_footer Andrey Yepin
Launched. Bug: 324011248 Test: presubmits Flag: EXEMPT removing com.android.intentresolver.fix_target_list_footer Change-Id: Id18ee5168b9adbb6b8c383312dbaef0603fc31a2
2024-07-10Delete unused class ChooserRequestParameters Andrey Epin
Bug: N/A Test: presubmits Flag: EXEMPT refactor Change-Id: I84573929396492bfe10a2f835783c9edd58f8c5c
2024-07-10Merge "Remove enable_sharesheet_metadata_extra" into main Matt Casey
2024-07-09Add default implementation of the loadImage method to ImageLoader Andrey Epin
Bug: 348665058 Test: atest IntentResolver-tests-unit Test: atest IntentResolver-tests-activity Flag: EXEMPT refactor Change-Id: Ie72638cf841f7402aec0df93907a81cb5825d076
2024-07-09Merge "Delete PreviewViewModel" into main Treehugger Robot
2024-07-09Delete PreviewViewModel Andrey Epin
Merge PreviewViewModel functionality into ChooserViewModel. Make ImageLoader injectable; remove obsolete code. Bug: 348665058 Test: atest IntentResolver-tests-activity Test: atest IntentResolver-tests-unit Flag: EXEMPT refactor Change-Id: Icb18362763c19e97ac39cfa8112c9d0357f24e1e
2024-07-08Import translations. DO NOT MERGE ANYWHERE Bill Yi
Auto-generated-cl: translation import Change-Id: If36f929d8388ca1ef961ae4aa44d2d625e801665
2024-06-26Merge "Import translations. DO NOT MERGE ANYWHERE" into main Bill Yi
2024-06-26Remove enable_sharesheet_metadata_extra Matt Casey
Test: atest ChooserRequestTest Test: atest SelectionChangeCallbackImplTest Bug: 318942069 Flag: android.service.chooser.enable_sharesheet_metadata_extra Change-Id: If7efc671a836723041905cb13467b71ac2cc39dd
2024-06-26Remove chooser_album_text flag Matt Casey
It has launched. Bug: 323380224 Test: Test album text functionality. Flag:  android.service.chooser.chooser_album_text Change-Id: I5c03dce5b7d362f008f4ab834fb6631cecdee386
2024-06-25Import translations. DO NOT MERGE ANYWHERE Bill Yi
Auto-generated-cl: translation import Change-Id: I9d6692a8d6a2c08b8f44b51e48ae19ce917c37b1
2024-06-17Reclalculate drawer offset even when the targets list has not changed Andrey Epin
Shareousel has a variable-sized preview that affects the overall drawer offset. Therefore, we cannot early return from the offset calcualtion based solely on the condition that the targets list has not changed. Empirically, this introduces a minor overhead of the offset recalculation when the drawor is snapped to/from the top. Fix: 347316548 Test: manual testing with injected debug logging Flag: com.android.intentresolver.fix_missing_drawer_offset_calculation Change-Id: I69ec7a5e05fad0d6607e3614208b30910a3a17ba
2024-06-14Merge "Creates 16 dp offset for first and last items." into main Treehugger Robot
2024-06-14Merge "Prefetch shareousel items" into main Treehugger Robot
2024-06-14Creates 16 dp offset for first and last items. Govinda Wasserman
This lines up item with text above and ensures the user can tell if there are items to the left of it. Test: manual testing BUG: 341925364 Flag: android.service.chooser.chooser_payload_toggling Change-Id: I62d2b67843b373a894d88df5e2c7fc4ea9d510e0
2024-06-14Prefetch shareousel items Matt Casey
Based upon the DefaultLazyListPrefetchStrategy impl, but prefetching more things. Bug: 344961968 Test: Manual test with ShareTest and slow load times Flag: android.service.chooser.chooser_payload_toggling Change-Id: I28ef69a360ce6e02f9ff95e4aab98365b380de0d
2024-06-13Import translations. DO NOT MERGE ANYWHERE Bill Yi
Auto-generated-cl: translation import Change-Id: Ife0812cba3111da9c66653bbcd55663f3cdd4c26
2024-06-13Merge "Shareousel: Maintain cursor order for shated items" into main Treehugger Robot
2024-06-12Merge "Import translations. DO NOT MERGE ANYWHERE" into main Bill Yi
2024-06-11Merge "Restore share restriction string customizatiom" into main Treehugger Robot
2024-06-11Merge "Do not auto-dismiss on package change with no targets" into main Maria Yang
2024-06-11Restore share restriction string customizatiom Mark Renouf
Use DevicePolicyResources for these messages. Bug: 344992620 Test: GTS-Interactive Flag: EXEMPT bugfix Change-Id: Id5f4b6fb362efca616dab9171f027d90f846dc7a
2024-06-11Import translations. DO NOT MERGE ANYWHERE Bill Yi
Auto-generated-cl: translation import Change-Id: I2cf0ffdc55bd2f04c4e66103b72c8bd5a8ce272c
2024-06-11Do not auto-dismiss on package change with no targets Mark Renouf
This behavior is obsolete and confusing, removing this path. Package changes will still reload the resultsm, but no dismiss will happen when there are no results. Bug: 334179669 Flag: EXEMPT bugfix Test: Manually by sending an intent with no matches and installing a package while the Share UI is open. Change-Id: Ic654794baf14d039a6155e37b9d3ef0b61b10f71
2024-06-11Increate profile button clickable area Andrey Epin
Increase profile buttons clickable area while preserving their appearance. Fix: 333992288 Test: use layout inspection tools to verify the new view sizes; visual verification Change-Id: I73c0b076503763482b4552a07668d13d113c7f43
2024-06-07Shareousel: Maintain cursor order for shated items Andrey Epin
Add a position property to PreviewModel class to track relative order of items. For each item, the initial value is artificial and derived from the order of the initially shared items and is updated upon reading the additional items cursor. Upon sharing, If the selection has not change, the items will be shared in their original order; If the selection has changed, the order of the items will be affected by the observed items order in the cursor. Fix: 329683774 Test: manual testing Test: atest IntentResolver-tests-unit Test: atest IntentResolver-tests-activity Flag: android.service.chooser.chooser_payload_toggling Change-Id: Ie552887702cde75cb1a05ed3ec5415f4f4a5c8dc
2024-06-06Merge "Move some TextView textSize to dimens.xml" into main Alan Chen
2024-06-06Fade in shareousel items as they load Matt Casey
Switched to a StateFlow with the intiial cached value when it exists so that we don't fade in when we immediately have the bitmap. Bug: 344961968 Test: atest ShareoulselViewModelTest Test: Manual test with ShareTest and slow fade times. Flag: android.service.chooser.chooser_payload_toggling Change-Id: I14c9c82343e7e8a9330695121eebe17c65f1dcb9
2024-06-05Move some TextView textSize to dimens.xml Alan Chen
Move textSizes to be defined in dimens.xml so that other AndroidRROs may overlay these values without modifying IntentResolver source code. Bug: 325636691 Test: manual, no UI change as expected Change-Id: Iad2b25fe90c3ba652a63265839d8be191f8a3ce9
2024-06-05Hide check and border UI until image load attempt completes Matt Casey
Represent the bitmap load state with a nullable bitmap along with a bool indicating whether the load attempt is complete. Bug: 344961968 Test: atest ShareouselViewModelTest Test: Manual testing with ShareTest and high latency / load failure Flag: android.service.chooser.chooser_payload_toggling Change-Id: I4fd049977d9a0c837ad52fc0a3b5931d481072c3
2024-06-05Merge "Add placeholder color background" into main Matt Casey
2024-06-04Add placeholder color background Matt Casey
Fix: 344961968 Test: Manual test with sharetest Flag: android.service.chooser.chooser_payload_toggling Change-Id: Ice94c67754b95b9ac5bb71230bbbba52be72eb3f
2024-06-03Import translations. DO NOT MERGE ANYWHERE Bill Yi
Auto-generated-cl: translation import Change-Id: Iaf02745b2bdaa4b0da0df80bd9a17422d38ca476
2024-06-03Merge "Cache shortcut icons" into main Andrey Yepin
2024-05-31Merge "Fix shared element animation for partially visible image" into main Andrey Yepin
2024-05-30Cache shortcut icons Andrey Epin
Cache icons for shortcuts loaded from the system. Bug: 325465291 Test: atest IntentResolver-tests-unit Test: atest IntentResolver-tests-activity Test: manual payload selection change testing Flag: android.service.chooser.chooser_payload_toggling Change-Id: I19bad04c88e636b17d48876069de47363e3a24ae
2024-05-30Merge changes I6b81b875,Ie13464cb into main Treehugger Robot
* changes: Add logcat to all finish() call sites Suppress ShareResult for launch of Editor component
2024-05-30Merge "Disable sharing when device is under active FRP lock" into main Mark Renouf
2024-05-30Add logcat to all finish() call sites Mark Renouf
For future troubleshooting aid and ongoing investigation of b/334179669 (sharesheet dismisses unexpectedly during GTS-I). The theory is that Sharesheet is incorrectly invoking finish at some point after switching tabs within the test, but there is no way to identify the code path taken to calling finish(). Bug: 334179669 Flag: EXEMPT bugfix Test: compile Change-Id: I6b81b87506ce1ecff795772f9d1283ce533552a3
2024-05-30Suppress ShareResult for launch of Editor component Mark Renouf
An edit action is reported explicitly as a ShareResult with type=EDIT. This change suppresses dispatch of a ShareResult with type 'COMPONENT_SELECTED' type when launching the editor component. Test: CTS-V Bug: NONE Flag: EXEMPT bugfix Change-Id: Ie13464cba88191dc26d8e5d9758541fd6c75017c
2024-05-30Merge "Cursor continuously fetches new pages as the user scrolls" into main Govinda Wasserman
2024-05-29Disable sharing when device is under active FRP lock Mark Renouf
Prevent FRP bypass scenarios involving share intents This CL includes a cleanup of our Settings abstraction to cover Global, Secure and System, and updates existing tests. Bug: 327645387 Test: atest IntentResolver-tests-unit Test: atest ChooserActivityTest#chooserDisabledWhileDeviceFrpLocked Flag: EXEMPT refactor Change-Id: I928b6ea68aa8d6d710dc51eb70acd2cc2ec682c3
2024-05-29Fix shared element animation for partially visible image Andrey Epin
When launching an image editor, do not run the shared element transition animation for a paritally visible image. Fix: 339583191 Test: atest IntentResolver-tests-unit Test: atest IntentResolver-tests-activity Test: manual testing Flag: com.android.intentresolver.fix_partial_image_edit_transition Change-Id: Idbcf3712d4d13966e656387b803d56486fa8e1a2