Home
last modified time | relevance | path

Searched refs:sliceUri (Results 1 – 22 of 22) sorted by relevance

/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/slices/
DSettingsSliceProvider.java139 public void onSlicePinned(Uri sliceUri) { in onSlicePinned() argument
140 if (CustomSliceRegistry.isValidUri(sliceUri)) { in onSlicePinned()
143 .getSlicesFeatureProvider().getSliceableFromUri(context, sliceUri); in onSlicePinned()
146 registerIntentToUri(filter, sliceUri); in onSlicePinned()
148 ThreadUtils.postOnMainThread(() -> startBackgroundWorker(sliceable, sliceUri)); in onSlicePinned()
152 if (CustomSliceRegistry.ZEN_MODE_SLICE_URI.equals(sliceUri)) { in onSlicePinned()
153 registerIntentToUri(ZenModeSliceBuilder.INTENT_FILTER, sliceUri); in onSlicePinned()
155 } else if (CustomSliceRegistry.BLUETOOTH_URI.equals(sliceUri)) { in onSlicePinned()
156 registerIntentToUri(BluetoothSliceBuilder.INTENT_FILTER, sliceUri); in onSlicePinned()
161 loadSliceInBackground(sliceUri); in onSlicePinned()
[all …]
DSliceDeepLinkSpringBoard.java35 final Uri sliceUri = parse(getIntent().getData()); in onCreate() local
36 if (sliceUri == null) { in onCreate()
47 if (CustomSliceRegistry.isValidUri(sliceUri)) { in onCreate()
50 CustomSliceRegistry.getSliceClassByUri(sliceUri)); in onCreate()
52 } else if (CustomSliceRegistry.ZEN_MODE_SLICE_URI.equals(sliceUri)) { in onCreate()
54 } else if (CustomSliceRegistry.BLUETOOTH_URI.equals(sliceUri)) { in onCreate()
61 slicesDatabaseAccessor.getSliceDataFromUri(sliceUri); in onCreate()
/packages/apps/Settings/src/com/android/settings/slices/
DSettingsSliceProvider.java144 public void onSlicePinned(Uri sliceUri) { in onSlicePinned() argument
145 if (CustomSliceRegistry.isValidUri(sliceUri)) { in onSlicePinned()
148 .getSlicesFeatureProvider().getSliceableFromUri(context, sliceUri); in onSlicePinned()
151 registerIntentToUri(filter, sliceUri); in onSlicePinned()
153 ThreadUtils.postOnMainThread(() -> startBackgroundWorker(sliceable, sliceUri)); in onSlicePinned()
157 if (CustomSliceRegistry.ZEN_MODE_SLICE_URI.equals(sliceUri)) { in onSlicePinned()
158 registerIntentToUri(ZenModeSliceBuilder.INTENT_FILTER, sliceUri); in onSlicePinned()
160 } else if (CustomSliceRegistry.BLUETOOTH_URI.equals(sliceUri)) { in onSlicePinned()
161 registerIntentToUri(BluetoothSliceBuilder.INTENT_FILTER, sliceUri); in onSlicePinned()
166 loadSliceInBackground(sliceUri); in onSlicePinned()
[all …]
DSliceDeepLinkSpringBoard.java37 final Uri sliceUri = parse(getIntent().getData()); in onCreate() local
38 if (sliceUri == null) { in onCreate()
49 if (CustomSliceRegistry.isValidUri(sliceUri)) { in onCreate()
52 CustomSliceRegistry.getSliceClassByUri(sliceUri)); in onCreate()
54 } else if (CustomSliceRegistry.ZEN_MODE_SLICE_URI.equals(sliceUri)) { in onCreate()
56 } else if (CustomSliceRegistry.BLUETOOTH_URI.equals(sliceUri)) { in onCreate()
63 slicesDatabaseAccessor.getSliceDataFromUri(sliceUri); in onCreate()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/calling/
DWifiCallingSliceHelper.java130 public Slice createWifiCallingSlice(Uri sliceUri) { in createWifiCallingSlice() argument
161 sliceUri, getActivityIntent(ACTION_WIFI_CALLING_SETTINGS_ACTIVITY)); in createWifiCallingSlice()
163 return getWifiCallingSlice(sliceUri, isWifiCallingEnabled); in createWifiCallingSlice()
189 private Slice getWifiCallingSlice(Uri sliceUri, boolean isWifiCallingEnabled) { in getWifiCallingSlice() argument
192 return new ListBuilder(mContext, sliceUri, ListBuilder.INFINITY) in getWifiCallingSlice()
223 public Slice createWifiCallingPreferenceSlice(Uri sliceUri) { in createWifiCallingPreferenceSlice() argument
262 sliceUri, getActivityIntent(ACTION_WIFI_CALLING_SETTINGS_ACTIVITY)); in createWifiCallingPreferenceSlice()
266 isWifiOnlySupported, wfcMode, sliceUri); in createWifiCallingPreferenceSlice()
279 Uri sliceUri) { in getWifiCallingPreferenceSlice() argument
282 ListBuilder listBuilder = new ListBuilder(mContext, sliceUri, ListBuilder.INFINITY) in getWifiCallingPreferenceSlice()
[all …]
/packages/apps/Settings/src/com/android/settings/wifi/calling/
DWifiCallingSliceHelper.java132 public Slice createWifiCallingSlice(Uri sliceUri) { in createWifiCallingSlice() argument
159 sliceUri, getActivityIntent(ACTION_WIFI_CALLING_SETTINGS_ACTIVITY)); in createWifiCallingSlice()
161 return getWifiCallingSlice(sliceUri, isWifiCallingEnabled, subId); in createWifiCallingSlice()
173 private Slice getWifiCallingSlice(Uri sliceUri, boolean isWifiCallingEnabled, int subId) { in getWifiCallingSlice() argument
177 return new ListBuilder(mContext, sliceUri, ListBuilder.INFINITY) in getWifiCallingSlice()
208 public Slice createWifiCallingPreferenceSlice(Uri sliceUri) { in createWifiCallingPreferenceSlice() argument
247 sliceUri, getActivityIntent(ACTION_WIFI_CALLING_SETTINGS_ACTIVITY)); in createWifiCallingPreferenceSlice()
251 isWifiOnlySupported, wfcMode, sliceUri, subId); in createWifiCallingPreferenceSlice()
265 Uri sliceUri, in getWifiCallingPreferenceSlice() argument
270 final ListBuilder listBuilder = new ListBuilder(mContext, sliceUri, ListBuilder.INFINITY) in getWifiCallingPreferenceSlice()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/homepage/contextualcards/
DContextualCardLoaderTest.java79 final String sliceUri = "content://com.android.settings.test.slices/action/flashlight"; in bindSlice_noProvider_shouldReturnNull() local
81 final Slice loadedSlice = mEligibleCardChecker.bindSlice(Uri.parse(sliceUri)); in bindSlice_noProvider_shouldReturnNull()
86 private ContextualCard getContextualCard(Uri sliceUri) { in getContextualCard() argument
91 .setSliceUri(sliceUri) in getContextualCard()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/panel/
DPanelSlicesAdapter.java107 public void onBind(PanelFragment fragment, Uri sliceUri) { in onBind() argument
109 sliceLiveData = SliceLiveData.fromUri(context, sliceUri); in onBind()
113 if (sliceUri.equals(MEDIA_OUTPUT_INDICATOR_SLICE_URI)) { in onBind()
125 sliceUri.toString() /* log key */, in onBind()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/
DEligibleCardCheckerTest.java112 final Uri sliceUri = Uri.parse("contet://com.android.settings.slices/action/flashlight"); in isCardEligibleToDisplay_invalidScheme_returnFalse() local
114 assertThat(mEligibleCardChecker.isCardEligibleToDisplay(getContextualCard(sliceUri))) in isCardEligibleToDisplay_invalidScheme_returnFalse()
149 private ContextualCard getContextualCard(Uri sliceUri) { in getContextualCard() argument
154 .setSliceUri(sliceUri) in getContextualCard()
DContextualCardFeatureProviderImplTest.java104 private Slice buildSlice(Uri sliceUri, String packageName) { in buildSlice() argument
117 return new ListBuilder(mContext, sliceUri, ListBuilder.INFINITY) in buildSlice()
DContextualCardsAdapterTest.java170 private ContextualCard buildContextualCard(Uri sliceUri) { in buildContextualCard() argument
174 .setSliceUri(sliceUri) in buildContextualCard()
DContextualCardManagerTest.java580 private ContextualCard buildContextualCard(String sliceUri) { in buildContextualCard() argument
584 .setSliceUri(Uri.parse(sliceUri)) in buildContextualCard()
/packages/apps/Settings/src/com/android/settings/panel/
DPanelSlicesLoaderCountdownLatch.java54 public void markSliceLoaded(Uri sliceUri) { in markSliceLoaded() argument
55 if (mLoadedSlices.contains(sliceUri)) { in markSliceLoaded()
58 mLoadedSlices.add(sliceUri); in markSliceLoaded()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DEnhanced4gLteSliceHelper.java114 public Slice createEnhanced4gLteSlice(Uri sliceUri) { in createEnhanced4gLteSlice() argument
140 return getEnhanced4gLteSlice(sliceUri, in createEnhanced4gLteSlice()
166 private Slice getEnhanced4gLteSlice(Uri sliceUri, boolean isEnhanced4gLteEnabled, int subId) { in getEnhanced4gLteSlice() argument
170 return new ListBuilder(mContext, sliceUri, ListBuilder.INFINITY) in getEnhanced4gLteSlice()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/telephony/
DEnhanced4gLteSliceHelper.java114 public Slice createEnhanced4gLteSlice(Uri sliceUri) { in createEnhanced4gLteSlice() argument
140 return getEnhanced4gLteSlice(sliceUri, in createEnhanced4gLteSlice()
166 private Slice getEnhanced4gLteSlice(Uri sliceUri, boolean isEnhanced4gLteEnabled, int subId) { in getEnhanced4gLteSlice() argument
170 return new ListBuilder(mContext, sliceUri, ListBuilder.INFINITY) in getEnhanced4gLteSlice()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/
DSliceContextualCardRendererTest.java85 final Uri sliceUri = Uri.parse("contet://com.android.settings.slices/action/flashlight"); in bindView_invalidScheme_sliceShouldBeNull() local
88 mRenderer.bindView(viewHolder, buildContextualCard(sliceUri)); in bindView_invalidScheme_sliceShouldBeNull()
272 private ContextualCard buildContextualCard(Uri sliceUri) { in buildContextualCard() argument
276 .setSliceUri(sliceUri) in buildContextualCard()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/logging/
DContextualCardLogUtils.java66 public Builder setSliceUri(String sliceUri) { in setSliceUri() argument
67 mSliceUri = sliceUri; in setSliceUri()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/logging/
DContextualCardLogUtils.java66 public Builder setSliceUri(String sliceUri) { in setSliceUri() argument
67 mSliceUri = sliceUri; in setSliceUri()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/
DContextualCard.java305 public Builder setSliceUri(Uri sliceUri) { in setSliceUri() argument
306 mSliceUri = sliceUri.toString(); in setSliceUri()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/
DContextualCard.java314 public Builder setSliceUri(Uri sliceUri) { in setSliceUri() argument
315 mSliceUri = sliceUri.toString(); in setSliceUri()
/packages/services/Car/tests/CarDeveloperOptions/protos/
Dcontextual_card_list.proto25 optional string sliceUri = 1; field
/packages/apps/Settings/protos/
Dcontextual_card_list.proto25 optional string sliceUri = 1; field