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.java86 public int getCounters(String receiverName, String action) throws RemoteException { in getCounters() argument
87 return mService.getCounters(receiverName, action); in getCounters()
DAbstractRestrictBackgroundNetworkTestCase.java163 protected void assertRestrictBackgroundChangedReceived(String receiverName, int expectedCount) in assertRestrictBackgroundChangedReceived() argument
170 count = getNumberBroadcastsReceived(receiverName, ACTION_RESTRICT_BACKGROUND_CHANGED); in assertRestrictBackgroundChangedReceived()
179 assertEquals("Number of expected broadcasts for " + receiverName + " not reached after " in assertRestrictBackgroundChangedReceived()
208 protected int getNumberBroadcastsReceived(String receiverName, String action) throws Exception { in getNumberBroadcastsReceived() argument
209 return mServiceClient.getCounters(receiverName, action); in getNumberBroadcastsReceived()
/cts/hostsidetests/net/aidl/com/android/cts/net/hostside/
DIMyService.aidl21 int getCounters(String receiverName, String action); in getCounters() argument
/cts/hostsidetests/net/app2/src/com/android/cts/net/hostside/app2/
DMyService.java65 public int getCounters(String receiverName, String action) {
66 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.java197 ComponentName receiverName = new ComponentName(PACKAGE_NAME, RECEIVER_NAME); in testGetInfo() local
215 assertEquals(RECEIVER_NAME, mPackageManager.getReceiverInfo(receiverName, 0).name); in testGetInfo()