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.java35 import com.android.settingslib.SliceBroadcastRelay;
57 Intent intent = new Intent(SliceBroadcastRelay.ACTION_REGISTER); in testRegister()
58 intent.putExtra(SliceBroadcastRelay.EXTRA_URI, ContentProvider.maybeAddUserId(testUri, 0)); in testRegister()
59 intent.putExtra(SliceBroadcastRelay.EXTRA_RECEIVER, in testRegister()
62 intent.putExtra(SliceBroadcastRelay.EXTRA_FILTER, value); in testRegister()
63 intent.putExtra(SliceBroadcastRelay.EXTRA_URI, testUri); in testRegister()
79 Intent intent = new Intent(SliceBroadcastRelay.ACTION_REGISTER); in testUnregister()
80 intent.putExtra(SliceBroadcastRelay.EXTRA_URI, ContentProvider.maybeAddUserId(testUri, 0)); in testUnregister()
81 intent.putExtra(SliceBroadcastRelay.EXTRA_RECEIVER, in testUnregister()
84 intent.putExtra(SliceBroadcastRelay.EXTRA_FILTER, value); in testUnregister()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSliceBroadcastRelayHandler.java30 import com.android.settingslib.SliceBroadcastRelay;
45 IntentFilter filter = new IntentFilter(SliceBroadcastRelay.ACTION_REGISTER); in start()
46 filter.addAction(SliceBroadcastRelay.ACTION_UNREGISTER); in start()
52 if (SliceBroadcastRelay.ACTION_REGISTER.equals(intent.getAction())) { in handleIntent()
53 Uri uri = intent.getParcelableExtra(SliceBroadcastRelay.EXTRA_URI); in handleIntent()
55 intent.getParcelableExtra(SliceBroadcastRelay.EXTRA_RECEIVER); in handleIntent()
56 IntentFilter filter = intent.getParcelableExtra(SliceBroadcastRelay.EXTRA_FILTER); in handleIntent()
59 } else if (SliceBroadcastRelay.ACTION_UNREGISTER.equals(intent.getAction())) { in handleIntent()
60 Uri uri = intent.getParcelableExtra(SliceBroadcastRelay.EXTRA_URI); in handleIntent()
111 intent.putExtra(SliceBroadcastRelay.EXTRA_URI, mUri.toString()); in onReceive()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DSliceBroadcastRelay.java30 public class SliceBroadcastRelay { class