Home
last modified time | relevance | path

Searched refs:start (Results 1 – 25 of 133) sorted by relevance

123456

/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/
DFileUseMapEntry.java53 private final long start; field in FileUseMapEntry
73 private FileUseMapEntry(long start, long end, @Nullable T store) { in FileUseMapEntry() argument
74 Preconditions.checkArgument(start >= 0, "start < 0"); in FileUseMapEntry()
75 Preconditions.checkArgument(end > start, "end <= start"); in FileUseMapEntry()
77 this.start = start; in FileUseMapEntry()
89 public static FileUseMapEntry<Object> makeFree(long start, long end) { in makeFree() argument
90 return new FileUseMapEntry<>(start, end, null); in makeFree()
102 public static <T> FileUseMapEntry<T> makeUsed(long start, long end, @Nonnull T store) { in makeUsed() argument
104 return new FileUseMapEntry<>(start, end, store); in makeUsed()
114 return start; in getStart()
[all …]
DFileUseMap.java177 <T> FileUseMapEntry<T> add(long start, long end, @Nonnull T store) {
178 Preconditions.checkArgument(start >= 0, "start < 0");
179 Preconditions.checkArgument(end > start, "end < start");
181 FileUseMapEntry<T> entry = FileUseMapEntry.makeUsed(start, end, store);
218 long start = entry.getStart(); in split() local
222 Verify.verify(farStart <= start, "farStart > start"); in split()
223 Verify.verify(start < end, "start >= end"); in split()
227 if (farStart < start) { in split()
228 result.add(FileUseMapEntry.makeFree(farStart, start)); in split()
250 long start = entry.getStart(); in coalesce() local
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/ap_lib/
Ddhcp_config.py33 start=None, argument
53 if start:
54 self.start = start
56 self.start = self.network[2]
58 if not self.start in self.network:
60 if self.start.is_reserved:
72 if self.end < self.start:
77 if router >= self.start and router <= self.end:
88 if host < self.start or host > self.end:
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/
DTextTypeParameterList.kt62 var start = 0 in typeParameterStrings() variable
71 add(list, s, start, i + 1) in typeParameterStrings()
72 start = i + 1 in typeParameterStrings()
74 add(list, s, start, i) in typeParameterStrings()
79 add(list, s, start, i) in typeParameterStrings()
85 start = i in typeParameterStrings()
/tools/tradefederation/core/tests/src/com/android/tradefed/command/
DCommandSchedulerTest.java199 mScheduler.start(); in testRun_empty()
220 mScheduler.start(); in testAddConfig_configHelp()
235 mScheduler.start(); in testAddConfig_configJsonHelp()
250 mScheduler.start(); in testRun_oneConfig()
267 mScheduler.start(); in testRemoveAllCommands()
292 mScheduler.start(); in testRun_dryRun()
321 mScheduler.start(); in testRun_dryRun_keystore()
353 mScheduler.start(); in testExecCommand()
421 mScheduler.start(); in testRun_oneConfigLoop()
472 mScheduler.start(); in testRun_fatalError()
[all …]
DConsoleTest.java98 mMockScheduler.start(); in testRun_withConsole()
107 mConsole.start(); in testRun_withConsole()
131 mMockScheduler.start(); in testRun_withConsoleInteractiveHelp()
138 mConsole.start(); in testRun_withConsoleInteractiveHelp()
170 mMockScheduler.start(); in testRun_withConsoleInteractive_noHelp()
176 mConsole.start(); in testRun_withConsoleInteractive_noHelp()
197 mMockScheduler.start(); in testRun_noConsole()
207 mConsole.start(); in testRun_noConsole()
DCommandSchedulerFuncTest.java183 mCommandScheduler.start(); in testRun_scheduling()
284 mCommandScheduler.start(); in testBatteryLowLevel()
333 mCommandScheduler.start(); in testBatteryLowLevel_interruptible()
360 mCommandScheduler.start(); in testShutdown_interruptible()
372 test.start(); in testShutdown_interruptible()
436 mCommandScheduler.start(); in testShutdown_notInterruptible()
448 shutdownThread.start(); in testShutdown_notInterruptible()
551 mCommandScheduler.start(); in testShutdown_notInterruptible_timeout()
563 shutdownThread.start(); in testShutdown_notInterruptible_timeout()
615 mCommandScheduler.start(); in testShutdown_invocation_timeout()
/tools/tradefederation/contrib/src/com/android/media/tests/
DAudioLevelUtility.java49 final int start = pos + HEADSET.length(); in extractDeviceHeadsetLevelFromAdbShell() local
50 final int stop = shellOutput.indexOf(",", start); in extractDeviceHeadsetLevelFromAdbShell()
52 final String audioLevelStr = shellOutput.substring(start, stop); in extractDeviceHeadsetLevelFromAdbShell()
/tools/test/connectivity/acts/framework/acts/test_utils/audio_analysis_lib/
Daudio_analysis.py304 for start in range(0, len(signal), int(block_size / 2)):
305 end = start + block_size
306 test_signal = signal[start:end]
309 results.append(start)
375 start = moving_index
376 end = start + block_length
377 golden_signal_block = golden_signal[start:end]
/tools/tradefederation/core/tests/src/com/android/tradefed/command/remote/
DRemoteManagerFuncTest.java83 mRemoteMgr.start(); in testAllocateFree()
102 mRemoteMgr.start(); in testAddCommand()
120 mRemoteMgr.start(); in testAddCommandFile()
142 mRemoteMgr.start(); in testAllocateClose()
166 mRemoteMgr.start(); in testAllocateFreeAll()
180 mRemoteMgr.start(); in testFree_unknown()
223 mRemoteMgr.start(); in testListDevices()
264 mRemoteMgr.start(); in testExecCommand()
307 mRemoteMgr.start(); in testConsecutiveExecCommand()
332 mRemoteMgr.start(); in testExecCommand_noallocate()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DTemperatureThrottlingWaiter.java69 long start = System.currentTimeMillis(); in setUp() local
81 (System.currentTimeMillis() - start) / 1000); in setUp()
84 if ((System.currentTimeMillis() - start) > maxWaitMs) { in setUp()
99 (System.currentTimeMillis() - start) / 1000); in setUp()
DCpuThrottlingWaiter.java70 long start = System.currentTimeMillis(); in setUp() local
89 if ((System.currentTimeMillis() - start) > maxWaitMs) { in setUp()
105 (System.currentTimeMillis() - start) / 1000); in setUp()
DDeviceFlashPreparer.java180 long start = -1; in setUp() local
189 start = System.currentTimeMillis(); in setUp()
191 queueTime = System.currentTimeMillis() - start; in setUp()
203 start = System.currentTimeMillis(); in setUp()
206 flashingTime = System.currentTimeMillis() - start; in setUp()
/tools/metalava/src/main/java/com/android/tools/lint/checks/infrastructure/
DClassName.kt145 var start = 0 in getClassName() variable
146 while (matcher.find(start)) { in getClassName()
148 val groupStart = matcher.start(2) in getClassName()
161 start = matcher.end(2) in getClassName()
/tools/repohooks/rh/
Dterminal.py53 def start(self, color): member in Color
92 start = self.BOLD_START
94 start = self.COLOR_START % (color + 30)
95 return start + text + self.RESET
/tools/tradefederation/contrib/src/com/android/example/
DRebootTest.java46 long start; in run() local
49 start = System.currentTimeMillis(); in run()
71 listener.testRunEnded(System.currentTimeMillis() - start, emptyMap); in run()
/tools/tradefederation/core/tests/src/com/android/tradefed/build/
DFileDownloadCacheFuncTest.java95 downloadThread1.start(); in testFetchRemoteFile_concurrent()
96 downloadThread2.start(); in testFetchRemoteFile_concurrent()
161 downloadThread1.start(); in testFetchRemoteFile_multiConcurrent()
169 downloadThread2.start(); in testFetchRemoteFile_multiConcurrent()
170 downloadThread3.start(); in testFetchRemoteFile_multiConcurrent()
231 downloadThread1.start(); in testFetchRemoteFile_concurrentFail()
237 downloadThread2.start(); in testFetchRemoteFile_concurrentFail()
249 downloadThread3.start(); in testFetchRemoteFile_concurrentFail()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DConditionPriorityBlockingQueueTest.java117 delayedAdd.start(); in testTake_delayedAdd()
141 delayedAdd.start(); in testTake_matcher_delayedAdd()
165 waiter.start(); in testTake_multiple_matchers()
176 waiter2.start(); in testTake_multiple_matchers()
189 delayedAdd.start(); in testTake_multiple_matchers()
201 delayedAdd2.start(); in testTake_multiple_matchers()
303 iterator.start(); in testModificationOnIterating()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DAndroidBinXmlParser.java792 private static ByteBuffer sliceFromTo(ByteBuffer source, long start, long end) { in sliceFromTo() argument
793 if (start < 0) { in sliceFromTo()
794 throw new IllegalArgumentException("start: " + start); in sliceFromTo()
796 if (end < start) { in sliceFromTo()
797 throw new IllegalArgumentException("end < start: " + end + " < " + start); in sliceFromTo()
803 return sliceFromTo(source, (int) start, (int) end); in sliceFromTo()
812 private static ByteBuffer sliceFromTo(ByteBuffer source, int start, int end) { in sliceFromTo() argument
813 if (start < 0) { in sliceFromTo()
814 throw new IllegalArgumentException("start: " + start); in sliceFromTo()
816 if (end < start) { in sliceFromTo()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/device/
DLogcatReceiver.java63 public void start() { in start() method in LogcatReceiver
64 mDeviceAction.start(); in start()
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DTypeItem.kt185 val start = JAVA_LANG_PREFIX.length in <lambda>() constant
187 for (index in start until end) { in <lambda>()
189 return type.substring(start) in <lambda>()
195 return type.substring(start) in <lambda>()
/tools/dexter/slicer/
Ddex_format.cc27 const u1* start = reinterpret_cast<const u1*>(header); in ComputeChecksum() local
33 adler32(adler, start + non_sum, header->file_size - non_sum)); in ComputeChecksum()
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/
DFileUseMapTest.java76 long start = map.locateFree(blockSize, rand.nextInt(MAX_RANDOM_ALIGNMENT), in addPerformanceTest() local
78 long end = start + blockSize; in addPerformanceTest()
84 map.add(start, end, new Object()); in addPerformanceTest()
/tools/loganalysis/tests/src/com/android/loganalysis/parser/
DLogcatParserFuncTest.java48 long start = System.currentTimeMillis(); in testParse() local
51 System.out.println(String.format("Logcat took %d ms to parse.", stop - start)); in testParse()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DBackgroundDeviceActionTest.java76 mBackgroundAction.start(); in testBackgroundActionComplete()
107 mBackgroundAction.start(); in testBackgroundAction_shellException()
134 test.start(); in testwaitForDeviceRecovery_online()
159 test.start(); in testwaitForDeviceRecovery_blockOffline()

123456