Home
last modified time | relevance | path

Searched refs:IntentPayload (Results 1 – 13 of 13) sorted by relevance

/packages/apps/Settings/src/com/android/settings/search2/
DIntentPayload.java25 public class IntentPayload extends ResultPayload { class
28 private IntentPayload(Parcel in) { in IntentPayload() method in IntentPayload
29 intent = in.readParcelable(IntentPayload.class.getClassLoader()); in IntentPayload()
32 public IntentPayload(Intent newIntent) { in IntentPayload() method in IntentPayload
50 public static final Creator<IntentPayload> CREATOR = new Creator<IntentPayload>() {
52 public IntentPayload createFromParcel(Parcel in) {
53 return new IntentPayload(in);
57 public IntentPayload[] newArray(int size) {
58 return new IntentPayload[size];
DCursorToSearchResultConverter.java199 private IntentPayload getIntentPayload(Cursor cursor, String action, String key, in getIntentPayload()
201 IntentPayload payload; in getIntentPayload()
210 payload = new IntentPayload(intent); in getIntentPayload()
219 payload = new IntentPayload(intent); in getIntentPayload()
DIntentSearchViewHolder.java44 final Intent intent = ((IntentPayload) result.payload).intent; in onBind()
DInstalledAppResultLoader.java101 .addPayload(new IntentPayload(intent)); in loadInBackground()
/packages/apps/Settings/tests/robotests/src/com/android/settings/search/
DIntentSearchViewHolderTest.java45 import com.android.settings.search2.IntentPayload;
123 eq(((IntentPayload)result.payload).intent.getComponent().flattenToString()), in testBindViewElements_allUpdated()
140 .addPayload(new IntentPayload(null)) in testBindViewElements_emptySummary_hideSummaryView()
157 .addPayload(new IntentPayload(null)) in testBindViewElements_withBreadcrumb_shouldFormatBreadcrumb()
173 .addPayload(new IntentPayload(null)) in testBindElements_placeholderSummary_visibilityIsGone()
187 .addPayload(new IntentPayload(null)) in testBindElements_dynamicSummary_visibilityIsGone()
215 eq(((IntentPayload)result.payload).intent.getComponent().flattenToString()), in testBindViewElements_appSearchResult()
224 .addPayload(new IntentPayload( in getSearchResult()
238 .addPayload(new IntentPayload( in getAppSearchResult()
DResultPayloadUtilsTest.java24 import com.android.settings.search2.IntentPayload;
39 private IntentPayload payload;
48 payload = new IntentPayload(intent); in setUp()
55 ResultPayloadUtils.unmarshall(badData, IntentPayload.CREATOR); in testUnmarshallBadData_ExceptionThrown()
72 IntentPayload newPayload = ResultPayloadUtils.unmarshall(marshalledPayload, in testUnmarshall_PreservedData()
73 IntentPayload.CREATOR); in testUnmarshall_PreservedData()
DIntentPayloadTest.java24 import com.android.settings.search2.IntentPayload;
35 private IntentPayload mPayload;
46 mPayload = new IntentPayload(intent); in testParcelOrdering_StaysValid()
50 IntentPayload newPayload = IntentPayload.CREATOR.createFromParcel(parcel); in testParcelOrdering_StaysValid()
DSearchResultsAdapterTest.java34 import com.android.settings.search2.IntentPayload;
161 IntentPayload payload = new IntentPayload(new Intent()); in getDummyDbResults()
182 IntentPayload payload = new IntentPayload(new Intent()); in getDummyAppResults()
219 final ResultPayload payload = new IntentPayload(null); in getIntentSampleResults()
DDatabaseRowTest.java25 import com.android.settings.search2.IntentPayload;
59 private static IntentPayload intentPayload;
68 intentPayload = new IntentPayload(intent); in setUp()
109 IntentPayload payload = ResultPayloadUtils.unmarshall(marshalledPayload, in testPayload_PayloadTypeAdded()
110 IntentPayload.CREATOR); in testPayload_PayloadTypeAdded()
DDatabaseIndexingUtilsTest.java35 import com.android.settings.search2.IntentPayload;
106 return new IntentPayload(null); in testGetPayloadFromMap_MatchingKey_ReturnsPayload()
113 assertThat(payload).isInstanceOf(IntentPayload.class); in testGetPayloadFromMap_MatchingKey_ReturnsPayload()
DSearchResultBuilderTest.java26 import com.android.settings.search2.IntentPayload;
60 mResultPayload = new IntentPayload(null); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/search2/
DDatabaseResultLoaderTest.java218 IntentPayload intentPayload = new IntentPayload(new Intent()); in testDeDupe_noDuplicates_originalListReturn()
248 IntentPayload intentPayload = new IntentPayload(new Intent()); in testDeDupe_oneDuplicate_duplicateRemoved()
283 IntentPayload intentPayload = new IntentPayload(new Intent()); in testDeDupe_firstDupeInline_secondDuplicateRemoved()
334 IntentPayload intentPayload = new IntentPayload(new Intent()); in testDeDupe_secondDupeInline_firstDuplicateRemoved()
393 IntentPayload intentPayload = new IntentPayload(new Intent()); in testDeDupe_threeDuplicates_onlyOneStays()
DCursorToSearchResultConverterTest.java194 IntentPayload payload = (IntentPayload) results.get(0).payload; in testParseCursor_MatchesIntentForSubSettings()
203 IntentPayload payload; in testParseCursor_MatchesIntentPayload()
205 payload = (IntentPayload) results.get(i).payload; in testParseCursor_MatchesIntentPayload()
230 IntentPayload payload = (IntentPayload) results.get(0).payload; in testParseCursor_MatchesIntentPayloadForExternalApps()