Searched refs:currentNumber (Results 1 – 2 of 2) sorted by relevance
/cts/tests/tests/permission2/src/android/permission2/cts/ |
D | NoReceiveSmsPermissionTest.java | 142 String currentNumber = telephony.getLine1Number(); in sendSMSToSelf() local 144 TextUtils.isEmpty(currentNumber)); in sendSMSToSelf() 146 Log.i(LOG_TAG, String.format("Sending SMS to self: %s", currentNumber)); in sendSMSToSelf() 147 sendSms(currentNumber, message, sentIntent, deliveryIntent); in sendSMSToSelf() 150 protected void sendSms(String currentNumber, String text, PendingIntent sentIntent, in sendSms() argument 152 SmsManager.getDefault().sendTextMessage(currentNumber, null, text, sentIntent, in sendSms()
|
/cts/hostsidetests/car/src/android/car/cts/ |
D | CarHostJUnit4TestCase.java | 150 int currentNumber = getDevice().listUsers().size(); in requiresExtraUsers() local 152 if (currentNumber + numberOfUsers <= maxNumber) return; in requiresExtraUsers() 155 failCannotCreateUsers(numberOfUsers, currentNumber, maxNumber, /* isAdbRoot= */ false); in requiresExtraUsers() 164 if (currentNumber + numberOfUsers > maxNumber) { in requiresExtraUsers() 165 failCannotCreateUsers(numberOfUsers, currentNumber, maxNumber, /* isAdbRoot= */ true); in requiresExtraUsers() 169 private void failCannotCreateUsers(int numberOfUsers, int currentNumber, int maxNumber, in failCannotCreateUsers() argument 179 fail("Cannot create " + numberOfUsers + " users: current number is " + currentNumber in failCannotCreateUsers()
|