/external/webrtc/modules/video_coding/utility/ |
D | decoded_frames_history_unittest.cc | 22 DecodedFramesHistory history(kHistorySize); in TEST() local 23 EXPECT_EQ(history.WasDecoded({1234, 0}), false); in TEST() 27 DecodedFramesHistory history(kHistorySize); in TEST() local 28 history.InsertDecoded({1234, 0}, 0); in TEST() 29 EXPECT_EQ(history.WasDecoded({1234, 0}), true); in TEST() 33 DecodedFramesHistory history(kHistorySize); in TEST() local 34 history.InsertDecoded({1234, 0}, 0); in TEST() 35 history.InsertDecoded({1235, 0}, 0); in TEST() 36 EXPECT_EQ(history.WasDecoded({1234, 0}), true); in TEST() 40 DecodedFramesHistory history(kHistorySize); in TEST() local [all …]
|
D | decoded_frames_history.cc | 47 LayerHistory& history = layers_[frameid.spatial_layer]; in InsertDecoded() local 49 RTC_DCHECK(history.last_picture_id < frameid.picture_id); in InsertDecoded() 52 if (history.last_picture_id) { in InsertDecoded() 53 int64_t id_jump = frameid.picture_id - *history.last_picture_id; in InsertDecoded() 54 int last_index = PictureIdToIndex(*history.last_picture_id); in InsertDecoded() 57 std::fill(history.buffer.begin(), history.buffer.end(), false); in InsertDecoded() 59 std::fill(history.buffer.begin() + last_index + 1, in InsertDecoded() 60 history.buffer.begin() + new_index, false); in InsertDecoded() 62 std::fill(history.buffer.begin() + last_index + 1, history.buffer.end(), in InsertDecoded() 64 std::fill(history.buffer.begin(), history.buffer.begin() + new_index, in InsertDecoded() [all …]
|
/external/python/cpython3/Lib/idlelib/idle_test/ |
D | test_history.py | 3 from idlelib.history import History 22 cls.history = History(cls.text) 26 self.history.history = [] 29 self.assertIs(self.history.text, self.text) 30 self.assertEqual(self.history.history, []) 31 self.assertIsNone(self.history.prefix) 32 self.assertIsNone(self.history.pointer) 33 self.assertEqual(self.history.cyclic, 37 self.history.store('a') 38 self.assertEqual(self.history.history, []) [all …]
|
/external/python/cpython2/Lib/idlelib/idle_test/ |
D | test_idlehistory.py | 19 cls.history = History(cls.text) 23 self.history.history = [] 26 self.assertIs(self.history.text, self.text) 27 self.assertEqual(self.history.history, []) 28 self.assertIsNone(self.history.prefix) 29 self.assertIsNone(self.history.pointer) 30 self.assertEqual(self.history.cyclic, 34 self.history.store('a') 35 self.assertEqual(self.history.history, []) 36 self.history.store(' a ') [all …]
|
/external/jline/src/src/main/java/jline/ |
D | History.java | 19 private List history = new ArrayList(); field in History 72 return history.size(); in size() 79 history.clear(); in clear() 89 if ((history.size() != 0) && buffer.equals(history.get(history.size() - 1))) { in addToHistory() 93 history.add(buffer); in addToHistory() 95 while (history.size() > getMaxSize()) { in addToHistory() 96 history.remove(0); in addToHistory() 99 currentIndex = history.size(); in addToHistory() 112 … for (Iterator i = history.iterator(); i.hasNext(); getOutput().println((String) i.next())) { in flushBuffer() 128 int lastEntry = history.size() - 1; in moveToLastEntry() [all …]
|
D | ConsoleReader.java | 127 History history = new History(); field in ConsoleReader 543 searchIndex = history.searchBackwards(searchTerm.toString()); in readLine() 545 … searchIndex = history.searchBackwards(searchTerm.toString(), searchIndex); in readLine() 552 searchIndex = history.searchBackwards(searchTerm.toString()); in readLine() 558 searchIndex = history.searchBackwards(searchTerm.toString()); in readLine() 564 history.setCurrentIndex(searchIndex); in readLine() 565 setBuffer(history.current()); in readLine() 566 buf.cursor = history.current().indexOf(searchTerm.toString()); in readLine() 580 … printSearchStatus(searchTerm.toString(), history.getHistory(searchIndex)); in readLine() 676 success = history.moveToFirstEntry(); in readLine() [all …]
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowWebView.java | 59 private ArrayList<String> history = new ArrayList<>(); field in ShadowWebView 143 history.add(0, url); in loadUrl() 159 history.add(0, historyUrl); in loadDataWithBaseURL() 244 history.clear(); in clearHistory() 298 return history.size() > 1; in canGoBack() 310 history.remove(0); in goBack() 311 if (!history.isEmpty()) { in goBack() 312 originalUrl = history.get(0); in goBack() 319 return new BackForwardList(history); in copyBackForwardList() 382 if (history.size() > 0) { in saveState() [all …]
|
/external/tensorflow/tensorflow/python/keras/tests/ |
D | integration_test.py | 79 history = model.fit(x_train, y_train, epochs=10, batch_size=10, 82 self.assertGreater(history.history['val_acc'][-1], 0.7) 84 self.assertAlmostEqual(history.history['val_acc'][-1], val_acc) 118 history = model.fit(x_train, y_train, epochs=10, batch_size=10, 121 self.assertGreater(history.history['val_acc'][-1], 0.7) 123 self.assertAlmostEqual(history.history['val_acc'][-1], val_acc) 168 history = model.fit(x_train, y_train, epochs=10, batch_size=10, 171 self.assertGreater(history.history['val_acc'][-1], 0.7) 174 self.assertAlmostEqual(history.history['val_acc'][-1], val_acc) 204 history = model.fit(x_train, y_train, epochs=15, batch_size=10, [all …]
|
D | temporal_sample_weights_correctness_test.py | 247 history = model.fit([self.x, self.x], [self.y1, self.y2], 252 self.assertAllClose(history.history[key], value, 1e-3) 259 history = model.fit([self.x, self.x], [self.y1, self.y2], 268 self.assertAllClose(history.history[key], value, 1e-3) 276 history = model.fit([self.x, self.x], [self.y1, self.y2], 284 self.assertAllClose(history.history[key], value, 1e-3) 420 history = model.fit_generator( 425 self.assertAllClose(history.history[key], value, 1e-3) 432 history = model.fit_generator( 438 self.assertAllClose(history.history[key], value, 1e-3) [all …]
|
/external/tensorflow/tensorflow/python/keras/ |
D | metrics_correctness_test.py | 187 history = model.fit([self.x, self.x], [self.y1, self.y2], 192 self.assertAllClose(history.history[key], value, 1e-3) 196 history = model.fit([self.x, self.x], [self.y1, self.y2], 205 self.assertAllClose(history.history[key], value, 1e-3) 208 history = model.fit([self.x, self.x], [self.y1, self.y2], 215 self.assertAllClose(history.history[key], value, 1e-3) 299 history = model.fit_generator( 302 self.assertAllClose(history.history[key], value, 1e-3) 306 history = model.fit_generator( 312 self.assertAllClose(history.history[key], value, 1e-3) [all …]
|
/external/libchrome/base/memory/ |
D | linked_ptr_unittest.cc | 15 std::string history; variable 19 A(): mynum(num++) { history += base::StringPrintf("A%d ctor\n", mynum); } in A() 20 virtual ~A() { history += base::StringPrintf("A%d dtor\n", mynum); } in ~A() 21 virtual void Use() { history += base::StringPrintf("A%d use\n", mynum); } in Use() 27 B() { history += base::StringPrintf("B%d ctor\n", mynum); } in B() 28 ~B() override { history += base::StringPrintf("B%d dtor\n", mynum); } in ~B() 29 void Use() override { history += base::StringPrintf("B%d use\n", mynum); } in Use() 86 ASSERT_EQ(history, in TEST()
|
/external/python/cpython3/Doc/library/ |
D | readline.rst | 13 completion and reading/writing of history files from the Python interpreter. 94 The following functions operate on a history file: 99 Load a readline history file, and append it to the history list. 100 The default filename is :file:`~/.history`. This calls 106 Save the history list to a readline history file, overwriting any 107 existing file. The default filename is :file:`~/.history`. This calls 113 Append the last *nelements* items of history to a file. The default filename is 114 :file:`~/.history`. The file must already exist. This calls 125 Set or return the desired number of lines to save in the history file. 127 the history file, by calling :c:func:`history_truncate_file` in [all …]
|
/external/autotest/server/cros/network/ |
D | netperf_session.py | 107 history = [] 112 while len(history) + none_count < self.MEASUREMENT_MAX_SAMPLES: 123 history.append(result) 124 if len(history) < self.MEASUREMENT_MIN_SAMPLES: 127 final_result = self._from_samples(history) 133 final_result = self._from_samples(history) 135 return history or None
|
/external/autotest/site_utils/ |
D | lab_inventory.py | 140 def _get_diagnosis(history): argument 143 diagnosis = _Diagnosis(*history.last_diagnosis()) 145 and diagnosis.task.end_time < history.start_time): 154 fields={'host': history.hostname, 'presence': dut_present}) 158 def _host_is_working(history): argument 159 return _get_diagnosis(history).status == status_history.WORKING 162 def _host_is_broken(history): argument 163 return _get_diagnosis(history).status == status_history.BROKEN 166 def _host_is_idle(history): argument 168 return _get_diagnosis(history).status in idle_statuses [all …]
|
D | dut_status.py | 177 for history in history_list: 178 status, event = history.last_diagnosis() 188 print(fmt % (history.hostname, 217 for history in history_list: 218 status, _ = history.last_diagnosis() 221 print(history.hostname) 223 for event in history: 226 for event in history.diagnosis_interval():
|
/external/tensorflow/tensorflow/python/keras/engine/ |
D | training_eager_test.py | 59 self.assertEqual(hist.history['loss'][-1], 1) 253 history = model.fit(x, y, epochs=1, batch_size=10) 254 self.assertAlmostEqual(history.history['loss'][-1], 0.5836, 4) 274 history = model.fit(x, y, epochs=3, batch_size=10) 275 self.assertAlmostEqual(history.history['loss'][-3], 0.6931, 4) 276 self.assertAlmostEqual(history.history['loss'][-2], 0.6931, 4) 277 self.assertAlmostEqual(history.history['loss'][-1], 0.6931, 4) 299 history = model.fit(dataset, epochs=1, steps_per_epoch=10) 300 self.assertAlmostEqual(history.history['loss'][-1], 0.5836, 4) 352 history = model.fit(dataset, epochs=2, validation_data=dataset).history [all …]
|
D | training_dataset_test.py | 299 history = model.fit( 306 self.assertAllClose(history.history['loss'], 309 self.assertAllClose(history.history['val_loss'], 317 history = model.fit( 320 history.history['loss'], 323 history.history['val_loss'], 367 history = model.fit(dataset, epochs=2, verbose=1, callbacks=[batch_counter]) 369 self.assertLen(history.history['loss'], 2) 391 history = model.fit(dataset, epochs=2, verbose=1, callbacks=[batch_counter]) 393 self.assertLen(history.history['loss'], 2) [all …]
|
D | correctness_test.py | 71 history = model.fit(x, y, batch_size=3, epochs=5) 72 self.assertAllClose(history.history['loss'], [1., 0.9, 0.8, 0.7, 0.6]) 114 history = model.fit(x, y, batch_size=3, epochs=5) 115 self.assertAllClose(history.history['loss'], [1., 0.9, 0.8, 0.7, 0.6])
|
/external/python/cpython2/Doc/library/ |
D | readline.rst | 11 completion and reading/writing of history files from the Python interpreter. 84 The following functions operate on a history file: 89 Load a readline history file, and append it to the history list. 90 The default filename is :file:`~/.history`. This calls 96 Save the history list to a readline history file, overwriting any 97 existing file. The default filename is :file:`~/.history`. This calls 104 Set or return the desired number of lines to save in the history file. 106 the history file, by calling :c:func:`history_truncate_file` in 108 unlimited history file size. 114 The following functions operate on a global history list: [all …]
|
/external/python/cpython2/Lib/idlelib/ |
D | IdleHistory.py | 23 self.history = [] 48 nhist = len(self.history) 53 self.text.get("iomark", "end-1c") != self.history[pointer]: 79 item = self.history[pointer] 95 self.history.remove(source) 98 self.history.append(source)
|
/external/python/cpython3/Lib/idlelib/ |
D | history.py | 24 self.history = [] 49 nhist = len(self.history) 54 self.text.get("iomark", "end-1c") != self.history[pointer]: 80 item = self.history[pointer] 96 self.history.remove(source) 99 self.history.append(source)
|
/external/llvm-project/lldb/source/Commands/ |
D | CommandObjectSession.cpp | 154 const CommandHistory &history(m_interpreter.GetCommandHistory()); in DoExecute() local 158 start_idx.second = history.GetSize() - count.second; in DoExecute() 159 stop_idx.second = history.GetSize() - 1; in DoExecute() 162 stop_idx.second = history.GetSize() - 1; in DoExecute() 165 stop_idx.second = history.GetSize() - 1; in DoExecute() 170 stop_idx.second = history.GetSize() - 1; in DoExecute() 175 stop_idx.second = history.GetSize() - 1; in DoExecute() 190 history.Dump(result.GetOutputStream(), start_idx.second, in DoExecute()
|
/external/doclava/res/assets/templates/assets/ |
D | jquery-history.js | 32 var current = $.history.getCurrent(); 38 $.history = { 42 var previous = $.history.getCurrent(); 47 $.event.trigger('historyadd', [$.history.getCurrent(), previous]); 62 $.fn.history = function(fn) { function
|
/external/mksh/src/ |
D | histrap.c | 360 if (histptr >= history && last_line != hist_source->line) { in hist_execute() 396 if ((size_t)hp < (size_t)history) { in hist_get() 418 if ((n = findhist(histptr - history - 1, 0, str, anchored)) < 0) in hist_get() 421 hp = &history[n]; in hist_get() 430 if (histptr < history || (!allow_cur && histptr == history)) { in hist_get_newest() 441 if (histptr <= history) { in hist_get_oldest() 445 return (history); in hist_get_oldest() 464 int last = histptr - history; in histnum() 470 current = &history[n]; in histnum() 485 int maxhist = histptr - history; in findhist() [all …]
|
/external/marisa-trie/tests/ |
D | trie-test.cc | 425 marisa::grimoire::trie::History history; in TestHistory() local 427 ASSERT(history.node_id() == 0); in TestHistory() 428 ASSERT(history.louds_pos() == 0); in TestHistory() 429 ASSERT(history.key_pos() == 0); in TestHistory() 430 ASSERT(history.link_id() == MARISA_INVALID_LINK_ID); in TestHistory() 431 ASSERT(history.key_id() == MARISA_INVALID_KEY_ID); in TestHistory() 433 history.set_node_id(100); in TestHistory() 434 history.set_louds_pos(200); in TestHistory() 435 history.set_key_pos(300); in TestHistory() 436 history.set_link_id(400); in TestHistory() [all …]
|