HomeSort by relevance Sort by last modified time
    Searched defs:safe (Results 1 - 25 of 144) sorted by null

1 2 3 4 5 6

  /external/skia/tests/
SafeMathTest.cpp 17 SkSafeMath safe; local
18 REPORTER_ASSERT(r, safe.add(halfMax, halfMax) == 2 * halfMax);
19 REPORTER_ASSERT(r, safe);
20 REPORTER_ASSERT(r, safe.add(halfMax, halfMaxPlus1) == max);
21 REPORTER_ASSERT(r, safe);
22 REPORTER_ASSERT(r, safe.add(max, 1) == 0);
23 REPORTER_ASSERT(r, !safe);
27 SkSafeMath safe; local
28 (void) safe.add(max, max);
29 REPORTER_ASSERT(r, !safe);
37 SkSafeMath safe; local
47 SkSafeMath safe; local
    [all...]
  /external/skqp/tests/
SafeMathTest.cpp 17 SkSafeMath safe; local
18 REPORTER_ASSERT(r, safe.add(halfMax, halfMax) == 2 * halfMax);
19 REPORTER_ASSERT(r, safe);
20 REPORTER_ASSERT(r, safe.add(halfMax, halfMaxPlus1) == max);
21 REPORTER_ASSERT(r, safe);
22 REPORTER_ASSERT(r, safe.add(max, 1) == 0);
23 REPORTER_ASSERT(r, !safe);
27 SkSafeMath safe; local
28 (void) safe.add(max, max);
29 REPORTER_ASSERT(r, !safe);
37 SkSafeMath safe; local
47 SkSafeMath safe; local
    [all...]
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/scripts/
queens.py 23 self.row = [0] * n # Is row[y] safe?
24 self.up = [0] * (2*n-1) # Is upward diagonal[x-y] safe?
25 self.down = [0] * (2*n-1) # Is downward diagonal[x+y] safe?
30 if self.safe(x, y):
38 def safe(self, x, y): member in class:Queens
  /external/python/cpython2/Demo/scripts/
queens.py 23 self.row = [0] * n # Is row[y] safe?
24 self.up = [0] * (2*n-1) # Is upward diagonal[x-y] safe?
25 self.down = [0] * (2*n-1) # Is downward diagonal[x+y] safe?
30 if self.safe(x, y):
38 def safe(self, x, y): member in class:Queens
  /external/python/cpython3/Tools/demo/
queens.py 23 self.row = [0] * n # Is row[y] safe?
24 self.up = [0] * (2*n-1) # Is upward diagonal[x-y] safe?
25 self.down = [0] * (2*n-1) # Is downward diagonal[x+y] safe?
30 if self.safe(x, y):
38 def safe(self, x, y): member in class:Queens
  /external/glide/library/src/main/java/com/bumptech/glide/load/model/
GlideUrl.java 59 String safe = Uri.encode(unsafe, ALLOWED_URI_CHARS); local
61 safeUrl = new URL(safe);
  /external/one-true-awk/
main.c 55 int safe = 0; /* 1 => "safe" mode */ variable
90 if (strcmp(argv[1], "-safe") == 0)
91 safe = 1;
170 if (!safe)
  /external/python/cpython3/Lib/email/
_encoded_words.py 75 safe = b'-!*+/' + ascii_letters.encode('ascii') + digits.encode('ascii') variable in class:_QByteMap
78 if key in self.safe:
  /external/webrtc/webrtc/libjingle/xmllite/
xmlprinter.cc 130 size_t safe = 0; local
132 size_t unsafe = text.find_first_of("<>&\"", safe);
135 *pout_ << text.substr(safe, unsafe - safe);
144 safe = unsafe + 1;
145 if (safe == text.length())
151 size_t safe = 0; local
153 size_t unsafe = text.find_first_of("<>&", safe);
156 *pout_ << text.substr(safe, unsafe - safe);
    [all...]
  /external/icu/icu4c/source/i18n/
number_compact.h 78 UBool safe; member in class:number::impl::CompactHandler
80 /** Used by the safe code path */
  /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/res/
