/external/chromium-trace/catapult/telemetry/telemetry/timeline/ |
bounds_unittest.py | 6 from telemetry.timeline import bounds 13 self.assertEquals(0, bounds.Bounds.GetOverlap(10, 20, 30, 40)) 14 self.assertEquals(0, bounds.Bounds.GetOverlap(30, 40, 10, 20)) 16 self.assertEquals(10, bounds.Bounds.GetOverlap(10, 30, 20, 40)) 17 self.assertEquals(10, bounds.Bounds.GetOverlap(20, 40, 10, 30)) 19 self.assertEquals(10, bounds.Bounds.GetOverlap(10, 40, 20, 30) [all...] |
bounds.py | 5 class Bounds(object): 6 """Represents a min-max bounds.""" 14 bounds = Bounds() 15 bounds.AddEvent(event) 16 return bounds 20 return "Bounds()" 22 return "Bounds(min=%s,max=%s)" % (self.min_, self.max_) 41 def bounds(self): member in class:Bounds 68 def AddBounds(self, bounds) [all...] |
/frameworks/base/tools/aapt2/compile/ |
Image.h | 88 struct Bounds { 94 explicit Bounds() = default; 95 inline explicit Bounds(int32_t l, int32_t t, int32_t r, int32_t b) 101 inline bool Bounds::nonZero() const { 105 inline bool operator==(const Bounds& left, const Bounds& right) { 131 Bounds padding; 134 * Optical layout bounds/insets. This overrides the padding for 140 Bounds layout_bounds; 145 Bounds outline [all...] |
/prebuilts/go/darwin-x86/doc/progs/ |
image_package6.go | 15 fmt.Println(m0.Bounds().Dx(), m1.Bounds().Dx()) // prints 8, 4
|
image_draw.go | 36 draw.Draw(m, m.Bounds(), &image.Uniform{blue}, image.ZP, draw.Src) 40 draw.Draw(m, m.Bounds(), image.Transparent, image.ZP, draw.Src) 70 b := m.Bounds() 86 b := src.Bounds() 95 draw.DrawMask(dst, dst.Bounds(), src, image.ZP, &circle{p, r}, image.ZP, draw.Over) 130 func (c *circle) Bounds() image.Rectangle {
|
/prebuilts/go/linux-x86/doc/progs/ |
image_package6.go | 15 fmt.Println(m0.Bounds().Dx(), m1.Bounds().Dx()) // prints 8, 4
|
image_draw.go | 36 draw.Draw(m, m.Bounds(), &image.Uniform{blue}, image.ZP, draw.Src) 40 draw.Draw(m, m.Bounds(), image.Transparent, image.ZP, draw.Src) 70 b := m.Bounds() 86 b := src.Bounds() 95 draw.DrawMask(dst, dst.Bounds(), src, image.ZP, &circle{p, r}, image.ZP, draw.Over) 130 func (c *circle) Bounds() image.Rectangle {
|
/external/dng_sdk/source/ |
dng_image.h | 136 // Bounds for this image. 150 /// How to handle requests to get image areas outside the image bounds. 175 dng_image (const dng_rect &bounds, 185 /// Getter method for bounds of an image. 187 const dng_rect & Bounds () const 196 return Bounds ().Size (); 203 return Bounds ().W (); 210 return Bounds ().H (); 268 /// Shrink bounds of image to given rectangle. 332 SetConstant (value, Bounds ()); [all...] |
dng_opcodes.cpp | 280 fDstImage.Bounds ()); 288 fDstImage.Bounds ()); 302 fDstImage.Bounds ()); 320 fDstImage.Bounds (), 364 dng_rect modifiedBounds = ModifiedBounds (image->Bounds ()); 376 if (modifiedBounds == image->Bounds ()) 379 dstImage.Reset (host.Make_dng_image (image->Bounds (), 465 fImage.Bounds (), 493 fImage.Bounds ()); 538 dng_rect modifiedBounds = ModifiedBounds (image->Bounds ()); [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/site-packages/setools/policyrep/ |
bounds.py | 26 """Factory for creating bounds statement objects.""" 29 return Bounds(policy, sym) 35 """Validate *bounds rule types.""" 37 raise exception.InvalidBoundsType("{0} is not a valid *bounds rule type.".format(t)) 42 class Bounds(PolicySymbol):
|
/external/autotest/client/cros/multimedia/ |
display_info.py | 11 class Bounds(object): 12 """The class match Bounds object from chrome.system.display API. 52 self.bounds = self.Bounds(d['bounds']) 54 self.work_area = self.Bounds(d['workArea'])
|
/external/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/ |
p9-0x.cpp | 42 template<typename ...ElementTypes, unsigned ...Bounds> 43 struct split_arrays<ElementTypes[Bounds]...> { 46 // FIXME: Would like to have unsigned_tuple<Bounds...> here. 47 typedef tuple<unsigned_c<Bounds>...> bounds_types;
|
/external/skia/src/core/ |
SkRecordDraw.cpp | 24 // this canvas' clip bounds transformed back into identity space, which 77 DRAW(SaveLayer, saveLayer(SkCanvas::SaveLayerRec(r.bounds, 154 // The interesting part here is how to calculate bounds for ops which don't 155 // have intrinsic bounds. What is the bounds of a Save or a Translate? 157 // We answer this by thinking about a particular definition of bounds: if I 159 // the bounds of a Save, a Translate, a Restore, etc. are the union of the 160 // bounds of Draw* ops that they might have an effect on. For any given 161 // Save/Restore block, the bounds of the Save, the Restore, and any other 162 // non-drawing ("control") ops inside are exactly the union of the bounds o 240 Bounds bounds; \/\/ Bounds of everything in the block. member in struct:SkRecords::FillBounds::SaveBounds 402 Bounds bounds(const DrawText&) const { return fCurrentClipBounds; } function in class:SkRecords::FillBounds 404 Bounds bounds(const DrawPaint&) const { return fCurrentClipBounds; } function in class:SkRecords::FillBounds 405 Bounds bounds(const NoOp&) const { return Bounds::MakeEmpty(); } \/\/ NoOps don't draw. function in class:SkRecords::FillBounds 407 Bounds bounds(const DrawRect& op) const { return this->adjustAndMap(op.rect, &op.paint); } function in class:SkRecords::FillBounds 408 Bounds bounds(const DrawRegion& op) const { function in class:SkRecords::FillBounds 412 Bounds bounds(const DrawOval& op) const { return this->adjustAndMap(op.oval, &op.paint); } function in class:SkRecords::FillBounds 414 Bounds bounds(const DrawArc& op) const { return this->adjustAndMap(op.oval, &op.paint); } function in class:SkRecords::FillBounds 415 Bounds bounds(const DrawRRect& op) const { function in class:SkRecords::FillBounds 418 Bounds bounds(const DrawDRRect& op) const { function in class:SkRecords::FillBounds 421 Bounds bounds(const DrawImage& op) const { function in class:SkRecords::FillBounds 427 Bounds bounds(const DrawImageLattice& op) const { function in class:SkRecords::FillBounds 430 Bounds bounds(const DrawImageRect& op) const { function in class:SkRecords::FillBounds 433 Bounds bounds(const DrawImageNine& op) const { function in class:SkRecords::FillBounds 436 Bounds bounds(const DrawPath& op) const { function in class:SkRecords::FillBounds 440 Bounds bounds(const DrawPoints& op) const { function in class:SkRecords::FillBounds 450 Bounds bounds(const DrawPatch& op) const { function in class:SkRecords::FillBounds 455 Bounds bounds(const DrawVertices& op) const { function in class:SkRecords::FillBounds 459 Bounds bounds(const DrawAtlas& op) const { function in class:SkRecords::FillBounds 469 Bounds bounds(const DrawPicture& op) const { function in class:SkRecords::FillBounds 475 Bounds bounds(const DrawShadowedPicture& op) const { function in class:SkRecords::FillBounds 481 Bounds bounds(const DrawPosText& op) const { function in class:SkRecords::FillBounds 492 Bounds bounds(const DrawPosTextH& op) const { function in class:SkRecords::FillBounds 507 Bounds bounds(const DrawTextOnPath& op) const { function in class:SkRecords::FillBounds 523 Bounds bounds(const DrawTextRSXform& op) const { function in class:SkRecords::FillBounds 531 Bounds bounds(const DrawTextBlob& op) const { function in class:SkRecords::FillBounds 537 Bounds bounds(const DrawDrawable& op) const { function in class:SkRecords::FillBounds 541 Bounds bounds(const DrawAnnotation& op) const { function in class:SkRecords::FillBounds [all...] |
/prebuilts/go/darwin-x86/src/image/jpeg/ |
writer_test.go | 151 if m0.Bounds() != m1.Bounds() { 152 t.Errorf("%s, bounds differ: %v and %v", tc.filename, m0.Bounds(), m1.Bounds()) 178 if m0.Bounds() != m1.Bounds() { 179 t.Fatalf("bounds differ: %v and %v", m0.Bounds(), m1.Bounds()) [all...] |
/prebuilts/go/linux-x86/src/image/jpeg/ |
writer_test.go | 151 if m0.Bounds() != m1.Bounds() { 152 t.Errorf("%s, bounds differ: %v and %v", tc.filename, m0.Bounds(), m1.Bounds()) 178 if m0.Bounds() != m1.Bounds() { 179 t.Fatalf("bounds differ: %v and %v", m0.Bounds(), m1.Bounds()) [all...] |
/prebuilts/go/darwin-x86/src/image/draw/ |
example_test.go | 32 pi := image.NewPaletted(im.Bounds(), []color.Color{ 40 draw.FloydSteinberg.Draw(pi, im.Bounds(), im, image.ZP)
|
draw_test.go | 202 b := dst.Bounds() 203 sb := src.Bounds() 206 mb = mask.Bounds() 265 b := dst.Bounds() 266 if !b.Eq(golden.Bounds()) { 267 t.Errorf("draw %v %s: bounds %v versus %v", r, test.desc, dst.Bounds(), golden.Bounds()) 301 b := dst.Bounds() 303 golden := makeGolden(dst, b, src, src.Bounds().Min, nil, image.ZP, op [all...] |
/prebuilts/go/linux-x86/src/image/draw/ |
example_test.go | 32 pi := image.NewPaletted(im.Bounds(), []color.Color{ 40 draw.FloydSteinberg.Draw(pi, im.Bounds(), im, image.ZP)
|
/prebuilts/go/darwin-x86/src/image/ |
image_test.go | 41 if !Rect(0, 0, 10, 10).Eq(m.Bounds()) { 42 t.Errorf("%T: want bounds %v, got %v", m, Rect(0, 0, 10, 10), m.Bounds()) 59 if !Rect(3, 2, 9, 8).Eq(m.Bounds()) { 60 t.Errorf("%T: sub-image want bounds %v, got %v", m, Rect(3, 2, 9, 8), m.Bounds())
|
/prebuilts/go/darwin-x86/src/image/png/ |
example_test.go | 34 for y := img.Bounds().Min.Y; y < img.Bounds().Max.Y; y++ { 35 for x := img.Bounds().Min.X; x < img.Bounds().Max.X; x++ {
|
/prebuilts/go/linux-x86/src/image/ |
image_test.go | 41 if !Rect(0, 0, 10, 10).Eq(m.Bounds()) { 42 t.Errorf("%T: want bounds %v, got %v", m, Rect(0, 0, 10, 10), m.Bounds()) 59 if !Rect(3, 2, 9, 8).Eq(m.Bounds()) { 60 t.Errorf("%T: sub-image want bounds %v, got %v", m, Rect(3, 2, 9, 8), m.Bounds())
|
/prebuilts/go/linux-x86/src/image/png/ |
example_test.go | 34 for y := img.Bounds().Min.Y; y < img.Bounds().Max.Y; y++ { 35 for x := img.Bounds().Min.X; x < img.Bounds().Max.X; x++ {
|
/external/pdfium/third_party/base/numerics/ |
safe_conversions_impl.h | 189 template <typename Dst, typename Src, template <typename> class Bounds> 223 static constexpr Dst max() { return Adjust(Bounds<Dst>::max()); } 224 static constexpr Dst lowest() { return Adjust(Bounds<Dst>::lowest()); } 229 template <typename> class Bounds, 247 template <typename> class Bounds, 252 Bounds, 258 using DstLimits = NarrowingRange<Dst, Src, Bounds>; 269 template <typename Dst, typename Src, template <typename> class Bounds> 272 Bounds, 277 using DstLimits = NarrowingRange<Dst, Src, Bounds>; [all...] |
/prebuilts/go/darwin-x86/src/image/gif/ |
writer_test.go | 48 // have the same bounds. 50 b := m0.Bounds() 94 if m0.Bounds() != m1.Bounds() { 95 t.Errorf("%s, bounds differ: %v and %v", tc.filename, m0.Bounds(), m1.Bounds()) 122 if m0.Bounds() != m1.Bounds() { 123 t.Fatalf("bounds differ: %v and %v", m0.Bounds(), m1.Bounds() [all...] |
/prebuilts/go/linux-x86/src/image/gif/ |
writer_test.go | 48 // have the same bounds. 50 b := m0.Bounds() 94 if m0.Bounds() != m1.Bounds() { 95 t.Errorf("%s, bounds differ: %v and %v", tc.filename, m0.Bounds(), m1.Bounds()) 122 if m0.Bounds() != m1.Bounds() { 123 t.Fatalf("bounds differ: %v and %v", m0.Bounds(), m1.Bounds() [all...] |