Home
last modified time | relevance | path

Searched refs:digit (Results 1 – 25 of 52) sorted by relevance

123

/frameworks/native/services/surfaceflinger/Utils/
DOverlayUtils.h121 static void drawDigit(int digit, int left, SkColor color, SkCanvas& canvas) { in drawDigit() argument
122 if (digit < 0 || digit > 9) return; in drawDigit()
124 if (digit == 0 || digit == 2 || digit == 3 || digit == 5 || digit == 6 || digit == 7 || in drawDigit()
125 digit == 8 || digit == 9) in drawDigit()
127 if (digit == 0 || digit == 4 || digit == 5 || digit == 6 || digit == 8 || digit == 9) in drawDigit()
129 if (digit == 0 || digit == 1 || digit == 2 || digit == 3 || digit == 4 || digit == 7 || in drawDigit()
130 digit == 8 || digit == 9) in drawDigit()
132 if (digit == 2 || digit == 3 || digit == 4 || digit == 5 || digit == 6 || digit == 8 || in drawDigit()
133 digit == 9) in drawDigit()
135 if (digit == 0 || digit == 2 || digit == 6 || digit == 8) in drawDigit()
[all …]
/frameworks/base/core/java/android/widget/
DDoubleDigitManager.java48 public void reportDigit(int digit) { in reportDigit() argument
50 intermediateDigit = digit; in reportDigit()
61 if (!mCallBack.singleDigitIntermediate(digit)) { in reportDigit()
67 mCallBack.singleDigitFinal(digit); in reportDigit()
69 } else if (mCallBack.twoDigitsFinal(intermediateDigit, digit)) { in reportDigit()
86 boolean singleDigitIntermediate(int digit); in singleDigitIntermediate() argument
95 void singleDigitFinal(int digit); in singleDigitFinal() argument
/frameworks/opt/telephony/src/java/com/android/internal/telephony/d2d/
DDtmfTransport.java347 public void onDtmfReceived(char digit) { in onDtmfReceived() argument
348 if (!(digit >= 'A' && digit <= 'D')) { in onDtmfReceived()
355 mProbeDigits.append(digit); in onDtmfReceived()
358 if (digit == DTMF_MESSAGE_DELIMITER) { in onDtmfReceived()
363 handleReceivedDigit(digit); in onDtmfReceived()
460 private void handleReceivedDigit(char digit) { in handleReceivedDigit() argument
462 if (digit == DTMF_MESSAGE_START) { in handleReceivedDigit()
464 Log.i(this, "handleReceivedDigit: digit = %c ; message timeout started.", digit); in handleReceivedDigit()
469 digit); in handleReceivedDigit()
471 } else if (digit == DTMF_MESSAGE_DELIMITER) { in handleReceivedDigit()
[all …]
DDtmfAdapter.java32 void sendDtmf(char digit); in sendDtmf() argument
/frameworks/base/core/java/android/service/autofill/
DLuhnChecksumValidator.java63 final int digit = number.charAt(i) - '0'; in isLuhnChecksumValid() local
64 if (digit < 0 || digit > 9) { in isLuhnChecksumValid()
71 addend = digit * 2; in isLuhnChecksumValid()
76 addend = digit; in isLuhnChecksumValid()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/bouncer/ui/viewmodel/
DAuthMethodBouncerViewModelTest.kt65 FakeAuthenticationRepository.DEFAULT_PIN.drop(2).forEach { digit -> in <lambda>() method
66 underTest.onPinButtonClicked(digit) in <lambda>()
75 FakeAuthenticationRepository.DEFAULT_PIN.forEach { digit -> in <lambda>() method
76 underTest.onPinButtonClicked(digit) in <lambda>()
/frameworks/base/core/java/com/android/internal/util/
DProcFileReader.java221 final int digit = mBuffer[i] - '0'; in parseAndConsumeLong() local
222 if (digit < 0 || digit > 9) { in parseAndConsumeLong()
232 final long next = result * 10 - digit; in parseAndConsumeLong()
/frameworks/base/telephony/common/com/google/android/mms/pdu/
DQuotedPrintable.java56 int u = Character.digit((char) bytes[++i], 16); in decodeQuotedPrintable()
57 int l = Character.digit((char) bytes[++i], 16); in decodeQuotedPrintable()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ui/binder/
DPinPadViewBinder.kt38 override fun onDigitKeyClick(digit: String?) { in bind()
39 passwordField.append(digit) in bind()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/bouncer/ui/composable/
DPinInputDisplay.kt361 entries.forEach { entry -> key(entry.digit) { entry.Content() } } in Content()
385 val incoming = updated.minus(entries.map { it.digit }.toSet()).toList() in updateDigits()
386 val outgoing = entries.filterNot { entry -> updated.any { entry.digit == it } }.toList() in updateDigits()
396 entries.sortWith(compareBy { it.digit }) in updateDigits()
436 val digit: Digit, constant in com.android.systemui.bouncer.ui.composable.PinInputEntry
439 private val shape = shapeAnimations.getShapeToDot(digit.sequenceNumber)
442 Animatable(shapeAnimations.shapeSize, Dp.VectorConverter, label = "Width of pin ($digit)")
445 Animatable(shapeAnimations.shapeSize, Dp.VectorConverter, label = "Size of pin ($digit)")
DPinBouncer.kt105 digit = index + 1, in <lambda>()
128 digit = 0, in <lambda>()
152 digit: Int, in DigitButton()
159 onClicked = { onClicked(digit) }, in DigitButton()
174 text = digit.toString(), in DigitButton()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bouncer/ui/viewmodel/
DPinInputViewModel.kt65 fun append(digit: Int): PinInputViewModel { in append()
66 return PinInputViewModel(input, Digit(digit)) in append()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ui/
DIPinPad.kt35 fun onDigitKeyClick(digit: String?) in setPinPadClickListener()
/frameworks/base/telephony/java/android/telephony/
DPhoneNumberUtils.java296 int digit = Character.digit(c, 10); in extractNetworkPortion() local
297 if (digit != -1) { in extractNetworkPortion()
298 ret.append(digit); in extractNetworkPortion()
367 int digit = Character.digit(c, 10); in stripSeparators() local
368 if (digit != -1) { in stripSeparators()
369 ret.append(digit); in stripSeparators()
1762 int digit = Character.digit(c, 10); in normalizeNumber() local
1763 if (digit != -1) { in normalizeNumber()
1764 sb.append(digit); in normalizeNumber()
1783 int digit = Character.digit(c, 10); in replaceUnicodeDigits() local
[all …]
/frameworks/base/cmds/incident_helper/java/com/android/commands/incident/sections/
DPersistLogSection.java276 int digit = str.charAt(pos) - '0'; in getDigit() local
277 if (digit < 0 || digit > 9) { in getDigit()
280 return digit; in getDigit()
/frameworks/compile/slang/tests/F_bad_version_pragma/
Dstderr.txt.expect4 bad_version_pragma.rscript:4:18: error: invalid digit 'a' in decimal constant
/frameworks/base/packages/SystemUI/customization/src/com/android/systemui/shared/clocks/
DAnimatableClockView.kt541 digit = i, in <lambda>()
571 digit = i, in <lambda>()
598 private fun getDigitFraction(digit: Int, isMovingToCenter: Boolean, fraction: Float): Float { in <lambda>()
602 val digitInitialDelay = delays[digit] * MOVE_DIGIT_STEP in <lambda>()
/frameworks/native/libs/input/
DKeyCharacterMap.cpp1132 char16_t digit = 0; in finishKey() local
1138 digit = ch; in finishKey()
1146 key.number = digit ? digit : symbol; in finishKey()
1218 int digit; in parseCharacterLiteral() local
1220 digit = ch - '0'; in parseCharacterLiteral()
1222 digit = ch - 'A' + 10; in parseCharacterLiteral()
1224 digit = ch - 'a' + 10; in parseCharacterLiteral()
1228 *outCharacter = (*outCharacter << 4) | digit; in parseCharacterLiteral()
/frameworks/base/telecomm/java/android/telecom/
DInCallAdapter.java275 public void playDtmfTone(String callId, char digit) { in playDtmfTone() argument
277 mAdapter.playDtmfTone(callId, digit); in playDtmfTone()
DRemoteConference.java500 public void playDtmfTone(char digit) { in playDtmfTone() argument
502 mConnectionService.playDtmfTone(mId, digit, null /*Session.Info*/); in playDtmfTone()
/frameworks/base/tests/JankBench/scripts/external/
Dstatistics.py264 for digit in digits:
265 num = num*10 + digit
/frameworks/base/telecomm/java/com/android/internal/telecom/
DIInCallAdapter.aidl61 void playDtmfTone(String callId, char digit); in playDtmfTone() argument
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DConnection.java138 public void onReceivedDtmfDigit(char digit); in onReceivedDtmfDigit() argument
204 public void onReceivedDtmfDigit(char digit) {} in onReceivedDtmfDigit() argument
1615 public void receivedDtmfDigit(char digit) { in receivedDtmfDigit() argument
1617 l.onReceivedDtmfDigit(digit); in receivedDtmfDigit()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/scene/
DSceneFrameworkIntegrationTest.kt672 FakeAuthenticationRepository.DEFAULT_PIN.forEach { digit -> in <lambda>() method
673 pinBouncerViewModel.onPinButtonClicked(digit) in <lambda>()
700 FakeAuthenticationRepository.DEFAULT_PIN.forEach { digit -> in <lambda>() method
701 pinBouncerViewModel.onPinButtonClicked(digit) in <lambda>()
/frameworks/base/media/java/android/mtp/
DMtpServer.java77 if (Character.digit(strRandomId.charAt(ii), 16) == -1) { in MtpServer()

123