Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/slices/
DSettingsSliceProvider.java162 public void onSlicePinned(Uri sliceUri) { in onSlicePinned() argument
164 Log.d(TAG, "onSlicePinned: " + sliceUri); in onSlicePinned()
171 sliceUri.getLastPathSegment(), in onSlicePinned()
174 if (CustomSliceRegistry.isValidUri(sliceUri)) { in onSlicePinned()
177 .getSlicesFeatureProvider().getSliceableFromUri(context, sliceUri); in onSlicePinned()
180 registerIntentToUri(filter, sliceUri); in onSlicePinned()
182 ThreadUtils.postOnMainThread(() -> startBackgroundWorker(sliceable, sliceUri)); in onSlicePinned()
186 if (CustomSliceRegistry.ZEN_MODE_SLICE_URI.equals(sliceUri)) { in onSlicePinned()
187 registerIntentToUri(ZenModeSliceBuilder.INTENT_FILTER, sliceUri); in onSlicePinned()
189 } else if (CustomSliceRegistry.BLUETOOTH_URI.equals(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()
DRestrictedSliceUtils.java71 public static boolean isGuestRestricted(Uri sliceUri) { in isGuestRestricted() argument
72 if (AUTO_TURN_ON_WIFI_SLICE_URI.equals(sliceUri) in isGuestRestricted()
73 || NOTIFY_OPEN_NETWORKS_SLICE_URI.equals(sliceUri) in isGuestRestricted()
74 || BLUETOOTH_TETHERING_SLICE_URI.equals(sliceUri) in isGuestRestricted()
75 || USB_TETHERING_SLICE_URI.equals(sliceUri) in isGuestRestricted()
76 || CustomSliceRegistry.MOBILE_DATA_SLICE_URI.equals(sliceUri)) { in isGuestRestricted()
DSliceBroadcastReceiver.java65 final Uri sliceUri = intent.getData(); in onReceive() local
70 handleToggleAction(context, sliceUri, key, isChecked); in onReceive()
74 handleSliderAction(context, sliceUri, key, newPosition); in onReceive()
105 private void handleToggleAction(Context context, Uri sliceUri, String key, boolean isChecked) { in handleToggleAction() argument
119 context.getContentResolver().notifyChange(sliceUri, null /* observer */); in handleToggleAction()
130 context.getContentResolver().notifyChange(sliceUri, null /* observer */); in handleToggleAction()
134 private void handleSliderAction(Context context, Uri sliceUri, String key, int newPosition) { in handleSliderAction() argument
152 context.getContentResolver().notifyChange(sliceUri, null /* observer */); in handleSliderAction()
167 context.getContentResolver().notifyChange(sliceUri, null /* observer */); in handleSliderAction()
DVolumeSliceHelper.java48 static void registerIntentToUri(Context context, IntentFilter intentFilter, Uri sliceUri, in registerIntentToUri() argument
50 Log.d(TAG, "Registering uri for broadcast relay: " + sliceUri); in registerIntentToUri()
57 sRegisteredUri.put(sliceUri, audioStream); in registerIntentToUri()
61 static boolean unregisterUri(Context context, Uri sliceUri) { in unregisterUri() argument
62 if (!sRegisteredUri.containsKey(sliceUri)) { in unregisterUri()
66 Log.d(TAG, "Unregistering uri broadcast relay: " + sliceUri); in unregisterUri()
68 sRegisteredUri.remove(sliceUri); in unregisterUri()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DConnectedDevicesSliceProvider.java147 public PendingIntent onCreatePermissionRequest(Uri sliceUri, String callingPackage) { in onCreatePermissionRequest() argument
155 public void onSlicePinned(Uri sliceUri) { in onSlicePinned() argument
158 Log.d(TAG, "Slice pinned: " + sliceUri); in onSlicePinned()
167 if (!mPinnedUris.containsKey(sliceUri)) { in onSlicePinned()
168 mPinnedUris.put(sliceUri, 0); in onSlicePinned()
170 mPinnedUris.put(sliceUri, mPinnedUris.get(sliceUri) + 1); in onSlicePinned()
175 public Slice onBindSlice(Uri sliceUri) { in onBindSlice() argument
177 Log.d(TAG, "onBindSlice: " + sliceUri); in onBindSlice()
180 sliceUri = ConnectedDevicesSliceUtils.GENERAL_SLICE_URI; in onBindSlice()
187 if (ConnectedDevicesSliceUtils.isGeneralPath(sliceUri)) { in onBindSlice()
[all …]
/packages/apps/Settings/src/com/android/settings/wifi/calling/
DWifiCallingSliceHelper.java131 public Slice createWifiCallingSlice(Uri sliceUri) { in createWifiCallingSlice() argument
153 sliceUri, getActivityIntent(ACTION_WIFI_CALLING_SETTINGS_ACTIVITY)); in createWifiCallingSlice()
155 return getWifiCallingSlice(sliceUri, isWifiCallingEnabled, subId); in createWifiCallingSlice()
167 private Slice getWifiCallingSlice(Uri sliceUri, boolean isWifiCallingEnabled, int subId) { in getWifiCallingSlice() argument
171 return new ListBuilder(mContext, sliceUri, ListBuilder.INFINITY) in getWifiCallingSlice()
203 public Slice createWifiCallingPreferenceSlice(Uri sliceUri) { in createWifiCallingPreferenceSlice() argument
242 sliceUri, getActivityIntent(ACTION_WIFI_CALLING_SETTINGS_ACTIVITY)); in createWifiCallingPreferenceSlice()
246 isWifiOnlySupported, wfcMode, sliceUri, subId); in createWifiCallingPreferenceSlice()
260 Uri sliceUri, in getWifiCallingPreferenceSlice() argument
265 final ListBuilder listBuilder = new ListBuilder(mContext, sliceUri, ListBuilder.INFINITY) in getWifiCallingPreferenceSlice()
[all …]
/packages/apps/Settings/tests/legacy_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/apps/Settings/src/com/android/settings/panel/
DPanelSlicesLoaderCountdownLatch.java57 public void markSliceLoaded(Uri sliceUri) { in markSliceLoaded() argument
58 if (mLoadedSlices.contains(sliceUri)) { in markSliceLoaded()
61 mLoadedSlices.add(sliceUri); in markSliceLoaded()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/
DSliceUtilsKt.kt51 for (sliceUri in enabledSlicesUri) { in isSettingsSliceEnabled() constant
52 Log.i(TAG, "Enabled slice: $sliceUri") in isSettingsSliceEnabled()
53 if (sliceUri.toString() == uri) { in isSettingsSliceEnabled()
DSliceUtils.java82 for (final Uri sliceUri : enabledSlicesUri) { in isSettingsSliceEnabled()
83 Log.i(TAG, "Enabled slice: " + sliceUri); in isSettingsSliceEnabled()
84 if (sliceUri.toString().equals(uri)) { in isSettingsSliceEnabled()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/slice/
DSliceActivity.java48 String sliceUri = getSliceUri(); in createSettingsFragment() local
49 if (sliceUri == null) { in createSettingsFragment()
52 bundle.putString(SlicesConstants.TAG_TARGET_URI, sliceUri); in createSettingsFragment()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/util/
DSliceUtils.java76 for (final Uri sliceUri : enabledSlicesUri) { in isSettingsSliceEnabled()
77 Log.i(TAG, "Enabled slice: " + sliceUri); in isSettingsSliceEnabled()
78 if (sliceUri.toString().equals(uri)) { in isSettingsSliceEnabled()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/settingslib/
DInputMethodHelper.java118 String sliceUri = "content://" + imi.getPackageName() + ".tv.sliceprovider" + "/general"; in getInputMethodsSettingsUri() local
119 if (SliceUtils.isSliceProviderValid(context, sliceUri)) { in getInputMethodsSettingsUri()
120 return sliceUri; in getInputMethodsSettingsUri()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/inputmethod/
DInputMethodHelper.java118 String sliceUri = "content://" + imi.getPackageName() + ".tv.sliceprovider" + "/general"; in getInputMethodsSettingsUri() local
119 if (SliceUtils.isSliceProviderValid(context, sliceUri)) { in getInputMethodsSettingsUri()
120 return sliceUri; in getInputMethodsSettingsUri()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DEnhanced4gLteSliceHelper.java106 public Slice createEnhanced4gLteSlice(Uri sliceUri) { in createEnhanced4gLteSlice() argument
130 return getEnhanced4gLteSlice(sliceUri, in createEnhanced4gLteSlice()
142 private Slice getEnhanced4gLteSlice(Uri sliceUri, boolean isEnhanced4gLteEnabled, int subId) { in getEnhanced4gLteSlice() argument
146 return new ListBuilder(mContext, sliceUri, ListBuilder.INFINITY) in getEnhanced4gLteSlice()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/
DEligibleCardCheckerTest.java134 private ContextualCard getContextualCard(Uri sliceUri) { in getContextualCard() argument
139 .setSliceUri(sliceUri) in getContextualCard()
DContextualCardsAdapterTest.java166 private ContextualCard buildContextualCard(Uri sliceUri) { in buildContextualCard() argument
170 .setSliceUri(sliceUri) in buildContextualCard()
DContextualCardManagerTest.java640 private ContextualCard buildContextualCard(String sliceUri) { in buildContextualCard() argument
644 .setSliceUri(Uri.parse(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/apps/Settings/src/com/android/settings/homepage/contextualcards/
DContextualCard.java254 public Builder setSliceUri(Uri sliceUri) { in setSliceUri() argument
255 mSliceUri = sliceUri.toString(); in setSliceUri()
/packages/apps/Settings/protos/
Dcontextual_card_list.proto26 optional string sliceUri = 1; field
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/
DPreferenceCompat.java354 public void setSliceUri(String sliceUri) { in setSliceUri() argument
355 mSliceUri = sliceUri; in setSliceUri()
/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/
DVolumeSliceHelperTest.java318 public static void registerReceiver(Context context, Uri sliceUri, in registerReceiver() argument
324 public static void unregisterReceivers(Context context, Uri sliceUri) { in unregisterReceivers() argument
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/
DSliceContextualCardRendererTest.java294 private ContextualCard buildContextualCard(Uri sliceUri) { in buildContextualCard() argument
299 .setSliceUri(sliceUri) in buildContextualCard()