/frameworks/base/services/tests/servicestests/src/com/android/server/devicestate/ |
D | OverrideRequestControllerTest.java | 73 assertEquals(mStatusListener.getLastStatus(request).intValue(), STATUS_ACTIVE); in addRequest() 83 assertEquals(mStatusListener.getLastStatus(firstRequest).intValue(), STATUS_ACTIVE); in addRequest_cancelExistingRequestThroughNewRequest() 90 assertEquals(mStatusListener.getLastStatus(secondRequest).intValue(), STATUS_ACTIVE); in addRequest_cancelExistingRequestThroughNewRequest() 91 assertEquals(mStatusListener.getLastStatus(firstRequest).intValue(), STATUS_CANCELED); in addRequest_cancelExistingRequestThroughNewRequest() 101 assertEquals(mStatusListener.getLastStatus(firstRequest).intValue(), STATUS_ACTIVE); in addRequest_cancelActiveRequest() 105 assertEquals(mStatusListener.getLastStatus(firstRequest).intValue(), STATUS_CANCELED); in addRequest_cancelActiveRequest() 115 assertEquals(mStatusListener.getLastStatus(request).intValue(), STATUS_ACTIVE); in addBaseStateRequest() 125 assertEquals(mStatusListener.getLastStatus(firstRequest).intValue(), STATUS_ACTIVE); in addBaseStateRequest_cancelExistingBaseStateRequestThroughNewRequest() 132 assertEquals(mStatusListener.getLastStatus(secondRequest).intValue(), STATUS_ACTIVE); in addBaseStateRequest_cancelExistingBaseStateRequestThroughNewRequest() 133 assertEquals(mStatusListener.getLastStatus(firstRequest).intValue(), STATUS_CANCELED); in addBaseStateRequest_cancelExistingBaseStateRequestThroughNewRequest() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | GestureLauncherServiceTest.java | 319 assertEquals((int) INITIAL_EVENT_TIME_MILLIS, intervals.get(0).intValue()); in testInterceptPowerKeyDown_intervalInBoundsCameraPowerGestureOffInteractive() 320 assertEquals((int) interval, intervals.get(1).intValue()); in testInterceptPowerKeyDown_intervalInBoundsCameraPowerGestureOffInteractive() 326 assertEquals(1, tapCounts.get(0).intValue()); in testInterceptPowerKeyDown_intervalInBoundsCameraPowerGestureOffInteractive() 327 assertEquals(2, tapCounts.get(1).intValue()); in testInterceptPowerKeyDown_intervalInBoundsCameraPowerGestureOffInteractive() 364 assertEquals((int) INITIAL_EVENT_TIME_MILLIS, intervals.get(0).intValue()); in testInterceptPowerKeyDown_intervalMidBoundsCameraPowerGestureOffInteractive() 365 assertEquals((int) interval, intervals.get(1).intValue()); in testInterceptPowerKeyDown_intervalMidBoundsCameraPowerGestureOffInteractive() 371 assertEquals(1, tapCounts.get(0).intValue()); in testInterceptPowerKeyDown_intervalMidBoundsCameraPowerGestureOffInteractive() 374 assertEquals(2, tapCounts.get(1).intValue()); in testInterceptPowerKeyDown_intervalMidBoundsCameraPowerGestureOffInteractive() 411 assertEquals((int) INITIAL_EVENT_TIME_MILLIS, intervals.get(0).intValue()); in testInterceptPowerKeyDown_intervalOutOfBoundsCameraPowerGestureOffInteractive() 412 assertEquals((int) interval, intervals.get(1).intValue()); in testInterceptPowerKeyDown_intervalOutOfBoundsCameraPowerGestureOffInteractive() [all …]
|
/frameworks/base/packages/SettingsProvider/src/android/provider/settings/validators/ |
D | InclusiveIntegerRangeValidator.java | 41 final int intValue = Integer.parseInt(value); in validate() local 42 return intValue >= mMin && intValue <= mMax; in validate()
|
/frameworks/hardware/interfaces/stats/aidl/vts/functional/ |
D | VtsHalStatsTargetTest.cpp | 49 tmp.set<VendorAtomValue::intValue>(7); in TEST_P() 55 tmp.set<VendorAtomValue::intValue>(3); in TEST_P() 96 tmp.set<VendorAtomValue::intValue>(7); in TEST_P() 102 tmp.set<VendorAtomValue::intValue>(3); in TEST_P() 117 tmp.set<VendorAtomValue::intValue>(7); in TEST_P() 123 tmp.set<VendorAtomValue::intValue>(3); in TEST_P() 138 tmp.set<VendorAtomValue::intValue>(7); in TEST_P() 144 tmp.set<VendorAtomValue::intValue>(3); in TEST_P()
|
/frameworks/opt/telephony/tests/telephonytests/src/android/telephony/ims/ |
D | ImsConfigImplTest.java | 131 assertEquals(TEST_KEY, callbackResult.first.intValue()); in testIntCaching() 132 assertEquals(TEST_INT_VALUE, callbackResult.second.intValue()); in testIntCaching() 135 assertEquals(TEST_KEY, mConfigUT.latestIntConfig.first.intValue()); in testIntCaching() 136 assertEquals(TEST_INT_VALUE, mConfigUT.latestIntConfig.second.intValue()); in testIntCaching() 160 assertEquals(TEST_KEY, callbackResult.first.intValue()); in testStringCaching() 164 assertEquals(TEST_KEY, mConfigUT.latestStringConfig.first.intValue()); in testStringCaching()
|
/frameworks/proto_logging/stats/stats_log_api_gen/ |
D | test_api_gen_vendor.cpp | 115 EXPECT_EQ(atom.values[0].get<VendorAtomValue::intValue>(), VendorAtom1::TYPE_1); in TEST() 116 EXPECT_EQ(atom.values[1].get<VendorAtomValue::intValue>(), VendorAtom1::TYPE_2); in TEST() 117 EXPECT_EQ(atom.values[2].get<VendorAtomValue::intValue>(), kTestIntValue); in TEST() 121 EXPECT_EQ(atom.values[6].get<VendorAtomValue::intValue>(), VendorAtom1::ANOTHER_TYPE_2); in TEST() 122 EXPECT_EQ(atom.values[7].get<VendorAtomValue::intValue>(), VendorAtom1::ANOTHER_TYPE_3); in TEST() 137 EXPECT_EQ(atom.values[0].get<VendorAtomValue::intValue>(), kTestIntValue); in TEST() 168 EXPECT_EQ(atom.values[1].get<VendorAtomValue::intValue>(), kTestIntValue); in TEST() 171 EXPECT_EQ(atom.values[4].get<VendorAtomValue::intValue>(), VendorAtom4::TYPE_1); in TEST() 213 EXPECT_EQ(atom.values[1].get<VendorAtomValue::intValue>(), kTestIntValue); in TEST() 255 EXPECT_EQ(atom1.values[0].get<VendorAtomValue::intValue>(), in TEST() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/satellite/ |
D | NtnCapabilityResolverTest.java | 102 .mapToInt(Integer::intValue) in testResolveNTNCapability() 110 .mapToInt(Integer::intValue) in testResolveNTNCapability() 121 .mapToInt(Integer::intValue) in testResolveNTNCapability() 129 .mapToInt(Integer::intValue) in testResolveNTNCapability() 140 .mapToInt(Integer::intValue) in testResolveNTNCapability() 148 .mapToInt(Integer::intValue) in testResolveNTNCapability()
|
/frameworks/libs/service_entitlement/java/com/android/libraries/entitlement/eapaka/ |
D | MasterKey.java | 283 int tmpA = new BigInteger(doFunctionS(5, bytesA)).intValue(); in doFunctionG() 285 int tmpE = new BigInteger(bytesE).intValue(); in doFunctionG() 286 int tmpW = new BigInteger(bytesW[i]).intValue(); in doFunctionG() 318 return BytesConverter.convertIntegerTo4Bytes(iA.add(iB).intValue()); in addTwoBytes() 327 int value = new BigInteger(dataX).intValue(); in doFunctionS() 331 return BytesConverter.convertIntegerTo4Bytes(result.intValue()); in doFunctionS() 340 return BytesConverter.convertIntegerTo4Bytes(result.intValue()); in doXor() 367 return result.intValue(); in doFunctionF()
|
/frameworks/base/media/java/android/mtp/ |
D | MtpPropertyList.java | 81 return mObjectHandles.stream().mapToInt(Integer::intValue).toArray(); in getObjectHandles() 85 return mPropertyCodes.stream().mapToInt(Integer::intValue).toArray(); in getPropertyCodes() 89 return mDataTypes.stream().mapToInt(Integer::intValue).toArray(); in getDataTypes()
|
/frameworks/base/core/java/android/animation/ |
D | IntKeyframeSet.java | 72 intValue(); in getIntValue() 87 … ((Number)mEvaluator.evaluate(intervalFraction, prevValue, nextValue)).intValue(); in getIntValue() 105 intValue(); in getIntValue() 110 return ((Number)mKeyframes.get(mNumKeyframes - 1).getValue()).intValue(); in getIntValue()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/policy/ |
D | NewRootTaskInfo.kt | 40 enum class ActivityType(private val intValue: Int) { constant in com.android.systemui.screenshot.policy.ActivityType 49 fun toInt() = intValue in toInt() 53 enum class WindowingMode(private val intValue: Int) { in toInt() constant in com.android.systemui.screenshot.policy.WindowingMode 61 fun toInt() = intValue in toInt()
|
/frameworks/base/services/core/java/com/android/server/display/config/ |
D | RefreshRateData.java | 126 return refreshRateConfigs.getDefaultRefreshRate().intValue(); in loadDefaultRefreshRate() 136 return refreshRateConfigs.getDefaultPeakRefreshRate().intValue(); in loadDefaultPeakRefreshRate() 147 return refreshRateConfigs.getDefaultRefreshRateInHbmHdr().intValue(); in loadDefaultRefreshRateInHbm() 158 return refreshRateConfigs.getDefaultRefreshRateInHbmSunlight().intValue(); in loadDefaultRefreshRateInHbmSunlight()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | ActiveUnlockConfig.kt | 101 enum class BiometricType(val intValue: Int) { constant in com.android.keyguard.BiometricType 220 setOf(BiometricType.NONE.intValue)) in onChange() 349 return onUnlockIntentWhenBiometricEnrolled.contains(BiometricType.NONE.intValue) in shouldRequestActiveUnlockOnUnlockIntentFromBiometricEnrollment() 354 BiometricType.ANY_FINGERPRINT.intValue) || in shouldRequestActiveUnlockOnUnlockIntentFromBiometricEnrollment() 356 BiometricType.UNDER_DISPLAY_FINGERPRINT.intValue)) in shouldRequestActiveUnlockOnUnlockIntentFromBiometricEnrollment() 360 return onUnlockIntentWhenBiometricEnrolled.contains(BiometricType.ANY_FACE.intValue) in shouldRequestActiveUnlockOnUnlockIntentFromBiometricEnrollment() 379 if (biometricType.intValue == it) { in dump()
|
/frameworks/base/packages/SettingsLib/Spa/tests/src/com/android/settingslib/spa/widget/preference/ |
D | RadioPreferencesTest.kt | 67 override val onIdSelected = { id: Int -> selectedId.intValue = id } in <lambda>() 89 override val onIdSelected = { id: Int -> selectedId.intValue = id } in <lambda>() 111 override val onIdSelected = { id: Int -> selectedId.intValue = id } in <lambda>() 138 override val onIdSelected = { id: Int -> selectedId.intValue = id } in <lambda>()
|
/frameworks/base/core/java/android/hardware/usb/ |
D | DeviceFilter.java | 127 int intValue; in read() local 136 intValue = Integer.parseInt(value, radix); in read() 142 vendorId = intValue; in read() 144 productId = intValue; in read() 146 deviceClass = intValue; in read() 148 deviceSubclass = intValue; in read() 150 deviceProtocol = intValue; in read()
|
/frameworks/base/media/java/android/media/ |
D | AudioPort.java | 140 mSamplingRates = samplingRates.stream().mapToInt(Number::intValue).toArray(); in AudioPort() 141 mChannelMasks = channelMasks.stream().mapToInt(Number::intValue).toArray(); in AudioPort() 142 mChannelIndexMasks = channelIndexMasks.stream().mapToInt(Number::intValue).toArray(); in AudioPort() 143 mFormats = formats.stream().mapToInt(Number::intValue).toArray(); in AudioPort()
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
D | HdmiControlShellCommand.java | 215 int intValue = mBinderService.getCecSettingIntValue(setting); in cecSetting() 216 pw.println(setting + " = " + intValue); in cecSetting() 227 int intValue = Integer.parseInt(value); in cecSetting() 228 mBinderService.setCecSettingIntValue(setting, intValue); in cecSetting() 229 pw.println(setting + " = " + intValue); in cecSetting()
|
/frameworks/base/services/credentials/java/com/android/server/credentials/metrics/shared/ |
D | ResponseCollective.java | 98 return mResponseCounts.values().stream().mapToInt(Integer::intValue).toArray(); in getUniqueResponseCounts() 115 return mEntryCounts.values().stream().mapToInt(Integer::intValue).toArray(); in getUniqueEntryCounts() 133 return mEntryCounts.values().stream().mapToInt(Integer::intValue).sum(); in getNumEntriesTotal()
|
/frameworks/base/services/foldables/devicestateprovider/tests/src/com/android/server/policy/ |
D | FoldableDeviceStateProviderTest.java | 164 assertEquals(1, mIntegerCaptor.getValue().intValue()); in create_allMatchingStatesDefaultsToTheFirstIdentifier() 180 assertEquals(2, mIntegerCaptor.getValue().intValue()); in create_multipleMatchingStatesDefaultsToTheLowestIdentifier() 197 assertEquals(2, mIntegerCaptor.getValue().intValue()); in test_hingeAngleUpdatedFirstTime_switchesToMatchingState() 215 assertEquals(2, mIntegerCaptor.getValue().intValue()); in test_hallSensorUpdatedFirstTime_switchesToMatchingState() 228 assertEquals(1, mIntegerCaptor.getValue().intValue()); in test_hingeAngleUpdatedSecondTime_switchesToMatchingState() 234 assertEquals(2, mIntegerCaptor.getValue().intValue()); in test_hingeAngleUpdatedSecondTime_switchesToMatchingState() 247 assertEquals(1, mIntegerCaptor.getValue().intValue()); in test_hallSensorUpdatedSecondTime_switchesToMatchingState() 254 assertEquals(2, mIntegerCaptor.getValue().intValue()); in test_hallSensorUpdatedSecondTime_switchesToMatchingState() 270 assertEquals(2, mIntegerCaptor.getValue().intValue()); in test_invalidSensorValues_onStateChangedIsNotTriggered() 417 assertEquals(1, mIntegerCaptor.getValue().intValue()); in test_previousStateBasedPredicate() [all …]
|
/frameworks/base/core/java/android/net/ |
D | LocalSocketImpl.java | 470 int intValue = 0; in setOption() local 472 intValue = (Integer)value; in setOption() 482 StructLinger linger = new StructLinger(boolValue, intValue); in setOption() 488 StructTimeval timeval = StructTimeval.fromMillis(intValue); in setOption() 498 Os.setsockoptInt(fd, OsConstants.SOL_SOCKET, osOpt, intValue); in setOption() 502 intValue); in setOption()
|
D | LocalSocket.java | 258 return ((Integer) impl.getOption(SocketOptions.SO_RCVBUF)).intValue(); in getReceiveBufferSize() 266 return ((Integer) impl.getOption(SocketOptions.SO_TIMEOUT)).intValue(); in getSoTimeout() 274 return ((Integer) impl.getOption(SocketOptions.SO_SNDBUF)).intValue(); in getSendBufferSize()
|
/frameworks/base/services/usb/java/com/android/server/usb/descriptors/report/ |
D | ReportCanvas.java | 152 int intValue = value & 0xFFFF; in getHexString() local 153 return "0x" + Integer.toHexString(intValue).toUpperCase(); in getHexString()
|
/frameworks/base/services/core/java/com/android/server/stats/pull/ |
D | SettingsStatsUtil.java | 163 int intValue = 0; in createStatsEvent() local 169 .writeInt(intValue) in createStatsEvent() 180 intValue = Integer.parseInt(value); in createStatsEvent() 200 .writeInt(intValue) in createStatsEvent()
|
/frameworks/hardware/interfaces/stats/aidl/vts/java/apps/vtsistatsapp/src/ |
D | VtsVendorAtomJavaTest.java | 82 atom.values[0] = VendorAtomValue.intValue(7); in testReportVendorAtomInt() 104 atom.values[0] = VendorAtomValue.intValue(7); in testReportVendorAtomWrongId() 125 atom.values[0] = VendorAtomValue.intValue(7); in testReportVendorAtomRepeated()
|
/frameworks/base/media/java/android/media/audiofx/ |
D | DynamicsProcessing.java | 247 values[0].intValue(), in getConfig() 249 values[2].intValue() > 0 /*use preEQ*/, in getConfig() 250 values[3].intValue() /*pre eq bands*/, in getConfig() 251 values[4].intValue() > 0 /*use mbc*/, in getConfig() 252 values[5].intValue() /*mbc bands*/, in getConfig() 253 values[6].intValue() > 0 /*use postEQ*/, in getConfig() 254 values[7].intValue()/*postEq bands*/, in getConfig() 255 values[8].intValue() > 0 /*use Limiter*/). in getConfig() 1930 int bandCount = values[2].intValue(); in queryEngineEqByChannelIndex() 1931 Eq eq = new Eq(values[0].intValue() > 0 /* in use */, in queryEngineEqByChannelIndex() [all …]
|