/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/model/ |
slice_group.js | 11 base.require('model.slice'); 16 var Slice = tracing.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...] |
slice.js | 8 * @fileoverview Provides the Slice class. 13 * A Slice represents an interval of time plus parameters associated 17 * Slice. These must be kept in sync. 22 function Slice(category, title, colorId, start, args, opt_duration) { 33 Slice.prototype = { 44 Slice: Slice
|
async_slice_group.js | 11 base.require('model.slice'); 14 var Slice = tracing.model.Slice; 24 Slice.call(this, category, title, colorId, start, args); 28 __proto__: Slice.prototype, 68 * Helper function that pushes the provided slice onto the slices array. 70 push: function(slice) { 71 this.slices.push(slice); 87 var slice = this.slices[sI]; 88 slice.start = (slice.start + amount) [all...] |
/external/chromium-trace/trace-viewer/src/analysis/ |
slice_group_selection_analysis.js | 11 * @fileoverview Conains classes for slice group selections. 23 tracing.ui.define('group-slice-selection-analysis'); 32 throw new Error('Expected at least 1 slice in selection'); 37 var firstTitle = s[0].slice.title; 39 if (s[i].slice.title != firstTitle) 40 throw new Error('Expected all slice titles to be equivalent'); 74 var slice = this.selection[i].slice; 75 totalDuration += slice.duration; 76 if (groupStart == undefined || slice.groupStart < groupStart [all...] |
single_slice_selection_analysis.js | 11 * @fileoverview Conains classes for single slice selection. 22 tracing.ui.define('single-slice-selection'); 41 throw new Error('Expected only 1 slice in selection'); 63 var slice = hit.slice; 66 this.appendDataRow_('Title', slice.title); 67 this.appendDataRow_('Category', slice.category); 69 tracing.analysis.tsRound(slice.start)); 71 tracing.analysis.tsRound(slice.duration)); 75 this.appendData_(rowEl, slice.category) [all...] |
/external/chromium-trace/trace-viewer/src/tracks/ |
async_slice_group_track.js | 25 this.classList.add('async-slice-group-track'); 41 * by start time. For each slice, try to fit it in an existing subRow. If it 53 var slice = slices[i]; 59 if (slice.start >= lastSliceInSubRow.end) { 61 // Instead of plotting one big slice for the entire 63 if (slice.subSlices === undefined || slice.subSlices.length < 1) 65 slice.name; 66 for (var k = 0; k < slice.subSlices.length; k++) 67 subRow.push(slice.subSlices[k]) [all...] |
slice_track_test.html | 19 base.require('model.slice'); 29 var Slice = tracing.model.Slice; 38 new Slice('', 'a', 0, 1, {}, 1), 39 new Slice('', 'b', 1, 2.1, {}, 4.8), 40 new Slice('', 'b', 1, 7, {}, 0.5), 41 new Slice('', 'c', 2, 7.6, {}, 0.4) 50 new Slice('', 'a', 0, 1, {}, 1), 51 new Slice('', 'b', 1, 2.1, {}, 4.8), 52 new Slice('', 'b', 1, 7, {}, 0.5) [all...] |
slice_track.js | 20 * A track that displays an array of Slice objects. 41 this.classList.add('slice-track'); 119 function(slice) { 120 return slice.start + 121 slice.duration; 125 var slice = slices[i]; 126 var x = slice.start; 131 var w = Math.max(slice.duration, 0.001); 132 var colorId = slice.selected ? 133 slice.colorId + highlightIdBoost [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/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-trace/trace-viewer/src/importer/linux_perf/ |
disk_parser_test.html | 66 var slice = blockThread.asyncSlices.slices[0]; 67 assertEquals('block', slice.category); 68 assertEquals('write sync', slice.title); 69 assertEquals('179,0', slice.args.device); 70 assertEquals(0, slice.args.error); 71 assertEquals(16, slice.args.numSectors); 72 assertEquals(3427120, slice.args.sector); 76 slice = ext4Thread.asyncSlices.slices[0]; 77 assertEquals('ext4', slice.category); 78 assertEquals('fdatasync', slice.title) [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...] |
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/i686-linux/include/c++/4.6.x-google/bits/ |
slice_array.h | 50 * The slice class represents a one-dimensional subset of an array, 57 * For example, with an array of size 10, and a slice with offset 1, size 3 60 class slice class 63 /// Construct an empty slice. 64 slice(); 67 * @brief Construct a slice. 70 * @param d Number of elements in slice. 73 slice(size_t, size_t, size_t); 75 /// Return array offset of first slice element. 77 /// Return size of slice 91 slice::slice() function in class:slice 95 slice::slice(size_t __o, size_t __d, size_t __s) function in class:slice [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/x86_64-linux/include/c++/4.6.x-google/bits/ |
slice_array.h | 50 * The slice class represents a one-dimensional subset of an array, 57 * For example, with an array of size 10, and a slice with offset 1, size 3 60 class slice class 63 /// Construct an empty slice. 64 slice(); 67 * @brief Construct a slice. 70 * @param d Number of elements in slice. 73 slice(size_t, size_t, size_t); 75 /// Return array offset of first slice element. 77 /// Return size of slice 91 slice::slice() function in class:slice 95 slice::slice(size_t __o, size_t __d, size_t __s) function in class:slice [all...] |
/prebuilts/ndk/5/sources/cxx-stl/gnu-libstdc++/include/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...] |
/prebuilts/ndk/6/sources/cxx-stl/gnu-libstdc++/include/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...] |
/prebuilts/ndk/7/sources/cxx-stl/gnu-libstdc++/include/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...] |
/prebuilts/ndk/8/sources/cxx-stl/gnu-libstdc++/4.4.3/include/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...] |
/prebuilts/ndk/8/sources/cxx-stl/gnu-libstdc++/4.6/include/bits/ |
slice_array.h | 50 * The slice class represents a one-dimensional subset of an array, 57 * For example, with an array of size 10, and a slice with offset 1, size 3 60 class slice class 63 /// Construct an empty slice. 64 slice(); 67 * @brief Construct a slice. 70 * @param d Number of elements in slice. 73 slice(size_t, size_t, size_t); 75 /// Return array offset of first slice element. 77 /// Return size of slice 91 slice::slice() function in class:slice 95 slice::slice(size_t __o, size_t __d, size_t __s) function in class:slice [all...] |
/prebuilts/ndk/8/sources/cxx-stl/gnu-libstdc++/4.7/include/bits/ |
slice_array.h | 50 * The slice class represents a one-dimensional subset of an array, 57 * For example, with an array of size 10, and a slice with offset 1, size 3 60 class slice class 63 /// Construct an empty slice. 64 slice(); 67 * @brief Construct a slice. 70 * @param __d Number of elements in slice. 73 slice(size_t __o, size_t __d, size_t __s); 75 /// Return array offset of first slice element. 77 /// Return size of slice 91 slice::slice() function in class:slice 95 slice::slice(size_t __o, size_t __d, size_t __s) function in class:slice [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/js1_2/String/ |
slice.js | 23 Filename: slice.js 24 Description: 'This tests the String object method: slice' 33 var TITLE = 'String.slice'; 35 writeHeaderToLog('Executing script: slice.js'); 62 // This function tests the slice command on a String 63 // passed in. The arguments passed into slice range in 66 // result of the slice(...) method is calculated and 67 // compared to the actual result from the slice(...) method. 80 var b = a.slice(x,y); 87 " test: " + "a.slice(" + x + "," + y + ")\n" [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/js1_2/Array/ |
slice.js | 23 Filename: slice.js 33 var TITLE = 'String:slice'; 35 writeHeaderToLog('Executing script: slice.js'); 62 // This function tests the slice command on an Array 63 // passed in. The arguments passed into slice range in 66 // result of the slice(...) method is calculated and 67 // compared to the actual result from the slice(...) method. 80 var b = a.slice(x,y); 87 " test: " + "a.slice(" + x + "," + y + ")\n" + 105 testcases[count++] = exhaustiveSliceTest("exhaustive slice test 1", a) [all...] |
/external/chromium/chrome/browser/resources/gpu_internals/ |
timeline_view.js | 100 var slice = selection[0].slice; 102 text += leftAlign('Title', c0Width) + ': ' + slice.title + '\n'; 104 tsRound(slice.start) + ' ms\n'; 106 tsRound(slice.duration) + ' ms\n'; 109 for (var argName in slice.args) { 114 for (var argName in slice.args) { 115 var argVal = slice.args[argName]; 125 function(s) {return s.slice.start;})); 127 function(s) {return s.slice.end;})) [all...] |