/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | ConditionPriorityBlockingQueueTest.java | 30 private ConditionPriorityBlockingQueue<Integer> mQueue; 38 mQueue = new ConditionPriorityBlockingQueue<Integer>(new IntCompare()); in setUp() 52 Integer one = Integer.valueOf(1); in testTake() 63 Integer one = Integer.valueOf(1); in testTake_priority() 64 Integer two = Integer.valueOf(2); in testTake_priority() 76 ConditionPriorityBlockingQueue<Integer> fifoQueue = in testTake_fifo() 77 new ConditionPriorityBlockingQueue<Integer>(); in testTake_fifo() 78 Integer one = Integer.valueOf(1); in testTake_fifo() 79 Integer two = Integer.valueOf(2); in testTake_fifo() 92 Integer one = Integer.valueOf(1); in testTake_priorityReverse() [all …]
|
D | RegexTrieTest.java | 40 private RegexTrie<Integer> mTrie = null; 41 private static final Integer STORED_VAL = 42; 46 mTrie = new RegexTrie<Integer>(); in setUp() 52 Integer retrieved = mTrie.retrieve("part1", "part2", "part3"); in testStringPattern() 59 Integer retrieved; in testAlternation_single() 75 Integer retrieved; in testAlternation_multiple() 96 Integer retrieved; in testGroups_fullMatch() 127 Integer retrieved; in testGroups_partialMatch() 160 Integer retrieved; in testWildcard() 186 Integer retrieved; in testWildcard_precedence() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/suite/checker/ |
D | UserCheckerTest.java | 52 mockDeviceUserState(/* currentUser= */ 0, /* userIds= */ new Integer[] {0}); in testNoWarningsIsSuccess() 56 mockDeviceUserState(/* currentUser= */ 0, /* userIds= */ new Integer[] {0}); in testNoWarningsIsSuccess() 68 /* userIds= */ new Integer[] {0, 10}, in testSwitchIsSuccess() 69 /* flags= */ new Integer[] {0, 0}, in testSwitchIsSuccess() 80 /* userIds= */ new Integer[] {0, 10}, in testSwitchIsSuccess() 81 /* flags= */ new Integer[] {0, 0}, in testSwitchIsSuccess() 96 /* userIds= */ new Integer[] {0}, in testCreateIsSuccess() 97 /* flags= */ new Integer[] {0}, in testCreateIsSuccess() 109 /* userIds= */ new Integer[] {0, 10}, in testCreateIsSuccess() 110 /* flags= */ new Integer[] {0, 0}, in testCreateIsSuccess() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | TestDevice.java | 263 args.add(Integer.toString(userId)); in installPackageForUser() 280 args.add(Integer.toString(userId)); in installPackageForUser() 452 ArrayList<Integer> userIds = listUsers(); in allowLegacyStorageForApps() 529 args.add(Integer.toString(userId)); in installPackagesForUser() 1148 public ArrayList<Integer> listUsers() throws DeviceNotAvailableException { in listUsers() 1150 ArrayList<Integer> userIds = new ArrayList<Integer>(users.size()); in listUsers() 1152 userIds.add(Integer.parseInt(user[1])); in listUsers() 1159 public Map<Integer, UserInfo> getUserInfos() throws DeviceNotAvailableException { in getUserInfos() 1161 Map<Integer, UserInfo> result = new HashMap<Integer, UserInfo>(lines.size()); in getUserInfos() 1165 /* userId= */ Integer.parseInt(tokens[1]), in getUserInfos() [all …]
|
D | DeviceSelectionOptions.java | 122 private Integer mMinBattery = null; 127 private Integer mMaxBattery = null; 135 private Integer mMaxBatteryTemperature = null; 156 private Integer mMinSdk = null; 160 private Integer mMaxSdk = null; 360 public void setMinBatteryLevel(Integer minBattery) { in setMinBatteryLevel() 367 public Integer getMinBatteryLevel() { in getMinBatteryLevel() 374 public void setMaxBatteryLevel(Integer maxBattery) { in setMaxBatteryLevel() 381 public Integer getMaxBatteryLevel() { in getMaxBatteryLevel() 386 public void setMaxBatteryTemperature(Integer maxBatteryTemperature) { in setMaxBatteryTemperature() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/ |
D | SwitchUserTargetPreparerTest.java | 67 /* userIds= */ new Integer[] {0, 11}, in testSetUpRunAsPrimary_ifAlreadyInPrimary_noSwitch() 68 /* flags= */ new Integer[] {0, UserInfo.FLAG_PRIMARY}); in testSetUpRunAsPrimary_ifAlreadyInPrimary_noSwitch() 87 /* userIds= */ new Integer[] {0, 11}, in testSetUpRunAsSystem_ifAlreadyInSystem_noSwitch() 88 /* flags= */ new Integer[] {0, UserInfo.FLAG_PRIMARY}); in testSetUpRunAsSystem_ifAlreadyInSystem_noSwitch() 106 /* userIds= */ new Integer[] {0, 10, 11}, in testSetUpRunAsPrimary_ifNotInPrimary_switchToPrimary() 107 /* flags= */ new Integer[] {0, UserInfo.FLAG_PRIMARY, 0}); in testSetUpRunAsPrimary_ifNotInPrimary_switchToPrimary() 126 /* userIds= */ new Integer[] {0, 10, 11}, in testSetUpRunAsGuest_ifNotInGuest_switchToGuest() 127 /* flags= */ new Integer[] {0, UserInfo.FLAG_GUEST, 0}); in testSetUpRunAsGuest_ifNotInGuest_switchToGuest() 146 /* userIds= */ new Integer[] {0, 10}, in testSetUpRunAsSystem_ifNotInSystem_switchToSystem() 147 /* flags= */ new Integer[] {0, 0}); in testSetUpRunAsSystem_ifNotInSystem_switchToSystem() [all …]
|
/tools/loganalysis/src/com/android/loganalysis/parser/ |
D | MonkeyLogParser.java | 93 private Integer mPid = null; 198 mMonkeyLog.setThrottle(Integer.parseInt(m.group(1))); in parseLine() 203 mMonkeyLog.setTargetCount(Integer.parseInt(m.group(2))); in parseLine() 226 mMonkeyLog.setTotalDuration(60 * 1000 * Integer.parseInt(m.group(3)) + in parseLine() 227 1000 *Integer.parseInt(m.group(4))); in parseLine() 231 mMonkeyLog.setIntermediateCount(Integer.parseInt(m.group(1))); in parseLine() 235 mMonkeyLog.setFinalCount(Integer.parseInt(m.group(1))); in parseLine() 247 mMonkeyLog.setDroppedCount(DroppedCategory.KEYS, Integer.parseInt(m.group(1))); in parseLine() 251 mMonkeyLog.setDroppedCount(DroppedCategory.POINTERS, Integer.parseInt(m.group(1))); in parseLine() 255 mMonkeyLog.setDroppedCount(DroppedCategory.TRACKBALLS, Integer.parseInt(m.group(1))); in parseLine() [all …]
|
D | LogcatParser.java | 99 public Integer mPid = null; 100 public Integer mTid = null; 108 public LogcatData(Integer pid, Integer tid, Date time, String level, String tag, in LogcatData() 135 private Map<Integer, String> mPids = new HashMap<Integer, String>(); 223 Integer pid = null; in parseLine() 224 Integer tid = null; in parseLine() 234 pid = Integer.parseInt(m.group(2)); in parseLine() 235 tid = Integer.parseInt(m.group(3)); in parseLine() 243 pid = Integer.parseInt(tm.group(4)); in parseLine() 350 Integer pid = null; in commit() [all …]
|
D | ProcrankParser.java | 68 item.addProcrankLine(Integer.parseInt(m.group(1)), m.group(6), in parse() 69 Integer.parseInt(m.group(2)), Integer.parseInt(m.group(3)), in parse() 70 Integer.parseInt(m.group(4)), Integer.parseInt(m.group(5))); in parse() 76 item.addProcrankLine(Integer.parseInt(m.group(1)), m.group(10), in parse() 77 Integer.parseInt(m.group(2)), Integer.parseInt(m.group(3)), in parse() 78 Integer.parseInt(m.group(4)), Integer.parseInt(m.group(5))); in parse()
|
/tools/loganalysis/tests/src/com/android/loganalysis/util/ |
D | RegexTrieTest.java | 40 private RegexTrie<Integer> mTrie = null; 41 private static final Integer STORED_VAL = 42; 46 mTrie = new RegexTrie<Integer>(); in setUp() 52 Integer retrieved = mTrie.retrieve("part1", "part2", "part3"); in testStringPattern() 59 Integer retrieved; in testAlternation_single() 75 Integer retrieved; in testAlternation_multiple() 96 Integer retrieved; in testGroups_fullMatch() 127 Integer retrieved; in testGroups_partialMatch() 160 Integer retrieved; in testWildcard() 186 Integer retrieved; in testWildcard_precedence() [all …]
|
/tools/tradefederation/contrib/src/com/android/media/tests/ |
D | AudioLoopbackImageAnalyzer.java | 134 final Pair<Integer, Integer> durationBounds = getBounds(horizontal, horizontalStart, -1); in analyzeImage() 144 final Pair<Integer, Integer> amplitudeBounds = getBounds(vertical, -1, -1); in analyzeImage() 412 Pair<Integer, Integer> horizontalMinMax) { in projectPixelsToYAxis() argument 434 private static Pair<Integer, Integer> getBounds(int[] array, int lowerBound, int upperBound) { in getBounds() 460 return new Pair<Integer, Integer>(Integer.valueOf(min), Integer.valueOf(max)); in getBounds() 473 private static boolean boundsWithinRange(Pair<Integer, Integer> bounds, int low, int high) { in boundsWithinRange() argument
|
D | CameraStressTest.java | 142 t.mInstrumentationArgs.put("image_iterations", Integer.toString(100)); in testInfoSetup() 151 t.mInstrumentationArgs.put("image_iterations", Integer.toString(100)); in testInfoSetup() 160 t.mInstrumentationArgs.put("video_iterations", Integer.toString(100)); in testInfoSetup() 278 Integer countExpected = null; in parseOutputFile() 279 Integer countActual = null; in parseOutputFile() 291 countExpected = Integer.parseInt(capture.get(0).get(0)); in parseOutputFile() 294 countActual = Integer.parseInt(capture.get(0).get(0)); in parseOutputFile() 306 runMetrics.put(key, Integer.toString(value)); in parseOutputFile() 327 runMetrics.put(key, Integer.toString(value)); in parseOutputFile() 337 private int coalesceLoopCounts(Integer actual, Integer expected) { in coalesceLoopCounts()
|
/tools/dexter/testdata/expected/ |
D | entry_hooks.asm | 37 15| invoke-static {v8}, java.lang.Integer.valueOf(int):java.lang.Integer 90 15| invoke-static {v8}, java.lang.Integer.valueOf(int):java.lang.Integer 146 23| invoke-static {v6}, java.lang.Integer.valueOf(int):java.lang.Integer 312 method Target.foo(int, java.lang.String[][]):java.lang.Integer 326 4| invoke-static {v3}, java.lang.Integer.valueOf(int):java.lang.Integer 414 22| invoke-static {v8}, java.lang.Integer.valueOf(int):java.lang.Integer 447 13| invoke-static {v6}, java.lang.Integer.valueOf(int):java.lang.Integer 493 30| invoke-static {v8}, java.lang.Integer.valueOf(int):java.lang.Integer
|
D | entry_hooks.rewrite | 37 15| invoke-static {v8}, java.lang.Integer.valueOf(int):java.lang.Integer 90 15| invoke-static {v8}, java.lang.Integer.valueOf(int):java.lang.Integer 146 23| invoke-static {v6}, java.lang.Integer.valueOf(int):java.lang.Integer 312 method Target.foo(int, java.lang.String[][]):java.lang.Integer 326 4| invoke-static {v3}, java.lang.Integer.valueOf(int):java.lang.Integer 414 22| invoke-static {v8}, java.lang.Integer.valueOf(int):java.lang.Integer 447 13| invoke-static {v6}, java.lang.Integer.valueOf(int):java.lang.Integer 493 30| invoke-static {v8}, java.lang.Integer.valueOf(int):java.lang.Integer
|
D | entry_hooks.compact_cfg | 40 15| invoke-static {v8}, java.lang.Integer.valueOf(int):java.lang.Integer 97 15| invoke-static {v8}, java.lang.Integer.valueOf(int):java.lang.Integer 157 23| invoke-static {v6}, java.lang.Integer.valueOf(int):java.lang.Integer 342 method Target.foo(int, java.lang.String[][]):java.lang.Integer 357 4| invoke-static {v3}, java.lang.Integer.valueOf(int):java.lang.Integer 453 22| invoke-static {v8}, java.lang.Integer.valueOf(int):java.lang.Integer 488 13| invoke-static {v6}, java.lang.Integer.valueOf(int):java.lang.Integer 536 30| invoke-static {v8}, java.lang.Integer.valueOf(int):java.lang.Integer
|
D | entry_hooks.entry_hook | 39 18| invoke-static {v8}, java.lang.Integer.valueOf(int):java.lang.Integer 94 18| invoke-static {v8}, java.lang.Integer.valueOf(int):java.lang.Integer 152 26| invoke-static {v6}, java.lang.Integer.valueOf(int):java.lang.Integer 324 method Target.foo(int, java.lang.String[][]):java.lang.Integer 339 7| invoke-static {v3}, java.lang.Integer.valueOf(int):java.lang.Integer 431 25| invoke-static {v8}, java.lang.Integer.valueOf(int):java.lang.Integer 465 16| invoke-static {v6}, java.lang.Integer.valueOf(int):java.lang.Integer 512 33| invoke-static {v8}, java.lang.Integer.valueOf(int):java.lang.Integer
|
D | entry_hooks.verbose_cfg | 48 15| invoke-static {v8}, java.lang.Integer.valueOf(int):java.lang.Integer 121 15| invoke-static {v8}, java.lang.Integer.valueOf(int):java.lang.Integer 205 23| invoke-static {v6}, java.lang.Integer.valueOf(int):java.lang.Integer 420 method Target.foo(int, java.lang.String[][]):java.lang.Integer 435 4| invoke-static {v3}, java.lang.Integer.valueOf(int):java.lang.Integer 563 22| invoke-static {v8}, java.lang.Integer.valueOf(int):java.lang.Integer 612 13| invoke-static {v6}, java.lang.Integer.valueOf(int):java.lang.Integer 678 30| invoke-static {v8}, java.lang.Integer.valueOf(int):java.lang.Integer
|
D | entry_hooks.scratch_regs | 49 42| invoke-static {v9}, java.lang.Integer.valueOf(int):java.lang.Integer 114 42| invoke-static {v9}, java.lang.Integer.valueOf(int):java.lang.Integer 176 32| invoke-static {v11}, java.lang.Integer.valueOf(int):java.lang.Integer 387 method Target.foo(int, java.lang.String[][]):java.lang.Integer 410 31| invoke-static {v10}, java.lang.Integer.valueOf(int):java.lang.Integer 516 49| invoke-static {v9}, java.lang.Integer.valueOf(int):java.lang.Integer 552 22| invoke-static {v11}, java.lang.Integer.valueOf(int):java.lang.Integer 607 57| invoke-static {v9}, java.lang.Integer.valueOf(int):java.lang.Integer
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
D | DeviceBatteryLevelChecker.java | 47 private static final Integer IGNORE_CHARGE = -101; 59 private Integer mMaxBattery = 20; 99 private Integer mChargingSpeedCheck = 15; 101 Integer checkBatteryLevel(ITestDevice device) { in checkBatteryLevel() 131 Integer charge = null; in run() 170 private Integer runTest(TestInformation testInfo, ITestInvocationListener listener) in runTest() 175 Integer batteryLevel = checkBatteryLevel(mTestDevice); in runTest() 205 Integer finalBattery = null; in runTest() 241 private Integer runBatteryCharging(ITestLifeCycleReceiver listener, TestDescription test) { in runBatteryCharging() 244 Integer batteryLevel = checkBatteryLevel(mTestDevice); in runBatteryCharging() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
D | DeviceSetup.java | 145 protected Integer mScreenBrightness = null; 229 protected Integer mBatterySaverTrigger = null; 273 protected Integer mDefaultSimData = null; 279 protected Integer mDefaultSimVoice = null; 285 protected Integer mDefaultSimSms = null; 604 mSystemSettings.put("screen_brightness", Integer.toString(mScreenBrightness)); in processOptions() 647 mGlobalSettings.put("low_power_trigger_level", Integer.toString(mBatterySaverTrigger)); in processOptions() 671 mGlobalSettings.put("multi_sim_data_call", Integer.toString(mDefaultSimData)); in processOptions() 675 mGlobalSettings.put("multi_sim_voice_call", Integer.toString(mDefaultSimVoice)); in processOptions() 679 mGlobalSettings.put("multi_sim_sms", Integer.toString(mDefaultSimSms)); in processOptions() [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/ |
D | ApkSigningBlockUtils.java | 280 if ((lenLong < 4) || (lenLong > Integer.MAX_VALUE)) { in findApkSignatureSchemeBlock() 457 if (chunkCountLong > Integer.MAX_VALUE) { in computeOneMbChunkContentDigests() 551 if (chunkCountLong > Integer.MAX_VALUE) { in computeOneMbChunkContentDigests() 681 if (chunkCount > Integer.MAX_VALUE) { in ChunkSupplier() 885 List<Pair<Integer, byte[]>> sequence) { in encodeAsSequenceOfLengthPrefixedPairsOfIntAndLengthPrefixedBytes() argument 887 for (Pair<Integer, byte[]> element : sequence) { in encodeAsSequenceOfLengthPrefixedPairsOfIntAndLengthPrefixedBytes() 892 for (Pair<Integer, byte[]> element : sequence) { in encodeAsSequenceOfLengthPrefixedPairsOfIntAndLengthPrefixedBytes() 951 public static Pair<DataSource, Integer> generateApkSigningBlockPadding( in generateApkSigningBlockPadding() 986 List<Pair<byte[], Integer>> apkSignatureSchemeBlockPairs) { in generateApkSigningBlock() 998 for (Pair<byte[], Integer> schemeBlockPair : apkSignatureSchemeBlockPairs) { in generateApkSigningBlock() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/ |
D | TestDeviceTest.java | 1520 EasyMock.eq(Integer.toString(uid))); in testinstallPackageForUser_default_runtimePermissionNotSupported() 1554 EasyMock.eq(Integer.toString(uid))); in testinstallPackageForUser_default_runtimePermissionSupported() 1714 EasyMock.eq(Integer.toString(uid))); in testInstallPackageForUser_grant_runtimePermissionSupported() 1747 EasyMock.eq(Integer.toString(uid))); in testInstallPackageForUser_noGrant_runtimePermissionSupported() 2513 ArrayList<Integer> actual = mTestDevice.listUsers(); in testListUsers_oneUser() 2568 ArrayList<Integer> actual = mTestDevice.listUsers(); in testListUsers_multiUsers() 2581 Map<Integer, UserInfo> actual = mTestDevice.getUserInfos(); in testListUsersInfo_oneUser() 2599 Map<Integer, UserInfo> actual = mTestDevice.getUserInfos(); in testListUsersInfo_multiUsers() 4061 public ArrayList<Integer> listUsers() throws DeviceNotAvailableException { in testGetAndroidIds() 4062 ArrayList<Integer> test = new ArrayList<Integer>(); in testGetAndroidIds() [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/ |
D | V2SchemeVerifier.java | 94 Map<Integer, String> supportedApkSigSchemeNames, in verify() argument 95 Set<Integer> foundSigSchemeIds, in verify() 141 Map<Integer, String> supportedApkSigSchemeNames, in verify() argument 142 Set<Integer> foundSigSchemeIds, in verify() 181 Map<Integer, String> supportedApkSigSchemeNames, in parseSigners() argument 182 Set<Integer> foundApkSigSchemeIds, in parseSigners() 247 Map<Integer, String> supportedApkSigSchemeNames, in parseSigner() argument 248 Set<Integer> foundApkSigSchemeIds, in parseSigner() 407 List<Integer> sigAlgsFromSignaturesRecord = new ArrayList<>(result.signatures.size()); in parseSigner() 411 List<Integer> sigAlgsFromDigestsRecord = new ArrayList<>(result.contentDigests.size()); in parseSigner() [all …]
|
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/ |
D | AoaTargetPreparer.java | 96 List<Integer> keys = in ACTIONS.put() 105 List<Integer> keys = new ArrayList<>(); in ACTIONS.put() 108 int count = matcher.group(1) == null ? 1 : Integer.decode(matcher.group(1)); in ACTIONS.put() 109 Integer keycode = parseKeycode(matcher.group(2)); in ACTIONS.put() 191 return new Point(Integer.decode(x), Integer.decode(y)); in parsePoint() 200 private static Integer parseKeycode(String key) { in parseKeycode() 208 Integer keycode = KEYCODES.get(key.toLowerCase()); in parseKeycode() 209 return keycode != null ? keycode : Integer.decode(key); in parseKeycode() 213 private static final Map<String, Integer> KEYCODES = new HashMap<>();
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/ |
D | V1SchemeVerifier.java | 109 Map<Integer, String> supportedApkSigSchemeNames, in verify() argument 110 Set<Integer> foundApkSigSchemeIds, in verify() 219 Map<Integer, String> supportedApkSigSchemeNames, in verify() argument 220 Set<Integer> foundApkSigSchemeIds, in verify() 627 } else if (range.getMax() == Integer.MAX_VALUE) { in verifySignerInfoAgainstSigFile() 1329 Map<Integer, String> supportedApkSigSchemeNames, in verifySigFileAgainstManifest() argument 1330 Set<Integer> foundApkSigSchemeIds, in verifySigFileAgainstManifest() 1570 Map<Integer, String> supportedApkSigSchemeNames, in checkForStrippedApkSignatures() argument 1571 Set<Integer> foundApkSigSchemeIds) { in checkForStrippedApkSignatures() 1594 Set<Integer> supportedApkSigSchemeIds = supportedApkSigSchemeNames.keySet(); in checkForStrippedApkSignatures() [all …]
|