Home
last modified time | relevance | path

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

/packages/apps/Protips/src/com/android/protips/
DProtipWidget.java148 final Intent bcast = new Intent(context, ProtipWidget.class); in onReceiveAsync() local
149 bcast.setAction(ACTION_POKE); in onReceiveAsync()
150 bcast.putExtra(EXTRA_TIMES, 3); in onReceiveAsync()
151 mContext.sendBroadcast(bcast); in onReceiveAsync()
196 Intent bcast = new Intent(context, ProtipWidget.class); in buildUpdate() local
197 bcast.setAction(ACTION_NEXT_TIP); in buildUpdate()
199 context, 0, bcast, PendingIntent.FLAG_UPDATE_CURRENT); in buildUpdate()
203 bcast = new Intent(context, ProtipWidget.class); in buildUpdate()
204 bcast.setAction(ACTION_POKE); in buildUpdate()
205 bcast.putExtra(EXTRA_TIMES, 1); in buildUpdate()
[all …]
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DTethering.java1159 final Intent bcast = new Intent(ACTION_TETHER_STATE_CHANGED); in buildStateChangeIntent() local
1160 bcast.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING); in buildStateChangeIntent()
1162 bcast.putStringArrayListExtra(EXTRA_AVAILABLE_TETHER, toIfaces(available)); in buildStateChangeIntent()
1163 bcast.putStringArrayListExtra(EXTRA_ACTIVE_LOCAL_ONLY, toIfaces(localOnly)); in buildStateChangeIntent()
1164 bcast.putStringArrayListExtra(EXTRA_ACTIVE_TETHER, toIfaces(tethered)); in buildStateChangeIntent()
1165 bcast.putStringArrayListExtra(EXTRA_ERRORED_TETHER, toIfaces(errored)); in buildStateChangeIntent()
1167 return bcast; in buildStateChangeIntent()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringTest.java880 final Intent bcast = mIntents.get(0); in verifyTetheringBroadcast() local
881 assertEquals(ACTION_TETHER_STATE_CHANGED, bcast.getAction()); in verifyTetheringBroadcast()
882 final ArrayList<String> ifnames = bcast.getStringArrayListExtra(whichExtra); in verifyTetheringBroadcast()
884 mIntents.remove(bcast); in verifyTetheringBroadcast()