Home
last modified time | relevance | path

Searched refs:a (Results 1 – 25 of 777) sorted by relevance

12345678910>>...32

/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Dbigintegertest.cpp34 const BigInteger a(123); in TEST() local
35 EXPECT_TRUE(a == a); in TEST()
36 EXPECT_TRUE(a == BIGINTEGER_LITERAL("123")); in TEST()
37 EXPECT_TRUE(a == BIGINTEGER_LITERAL("0123")); in TEST()
45 BigInteger a = kZero; in TEST() local
46 a += 0u; in TEST()
47 EXPECT_TRUE(kZero == a); in TEST()
49 a += 1u; in TEST()
50 EXPECT_TRUE(kOne == a); in TEST()
52 a += 1u; in TEST()
[all …]
Ddocumenttest.cpp62 const ValueType& a = doc["a"]; in ParseCheck() local
63 EXPECT_TRUE(a.IsArray()); in ParseCheck()
64 EXPECT_EQ(4u, a.Size()); in ParseCheck()
66 EXPECT_EQ(i + 1, a[i].GetUint()); in ParseCheck()
198 Document::AllocatorType& a = d1.GetAllocator(); in TEST() local
200 d1.SetArray().PushBack(1, a).PushBack(2, a); in TEST()
203 o.SetObject().AddMember("a", 1, a); in TEST()
213 d2.SetArray().PushBack(3, a); in TEST()
217 EXPECT_EQ(&d2.GetAllocator(), &a); in TEST()
226 EXPECT_NE(&d2.GetAllocator(), &a); in TEST()
[all …]
Dpointertest.cpp635 Document::AllocatorType& a = d.GetAllocator(); in TEST() local
637 EXPECT_TRUE(Value("bar") == Pointer("/foo/0").GetWithDefault(d, v, a)); in TEST()
638 EXPECT_TRUE(Value("baz") == Pointer("/foo/1").GetWithDefault(d, v, a)); in TEST()
639 EXPECT_TRUE(Value("qux") == Pointer("/foo/2").GetWithDefault(d, v, a)); in TEST()
640 EXPECT_TRUE(Value("last") == Pointer("/foo/-").GetWithDefault(d, Value("last").Move(), a)); in TEST()
643 EXPECT_TRUE(Pointer("/foo/null").GetWithDefault(d, Value().Move(), a).IsNull()); in TEST()
644 EXPECT_TRUE(Pointer("/foo/null").GetWithDefault(d, "x", a).IsNull()); in TEST()
647 EXPECT_EQ(-1, Pointer("/foo/int").GetWithDefault(d, -1, a).GetInt()); in TEST()
648 EXPECT_EQ(-1, Pointer("/foo/int").GetWithDefault(d, -2, a).GetInt()); in TEST()
649 EXPECT_EQ(0x87654321, Pointer("/foo/uint").GetWithDefault(d, 0x87654321, a).GetUint()); in TEST()
[all …]
Dallocatorstest.cpp22 void TestAllocator(Allocator& a) { in TestAllocator() argument
23 EXPECT_TRUE(a.Malloc(0) == 0); in TestAllocator()
25 uint8_t* p = (uint8_t*)a.Malloc(100); in TestAllocator()
31 uint8_t* q = (uint8_t*)a.Realloc(p, 100, 200); in TestAllocator()
39 uint8_t *r = (uint8_t*)a.Realloc(q, 200, 150); in TestAllocator()
47 EXPECT_TRUE(a.Realloc(a.Malloc(1), 1, 0) == 0); in TestAllocator()
51 CrtAllocator a; in TEST() local
52 TestAllocator(a); in TEST()
56 MemoryPoolAllocator<> a; in TEST() local
57 TestAllocator(a); in TEST()
[all …]
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_utilities.h78 inline double db_sqr(double a) in db_sqr() argument
80 return(a*a); in db_sqr()
86 inline long db_sqr(long a) in db_sqr() argument
88 return(a*a); in db_sqr()
94 inline long db_sqr(int a) in db_sqr() argument
96 return(a*a); in db_sqr()
102 inline double db_maxd(double a,double b) in db_maxd() argument
104 if(b>a) return(b); in db_maxd()
105 else return(a); in db_maxd()
110 inline double db_mind(double a,double b) in db_mind() argument
[all …]
Ddb_utilities_poly.h39 inline void db_SolveQuadratic(double *roots,int *nr_roots,double a,double b,double c) in db_SolveQuadratic() argument
45 if(a==0.0) in db_SolveQuadratic()
56 rs=b*b-4.0*a*c; in db_SolveQuadratic()
62 roots[0]=q/a; in db_SolveQuadratic()
79 DB_API void db_SolveCubic(double *roots,int *nr_roots,double a,double b,double c,double d);
84 DB_API void db_SolveQuartic(double *roots,int *nr_roots,double a,double b,double c,double d,double …
89 DB_API void db_SolveQuarticForced(double *roots,int *nr_roots,double a,double b,double c,double d,d…
96 inline void db_MultiplyPoly1_1(double *d,const double *a,const double *b) in db_MultiplyPoly1_1() argument
100 a0=a[0];a1=a[1]; in db_MultiplyPoly1_1()
108 inline void db_MultiplyPoly0_2(double *d,const double *a,const double *b) in db_MultiplyPoly0_2() argument
[all …]
Ddb_utilities_poly.cpp28 void db_SolveCubic(double *roots,int *nr_roots,double a,double b,double c,double d) in db_SolveCubic() argument
40 if(a==0.0) db_SolveQuadratic(roots,nr_roots,b,c,d); in db_SolveCubic()
43 bp=b/a; in db_SolveCubic()
45 cp=c/a; in db_SolveCubic()
46 dp=d/a; in db_SolveCubic()
94 void db_SolveQuartic(double *roots,int *nr_roots,double a,double b,double c,double d,double e) in db_SolveQuartic() argument
111 if(a==0.0) db_SolveCubic(roots,nr_roots,b,c,d,e); in db_SolveQuartic()
114 db_SolveCubic(roots,nr_roots,a,b,c,d); in db_SolveQuartic()
121 c3=b/a; in db_SolveQuartic()
122 c2=c/a; in db_SolveQuartic()
[all …]
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
DDelaunay.h96 EdgePointer connectLeft(EdgePointer a, EdgePointer b);
97 EdgePointer connectRight(EdgePointer a, EdgePointer b);
98 int ccw(SitePointer a, SitePointer b, SitePointer c);
99 int incircle(SitePointer a, SitePointer b, SitePointer c, SitePointer d);
112 #define onext(a) next[a] argument
113 #define oprev(a) rot(onext(rot(a))) argument
114 #define lnext(a) rot(onext(rotinv(a))) argument
115 #define lprev(a) sym(onext(a)) argument
116 #define rnext(a) rotinv(onext(rot(a))) argument
117 #define rprev(a) onext(sym(a)) argument
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DKeyStylesSet.java62 public String[] getStringArray(final TypedArray a, final int index) { in getStringArray() argument
63 return parseStringArray(a, index); in getStringArray()
68 public String getString(final TypedArray a, final int index) { in getString() argument
69 return parseString(a, index); in getString()
73 public int getInt(final TypedArray a, final int index, final int defaultValue) { in getInt() argument
74 return a.getInt(index, defaultValue); in getInt()
78 public int getFlags(final TypedArray a, final int index) { in getFlags() argument
79 return a.getInt(index, 0); in getFlags()
98 public String[] getStringArray(final TypedArray a, final int index) { in getStringArray() argument
99 if (a.hasValue(index)) { in getStringArray()
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/
Dtutorial.md5 As shown in [Usage at a glance](@ref index), a JSON can be parsed into DOM, and then the DOM can be…
11 Each JSON value is stored in a type called `Value`. A `Document`, representing the DOM, contains th…
17 Assumes we have a JSON stored in a C string (`const char* json`):
26 "a": [1, 2, 3, 4]
30 Parse it into a `Document`:
41 The JSON is now parsed into `document` as a *DOM tree*:
45 Since the update to RFC 7159, the root of a conforming JSON document can be any JSON value. In ear…
50a `"hello"` member exists in the root object. Since a `Value` can contain different types of value…
100 JSON array contains a number of elements.
102 // Using a reference for consecutive access is handy and faster.
[all …]
Dpointer.md5a standardized ([RFC6901]) way to select a value inside a JSON Document (DOM). This can be analogo…
13 A JSON Pointer is a list of zero-to-many tokens, each prefixed by `/`. Each token can be a string o…
53 Pointer("/a/b/0").Create(d);
55 // { "project" : "RapidJSON", "stars" : 11, "a" : { "b" : [ null ] } }
60 // { "project" : "RapidJSON", "stars" : 11, "a" : { "b" : [ null ] }, "hello" : "world" }
66 // { "project" : "RapidJSON", "stars" : 11, "a" : { "b" : [ null ] }, "hello" : "C++" }
69 // Erase a member or element, return true if the value exists
70 bool success = Pointer("/a").Erase(d);
91 CreateValueByPointer(d, "/a/b/0");
98 bool success = EraseValueByPointer(d, "/a");
[all …]
Dsax.md11 …es a JSON from a stream. While it reads characters from the stream, it analyze the characters acco…
13 For example, here is a JSON.
23 "a": [1, 2, 3, 4]
27 While a `Reader` parses this JSON, it publishes the following events to the handler sequentially:
43 Key("a")
85 …ld\", \"t\" : true , \"f\" : false, \"n\": null, \"i\":123, \"pi\": 3.1416, \"a\":[1, 2, 3, 4] } ";
98 As the previous example showed, user needs to implement a handler, which consumes the events (funct…
118 `Null()` is called when the `Reader` encounters a JSON null value.
120 `Bool(bool)` is called when the `Reader` encounters a JSON true or false value.
122 When the `Reader` encounters a JSON number, it chooses a suitable C++ type mapping. And then it cal…
[all …]
Dinternals.md15a JSON from a stream and publish events to a `Handler`. `Writer` implements the `Handler` concept …
17 …depends on SAX as well. So, in addition to stringify a DOM to JSON, user may also stringify it to
27 `Value` (actually a typedef of `GenericValue<UTF8<>>`) is the core of DOM API. This section describ…
31a [variant type](http://en.wikipedia.org/wiki/Variant_type). In RapidJSON's context, an instance o…
104 … according to the endianess. This makes possible for interpreting a 32-bit integer as a 64-bit int…
109 … optimizing the operation of testing bit-flags (`IsNumber()`) and obtaining a sequential number fo…
111 String has two optional flags. `kCopyFlag` means that the string owns a copy of the string. `kInlin…
113 Number is a bit more complicated. For normal integer values, it can contains `kIntFlag`, `kUintFlag…
117a very neat short-string optimization. The optimization idea is given as follow. Excluding the `fl…
131 `Allocator` is a concept in RapidJSON:
[all …]
/packages/modules/DnsResolver/
DREADME-DoT.md12 `DnsTlsDispatcher` is a singleton class whose `query` method is the DnsTls's
13 only public interface. `DnsTlsDispatcher` is just a table holding the
14 `DnsTlsTransport` for each server (represented by a `DnsTlsServer` struct) and
15 network. `DnsTlsDispatcher` also blocks each query thread, waiting on a
18 `DnsTlsTransport` sends each query over a `DnsTlsSocket`, opening a
20 `DnsTlsSocket`, which happen on a different thread.
28 `DnsTlsSocket` interleaves all queries onto a single socket, and reports all
38 Classes that spawn a helper thread call `thread::join()` in their destructor to ensure
42 annotations) to minimize the likelihood of a latent threading bug. The unit tests are
45 This code creates O(1) threads per socket, and does not create a new thread for each
[all …]
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DConnectionServiceFixture.java502 for (IConnectionServiceAdapter a : mConnectionServiceAdapters) { in sendHandleCreateConnectionComplete()
503 a.handleCreateConnectionComplete( in sendHandleCreateConnectionComplete()
512 for (IConnectionServiceAdapter a : mConnectionServiceAdapters) { in sendSetActive()
513 a.setActive(id, null /*Session.Info*/); in sendSetActive()
519 for (IConnectionServiceAdapter a : mConnectionServiceAdapters) { in sendSetRinging()
520 a.setRinging(id, null /*Session.Info*/); in sendSetRinging()
526 for (IConnectionServiceAdapter a : mConnectionServiceAdapters) { in sendSetDialing()
527 a.setDialing(id, null /*Session.Info*/); in sendSetDialing()
534 for (IConnectionServiceAdapter a : mConnectionServiceAdapters) { in sendSetDisconnected()
535 a.setDisconnected(id, mConnectionById.get(id).disconnectCause, null /*Session.Info*/); in sendSetDisconnected()
[all …]
DPhoneAccountRegistrarTest.java985 PhoneAccountHandle a = new PhoneAccountHandle(new ComponentName("packageA", "class1"), in testSamePhoneAccountHandlePackage() local
995 assertTrue(PhoneAccountHandle.areFromSamePackage(a, b)); in testSamePhoneAccountHandlePackage()
996 assertTrue(PhoneAccountHandle.areFromSamePackage(a, c)); in testSamePhoneAccountHandlePackage()
998 assertFalse(PhoneAccountHandle.areFromSamePackage(a, d)); in testSamePhoneAccountHandlePackage()
1001 assertFalse(PhoneAccountHandle.areFromSamePackage(a, null)); in testSamePhoneAccountHandlePackage()
1088 private static void assertPhoneAccountHandleEquals(PhoneAccountHandle a, PhoneAccountHandle b) { in assertPhoneAccountHandleEquals() argument
1089 if (a != b) { in assertPhoneAccountHandleEquals()
1091 a.getComponentName().getPackageName(), in assertPhoneAccountHandleEquals()
1094 a.getComponentName().getClassName(), in assertPhoneAccountHandleEquals()
1096 assertEquals(a.getId(), b.getId()); in assertPhoneAccountHandleEquals()
[all …]
/packages/services/Car/car-lib/src/android/car/navigation/
Dnavigation_state.proto6 * You may obtain a copy of the License at
24 // A reference to an image. This consists of a 'content://' style URI plus
28 // When requesting the image using this URI a 'w' and 'h' parameter
33 // Format: Content URI must reference a file with MIME type
48 // When requesting the image from this URI, a desired image size must be
93 // This distance is for display only (it might be a rounded representation of
97 // For example, a distance of 1200 meters in ES_es locale could be
107 // Information about a maneuver that the driver will be required to perform.
148 // A turn to enter a turnpike or freeway. See TURN_NORMAL_LEFT,
159 // A turn to exit a turnpike or freeway. See TURN_NORMAL_LEFT,
[all …]
/packages/apps/Contacts/src/com/android/contacts/model/account/
DAccountComparator.java33 public int compare(AccountWithDataSet a, AccountWithDataSet b) { in compare() argument
34 if (Objects.equal(a.name, b.name) && Objects.equal(a.type, b.type) in compare()
35 && Objects.equal(a.dataSet, b.dataSet)) { in compare()
39 } else if (a.name == null || a.type == null) { in compare()
41 } else if (isWritableGoogleAccount(a) && a.equals(mDefaultAccount)) { in compare()
45 } else if (isWritableGoogleAccount(a) && !isWritableGoogleAccount(b)) { in compare()
47 } else if (isWritableGoogleAccount(b) && !isWritableGoogleAccount(a)) { in compare()
50 int diff = a.name.compareToIgnoreCase(b.name); in compare()
54 diff = a.type.compareToIgnoreCase(b.type); in compare()
60 if (a.dataSet != null) { in compare()
[all …]
/packages/inputmethods/LatinIME/dictionaries/
Dsample.combined1 # This is a sample wordlist that can be converted to a binary dictionary
3 # The file is essentially a CSV file, with indent level denoting nesting.
5 # The file starts with a single CSV line with the header attributes. Whatever
10 # Each word has a `word' entry and at least a `f' argument denoting its
11 # probability, as an integer between 0 and 255 on a logarithmic scale, with
13 # As a special case, a weight of 0 is taken to mean profanity - words that
14 # should not be considered a typo, but that should never be suggested
15 # explicitly. An entry may be made not a word by adding a `not_a_word'
16 # field with a value of `true'. The main reason for putting such entries
17 # into the dictionary is to add shortcut targets and maybe a whitelist
[all …]
/packages/apps/Dialer/java/com/android/dialer/phonelookup/
Dphone_lookup_info.proto9 // Contains information about a phone number, possibly from many sources.
18 // Information about a PhoneNumber retrieved from CP2.
20 // Information about a single contact.
23 // For a contact in the default directory:
25 // For a contact in other directories:
29 // For a contact in the default directory:
31 // For a contact in other directories:
35 // For a contact in the default directory:
37 // For a contact in other directories:
41 // For a contact in the default directory:
[all …]
/packages/apps/LegacyCamera/jni/feature_mos/doc/
Dfeature_mos_API_doxyfile4 # doxygen (www.doxygen.org) for a project
6 # All text after a hash (#) is considered a comment and will be ignored
25 # The PROJECT_NAME tag is a single word (or a sequence of words surrounded
30 # The PROJECT_NUMBER tag can be used to enter a project or revision number.
38 # If a relative path is entered, it will be relative to the location
46 # Enabling this option can be useful when feeding doxygen a huge amount of
73 # the brief description of a member or function before the detailed description.
79 # This tag implements a quasi-intelligent brief description abbreviator
87 # "represents" "a" "an" "the"
97 a \
[all …]
/packages/apps/LegacyCamera/jni/feature_stab/doc/
Ddbreg_API_doxyfile4 # doxygen (www.doxygen.org) for a project
6 # All text after a hash (#) is considered a comment and will be ignored
25 # The PROJECT_NAME tag is a single word (or a sequence of words surrounded
30 # The PROJECT_NUMBER tag can be used to enter a project or revision number.
38 # If a relative path is entered, it will be relative to the location
46 # Enabling this option can be useful when feeding doxygen a huge amount of
73 # the brief description of a member or function before the detailed description.
79 # This tag implements a quasi-intelligent brief description abbreviator
87 # "represents" "a" "an" "the"
97 a \
[all …]
/packages/services/Car/service/src/com/android/car/
DCarUxRestrictionsConfigurationXmlParser.java173 TypedArray a = mContext.getResources().obtainAttributes(attrs, in mapDrivingStateToRestrictions() local
175 if (a.hasValue(R.styleable.UxRestrictions_RestrictionMapping_physicalPort)) { in mapDrivingStateToRestrictions()
176 int portValue = a.getInt( in mapDrivingStateToRestrictions()
181 a.recycle(); in mapDrivingStateToRestrictions()
192 TypedArray a = mContext.getResources().obtainAttributes(attrs, in mapDrivingStateToRestrictions() local
194 int drivingState = a.getInt(R.styleable.UxRestrictions_DrivingState_state, in mapDrivingStateToRestrictions()
196 float minSpeed = a.getFloat(R.styleable.UxRestrictions_DrivingState_minSpeed, in mapDrivingStateToRestrictions()
198 float maxSpeed = a.getFloat(R.styleable.UxRestrictions_DrivingState_maxSpeed, in mapDrivingStateToRestrictions()
200 a.recycle(); in mapDrivingStateToRestrictions()
277 TypedArray a = mContext.getResources().obtainAttributes(attrs, in parseRestrictions() local
[all …]
/packages/modules/IPsec/api/
Dsystem-lint-baseline.txt17 …android.net.eap.EapSessionConfig does not declare a `getEapMsChapV2Config()` method matching metho…
19 …android.net.ipsec.ike.ChildSaProposal does not declare a `getDhGroups()` method matching method an…
21 …android.net.ipsec.ike.ChildSaProposal does not declare a `getEncryptionAlgorithms()` method matchi…
23 …android.net.ipsec.ike.ChildSaProposal does not declare a `getIntegrityAlgorithms()` method matchin…
25 …android.net.ipsec.ike.IkeSaProposal does not declare a `getDhGroups()` method matching method andr…
27 …android.net.ipsec.ike.IkeSaProposal does not declare a `getEncryptionAlgorithms()` method matching…
29 …android.net.ipsec.ike.IkeSaProposal does not declare a `getIntegrityAlgorithms()` method matching …
31 …android.net.ipsec.ike.IkeSessionParams does not declare a `getIkeOptions()` method matching method…
33 …android.net.ipsec.ike.IkeSessionParams does not declare a `getPcscfServerRequests()` method matchi…
35 …android.net.ipsec.ike.IkeSessionParams does not declare a `getPcscfServerRequests()` method matchi…
[all …]
/packages/apps/Dialer/java/com/android/incallui/answer/impl/classifier/
DPoint.java52 public float dist(Point a) { in dist() argument
53 return (float) Math.hypot(a.x - x, a.y - y); in dist()
60 public float crossProduct(Point a, Point b) { in crossProduct() argument
61 return (a.x - x) * (b.y - y) - (a.y - y) * (b.x - x); in crossProduct()
68 public float dotProduct(Point a, Point b) { in dotProduct() argument
69 return (a.x - x) * (b.x - x) + (a.y - y) * (b.y - y); in dotProduct()
78 public float getAngle(Point a, Point b) { in getAngle() argument
79 float dist1 = dist(a); in getAngle()
86 float crossProduct = crossProduct(a, b); in getAngle()
87 float dotProduct = dotProduct(a, b); in getAngle()

12345678910>>...32