Home
last modified time | relevance | path

Searched refs:slice (Results 1 – 25 of 136) sorted by relevance

123456

/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/calling/
DWifiCallingSliceHelperTest.java19 import static android.app.slice.Slice.EXTRA_TOGGLE_STATE;
20 import static android.app.slice.Slice.HINT_TITLE;
21 import static android.app.slice.SliceItem.FORMAT_TEXT;
39 import androidx.slice.Slice;
40 import androidx.slice.SliceItem;
41 import androidx.slice.SliceMetadata;
42 import androidx.slice.SliceProvider;
43 import androidx.slice.core.SliceAction;
44 import androidx.slice.core.SliceQuery;
45 import androidx.slice.widget.ListContent;
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/
DSliceTester.java19 import static android.app.slice.Slice.HINT_TITLE;
20 import static android.app.slice.Slice.SUBTYPE_COLOR;
21 import static android.app.slice.SliceItem.FORMAT_IMAGE;
22 import static android.app.slice.SliceItem.FORMAT_INT;
23 import static android.app.slice.SliceItem.FORMAT_TEXT;
32 import androidx.slice.Slice;
33 import androidx.slice.SliceItem;
34 import androidx.slice.SliceMetadata;
35 import androidx.slice.builders.ListBuilder;
36 import androidx.slice.core.SliceAction;
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/testutils/
DSliceTester.java18 import static android.app.slice.Slice.HINT_TITLE;
19 import static android.app.slice.Slice.SUBTYPE_COLOR;
20 import static android.app.slice.SliceItem.FORMAT_IMAGE;
21 import static android.app.slice.SliceItem.FORMAT_INT;
22 import static android.app.slice.SliceItem.FORMAT_TEXT;
31 import androidx.slice.Slice;
32 import androidx.slice.SliceItem;
33 import androidx.slice.SliceMetadata;
34 import androidx.slice.builders.ListBuilder;
35 import androidx.slice.core.SliceAction;
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/network/telephony/
DEnhanced4gLteSliceHelperTest.java19 import static android.app.slice.Slice.EXTRA_TOGGLE_STATE;
20 import static android.app.slice.Slice.HINT_TITLE;
21 import static android.app.slice.SliceItem.FORMAT_TEXT;
38 import androidx.slice.Slice;
39 import androidx.slice.SliceItem;
40 import androidx.slice.SliceMetadata;
41 import androidx.slice.SliceProvider;
42 import androidx.slice.core.SliceAction;
43 import androidx.slice.core.SliceQuery;
44 import androidx.slice.widget.SliceLiveData;
[all …]
/packages/modules/NeuralNetworks/common/
DMetaModel.cpp104 auto& slice = mCachedSlices[version]; in getSlice() local
105 if (slice.mState == SliceState::UNINITIALIZED) { in getSlice()
106 slice = makeSlice(version); in getSlice()
108 if (slice.mState == SliceState::INVALID) { in getSlice()
112 slice.mModel, Mapper([&slice](uint32_t slicedOperationIndex) { in getSlice()
113 return slice.mSlicedOperationIndexToOrigIndex.at(slicedOperationIndex); in getSlice()
242 Slice* slice, std::map<uint32_t, uint32_t>* origOperandIndexToSlicedIndex, in processOperations() argument
248 auto& slicedOperands = slice->mModel.main.operands; in processOperations()
249 auto& slicedOperations = slice->mModel.main.operations; in processOperations()
271 slice->mSlicedOperationIndexToOrigIndex.push_back(origOperationIndex); in processOperations()
[all …]
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/
DEligibleCardChecker.java19 import static android.app.slice.Slice.HINT_ERROR;
29 import androidx.slice.Slice;
30 import androidx.slice.SliceMetadata;
31 import androidx.slice.SliceViewManager;
32 import androidx.slice.core.SliceAction;
96 final Slice slice = bindSlice(uri); in isCardEligibleToDisplay() local
98 if (slice == null || slice.hasHint(HINT_ERROR)) { in isCardEligibleToDisplay()
103 mCard = card.mutate().setSlice(slice).build(); in isCardEligibleToDisplay()
105 if (isSliceToggleable(slice)) { in isCardEligibleToDisplay()
115 final SliceViewManager.SliceCallback callback = slice -> { }; in bindSlice()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/
DBluetoothDevicesSliceTest.java19 import static android.app.slice.Slice.HINT_LIST_ITEM;
20 import static android.app.slice.SliceItem.FORMAT_SLICE;
41 import androidx.slice.Slice;
42 import androidx.slice.SliceItem;
43 import androidx.slice.SliceMetadata;
44 import androidx.slice.SliceProvider;
45 import androidx.slice.core.SliceQuery;
46 import androidx.slice.widget.SliceLiveData;
126 final Slice slice = mBluetoothDevicesSlice.getSlice(); in getSlice_noBluetoothHardware_shouldReturnNull() local
128 assertThat(slice).isNull(); in getSlice_noBluetoothHardware_shouldReturnNull()
[all …]
DContextualAdaptiveSleepSliceTest.java37 import androidx.slice.Slice;
38 import androidx.slice.SliceProvider;
39 import androidx.slice.widget.SliceLiveData;
87 final Slice slice = mContextualAdaptiveSleepSlice.getSlice(); in getSlice_ShowIfFeatureIsAvailable() local
89 assertThat(slice).isNotNull(); in getSlice_ShowIfFeatureIsAvailable()
96 final Slice slice = mContextualAdaptiveSleepSlice.getSlice(); in getSlice_DoNotShowIfFeatureIsUnavailable() local
98 assertThat(slice).isNull(); in getSlice_DoNotShowIfFeatureIsUnavailable()
103 final Slice slice = mContextualAdaptiveSleepSlice.getSlice(); in getSlice_ShowIfNotRecentlySetup() local
105 assertThat(slice).isNotNull(); in getSlice_ShowIfNotRecentlySetup()
113 final Slice slice = mContextualAdaptiveSleepSlice.getSlice(); in getSlice_DoNotShowIfRecentlySetup() local
[all …]
DLowStorageSliceTest.java19 import static android.app.slice.Slice.HINT_ERROR;
25 import androidx.slice.Slice;
26 import androidx.slice.SliceMetadata;
27 import androidx.slice.SliceProvider;
28 import androidx.slice.widget.SliceLiveData;
68 final Slice slice = mLowStorageSlice.getSlice(); in getSlice_lowStorage_shouldHaveStorageFreeTitle() local
70 final SliceMetadata metadata = SliceMetadata.from(mContext, slice); in getSlice_lowStorage_shouldHaveStorageFreeTitle()
79 final Slice slice = mLowStorageSlice.getSlice(); in getSlice_lowStorage_shouldNotHaveErrorHint() local
81 assertThat(slice.hasHint(HINT_ERROR)).isFalse(); in getSlice_lowStorage_shouldNotHaveErrorHint()
89 final Slice slice = mLowStorageSlice.getSlice(); in getSlice_storageFree_shouldHaveStorageSettingsTitle() local
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/
DSliceBuilderUtilsTest.java34 import androidx.slice.Slice;
35 import androidx.slice.SliceMetadata;
36 import androidx.slice.SliceProvider;
37 import androidx.slice.core.SliceAction;
38 import androidx.slice.widget.SliceLiveData;
91 final Slice slice = SliceBuilderUtils.buildSlice(mContext, sliceData); in buildIntentSlice_returnsMatchingSlice() local
93 SliceTester.testSettingsIntentSlice(mContext, slice, sliceData); in buildIntentSlice_returnsMatchingSlice()
100 final Slice slice = SliceBuilderUtils.buildSlice(mContext, mockData); in buildToggleSlice_returnsMatchingSlice() local
107 SliceTester.testSettingsToggleSlice(mContext, slice, mockData); in buildToggleSlice_returnsMatchingSlice()
114 final Slice slice = SliceBuilderUtils.buildSlice(mContext, data); in buildSliderSlice_returnsMatchingSlice() local
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/media/
DRemoteMediaSliceTest.java19 import static android.app.slice.Slice.EXTRA_RANGE_VALUE;
20 import static android.app.slice.Slice.HINT_LIST_ITEM;
21 import static android.app.slice.SliceItem.FORMAT_SLICE;
39 import androidx.slice.Slice;
40 import androidx.slice.SliceMetadata;
41 import androidx.slice.SliceProvider;
42 import androidx.slice.core.SliceAction;
43 import androidx.slice.core.SliceQuery;
44 import androidx.slice.widget.SliceLiveData;
131 final Slice slice = mRemoteMediaSlice.getSlice(); in getSlice_noActiveSession_checkRowNumber() local
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/
DEligibleCardCheckerTest.java19 import static android.app.slice.Slice.HINT_ERROR;
30 import androidx.slice.Slice;
31 import androidx.slice.SliceProvider;
32 import androidx.slice.widget.SliceLiveData;
35 import com.android.settings.wifi.slice.ContextualWifiSlice;
62 final Slice slice = wifiSlice.getSlice(); in isSliceToggleable_cardWithToggle_returnTrue() local
64 assertThat(mEligibleCardChecker.isSliceToggleable(slice)).isTrue(); in isSliceToggleable_cardWithToggle_returnTrue()
70 final Slice slice = wifiSlice.getSlice(); in isCardEligibleToDisplay_toggleSlice_hasInlineActionShouldBeTrue() local
71 doReturn(slice).when(mEligibleCardChecker).bindSlice(any(Uri.class)); in isCardEligibleToDisplay_toggleSlice_hasInlineActionShouldBeTrue()
109 final Slice slice = new Slice.Builder(TEST_SLICE_URI) in isCardEligibleToDisplay_errorSlice_returnFalse() local
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/network/
DProviderModelSliceTest.java19 import static android.app.slice.Slice.EXTRA_TOGGLE_STATE;
48 import androidx.slice.Slice;
49 import androidx.slice.SliceItem;
50 import androidx.slice.SliceMetadata;
51 import androidx.slice.SliceProvider;
52 import androidx.slice.builders.ListBuilder;
53 import androidx.slice.builders.SliceAction;
54 import androidx.slice.widget.SliceLiveData;
63 import com.android.settings.wifi.slice.WifiSliceItem;
172 final Slice slice = mMockProviderModelSlice.getSlice(); in getSlice_noWifiAndHasCarrierNoData_oneCarrier() local
[all …]
/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/slices/
DEmbeddedSlicePreferenceHelper.java19 import static android.app.slice.Slice.HINT_PARTIAL;
27 import androidx.slice.Slice;
28 import androidx.slice.SliceItem;
29 import androidx.slice.widget.ListContent;
30 import androidx.slice.widget.SliceContent;
65 public void onChanged(Slice slice) { in onChanged() argument
66 mSlice = slice; in onChanged()
67 if (slice == null || slice.getHints() == null || slice.getHints().contains(HINT_PARTIAL)) { in onChanged()
DSlicePreferencesUtil.java19 import static android.app.slice.Slice.HINT_PARTIAL;
20 import static android.app.slice.Slice.HINT_SUMMARY;
21 import static android.app.slice.Slice.HINT_TITLE;
22 import static android.app.slice.Slice.SUBTYPE_CONTENT_DESCRIPTION;
23 import static android.app.slice.SliceItem.FORMAT_ACTION;
24 import static android.app.slice.SliceItem.FORMAT_IMAGE;
25 import static android.app.slice.SliceItem.FORMAT_INT;
26 import static android.app.slice.SliceItem.FORMAT_LONG;
27 import static android.app.slice.SliceItem.FORMAT_SLICE;
28 import static android.app.slice.SliceItem.FORMAT_TEXT;
[all …]
/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/slices/builders/
DPreferenceSliceBuilderImpl.java19 import static android.app.slice.Slice.HINT_ACTIONS;
20 import static android.app.slice.Slice.HINT_KEYWORDS;
21 import static android.app.slice.Slice.HINT_LARGE;
22 import static android.app.slice.Slice.HINT_LAST_UPDATED;
23 import static android.app.slice.Slice.HINT_LIST_ITEM;
24 import static android.app.slice.Slice.HINT_NO_TINT;
25 import static android.app.slice.Slice.HINT_PARTIAL;
26 import static android.app.slice.Slice.HINT_SHORTCUT;
27 import static android.app.slice.Slice.HINT_SUMMARY;
28 import static android.app.slice.Slice.HINT_TITLE;
[all …]
DTemplateSliceBuilder.java24 import androidx.slice.Clock;
25 import androidx.slice.Slice;
26 import androidx.slice.SliceManager;
27 import androidx.slice.SliceProvider;
28 import androidx.slice.SliceSpec;
29 import androidx.slice.SystemClock;
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DAlwaysOnDisplaySliceTest.java34 import androidx.slice.Slice;
35 import androidx.slice.SliceMetadata;
36 import androidx.slice.SliceProvider;
37 import androidx.slice.widget.SliceLiveData;
88 final Slice slice = mSlice.getSlice(); in getSlice_alwaysOnNotSupported_returnNull() local
90 assertThat(slice).isNull(); in getSlice_alwaysOnNotSupported_returnNull()
97 final Slice slice = mSlice.getSlice(); in getSlice_alwaysOnSupported_showTitleSubtitle() local
98 final SliceMetadata metadata = SliceMetadata.from(mContext, slice); in getSlice_alwaysOnSupported_showTitleSubtitle()
109 intent.putExtra(android.app.slice.Slice.EXTRA_TOGGLE_STATE, false); in onNotifyChange_toggleOff_disableAoD()
121 intent.putExtra(android.app.slice.Slice.EXTRA_TOGGLE_STATE, true); in onNotifyChange_toggleOn_awareNotSupported_enableAoD()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/slice/
DWifiSliceTest.java17 package com.android.settings.wifi.slice;
19 import static android.app.slice.Slice.HINT_LIST_ITEM;
20 import static android.app.slice.SliceItem.FORMAT_SLICE;
22 import static com.android.settings.wifi.slice.WifiSlice.DEFAULT_EXPANDED_ROW_COUNT;
38 import androidx.slice.Slice;
39 import androidx.slice.SliceItem;
40 import androidx.slice.SliceMetadata;
41 import androidx.slice.SliceProvider;
42 import androidx.slice.core.SliceAction;
43 import androidx.slice.core.SliceQuery;
[all …]
DContextualWifiSliceTest.java17 package com.android.settings.wifi.slice;
19 import static com.android.settings.wifi.slice.ContextualWifiSlice.COLLAPSED_ROW_COUNT;
20 import static com.android.settings.wifi.slice.WifiSlice.DEFAULT_EXPANDED_ROW_COUNT;
35 import androidx.slice.Slice;
36 import androidx.slice.SliceMetadata;
37 import androidx.slice.SliceProvider;
38 import androidx.slice.core.SliceAction;
39 import androidx.slice.widget.SliceLiveData;
154 private void assertWifiHeader(Slice slice) { in assertWifiHeader() argument
155 final SliceMetadata metadata = SliceMetadata.from(mContext, slice); in assertWifiHeader()
/packages/apps/Settings/tests/robotests/src/com/android/settings/flashlight/
DFlashlightSliceTest.java27 import androidx.slice.Slice;
28 import androidx.slice.SliceMetadata;
29 import androidx.slice.SliceProvider;
30 import androidx.slice.core.SliceAction;
31 import androidx.slice.widget.SliceLiveData;
68 final Slice slice = new FlashlightSlice(mContext).getSlice(); in getFlashlightSlice_correctData() local
70 final SliceMetadata metadata = SliceMetadata.from(mContext, slice); in getFlashlightSlice_correctData()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/
DSliceContextualCardRenderer.java19 import static android.app.slice.Slice.HINT_ERROR;
42 import androidx.slice.Slice;
43 import androidx.slice.widget.SliceLiveData;
132 sliceLiveData.observe(mLifecycleOwner, slice -> { in bindView()
133 if (slice == null) { in bindView()
138 if (slice.hasHint(HINT_ERROR)) { in bindView()
139 Log.w(TAG, "Slice has HINT_ERROR, skipping rendering. uri=" + slice.getUri()); in bindView()
140 mSliceLiveDataMap.get(slice.getUri()).removeObservers(mLifecycleOwner); in bindView()
147 mHalfCardHelper.bindView(holder, card, slice); in bindView()
149 mFullCardHelper.bindView(holder, card, slice); in bindView()
DSliceHalfCardRendererHelper.java29 import androidx.slice.Slice;
30 import androidx.slice.SliceMetadata;
31 import androidx.slice.core.SliceAction;
32 import androidx.slice.widget.EventInfo;
56 void bindView(RecyclerView.ViewHolder holder, ContextualCard card, Slice slice) { in bindView() argument
58 final SliceMetadata sliceMetadata = SliceMetadata.from(mContext, slice); in bindView()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothSliceBuilderTest.java27 import androidx.slice.Slice;
28 import androidx.slice.SliceMetadata;
29 import androidx.slice.SliceProvider;
30 import androidx.slice.core.SliceAction;
31 import androidx.slice.widget.SliceLiveData;
79 intent.putExtra(android.app.slice.Slice.EXTRA_TOGGLE_STATE, true); in handleUriChange_updatesBluetooth()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DMobileDataSliceTest.java37 import androidx.slice.Slice;
38 import androidx.slice.SliceMetadata;
39 import androidx.slice.SliceProvider;
40 import androidx.slice.core.SliceAction;
41 import androidx.slice.widget.SliceLiveData;
113 intent.putExtra(android.app.slice.Slice.EXTRA_TOGGLE_STATE, true); in handleUriChange_turnedOn_updatesMobileData()
125 intent.putExtra(android.app.slice.Slice.EXTRA_TOGGLE_STATE, false); in handleUriChange_turnedOff_updatesMobileData()
137 intent.putExtra(android.app.slice.Slice.EXTRA_TOGGLE_STATE, false); in handleUriChange_turnedOff_airplaneModeOn_mobileDataDoesNotUpdate()

123456