/external/chromium_org/media/filters/ |
H A D | chunk_demuxer_unittest.cc | 156 // have timestamps consistent with the end times of the blocks 438 std::vector<std::string> timestamps; local 439 base::SplitString(block_descriptions, ' ', ×tamps); 441 for (size_t i = 0; i < timestamps.size(); ++i) { 442 std::string timestamp_str = timestamps[i]; 451 timestamp_str = timestamp_str.substr(0, timestamps[i].length() - 1); 1058 std::vector<std::string> timestamps; local 1059 base::SplitString(expected, ' ', ×tamps); 1061 for (size_t i = 0; i < timestamps.size(); ++i) { 1078 if (EndsWith(timestamps[ 1101 ParseWebMFile(const std::string& filename, const BufferTimestamps* timestamps, const base::TimeDelta& duration) argument 1107 ParseWebMFile(const std::string& filename, const BufferTimestamps* timestamps, const base::TimeDelta& duration, int stream_flags) argument [all...] |
H A D | frame_processor_unittest.cc | 102 std::vector<std::string> timestamps; local 103 base::SplitString(buffers_to_append, ' ', ×tamps); 106 for (size_t i = 0; i < timestamps.size(); i++) { 108 if (EndsWith(timestamps[i], "K", true)) { 111 timestamps[i] = timestamps[i].substr(0, timestamps[i].length() - 1); 115 CHECK(base::StringToDouble(timestamps[i], &time_in_ms)); 182 std::vector<std::string> timestamps; local 183 base::SplitString(expected, ' ', ×tamps); [all...] |
H A D | source_buffer_stream_unittest.cc | 254 std::vector<std::string> timestamps; local 255 base::SplitString(expected, ' ', ×tamps); 259 for (size_t i = 0; i < timestamps.size(); i++) { 279 EXPECT_EQ("C", timestamps[i]); 297 if (EndsWith(timestamps[i], "P", true)) { 433 // coded strings of timestamps separated by spaces. Supported syntax: 459 // preceding timestamps a# ... y# will be treated as the fade out preroll for 464 std::vector<std::string> timestamps; local 465 base::SplitString(buffers_to_append, ' ', ×tamps); 467 CHECK_GT(timestamps [all...] |
/external/chromium_org/media/formats/mp2t/ |
H A D | timestamp_unroller_unittest.cc | 17 const std::vector<int64>& timestamps) { 20 std::vector<int64> truncated_timestamps(timestamps.size()); 21 for (size_t k = 0; k < timestamps.size(); k++) 22 truncated_timestamps[k] = timestamps[k] & truncate_mask; 26 static void RunUnrollTest(const std::vector<int64>& timestamps) { argument 27 std::vector<int64> truncated_timestamps = TruncateTimestamps(timestamps); 30 for (size_t k = 0; k < timestamps.size(); k++) { 33 EXPECT_EQ(timestamps[k], unrolled_timestamp); 38 // Array of 64 bit timestamps. 39 // This is the expected result from unrolling these timestamps 16 TruncateTimestamps( const std::vector<int64>& timestamps) argument 41 int64 timestamps[] = { local [all...] |
/external/chromium_org/chrome/browser/webdata/ |
H A D | autocomplete_syncable_service.cc | 33 // Merges timestamps from the |sync_timestamps| and the |local_entry|. 35 // timestamps were different, fills |date_created| and |date_last_used| with the 36 // merged timestamps. The |sync_timestamps| vector is assumed to be sorted. 329 const google::protobuf::RepeatedField<int64_t>& timestamps = local 334 if (timestamps.size() > 0) { 335 date_created = base::Time::FromInternalValue(*timestamps.begin()); 336 date_last_used = base::Time::FromInternalValue(*timestamps.rbegin()); 342 bool different = MergeTimestamps(timestamps, *it->second.second, 348 // Update the sync db since the timestamps have changed.
|
/external/chromium_org/components/autofill/core/browser/webdata/ |
H A D | autofill_table_unittest.cc | 1579 std::vector<Time> timestamps; local 1587 timestamps.push_back(Time::FromTimeT(start)); 1592 std::pair<std::string, std::vector<Time> >(key, timestamps)); 1596 AutofillEntry ae1(ak1, timestamps.front(), timestamps.back());
|
/external/chromium_org/chrome/browser/resources/history/ |
H A D | history.js | 680 timestamps: visits[i].allTimestamps
|
/external/chromium_org/chrome/browser/sync/ |
H A D | profile_sync_service_autofill_unittest.cc | 651 std::vector<base::Time> timestamps; local 654 timestamps.push_back(Time::FromInternalValue( 658 AutofillEntry(key, timestamps.front(), timestamps.back()));
|
/external/chromium_org/chrome/browser/ui/toolbar/ |
H A D | recent_tabs_builder_test_helper.cc | 106 std::vector<base::Time> timestamps; local 109 timestamps.push_back(GetTabTimestamp(session_index, w, t)); 112 if (timestamps.empty()) 115 sort(timestamps.begin(), timestamps.end()); 116 return timestamps[0];
|
/external/chromium_org/chrome/browser/ui/webui/ |
H A D | history_ui.cc | 339 // Pass the timestamps in a list. 340 scoped_ptr<base::ListValue> timestamps(new base::ListValue); 343 timestamps->AppendDouble(base::Time::FromInternalValue(*it).ToJsTime()); 345 result->Set("allTimestamps", timestamps.release()); 570 base::ListValue* timestamps = NULL; local 572 // Each argument is a dictionary with properties "url" and "timestamps". 575 deletion->GetList("timestamps", ×tamps))) { 579 DCHECK(timestamps->GetSize() > 0); 590 for (base::ListValue::const_iterator ts_iterator = timestamps [all...] |
/external/chromium_org/base/android/java/src/org/chromium/base/ |
H A D | ResourceExtractor.java | 210 String[] timestamps = outputDir.list(new FilenameFilter() { 217 if (timestamps.length != 1) { 219 // If there's multiple timestamps, something's gone wrong so nuke. 223 if (!expectedTimestamp.equals(timestamps[0])) {
|
/external/chromium_org/build/android/pylib/perf/ |
H A D | surface_stats_collector.py | 14 # Log marker containing SurfaceTexture timestamps. 15 _SURFACE_TEXTURE_TIMESTAMPS_MESSAGE = 'SurfaceTexture update timestamps' 98 def _CalculateResults(refresh_period, timestamps, result_suffix): 100 frame_count = len(timestamps) 101 seconds = timestamps[-1] - timestamps[0] 105 timestamps, refresh_period, _MIN_NORMALIZED_FRAME_LENGTH) 134 def _CalculateBuckets(refresh_period, timestamps): 137 sliced = timestamps[min(int(-pct * len(timestamps)), [all...] |
H A D | surface_stats_collector_unittest.py | 29 timestamps = self._CreateUniformTimestamps(0, 10, self.refresh_period) 32 self.refresh_period, timestamps, '')) 38 self.assertEquals(len(results['frame_lengths'].value), len(timestamps) - 1) 41 timestamps = self._CreateUniformTimestamps(0, 10, self.refresh_period / 100) 44 [self.refresh_period, timestamps, '']) 47 timestamps = self._CreateUniformTimestamps(0, 5, self.refresh_period) 48 # The following timestamps should be skipped. 49 timestamps += self._CreateUniformTimestamps(timestamps[4], 52 timestamps [all...] |
/external/chromium-trace/ |
H A D | script.js | 29 b.prototype={__proto__:Object.prototype,toJSON:function(){for(var a={},c=Object.keys(this),e=0;e<c.length;e++){var f=c[e];"function"!=typeof this[f]&&(a[f]="parent"==f?this[f].guid:this[f])}return a},get length(){return this.timestamps_.length},get name(){return this.name_},get color(){return this.color_},get samples(){return this.samples_},get timestamps(){return this.timestamps_},getSample:function(a){return this.samples_[a]},getTimestamp:function(a){return this.timestamps_[a]},addSample:function(a, 144 base.exportTo("tracing.trace_model",function(){function d(b,a,c,e){this.guid_=base.GUID.allocate();this.parent=b;this.id=a;this.category=c||"";this.name=e;this.series_=[];this.bounds=new base.Range}d.prototype={__proto__:Object.prototype,get guid(){return this.guid_},toJSON:function(){for(var b={},a=Object.keys(this),c=0;c<a.length;c++){var e=a[c];"function"!=typeof this[e]&&(b[e]="parent"==e?this[e].guid:this[e])}return b},set timestamps(b){throw Error("Bad counter API. No cookie.");},set seriesNames(b){throw Error("Bad counter API. No cookie."); 145 },set seriesColors(b){throw Error("Bad counter API. No cookie.");},set samples(b){throw Error("Bad counter API. No cookie.");},addSeries:function(b){this.series_.push(b)},getSeries:function(b){return this.series_[b]},get series(){return this.series_},get numSeries(){return this.series_.length},get numSamples(){return 0===this.series_.length?0:this.series_[0].length},get timestamps(){return 0===this.series_.length?[]:this.series_[0].timestamps},getSampleStatistics:function(b){b.sort();var a=[];this.series_.forEach(function(c){a.push(c.getStatistics(b))}); 234 this.abortImport();return!1}a=this.clockSyncRecords_[0];if(0==a.parentTS||a.parentTS==a.perfTS)return!0;a=a.parentTS-a.perfTS;for(var c in this.cpuStates_){for(var b=this.cpuStates_[c].cpu,e=0;e<b.slices.length;e++){var f=b.slices[e];f.start+=a;f.duration=f.duration}for(var d in b.counters)for(e=b.counters[d],f=0;f<e.timestamps.length;f++)e.timestamps[f]+=a}for(var g in this.kernelThreadStates_)this.kernelThreadStates_[g].thread.shiftTimestampsForward(a);return!0},abortImport:function(){if(this.pushedEventsToThreads)throw Error("Cannot abort, have alrady pushedCpuDataToThreads."); 298 a},addBoundsToRange:function(a){a.addValue(this.slice.start);a.addValue(this.slice.end)}};b.prototype={get modelObject(){return this.sampleIndex},get selected(){return 1==this.track.selectedSamples[this.sampleIndex]},set selected(a){this.track.selectedSamples[this.sampleIndex]=a?!0:!1},addBoundsToRange:function(a){this.track.timestamps&&a.addValue(this.track.timestamps[this.sampleIndex])}};a.prototype={get modelObject(){return this.objectSnapshot},get selected(){return this.objectSnapshot.selected}, 324 base.exportTo("tracing.analysis",function(){return{analyzeSingleCounterSampleHit:function(d,b){for(var a=b.counter,c=b.sampleIndex,e=[],f=0;f<a.numSeries;++f)e.push(a.getSeries(f).getSample(c).value);var g=d.appendTable("analysis-counter-table",2);d.appendTableHeader(g,"Selected counter:");d.appendSummaryRow(g,"Title",a.name);d.appendSummaryRowTime(g,"Timestamp",a.timestamps[c]);for(f=0;f<a.numSeries;f++)d.appendSummaryRow(g,a.getSeries(f).name,e[f])},analyzeMultipleCounterSampleHits:function(d,b){for(var a= 441 set categoryFilter(a){this.categoryFilter_=a},get selectedSamples(){return this.selectedSamples_},draw:function(a,b,e){switch(a){case tracing.tracks.DrawType.SLICE:this.drawSlices_(b,e)}},drawSlices_:function(a,b){var e=this.context(),f=window.devicePixelRatio||1,f=this.getBoundingClientRect().height*f,g=this.counter_,h=this.viewport,k=h.xViewVectorToWorld(1),l=h.xViewVectorToWorld(1);e.save();h.applyTransformToCanvas(e);for(var h=g.numSeries,m=g.numSamples,n=base.findLowIndexInSortedArray(g.timestamps, [all...] |
/external/chromium-trace/trace-viewer/src/tracing/analysis/ |
H A D | analyze_counters.js | 23 table, 'Timestamp', ctr.timestamps[sampleIndex]);
|
/external/chromium-trace/trace-viewer/src/tracing/importer/ |
H A D | linux_perf_importer.js | 560 * Walks the slices stored on this.cpuStates_ and adjusts their timestamps 594 for (var sI = 0; sI < counter.timestamps.length; sI++) 595 counter.timestamps[sI] = (counter.timestamps[sI] + timeShift);
|
H A D | timeline_stream_importer_test.js | 217 assertEquals(64, counter.timestamps[4]);
|
H A D | trace_event_importer_test.js | 503 assertArrayEquals([0, 0.01, 0.02], ctr.timestamps); 538 assertArrayEquals([0, 0.01], ctr.timestamps); 550 assertArrayEquals([0.01, 0.015, 0.018], ctr.timestamps); 563 assertArrayEquals([0.02], ctr.timestamps); 635 assertArrayEquals([0, 0.01, 0.02], ctr.timestamps);
|
/external/chromium-trace/trace-viewer/src/tracing/ |
H A D | selection.js | 60 if (!this.track.timestamps) 62 range.addValue(this.track.timestamps[this.sampleIndex]);
|
/external/chromium-trace/trace-viewer/src/tracing/trace_model/ |
H A D | counter.js | 58 set timestamps(arg) { 96 get timestamps() { 99 return this.series_[0].timestamps; 125 * Shifts all the timestamps inside this counter forward by the amount 154 // Note, this assumes that all series have all timestamps.
|
H A D | counter_series.js | 93 get timestamps() {
|
/external/chromium-trace/trace-viewer/src/tracing/tracks/ |
H A D | counter_track.js | 103 counter.timestamps, 120 counter.timestamps[iLast] - skipDistanceWorld : -1; 138 var x = counter.timestamps[i]; 149 var xNext = counter.timestamps[i + 1]; 184 var x = counter.timestamps[i]; 199 if (i === counter.timestamps.length - 1) 201 return counter.timestamps[i + 1] - counter.timestamps[i]; 205 var iLo = base.findLowIndexInSortedIntervals(counter.timestamps, 209 var iHi = base.findLowIndexInSortedIntervals(counter.timestamps, [all...] |
H A D | counter_track_test.js | 15 var runTest = function(timestamps, samples, testFn) { 28 for (var k = 0; k < timestamps.length; ++k) { 29 ctr.series[i].addSample(timestamps[k], samples[i][k]); 65 var timestamps = [0, 1, 2, 3, 4, 5, 6, 7]; 69 for (var k = 0; k < timestamps.length; ++k) { 70 ctr.series[i].addSample(timestamps[k], samples[i][k]); 94 var timestamps = [0, 1, 2, 3, 4, 5, 6, 7]; 98 runTest.call(this, timestamps, samples, function(ctr, container, track) {
|