FileFsFileTest.java 40 assertThat(path).isEqualTo(safe("foo/bar"));
49 final String path = FileFsFile.from(safe("/some/path")).getPath();
50 assertThat(path).isEqualTo(safe("/some/path"));
55 final String path = FileFsFile.from(safe("/some/path/./to/here")).getPath();
56 assertThat(path).isEqualTo(safe("/some/path/to/here"));
61 final String path = FileFsFile.from(".").join(safe("some/./path"), ".", safe("to/here")).getPath();
62 assertThat(path).isEqualTo(safe("./some/path/to/here"));
92 private String safe(String path) { method in class:FileFsFileTest
  /external/skia/src/core/
SkSafeMath.h 64 SkSafeMath safe; local
65 return safe.alignUp(x, 4);
SkImageInfo.cpp 111 SkSafeMath safe; local
112 size_t bytes = safe.add(safe.mul(fHeight - 1, rowBytes),
113 safe.mul(fWidth, this->bytesPerPixel()));
114 return safe ? bytes : SK_MaxSizeT;
SkVertices.cpp 27 SkSafeMath safe; local
29 fVSize = safe.mul(vertexCount, sizeof(SkPoint));
30 fTSize = hasTexs ? safe.mul(vertexCount, sizeof(SkPoint)) : 0;
31 fCSize = hasColors ? safe.mul(vertexCount, sizeof(SkColor)) : 0;
32 fISize = safe.mul(indexCount, sizeof(uint16_t));
33 fTotal = safe.add(sizeof(SkVertices),
34 safe.add(fVSize,
35 safe.add(fTSize,
36 safe.add(fCSize,
39 if (safe.ok())
199 SkSafeRange safe; local
    [all...]
SkPath_serial.cpp 102 SkSafeMath safe; local
104 size = safe.add(size, safe.mul(pts, sizeof(SkPoint)));
105 size = safe.add(size, safe.mul(cnx, sizeof(SkScalar)));
106 size = safe.add(size, safe.mul(vbs, sizeof(uint8_t)));
107 size = safe.alignUp(size, 4);
108 if (!safe) {
SkString.cpp 190 SkSafeMath safe; local
192 uint32_t stringLen = safe.castTo<uint32_t>(len);
194 size_t allocationSize = safe.add(len, SizeOfRec() + sizeof(char));
196 allocationSize = safe.alignUp(allocationSize, 4);
198 SkASSERT_RELEASE(safe.ok());
410 /* Seems we should use realloc here, since that is safe if it fails
SkTextBlob.cpp 195 SkSafeMath* safe) {
198 auto glyphSize = safe->mul(glyphCount, sizeof(uint16_t)),
199 posSize = safe->mul(PosCount(glyphCount, positioning, safe), sizeof(SkScalar));
203 size = safe->add(size, safe->alignUp(glyphSize, 4));
204 size = safe->add(size, posSize);
207 size = safe->add(size, sizeof(uint32_t));
208 size = safe->add(size, safe->mul(glyphCount, sizeof(uint32_t)))
251 SkSafeMath safe; local
268 SkSafeMath safe; local
545 SkSafeMath safe; local
600 SkSafeMath safe; local
640 SkSafeMath safe; local
    [all...]
  /external/skqp/src/core/
SkSafeMath.h 55 SkSafeMath safe; local
56 return safe.alignUp(x, 4);
SkImageInfo.cpp 71 SkSafeMath safe; local
72 size_t bytes = safe.add(safe.mul(fHeight - 1, rowBytes),
73 safe.mul(fWidth, this->bytesPerPixel()));
74 return safe ? bytes : SK_MaxSizeT;
SkVertices.cpp 27 SkSafeMath safe; local
29 fVSize = safe.mul(vertexCount, sizeof(SkPoint));
30 fTSize = hasTexs ? safe.mul(vertexCount, sizeof(SkPoint)) : 0;
31 fCSize = hasColors ? safe.mul(vertexCount, sizeof(SkColor)) : 0;
32 fISize = safe.mul(indexCount, sizeof(uint16_t));
33 fTotal = safe.add(sizeof(SkVertices),
34 safe.add(fVSize,
35 safe.add(fTSize,
36 safe.add(fCSize,
39 if (safe.ok())
199 SkSafeRange safe; local
    [all...]
SkTextBlob.cpp 195 SkSafeMath* safe) {
198 auto glyphSize = safe->mul(glyphCount, sizeof(uint16_t)),
199 posSize = safe->mul(PosCount(glyphCount, positioning, safe), sizeof(SkScalar));
203 size = safe->add(size, safe->alignUp(glyphSize, 4));
204 size = safe->add(size, posSize);
207 size = safe->add(size, sizeof(uint32_t));
208 size = safe->add(size, safe->mul(glyphCount, sizeof(uint32_t)))
251 SkSafeMath safe; local
268 SkSafeMath safe; local
545 SkSafeMath safe; local
600 SkSafeMath safe; local
640 SkSafeMath safe; local
    [all...]
  /art/runtime/
mem_map.cc 960 bool safe = true; local
    [all...]
  /external/dhcpcd-6.8.2/
dhcp.c 1289 char cidr[4], safe[(BOOTFILE_LEN * 4) + 1]; local
1359 print_string(safe, sizeof(safe), STRING,
1361 setvar(ifp->ctx, &ep, prefix, "filename", safe);
1364 print_string(safe, sizeof(safe), STRING | DOMAIN,
1366 setvar(ifp->ctx, &ep, prefix, "server_name", safe);
    [all...]
  /device/linaro/bootloader/edk2/MdePkg/Include/IndustryStandard/
Tpm20.h 1144 TPMI_YES_NO safe; member in struct:__anon10014
    [all...]
  /external/tpm2/
tpm_types.h 868 TPMI_YES_NO safe; member in struct:__anon40572
    [all...]

Completed in 1180 milliseconds

1 2 3 4 5 6