/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 | TemplateBuilderImpl.java | 20 import androidx.slice.Slice; 29 private Slice.Builder mSliceBuilder; 33 protected TemplateBuilderImpl(Slice.Builder b, SliceSpec spec) { in TemplateBuilderImpl() 37 protected TemplateBuilderImpl(Slice.Builder b, SliceSpec spec, Clock clock) { in TemplateBuilderImpl() 43 protected void setBuilder(Slice.Builder builder) { in setBuilder() 50 public Slice build() { in build() 56 public Slice.Builder getBuilder() { in getBuilder() 60 public Slice.Builder createChildBuilder() { in createChildBuilder() 61 return new Slice.Builder(mSliceBuilder); in createChildBuilder() 64 public abstract void apply(Slice.Builder builder); in apply()
|
D | TemplateSliceBuilder.java | 25 import androidx.slice.Slice; 43 private final Slice.Builder mBuilder; 56 mBuilder = new Slice.Builder(uri); in TemplateSliceBuilder() 70 public Slice build() { in build() 74 protected Slice.Builder getBuilder() { in getBuilder()
|
/packages/modules/DnsResolver/tests/ |
D | tun_forwarder.h | 80 base::Result<void> validatePacket(netdutils::Slice tunPacket) const; 81 base::Result<void> validateIpv4Packet(netdutils::Slice ipv4Packet) const; 82 base::Result<void> validateIpv6Packet(netdutils::Slice ipv6Packet) const; 83 base::Result<void> validateUdpPacket(netdutils::Slice udpPacket) const; 84 base::Result<void> validateTcpPacket(netdutils::Slice tcpPacket) const; 88 base::Result<void> translatePacket(netdutils::Slice tunPacket) const; 89 base::Result<void> translateIpv4Packet(netdutils::Slice ipv4Packet) const; 90 base::Result<void> translateIpv6Packet(netdutils::Slice ipv6Packet) const; 91 void translateUdpPacket(netdutils::Slice udpPacket, uint32_t oldPseudoSum, 93 void translateTcpPacket(netdutils::Slice tcpPacket, uint32_t oldPseudoSum,
|
D | tun_forwarder.cpp | 41 using android::netdutils::Slice; 205 const Slice tunPacket(buf, readlen); in handlePacket() 220 Result<void> TunForwarder::validatePacket(Slice tunPacket) const { in validatePacket() 240 Result<void> TunForwarder::validateIpv4Packet(Slice ipv4Packet) const { in validateIpv4Packet() 270 Result<void> TunForwarder::validateIpv6Packet(Slice ipv6Packet) const { in validateIpv6Packet() 291 Result<void> TunForwarder::validateUdpPacket(Slice udpPacket) const { in validateUdpPacket() 298 Result<void> TunForwarder::validateTcpPacket(Slice tcpPacket) const { in validateTcpPacket() 313 Result<void> TunForwarder::translatePacket(Slice tunPacket) const { in translatePacket() 326 Result<void> TunForwarder::translateIpv4Packet(Slice ipv4Packet) const { in translateIpv4Packet() 360 Result<void> TunForwarder::translateIpv6Packet(Slice ipv6Packet) const { in translateIpv6Packet() [all …]
|
/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; 39 import androidx.slice.Slice; 128 final Slice slice = mWfcSliceHelper.createWifiCallingSlice( in test_CreateWifiCallingSlice_invalidSubId() 138 final Slice slice = mWfcSliceHelper.createWifiCallingSlice( in test_CreateWifiCallingSlice_wfcNotSupported() 158 final Slice slice = mWfcSliceHelper.createWifiCallingSlice( in test_CreateWifiCallingSlice_needsActivation() 174 final Slice slice = mWfcSliceHelper.createWifiCallingSlice( in test_CreateWifiCallingSlice_success() 190 final Slice slice = mProvider.onBindSlice(CustomSliceRegistry.WIFI_CALLING_URI); in test_SettingSliceProvider_getsRightSliceWifiCalling() 227 final Slice slice = mWfcSliceHelper.createWifiCallingPreferenceSlice( in test_CreateWifiCallingPreferenceSlice_prefNotEditable() 241 final Slice slice = mWfcSliceHelper.createWifiCallingPreferenceSlice( in test_CreateWifiCallingPreferenceSlice_wfcOff() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/slice/ |
D | WifiSliceTest.java | 19 import static android.app.slice.Slice.HINT_LIST_ITEM; 38 import androidx.slice.Slice; 93 final Slice wifiSlice = mWifiSlice.getSlice(); in getWifiSlice_shouldHaveTitleAndToggle() 111 final Slice wifiSlice = mWifiSlice.getSlice(); in getWifiSlice_wifiOff_shouldReturnSingleRow() 122 final Slice wifiSlice = mWifiSlice.getSlice(); in getWifiSlice_noAp_shouldReturnLoadingRow() 157 final Slice wifiSlice = mWifiSlice.getSlice(); in getWifiSlice_oneConnectedAp_shouldReturnLoadingRow() 172 final Slice wifiSlice = mWifiSlice.getSlice(); in getWifiSlice_oneConnectedApAndOneDisconnectedAp_shouldReturnLoadingRow() 186 final Slice wifiSlice = mWifiSlice.getSlice(); in getWifiSlice_oneDisconnectedAp_shouldReturnLoadingRow() 202 final Slice wifiSlice = mWifiSlice.getSlice(); in getWifiSlice_apReachExpandedCount_shouldNotReturnLoadingRow() 216 intent.putExtra(android.app.slice.Slice.EXTRA_TOGGLE_STATE, true); in handleUriChange_updatesWifi()
|
D | ContextualWifiSliceTest.java | 35 import androidx.slice.Slice; 88 final Slice wifiSlice = mWifiSlice.getSlice(); in getWifiSlice_newSession_hasActiveConnection_shouldCollapseSlice() 98 final Slice wifiSlice = mWifiSlice.getSlice(); in getWifiSlice_newSession_noConnection_shouldExpandSlice() 110 final Slice wifiSlice = mWifiSlice.getSlice(); in getWifiSlice_previousExpanded_hasActiveConnection_shouldExpandSlice() 123 final Slice wifiSlice = mWifiSlice.getSlice(); in getWifiSlice_previousCollapsed_connectionLoss_shouldCollapseSlice() 133 final Slice wifiSlice = mWifiSlice.getSlice(); in getWifiSlice_contextualWifiSlice_shouldReturnContextualWifiSliceUri() 154 private void assertWifiHeader(Slice slice) { in assertWifiHeader()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/ |
D | EligibleCardCheckerTest.java | 19 import static android.app.slice.Slice.HINT_ERROR; 30 import androidx.slice.Slice; 62 final Slice slice = wifiSlice.getSlice(); in isSliceToggleable_cardWithToggle_returnTrue() 70 final Slice slice = wifiSlice.getSlice(); in isCardEligibleToDisplay_toggleSlice_hasInlineActionShouldBeTrue() 109 final Slice slice = new Slice.Builder(TEST_SLICE_URI) in isCardEligibleToDisplay_errorSlice_returnFalse() 120 final Slice slice = wifiSlice.getSlice(); in isCardEligibleToDisplay_sliceNotNull_cacheSliceToCard()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/ |
D | ContextualAdaptiveSleepSliceTest.java | 37 import androidx.slice.Slice; 87 final Slice slice = mContextualAdaptiveSleepSlice.getSlice(); in getSlice_ShowIfFeatureIsAvailable() 96 final Slice slice = mContextualAdaptiveSleepSlice.getSlice(); in getSlice_DoNotShowIfFeatureIsUnavailable() 103 final Slice slice = mContextualAdaptiveSleepSlice.getSlice(); in getSlice_ShowIfNotRecentlySetup() 113 final Slice slice = mContextualAdaptiveSleepSlice.getSlice(); in getSlice_DoNotShowIfRecentlySetup() 120 final Slice slice = mContextualAdaptiveSleepSlice.getSlice(); in getSlice_ShowIfNotTurnedOn() 129 final Slice slice = mContextualAdaptiveSleepSlice.getSlice(); in getSlice_DoNotShowIFTurnedOn()
|
D | LowStorageSliceTest.java | 19 import static android.app.slice.Slice.HINT_ERROR; 25 import androidx.slice.Slice; 68 final Slice slice = mLowStorageSlice.getSlice(); in getSlice_lowStorage_shouldHaveStorageFreeTitle() 79 final Slice slice = mLowStorageSlice.getSlice(); in getSlice_lowStorage_shouldNotHaveErrorHint() 89 final Slice slice = mLowStorageSlice.getSlice(); in getSlice_storageFree_shouldHaveStorageSettingsTitle() 100 final Slice slice = mLowStorageSlice.getSlice(); in getSlice_storageFree_shouldHaveErrorHint()
|
D | BluetoothDevicesSliceTest.java | 19 import static android.app.slice.Slice.HINT_LIST_ITEM; 41 import androidx.slice.Slice; 126 final Slice slice = mBluetoothDevicesSlice.getSlice(); in getSlice_noBluetoothHardware_shouldReturnNull() 136 final Slice slice = mBluetoothDevicesSlice.getSlice(); in getSlice_bluetoothOff_shouldHaveBluetoothOffTitleAndSummary() 152 final Slice slice = mBluetoothDevicesSlice.getSlice(); in getSlice_bluetoothTurningOn_shouldHaveBluetoothDevicesTitleAndPairNewDevice() 164 final Slice slice = mBluetoothDevicesSlice.getSlice(); in getSlice_bluetoothOn_shouldHaveBluetoothDevicesTitleAndPairNewDevice() 179 final Slice slice = mBluetoothDevicesSlice.getSlice(); in getSlice_hasBluetoothDevices_shouldMatchBluetoothMockTitle() 224 final Slice slice = mBluetoothDevicesSlice.getSlice(); in getSlice_exceedDefaultRowCount_shouldOnlyShowHeaderAndDefaultRowCount()
|
D | DarkThemeSliceTest.java | 34 import androidx.slice.Slice; 132 final Slice mediaSlice = mDarkThemeSlice.getSlice(); in getSlice_batterySaver_returnErrorSlice() 141 final Slice mediaSlice = mDarkThemeSlice.getSlice(); in getSlice_notAvailable_returnErrorSlice() 156 final Slice mediaSlice = mDarkThemeSlice.getSlice(); in getSlice_newSession_notAvailable_returnErrorSlice() 178 final Slice mediaSlice = mDarkThemeSlice.getSlice(); in getSlice_sliceNotClicked_notAvailable_returnErrorSlice() 206 final Slice slice = mDarkThemeSlice.getSlice(); in getSlice_isAvailable_showTitleSubtitle()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/ |
D | MobileDataSliceTest.java | 37 import androidx.slice.Slice; 93 final Slice mobileData = mMobileDataSlice.getSlice(); in getSlice_shouldHaveTitleAndToggle() 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() 175 final Slice mobileData = mMobileDataSlice.getSlice(); in isMobileDataAvailable_noSubscriptions_slicePrimaryActionIsEmpty() 183 final Slice mobileData = mMobileDataSlice.getSlice(); in isMobileDataAvailable_nullSubscriptions_slicePrimaryActionIsEmpty() 192 final Slice mobileData = mMobileDataSlice.getSlice(); in airplaneModeEnabled_slicePrimaryActionIsEmpty()
|
/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; 38 import androidx.slice.Slice; 121 final Slice slice = mEnhanced4gLteSliceHelper.createEnhanced4gLteSlice( in createEnhanced4gLteSlice_invalidSubId_nullSlice() 131 final Slice slice = mEnhanced4gLteSliceHelper.createEnhanced4gLteSlice( in createEnhanced4gLteSlice_enhanced4gLteNotSupported_nullSlice() 144 final Slice slice = mEnhanced4gLteSliceHelper.createEnhanced4gLteSlice( in createEnhanced4gLteSlice_success() 159 final Slice slice = mProvider.onBindSlice(CustomSliceRegistry.ENHANCED_4G_SLICE_URI); in sttingSliceProvider_enhanced4gLteHelper_getsRightSlice() 191 private void testEnhanced4gLteSettingsUnavailableSlice(Slice slice, in testEnhanced4gLteSettingsUnavailableSlice() 210 private void testEnhanced4gLteSettingsToggleSlice(Slice slice) { in testEnhanced4gLteSettingsToggleSlice()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/ |
D | SliceBuilderUtilsTest.java | 34 import androidx.slice.Slice; 91 final Slice slice = SliceBuilderUtils.buildSlice(mContext, sliceData); in buildIntentSlice_returnsMatchingSlice() 100 final Slice slice = SliceBuilderUtils.buildSlice(mContext, mockData); in buildToggleSlice_returnsMatchingSlice() 114 final Slice slice = SliceBuilderUtils.buildSlice(mContext, data); in buildSliderSlice_returnsMatchingSlice() 128 final Slice slice = SliceBuilderUtils.buildSlice(mContext, mockData); in buildCopyableSlice_returnsMatchingSlice() 292 final Slice slice = SliceBuilderUtils.buildSlice(mContext, data); in testUnsupportedSlice_validTitleSummary() 305 final Slice slice = SliceBuilderUtils.buildSlice(mContext, data); in testDisabledForUserSlice_validTitleSummary() 318 final Slice slice = SliceBuilderUtils.buildSlice(mContext, data); in testDisabledDependentSettingSlice_validTitleSummary() 338 final Slice slice = SliceBuilderUtils.buildSlice(mContext, data); in testConditionallyUnavailableSlice_validTitleSummary() 366 final Slice slice = SliceBuilderUtils.buildSlice(mContext, sliceData); in buildIntentSlice_noIconPassed_returnsSliceWithIcon() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/ |
D | AlwaysOnDisplaySliceTest.java | 34 import androidx.slice.Slice; 88 final Slice slice = mSlice.getSlice(); in getSlice_alwaysOnNotSupported_returnNull() 97 final Slice slice = mSlice.getSlice(); 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() 135 intent.putExtra(android.app.slice.Slice.EXTRA_TOGGLE_STATE, true); in onNotifyChange_toggleOn_awareDisabled_enableAoD() 149 intent.putExtra(android.app.slice.Slice.EXTRA_TOGGLE_STATE, true); in onNotifyChange_toggleOn_awareSupported_enableAoD()
|
/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; 96 final Slice slice = bindSlice(uri); in isCardEligibleToDisplay() 113 Slice bindSlice(Uri uri) { in bindSlice() 119 final Slice slice = manager.bindSlice(uri); in bindSlice() 135 boolean isSliceToggleable(Slice slice) { in isSliceToggleable()
|
/packages/apps/Settings/src/com/android/settings/panel/ |
D | PanelSlicesAdapter.java | 33 import androidx.slice.Slice; 57 private final List<LiveData<Slice>> mSliceLiveData; 62 PanelFragment fragment, Map<Uri, LiveData<Slice>> sliceLiveData, int metricsCategory) { in PanelSlicesAdapter() 106 List<LiveData<Slice>> getData() { in getData() 135 public void onBind(LiveData<Slice> sliceLiveData, int position) { in onBind() 139 final Slice slice = sliceLiveData.getValue(); in onBind()
|
/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/slices/ |
D | PreferenceSliceLiveData.java | 31 import androidx.slice.Slice; 64 static class SliceLiveDataImpl extends MutableLiveData<Slice> { 94 public void setValue(Slice slice) { in setValue() 103 Slice s = mUri != null ? mSliceViewManager.bindSlice(mUri) 120 public void onSliceUpdated(@NonNull Slice s) {
|
D | EmbeddedSlicePreferenceHelper.java | 19 import static android.app.slice.Slice.HINT_PARTIAL; 27 import androidx.slice.Slice; 37 public class EmbeddedSlicePreferenceHelper implements Observer<Slice> { 43 private Slice mSlice; 65 public void onChanged(Slice slice) { in onChanged()
|
/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; 39 import androidx.slice.Slice; 131 final Slice slice = mRemoteMediaSlice.getSlice(); in getSlice_noActiveSession_checkRowNumber() 139 final Slice slice = mRemoteMediaSlice.getSlice(); in getSlice_withActiveSession_checkRowNumber() 148 final Slice slice = mRemoteMediaSlice.getSlice(); in getSlice_withActiveSession_checkTitle()
|
/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; 32 import androidx.slice.Slice; 66 public static void testSettingsIntentSlice(Context context, Slice slice, SliceData sliceData) { in testSettingsIntentSlice() 98 public static void testSettingsToggleSlice(Context context, Slice slice, SliceData sliceData) { in testSettingsToggleSlice() 138 public static void testSettingsSliderSlice(Context context, Slice slice, SliceData sliceData) { in testSettingsSliderSlice() 179 public static void testSettingsCopyableSlice(Context context, Slice slice, in testSettingsCopyableSlice() 215 public static void testSettingsUnavailableSlice(Context context, Slice slice, in testSettingsUnavailableSlice()
|
/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; 31 import androidx.slice.Slice; 65 public static void testSettingsIntentSlice(Context context, Slice slice, SliceData sliceData) { in testSettingsIntentSlice() 97 public static void testSettingsToggleSlice(Context context, Slice slice, SliceData sliceData) { in testSettingsToggleSlice() 137 public static void testSettingsSliderSlice(Context context, Slice slice, SliceData sliceData) { in testSettingsSliderSlice() 178 public static void testSettingsCopyableSlice(Context context, Slice slice, in testSettingsCopyableSlice() 214 public static void testSettingsUnavailableSlice(Context context, Slice slice, in testSettingsUnavailableSlice()
|
/packages/modules/DnsResolver/ |
D | DnsTlsDispatcher.h | 54 res_state _Nonnull statp, const netdutils::Slice query, 55 const netdutils::Slice ans, int* _Nonnull resplen); 62 const netdutils::Slice query, const netdutils::Slice ans, 158 DnsTlsTransport::Result queryInternal(Transport& transport, const netdutils::Slice query)
|