Home
last modified time | relevance | path

Searched refs:receiverName (Results 1 – 6 of 6) sorted by relevance

/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DMyServiceClient.java84 public int getCounters(String receiverName, String action) throws RemoteException { in getCounters() argument
85 return mService.getCounters(receiverName, action); in getCounters()
DAbstractRestrictBackgroundNetworkTestCase.java210 protected void assertRestrictBackgroundChangedReceived(String receiverName, int expectedCount) in assertRestrictBackgroundChangedReceived() argument
217 count = getNumberBroadcastsReceived(receiverName, ACTION_RESTRICT_BACKGROUND_CHANGED); in assertRestrictBackgroundChangedReceived()
226 assertEquals("Number of expected broadcasts for " + receiverName + " not reached after " in assertRestrictBackgroundChangedReceived()
255 protected int getNumberBroadcastsReceived(String receiverName, String action) throws Exception { in getNumberBroadcastsReceived() argument
256 return mServiceClient.getCounters(receiverName, action); in getNumberBroadcastsReceived()
/cts/hostsidetests/net/aidl/com/android/cts/net/hostside/
DIMyService.aidl23 int getCounters(String receiverName, String action); in getCounters() argument
/cts/hostsidetests/net/app2/src/com/android/cts/net/hostside/app2/
DMyService.java72 public int getCounters(String receiverName, String action) {
73 return MyBroadcastReceiver.getCounter(getApplicationContext(), action, receiverName);
DMyBroadcastReceiver.java108 static int getCounter(Context context, String action, String receiverName) { in getCounter() argument
109 final SharedPreferences prefs = context.getSharedPreferences(receiverName, in getCounter()
112 Log.d(TAG, "getCounter('" + action + "', '" + receiverName + "'): " + value); in getCounter()
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageManagerTest.java248 ComponentName receiverName = new ComponentName(PACKAGE_NAME, RECEIVER_NAME); in testGetInfo() local
266 assertEquals(RECEIVER_NAME, mPackageManager.getReceiverInfo(receiverName, 0).name); in testGetInfo()