/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/calling/ |
D | WifiCallingSliceHelperTest.java | 19 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/unit/src/com/android/settings/testutils/ |
D | SliceTester.java | 18 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/robotests/src/com/android/settings/testutils/ |
D | SliceTester.java | 19 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/network/telephony/ |
D | Enhanced4gLteSliceHelperTest.java | 19 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/ |
D | MetaModel.cpp | 105 auto& slice = mCachedSlices[version]; in getSlice() local 106 if (slice.mState == SliceState::UNINITIALIZED) { in getSlice() 107 slice = makeSlice(version); in getSlice() 109 if (slice.mState == SliceState::INVALID) { in getSlice() 113 slice.mModel, Mapper([&slice](uint32_t slicedOperationIndex) { in getSlice() 114 return slice.mSlicedOperationIndexToOrigIndex.at(slicedOperationIndex); in getSlice() 243 Slice* slice, std::map<uint32_t, uint32_t>* origOperandIndexToSlicedIndex, in processOperations() argument 249 auto& slicedOperands = slice->mModel.main.operands; in processOperations() 250 auto& slicedOperations = slice->mModel.main.operations; in processOperations() 272 slice->mSlicedOperationIndexToOrigIndex.push_back(origOperationIndex); in processOperations() [all …]
|
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/ |
D | EligibleCardChecker.java | 19 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/ |
D | LowStorageSliceTest.java | 19 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 …]
|
D | ContextualAdaptiveSleepSliceTest.java | 37 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 …]
|
D | BluetoothDevicesSliceTest.java | 19 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; 131 final Slice slice = mBluetoothDevicesSlice.getSlice(); in getSlice_noBluetoothHardware_shouldReturnNull() local 133 assertThat(slice).isNull(); in getSlice_noBluetoothHardware_shouldReturnNull() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/media/ |
D | RemoteMediaSliceTest.java | 19 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; 132 final Slice slice = mRemoteMediaSlice.getSlice(); in getSlice_noActiveSession_checkRowNumber() local [all …]
|
/packages/apps/Settings/tests/unit/src/com/android/settings/network/ |
D | ProviderModelSliceTest.java | 19 import static android.app.slice.Slice.EXTRA_TOGGLE_STATE; 49 import androidx.slice.Slice; 50 import androidx.slice.SliceItem; 51 import androidx.slice.SliceMetadata; 52 import androidx.slice.SliceProvider; 53 import androidx.slice.builders.ListBuilder; 54 import androidx.slice.builders.SliceAction; 55 import androidx.slice.widget.SliceLiveData; 64 import com.android.settings.wifi.slice.WifiSliceItem; 175 final Slice slice = mMockProviderModelSlice.getSlice(); in getSlice_isGuestUser_shouldNotAddRow() local [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/ |
D | EligibleCardCheckerTest.java | 19 import static android.app.slice.Slice.HINT_ERROR; 34 import androidx.slice.Slice; 35 import androidx.slice.SliceProvider; 36 import androidx.slice.widget.SliceLiveData; 37 import androidx.slice.builders.ListBuilder; 38 import androidx.slice.builders.SliceAction; 70 final Slice slice = buildSlice(); in isSliceToggleable_cardWithToggle_returnTrue() local 72 assertThat(mEligibleCardChecker.isSliceToggleable(slice)).isTrue(); in isSliceToggleable_cardWithToggle_returnTrue() 77 final Slice slice = buildSlice(); in isCardEligibleToDisplay_toggleSlice_hasInlineActionShouldBeTrue() local 78 doReturn(slice).when(mEligibleCardChecker).bindSlice(any(Uri.class)); in isCardEligibleToDisplay_toggleSlice_hasInlineActionShouldBeTrue() [all …]
|
/packages/apps/Settings/src/com/android/settings/panel/ |
D | PanelSlicesAdapter.java | 19 import static android.app.slice.Slice.HINT_ERROR; 20 import static android.app.slice.SliceItem.FORMAT_SLICE; 34 import androidx.slice.Slice; 35 import androidx.slice.SliceItem; 36 import androidx.slice.widget.SliceView; 135 public void onBind(Slice slice) { in onBind() argument 137 if (slice == null || !isValidSlice(slice)) { in onBind() 141 sliceView.setSlice(slice); in onBind() 156 slice.getUri().getLastPathSegment() in onBind() 163 private boolean isValidSlice(Slice slice) { in isValidSlice() argument [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/ |
D | SliceBuilderUtilsTest.java | 34 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; 86 final Slice slice = SliceBuilderUtils.buildSlice(mContext, sliceData); in buildIntentSlice_returnsMatchingSlice() local 88 SliceTester.testSettingsIntentSlice(mContext, slice, sliceData); in buildIntentSlice_returnsMatchingSlice() 95 final Slice slice = SliceBuilderUtils.buildSlice(mContext, mockData); in buildToggleSlice_returnsMatchingSlice() local 102 SliceTester.testSettingsToggleSlice(mContext, slice, mockData); in buildToggleSlice_returnsMatchingSlice() 109 final Slice slice = SliceBuilderUtils.buildSlice(mContext, data); in buildSliderSlice_returnsMatchingSlice() local [all …]
|
/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/slices/ |
D | EmbeddedSlicePreferenceHelper.java | 19 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()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/slice/ |
D | WifiSliceTest.java | 17 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 …]
|
D | ContextualWifiSliceTest.java | 17 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; 38 import androidx.slice.Slice; 39 import androidx.slice.SliceMetadata; 40 import androidx.slice.SliceProvider; 41 import androidx.slice.core.SliceAction; 42 import androidx.slice.widget.SliceLiveData; 178 private void assertWifiHeader(Slice slice) { in assertWifiHeader() argument 179 final SliceMetadata metadata = SliceMetadata.from(mContext, slice); in assertWifiHeader()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/ |
D | AlwaysOnDisplaySliceTest.java | 34 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/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/slices/builders/ |
D | PreferenceSliceBuilderImpl.java | 19 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 …]
|
D | TemplateSliceBuilder.java | 24 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/flashlight/ |
D | FlashlightSliceTest.java | 27 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/ |
D | SliceContextualCardRenderer.java | 19 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()
|
D | SliceHalfCardRendererHelper.java | 29 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/modules/Bluetooth/system/gd/rust/packets/ |
D | custom_types.rs | 48 fn try_from(slice: &[u8]) -> Result<Self, Self::Error> { in try_from() 49 if slice.len() == 6 { in try_from() 50 match <[u8; 6]>::try_from(slice) { in try_from() 92 fn try_from(slice: &[u8]) -> Result<Self, Self::Error> { in try_from() 93 if slice.len() == 3 { in try_from() 94 match <[u8; 3]>::try_from(slice) { in try_from()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | BluetoothSliceBuilderTest.java | 27 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()
|