Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/slices/
DSettingsSliceProvider.java165 public void onSlicePinned(Uri sliceUri) { in onSlicePinned() argument
167 Log.d(TAG, "onSlicePinned: " + sliceUri); in onSlicePinned()
170 if (CustomSliceRegistry.isValidUri(sliceUri)) { in onSlicePinned()
173 .getSlicesFeatureProvider().getSliceableFromUri(context, sliceUri); in onSlicePinned()
176 registerIntentToUri(filter, sliceUri); in onSlicePinned()
178 ThreadUtils.postOnMainThread(() -> startBackgroundWorker(sliceable, sliceUri)); in onSlicePinned()
182 if (CustomSliceRegistry.ZEN_MODE_SLICE_URI.equals(sliceUri)) { in onSlicePinned()
183 registerIntentToUri(ZenModeSliceBuilder.INTENT_FILTER, sliceUri); in onSlicePinned()
185 } else if (CustomSliceRegistry.BLUETOOTH_URI.equals(sliceUri)) { in onSlicePinned()
186 registerIntentToUri(BluetoothSliceBuilder.INTENT_FILTER, sliceUri); in onSlicePinned()
[all …]
DSliceBroadcastReceiver.java66 final Uri sliceUri = intent.getData(); in onReceive() local
71 handleToggleAction(context, sliceUri, key, isChecked); in onReceive()
75 handleSliderAction(context, sliceUri, key, newPosition); in onReceive()
104 handleCopyAction(context, sliceUri, key); in onReceive()
109 private void handleToggleAction(Context context, Uri sliceUri, String key, boolean isChecked) { in handleToggleAction() argument
123 context.getContentResolver().notifyChange(sliceUri, null /* observer */); in handleToggleAction()
134 context.getContentResolver().notifyChange(sliceUri, null /* observer */); in handleToggleAction()
138 private void handleSliderAction(Context context, Uri sliceUri, String key, int newPosition) { in handleSliderAction() argument
156 context.getContentResolver().notifyChange(sliceUri, null /* observer */); in handleSliderAction()
171 context.getContentResolver().notifyChange(sliceUri, null /* observer */); in handleSliderAction()
[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()
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.java125 public PendingIntent onCreatePermissionRequest(Uri sliceUri, String callingPackage) { in onCreatePermissionRequest() argument
133 public void onSlicePinned(Uri sliceUri) { in onSlicePinned() argument
136 Log.d(TAG, "Slice pinned: " + sliceUri); in onSlicePinned()
145 if (!mPinnedUris.containsKey(sliceUri)) { in onSlicePinned()
146 mPinnedUris.put(sliceUri, 0); in onSlicePinned()
148 mPinnedUris.put(sliceUri, mPinnedUris.get(sliceUri) + 1); in onSlicePinned()
153 public Slice onBindSlice(Uri sliceUri) { in onBindSlice() argument
155 Log.d(TAG, "onBindSlice: " + sliceUri); in onBindSlice()
157 if (ConnectedDevicesSliceUtils.isGeneralPath(sliceUri)) { in onBindSlice()
158 return createGeneralSlice(sliceUri); in onBindSlice()
[all …]
/packages/apps/Settings/src/com/android/settings/wifi/calling/
DWifiCallingSliceHelper.java131 public Slice createWifiCallingSlice(Uri sliceUri) { in createWifiCallingSlice() argument
158 sliceUri, getActivityIntent(ACTION_WIFI_CALLING_SETTINGS_ACTIVITY)); in createWifiCallingSlice()
160 return getWifiCallingSlice(sliceUri, isWifiCallingEnabled, subId); in createWifiCallingSlice()
172 private Slice getWifiCallingSlice(Uri sliceUri, boolean isWifiCallingEnabled, int subId) { in getWifiCallingSlice() argument
176 return new ListBuilder(mContext, sliceUri, ListBuilder.INFINITY) in getWifiCallingSlice()
207 public Slice createWifiCallingPreferenceSlice(Uri sliceUri) { in createWifiCallingPreferenceSlice() argument
246 sliceUri, getActivityIntent(ACTION_WIFI_CALLING_SETTINGS_ACTIVITY)); in createWifiCallingPreferenceSlice()
250 isWifiOnlySupported, wfcMode, sliceUri, subId); in createWifiCallingPreferenceSlice()
264 Uri sliceUri, in getWifiCallingPreferenceSlice() argument
269 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.java54 public void markSliceLoaded(Uri sliceUri) { in markSliceLoaded() argument
55 if (mLoadedSlices.contains(sliceUri)) { in markSliceLoaded()
58 mLoadedSlices.add(sliceUri); in markSliceLoaded()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/slice/
DSliceActivity.java49 String sliceUri = getSliceUri(); in createSettingsFragment() local
50 if (sliceUri == null) { in createSettingsFragment()
53 bundle.putString(SlicesConstants.TAG_TARGET_URI, sliceUri); in createSettingsFragment()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/
DSliceUtils.java70 for (final Uri sliceUri : enabledSlicesUri) { in isSettingsSliceEnabled()
71 Log.i(TAG, "Enabled slice: " + sliceUri); in isSettingsSliceEnabled()
72 if (sliceUri.toString().equals(uri)) { in isSettingsSliceEnabled()
/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/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/tests/robotests/src/com/android/settings/homepage/contextualcards/
DEligibleCardCheckerTest.java128 private ContextualCard getContextualCard(Uri sliceUri) { in getContextualCard() argument
133 .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/tests/robotests/src/com/android/settings/slices/
DVolumeSliceHelperTest.java241 public static void registerReceiver(Context context, Uri sliceUri, in registerReceiver() argument
247 public static void unregisterReceivers(Context context, Uri sliceUri) { in unregisterReceivers() argument
/packages/apps/Launcher3/src/com/android/launcher3/allapps/search/
DSearchAdapterProvider.java42 public void onSliceStatusUpdate(Uri sliceUri) { in onSliceStatusUpdate() argument
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/
DSliceContextualCardRendererTest.java287 private ContextualCard buildContextualCard(Uri sliceUri) { in buildContextualCard() argument
292 .setSliceUri(sliceUri) in buildContextualCard()
/packages/apps/Settings/protos/
Dcontextual_card_list.proto26 optional string sliceUri = 1; field