| Age | Commit message (Collapse) | Author |
|
Bug: 302691505
Flag: ACONFIG android.service.chooser.chooser_payload_toggling DEVELOPMENT
Test: N/A - code isn't live
Change-Id: I52709bc0740792e1a63cc5a2519559df67b746f7
|
|
* changes:
Add PayloadToggleInteractor implementation
Shareousel selection tracker component
|
|
Bug: 302691505
Test: IntentResolver-tests-unit
Change-Id: I0d568a6c30781e81a65b33e8e8ae46e3def23bb9
|
|
A building block for the payload toggling functionality. A component to
track items selection and their relative order. The order is specified
by the set of the initially selected items and can be overriden by the
order on items in the cursor (in case the cursor and the set of initilly
selected items is not in sync, which is not expected).
Bug: 302691505
Test: IntentResolver-tests-unit
Change-Id: I092d9b678c7fbcdc8303e04de0cacbb9d125fa5f
|
|
This change is guarded by
android.service.chooser.Flags.FLAG_ENABLE_SHARESHEET_METADATA_EXTRA.
Test: atest com.android.intentresover.v2.ui.viewmodel \
com.android.intentresolver.contentpreview
BUG: 318942069
Change-Id: I7530338ce4e8ce1ca4d1b9f6498c27881d31e6a7
|
|
|
|
|
|
A building block for payload toggling functinality. A component that
selectin change callback invocation.
Bug: 302691505
Test: IntentResolver-tests-unit
Change-Id: I02d99dedb6166568ecae1e52973df90598601c9d
|
|
|
|
|
|
A building block for the payload toggling functinality. Modifies target
intent based on the set of selected items.
Bug: 302691505
Test: IntentResolver-tests-unit
Change-Id: If3b165254fef70cf58718e20d28e874554a9818f
|
|
Test: atest TextContentPreviewUiTest HeadlineGeneratorImplTest ChooserRequestParametersTest ChooserRequestTest
Test: Manual testing with ShareTest
Test: Manual testing with CTS Verifier
Flag: intentresolver/android.service.chooser.chooser_album_text
Bug: 323380224
Change-Id: I319cb2a402554ee658b91f1139051136742527e5
|
|
Bug: 302691505
Flag: ACONFIG android.service.chooser.chooser_payload_toggling DEVELOPMENT
Test: N/A - code isn't live
Change-Id: I98bb1fec01e20a5dd61ba8c641f4f7a58639035e
|
|
A building block for the payload toggling functinality -- a
bi-directional cursor reaer that starts reading URIs from the cursor
starting at a specified position ignoring all items thad does not match
a given predicate.
Bug: 302691505
Test: IntentResolver-tests-unit
Change-Id: I83d40435f4b73c73f6d8b49080645a008d34727b
|
|
Bug: 302691505
Test: atest IntentResolver-tests-unit
Change-Id: I8f7122649f07a56a67df3db513fe73f5870e3eb6
|
|
|
|
|
|
Domain is mostly stubbed, coming in later CLs.
Bug: 302691505
Flag: ACONFIG android.service.chooser.chooser_payload_toggling DEVELOPMENT
Test: N/A - code isn't live
Change-Id: Id9041f1e842007aef64653e8f96357d90bb7a657
|
|
Bug: 302691505
Flag: ACONFIG android.service.chooser.chooser_payload_toggling DEVELOPMENT
Test: N/A - code isn't live
Change-Id: Ibf197591b238a286b12290ccc33d69ab3efd56d8
|
|
Auto-generated-cl: translation import
Change-Id: If8b6015693c22fd851f421dc1722e6dbc2d02a62
|
|
Bug: n/a
Test: n/a
Change-Id: I4763676802bf59a9582d26e467953dcc501dd8d6
|
|
The wrong 'R' class was referenced.
Use of com.android.internal.R to fetch resources from
the application will result in undefined behavior, crashes
or just random strings. This is failing several activity
tests due to assertions on text that is expected to appear.
Test: atest IntentResolver-tests-activity
Bug: n/a
Change-Id: I3289b46d71469795a7e03416f29cbf8ad3868c2f
|
|
|
|
When the availability has updated, the updated user was
appended, but the prvious value was never removed, causing
the list to continue growing.
Test: atest IntentResolver-tests-unit
Test: onHandleAvailabilityChange_userStateMaintained
Bug: 324073704
Change-Id: I3c51ea9e1a2cf0de9c064b08e7c9f21c4c0f7af1
|
|
Test: n/a - purely mechanical refactor
Change-Id: I00995885e0845b8bfff92b113feb80f29867b9a4
|
|
|
|
|
|
This allows the domain layer to modify the availability of a profile.
Test: atest IntentResolver-tests-unit:UserInteractorTest
Bug: 309960444
Change-Id: I70b5eac3e0d58a7b16c09b3814ad71719d3937dd
|
|
This formalizes the inputs to ResolverActivity, replacing
the equivalent inline code. Fields that were temporarily
routed through 'ActivityLogic' are now removed.
Bug: 300157408
Test: atest IntentResolver-tests-activity
Test: atest IntentResolver-tests-unit:ResolveRequestTest
Change-Id: I79d9fa21b91d0ce9b008af12ba3bffbd60e91a38
|
|
|
|
|
|
This consolidates resources for tabbed profile UI into a form
which can be accessed generically, via profile type, instead of
specific properties.
Bug: 309960444
Test: manual
Change-Id: If96d1a5956ee5c25a36ab5d7160289bb655c224b
|
|
|
|
|
|
Fixes several places in ResolverActivity which access
activity.getPackageManager() directly. This is to prepare
migrating the existing depdendency override mechansim to
the one provided by hilt-testing.
Bug: 300157408
Test: atest IntentResolver-tests-activity
Change-Id: I16052383061ff8f44d54fd3d6f9dc0d1e9809821
|
|
Rename CallerInfo to ActivityLaunch and renames some existing
properties as appropriate for clarity.
Adds the [Intent] from the activity. This completes the set of
info that is needed as inputs from the caller, containing the
extras with all request parameters.
Updates readChooserRequest require only an ActivityLaunchInfo
instance.
Injects ActivityLaunch into usage sites. This removes the direct
link of reading acitivty.intent, and will allow writing test code
which operates directly on inputs without starting an activity.
Introduces an extension method to minimize duplicated code in the
activities: CreationExtras.addDefaultArgs:
Bug: 300157408
Test: atest IntentResolver-tests-activity
Test: atest IntentResolver-tests-unit:ActivityLaunchTest
Change-Id: Ie132cb3d61e139e03316063186c3ad79d2c488ef
|
|
For some non-work profiles (Communal, and maybe Private), the
getListAdapterForUserHandle is returning null. The method is indeed
nullable. But we run getCount on it without doing a null-check,
causing crashes for such profiles.
This previously couldn't have happened, since shouldShowTabs() returns
false in these cases, and the evaluation was skipped; however,
ag/I8273cf365a1e00b1acff4030086f1a044ad7531f moved that check to later,
so we are hitting this problem.
Bug: 322523699
Bug: 320369524
Bug: 320615143
Bug: 322497953
Test: atest IntentResolver-tests-unit
Change-Id: I82303d6a6a1be1066f5c3e05c53f6a70d486bf5a
|
|
A domain component which applies business logic to User data.
This component maps Users to Profiles, the set of which is
defined by Profile.Type
Bug: 309960444
Test: atest IntentResolver-tests-unit:UserInteractorTest \
FakeUserRepositoryTest
Change-Id: I9832836ae019ba1b0ae45366f9fc0e26bc9b23ce
|
|
Change-Id: Ifb0f34133c2c6c12e985eb6e732acb4f5858675f
|
|
This is a way to provide a stable iteration order to consumers.
Bug: 300157408
Bug: 309960444
Test: atest IntentResolver-tests-unit
Change-Id: I502b9744e93288bf1682d009c1e2ba03cfc013a9
|
|
This was the last "snapshot" (#37) from my prototype CL ag/25335069.
We should now be able to support arbitrary sets of tabs as specified
by the activity (or other client, if/when we move the instantiation).
Test: IntentResolver-tests-{unit,activity}; ResolverActivityTest
Bug: 310211468
Change-Id: I1526cbce97bff6305c4e79c53a96181e185ab27f
|
|
This is a temporary step before introducing a new data class
to represent a Profile which will also carry a type
identifier within.
This is a name only change with no functional changes.
Bug: 309960444
Test: atest IntentResolver-tests-unit
Change-Id: I40e09b2b59005b3d91ea310aff1137813230733f
|
|
|
|
Bug: 318294957
Test: Build/presubmits
Change-Id: Ic0a99e61cf6e1e687b75034c392f08eb098f7544
|
|
Creates ChooserRequest data class
Uses validation lib to implement parsing of source data
Introduces ChooserViewModel as a new target to begin migration of
control flow, data and dependencies out of ChooserActivity and into
smaller testable units.
Test: atest IntentResolver-tests-activity:com.android.intentresolver.v2
Bug: 309960444
Change-Id: I39b3517ec9e17525441d349b3da139ad5956c600
|
|
TargetDataLoader is removed from ActivityLogic since it is now
only used via direct constructor call by ResolverActivity, and
injected directly to a field of ChooserActivity.
Since it is only needed to pass to the ChooserListAdapter
or ResolverListAdapter constructor, this removes the parameter
from being forwarded through a sequence of functions and instead
references the injected parameter directly when calling the
contructor. This allows smoother transition to an assisted-inject
factory.
Bug: 300157408
Test: atest IntentResolver-tests-activity:com.android.intentresolver.v2
Change-Id: I18b230eaf97bf8e26e23e2e1cd1372e7d078520f
|
|
This change combines and deduplicates intent forwarding code
from both Chooser and Resolver, as well the temporary scaffolding
from ActivityLogic.
Bug: 300157408
Test: atest IntentResolver-tests-activity:com.android.intentresolver.v2
Change-Id: If9dde430f24608e4a0c5bb9ec69a374386c044ed
|
|
This is required to selectively replace dependencies within
tests using @UninstallModules with @TestInstallIn or @BindValue.
Within this change, tests which override package manager behavior are
updated to use this mechanism, and PackageManager is removed from
ChooserActivityOverrideData.
Bug: 300157408
Test: atest IntentResolver-tests-activity:com.android.intentresolver.v2
Change-Id: I439b291b5768871f5a1c10f608bea1a9e7c2635b
|
|
ChooserTargetActionsDialogFragment was attempting to cast it's
containing activity to a specific instance in order to make a
listener call.
ChooserStackedAppDialogFragment has the same issue, downcasting
getActivity().
This change fixes the crashes by introducing a common interface
for both versions.
Bug: 319127480
Test: manual; enable chooser v2, share, pin a target
Change-Id: Ib4817494c257e8620fe742320d3fc157a0daa15e
|
|
|