Home
last modified time | relevance | path

Searched refs:SliceBroadcastRelay (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DSliceBroadcastRelayHandlerTest.java40 import com.android.settingslib.SliceBroadcastRelay;
95 Intent intent = new Intent(SliceBroadcastRelay.ACTION_REGISTER); in testRegister()
96 intent.putExtra(SliceBroadcastRelay.EXTRA_URI, ContentProvider.maybeAddUserId(testUri, 0)); in testRegister()
97 intent.putExtra(SliceBroadcastRelay.EXTRA_RECEIVER, in testRegister()
100 intent.putExtra(SliceBroadcastRelay.EXTRA_FILTER, value); in testRegister()
101 intent.putExtra(SliceBroadcastRelay.EXTRA_URI, testUri); in testRegister()
116 Intent intent = new Intent(SliceBroadcastRelay.ACTION_REGISTER); in testUnregister()
117 intent.putExtra(SliceBroadcastRelay.EXTRA_URI, ContentProvider.maybeAddUserId(testUri, 0)); in testUnregister()
118 intent.putExtra(SliceBroadcastRelay.EXTRA_RECEIVER, in testUnregister()
121 intent.putExtra(SliceBroadcastRelay.EXTRA_FILTER, value); in testUnregister()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSliceBroadcastRelayHandler.java34 import com.android.settingslib.SliceBroadcastRelay;
70 IntentFilter filter = new IntentFilter(SliceBroadcastRelay.ACTION_REGISTER); in start()
71 filter.addAction(SliceBroadcastRelay.ACTION_UNREGISTER); in start()
84 if (SliceBroadcastRelay.ACTION_REGISTER.equals(intent.getAction())) { in handleIntent()
85 Uri uri = intent.getParcelableExtra(SliceBroadcastRelay.EXTRA_URI, Uri.class); in handleIntent()
87 intent.getParcelableExtra(SliceBroadcastRelay.EXTRA_RECEIVER, in handleIntent()
89 IntentFilter filter = intent.getParcelableExtra(SliceBroadcastRelay.EXTRA_FILTER, in handleIntent()
93 } else if (SliceBroadcastRelay.ACTION_UNREGISTER.equals(intent.getAction())) { in handleIntent()
94 Uri uri = intent.getParcelableExtra(SliceBroadcastRelay.EXTRA_URI, Uri.class); in handleIntent()
155 intent.putExtra(SliceBroadcastRelay.EXTRA_URI, mUri.toString()); in onReceive()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DSliceBroadcastRelay.java34 public class SliceBroadcastRelay { class