HomeSort by relevance Sort by last modified time
    Searched full:slice (Results 1 - 25 of 1551) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
test_slice.py 1 # tests for slice objects; in particular the indices method.
12 self.assertRaises(TypeError, slice)
13 self.assertRaises(TypeError, slice, 1, 2, 3, 4)
16 self.assertEqual(repr(slice(1, 2, 3)), "slice(1, 2, 3)")
20 self.assertRaises(TypeError, hash, slice(5))
21 self.assertRaises(TypeError, slice(5).__hash__)
24 s1 = slice(1, 2, 3)
25 s2 = slice(1, 2, 3)
26 s3 = slice(1, 2, 4
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
test_slice.py 1 # tests for slice objects; in particular the indices method.
12 self.assertRaises(TypeError, slice)
13 self.assertRaises(TypeError, slice, 1, 2, 3, 4)
16 self.assertEqual(repr(slice(1, 2, 3)), "slice(1, 2, 3)")
20 self.assertRaises(TypeError, hash, slice(5))
21 self.assertRaises(TypeError, slice(5).__hash__)
24 s1 = slice(1, 2, 3)
25 s2 = slice(1, 2, 3)
26 s3 = slice(1, 2, 4
    [all...]
  /packages/apps/Settings/src/com/android/settings/widget/
PieChartView.java 48 private ArrayList<Slice> mSlices = Lists.newArrayList();
62 public class Slice {
71 public Slice(long value, int color) {
118 mSlices.add(new Slice(value, color));
141 for (Slice slice : mSlices) {
142 slice.path.reset();
143 slice.pathSide.reset();
144 slice.pathOutline.reset();
145 total += slice.value
    [all...]
  /external/chromium-trace/trace-viewer/src/tracing/trace_model/
slice.js 10 * @fileoverview Provides the Slice class.
14 * A Slice represents an interval of time plus parameters associated
19 function Slice(category, title, colorId, start, args, opt_duration) {
27 Slice.prototype = {
36 Slice: Slice
slice_group.js 11 base.require('tracing.trace_model.slice');
16 var Slice = tracing.trace_model.Slice;
26 * @param {function(new:Slice, category, title, colorId, start, args)=}
30 var sliceConstructor = opt_sliceConstructor || Slice;
50 * Helper function that pushes the provided slice onto the slices array.
51 * @param {Slice} slice The slice to be added to the slices array.
53 pushSlice: function(slice) {
    [all...]
async_slice_group.js 27 * Helper function that pushes the provided slice onto the slices array.
29 push: function(slice) {
30 this.slices.push(slice);
46 var slice = this.slices[sI];
47 slice.start = (slice.start + amount);
48 for (var sJ = 0; sJ < slice.subSlices.length; sJ++)
49 slice.subSlices[sJ].start += amount;
73 var slice = this.slices[i];
74 var sliceGUID = slice.startThread.guid
    [all...]
  /external/chromium_org/third_party/leveldatabase/src/include/leveldb/
slice.h 5 // Slice is a simple structure containing a pointer into some external
6 // storage and a size. The user of a Slice must ensure that the slice
10 // Multiple threads can invoke const methods on a Slice without
12 // non-const method, all threads accessing the same Slice must use
25 class Slice {
27 // Create an empty slice.
28 Slice() : data_(""), size_(0) { }
30 // Create a slice that refers to d[0,n-1].
31 Slice(const char* d, size_t n) : data_(d), size_(n) {
    [all...]
status.h 17 #include "leveldb/slice.h"
35 static Status NotFound(const Slice& msg, const Slice& msg2 = Slice()) {
38 static Status Corruption(const Slice& msg, const Slice& msg2 = Slice()) {
41 static Status NotSupported(const Slice& msg, const Slice& msg2 = Slice()) {
    [all...]
write_batch.h 29 class Slice;
37 void Put(const Slice& key, const Slice& value);
40 void Delete(const Slice& key);
49 virtual void Put(const Slice& key, const Slice& value) = 0;
50 virtual void Delete(const Slice& key) = 0;
  /external/chromium_org/tools/telemetry/telemetry/core/timeline/
slice_unittest.py 7 from telemetry.core.timeline.slice import Slice
14 top = Slice(None, 'cat', 'top', 0, duration=10)
15 a = Slice(None, 'cat', 'a', 1, duration=2)
16 x = Slice(None, 'cat', 'x', 1.5, duration=0.25)
17 b = Slice(None, 'cat', 'b', 5, duration=2)
  /external/chromium-trace/trace-viewer/src/tracing/analysis/
analyze_slices.js 14 var slice = sliceHit.slice;
15 var table = results.appendTable('analysis-slice-table', 2);
17 results.appendTableHeader(table, 'Selected slice:');
18 results.appendSummaryRow(table, 'Title', slice.title);
20 if (slice.category)
21 results.appendSummaryRow(table, 'Category', slice.category);
23 results.appendSummaryRowTime(table, 'Start', slice.start);
24 results.appendSummaryRowTime(table, 'Duration', slice.duration);
26 if (slice.durationInUserTime)
    [all...]
slice_view.js 11 * Slice views allow customized visualization of specific slices, indexed by
12 * title. If not registered, the default slice viewing logic is used.
16 var SliceView = ui.define('slice-view');
26 this.slice = obj;
30 return this.slice;
33 get slice() {
37 set slice(s) {
  /external/chromium-trace/trace-viewer/src/tracing/tracks/
async_slice_group_track.js 18 'async-slice-group-track',
27 this.classList.add('async-slice-group-track');
43 * by start time. For each slice, try to fit it in an existing subRow. If it
55 var slice = slices[i];
61 if (slice.start >= lastSliceInSubRow.end) {
63 // Instead of plotting one big slice for the entire
65 if (slice.subSlices === undefined || slice.subSlices.length < 1)
67 slice.name;
68 for (var k = 0; k < slice.subSlices.length; k++
    [all...]
slice_track_test.js 8 base.require('tracing.trace_model.slice');
15 var Slice = tracing.trace_model.Slice;
32 new Slice('', 'a', 0, 1, {}, 1),
33 new Slice('', 'b', 1, 2.1, {}, 4.8),
34 new Slice('', 'b', 1, 7, {}, 0.5),
35 new Slice('', 'c', 2, 7.6, {}, 0.4)
57 var s = new Slice('', 'a', 1, x, {}, widths[i]);
92 new Slice('', 'a ' + tooLongTitle + bigTitle, 0, 1, {}, 1),
93 new Slice('', bigTitle, 1, 2.1, {}, 4.8)
    [all...]
slice_track.js 20 * A track that displays an array of Slice objects.
26 'slice-track', tracing.tracks.HeadingTrack);
43 this.classList.add('slice-track');
87 case tracing.tracks.DrawType.SLICE:
117 function(slice) { return slice.start + slice.duration; },
121 var slice = slices[i];
122 var x = slice.start;
127 var w = Math.max(slice.duration, 0.001)
    [all...]
  /external/clang/test/CodeGenObjC/
objc2-write-barrier-3.m 8 struct Slice {
12 typedef struct Slice Slice;
37 Slice *slice;
38 slice->items = 0;
40 slice->items[i] = 0;
  /libcore/luni/src/main/java/java/util/concurrent/
CopyOnWriteArrayList.java 472 * single snapshot object representing the current slice. This permits reads
482 private volatile Slice slice; field in class:CopyOnWriteArrayList.CowSubList
485 this.slice = new Slice(expectedElements, from, to);
489 Slice slice = this.slice; local
490 return slice.to - slice.from
494 Slice slice = this.slice; local
500 Slice slice = this.slice; local
516 Slice slice = this.slice; local
526 Slice slice = this.slice; local
534 Slice slice = this.slice; local
546 Slice slice = this.slice; local
553 Slice slice = this.slice; local
    [all...]
  /external/chromium-trace/trace-viewer/src/cc/
raster_task_slice_view.css 5 .raster-task-slice-view {
10 .raster-task-slice-view > object-snapshot-view {
  /external/chromium_org/third_party/leveldatabase/src/table/
block_builder.h 11 #include "leveldb/slice.h"
26 void Add(const Slice& key, const Slice& value);
28 // Finish building the block and return a slice that refers to the
29 // block contents. The returned slice will remain valid for the
31 Slice Finish();
  /external/chromium-trace/trace-viewer/src/tracing/importer/linux_perf/
android_parser.js 51 var slice = new tracing.trace_model.AsyncSlice(
54 slice.id = cookie;
55 slice.startThread = thread;
61 this.openAsyncSlices[key] = slice;
71 var slice = this.openAsyncSlices[key];
72 if (!slice) {
77 slice.endThread = thread;
78 slice.duration = ts - slice.start;
79 slice.startThread.asyncSliceGroup.push(slice)
    [all...]
disk_parser_test.js 57 var slice = blockThread.asyncSliceGroup.slices[0];
58 assertEquals('block', slice.category);
59 assertEquals('write sync', slice.title);
60 assertEquals('179,0', slice.args.device);
61 assertEquals(0, slice.args.error);
62 assertEquals(16, slice.args.numSectors);
63 assertEquals(3427120, slice.args.sector);
67 slice = ext4Thread.asyncSliceGroup.slices[0];
68 assertEquals('ext4', slice.category);
69 assertEquals('fdatasync', slice.title)
    [all...]
  /external/chromium_org/v8/test/mjsunit/
array-slice.js 32 var sliced = array.slice();
42 assertEquals([], [].slice(0, 0));
43 assertEquals([], [].slice(1, 0));
44 assertEquals([], [].slice(0, 1));
45 assertEquals([], [].slice(-1, 0));
55 assertEquals(array, array.slice());
56 assertEquals(array, array.slice(0));
57 assertEquals(array, array.slice(undefined));
58 assertEquals(array, array.slice("foobar"));
59 assertEquals(array, array.slice(undefined, undefined))
    [all...]
  /external/v8/test/mjsunit/
array-slice.js 32 var sliced = array.slice();
42 assertEquals([], [].slice(0, 0));
43 assertEquals([], [].slice(1, 0));
44 assertEquals([], [].slice(0, 1));
45 assertEquals([], [].slice(-1, 0));
55 assertEquals(array, array.slice());
56 assertEquals(array, array.slice(0));
57 assertEquals(array, array.slice(undefined));
58 assertEquals(array, array.slice("foobar"));
59 assertEquals(array, array.slice(undefined, undefined))
    [all...]
  /external/chromium_org/third_party/leveldatabase/src/db/
dbformat.h 12 #include "leveldb/slice.h"
68 Slice user_key;
73 ParsedInternalKey(const Slice& u, const SequenceNumber& seq, ValueType t)
91 extern bool ParseInternalKey(const Slice& internal_key,
95 inline Slice ExtractUserKey(const Slice& internal_key) {
97 return Slice(internal_key.data(), internal_key.size() - 8);
100 inline ValueType ExtractValueType(const Slice& internal_key) {
116 virtual int Compare(const Slice& a, const Slice& b) const
    [all...]
  /prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/bits/
slice_array.h 48 * The slice class represents a one-dimensional subset of an array,
55 * For example, with an array of size 10, and a slice with offset 1, size 3
58 class slice class
61 /// Construct an empty slice.
62 slice();
65 * @brief Construct a slice.
68 * @param d Number of elements in slice.
71 slice(size_t, size_t, size_t);
73 /// Return array offset of first slice element.
75 /// Return size of slice
89 slice::slice() function in class:slice
93 slice::slice(size_t __o, size_t __d, size_t __s) function in class:slice
    [all...]

Completed in 895 milliseconds

1 2 3 4 5 6 7 8 91011>>