Searched refs:pair (Results 1 - 25 of 85) sorted by relevance

1234

/frameworks/base/core/jni/android/graphics/
H A DPathMeasure.cpp24 /* We declare an explicit pair, so that we don't have to rely on the java
59 PathMeasurePair* pair; local
61 pair = new PathMeasurePair(*path, forceClosed);
63 pair = new PathMeasurePair;
64 return reinterpret_cast<jlong>(pair);
69 PathMeasurePair* pair = reinterpret_cast<PathMeasurePair*>(pairHandle); local
74 pair->fPath.reset();
76 pair->fPath = *path;
78 pair->fMeasure.setPath(&pair
82 PathMeasurePair* pair = reinterpret_cast<PathMeasurePair*>(pairHandle); local
94 PathMeasurePair* pair = reinterpret_cast<PathMeasurePair*>(pairHandle); local
114 PathMeasurePair* pair = reinterpret_cast<PathMeasurePair*>(pairHandle); local
122 PathMeasurePair* pair = reinterpret_cast<PathMeasurePair*>(pairHandle); local
129 PathMeasurePair* pair = reinterpret_cast<PathMeasurePair*>(pairHandle); local
135 PathMeasurePair* pair = reinterpret_cast<PathMeasurePair*>(pairHandle); local
141 PathMeasurePair* pair = reinterpret_cast<PathMeasurePair*>(pairHandle); local
[all...]
H A DAutoDecodeCancel.cpp60 AutoDecoderCancel* pair = gAutoDecoderCancel; local
61 while (pair != NULL) {
62 if (pair->fJOptions == joptions) {
63 pair->fDecoder->cancelDecode();
66 pair = pair->fNext;
/frameworks/ml/bordeaux/learning/multiclass_pa/native/
H A Dmulticlass_pa.h51 float SparseScore(const std::vector<std::pair<int, float> >& inputs,
56 float SparseL2NormSquare(const std::vector<std::pair<int, float> >& inputs) const;
63 const std::vector<std::pair<int, float> >& inputs, int target);
66 float Train(const std::vector<std::pair<std::vector<float>, int> >& data,
69 const std::vector<std::pair<std::vector<std::pair<int, float> >, int> >& data,
74 virtual int SparseGetClass(const std::vector<std::pair<int, float> >& inputs);
77 float Test(const std::vector<std::pair<std::vector<float>, int> >& data);
79 const std::vector<std::pair<std::vector<std::pair<in
[all...]
H A Dmulticlass_pa.cpp25 using std::pair;
78 float MulticlassPA::SparseScore(const vector<pair<int, float> >& inputs,
98 const vector<pair<int, float> >& inputs) const {
139 const vector<pair<int, float> >& inputs, int target) {
171 float MulticlassPA::Train(const vector<pair<vector<float>, int> >& data,
184 const vector<pair<vector<pair<int, float> >, int> >& data,
210 int MulticlassPA::SparseGetClass(const vector<pair<int, float> >& inputs) {
224 float MulticlassPA::Test(const vector<pair<vector<float>, int> >& data) {
237 const vector<pair<vecto
[all...]
/frameworks/base/tools/aapt/tests/
H A DFileFinder_test.cpp17 using std::pair;
33 Vector< pair<String8,time_t> > data;
34 data.push( pair<String8,time_t>(String8("hello.png"),3) );
35 data.push( pair<String8,time_t>(String8("world.PNG"),3) );
36 data.push( pair<String8,time_t>(String8("foo.pNg"),3) );
38 data.push( pair<String8,time_t>(String8("hello.jpg"),3) );
39 data.push( pair<String8,time_t>(String8(".hidden.png"),3));
H A DMockDirectoryWalker.h13 using std::pair;
24 StringDirectoryWalker(String8& path, Vector< pair<String8,time_t> >& data) argument
82 Vector< pair<String8,time_t> > mData;
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
H A DFeatureAssembly.java89 Pair<String, String> pair = (Pair<String, String>) itr.next();
90 if (featureMap.containsKey(pair.first) &&
91 featureMap.containsKey(pair.second)) {
92 String key = pair.first + Predictor.FEATURE_SEPARATOR + pair.second;
93 String value = featureMap.get(pair.first) + Predictor.FEATURE_SEPARATOR +
94 featureMap.get(pair.second);
/frameworks/av/media/libmedia/
H A DAudioParameter.cpp43 char *pair = strtok_r(str, ";", &last); local
44 while (pair != NULL) {
45 if (strlen(pair) != 0) {
46 size_t eqIdx = strcspn(pair, "=");
47 String8 key = String8(pair, eqIdx);
49 if (eqIdx == strlen(pair)) {
52 value = String8(pair + eqIdx + 1);
60 ALOGV("AudioParameter() cstor empty key value pair");
62 pair = strtok_r(NULL, ";", &last);
/frameworks/base/core/java/android/util/
H A DDebugUtils.java75 String[] pair = selectors[i].split("=");
82 pair[0].substring(0, 1).toUpperCase(Locale.ROOT) +
83 pair[0].substring(1),
92 value.toString() : "null").matches(pair[1]);
/frameworks/compile/slang/
H A Dslang_rs.h61 // ReflectedDefinitions maps record type name to a pair:
64 typedef std::pair<RSExportRecordType*, const char*> ReflectedDefinitionTy;
110 bool compile(const std::list<std::pair<const char*, const char*> > &IOFiles64,
111 const std::list<std::pair<const char*, const char*> > &IOFiles32,
112 const std::list<std::pair<const char*, const char*> > &DepFiles,
H A Dslang_pragma_recorder.h33 typedef std::list< std::pair<std::string, std::string> > PragmaList;
/frameworks/ml/bordeaux/learning/multiclass_pa/jni/
H A Djni_multiclass_pa.cpp24 using std::pair;
27 const int length, vector<pair<int, float> >* pairs) {
31 pair<int, float> new_pair(indices[i], values[i]);
72 vector<pair<int, float> > inputs;
105 vector<pair<int, float> > inputs;
/frameworks/compile/mclinker/lib/Object/
H A DObjectBuilder.cpp41 SectionMap::const_mapping pair = local
44 std::string output_name = (pair.first == NULL) ? pName : pair.first->name();
59 SectionMap::mapping pair = local
63 if (pair.first != NULL && pair.first->isDiscard()) {
68 std::string output_name = (pair.first == NULL) ?
69 pInputSection.name() : pair.first->name();
98 if (pair.first != NULL) {
99 assert(pair
[all...]
/frameworks/base/media/java/android/media/
H A DExifInterface.java395 String [] pair;
396 pair = parts[0].split("/");
397 double degrees = Double.parseDouble(pair[0].trim())
398 / Double.parseDouble(pair[1].trim());
400 pair = parts[1].split("/");
401 double minutes = Double.parseDouble(pair[0].trim())
402 / Double.parseDouble(pair[1].trim());
404 pair = parts[2].split("/");
405 double seconds = Double.parseDouble(pair[0].trim())
406 / Double.parseDouble(pair[
[all...]
/frameworks/base/services/core/java/com/android/server/wm/
H A DKeyguardDisableHandler.java62 final Pair<IBinder, String> pair = (Pair<IBinder, String>)msg.obj;
63 mKeyguardTokenWatcher.acquire(pair.first, pair.second);
/frameworks/compile/mclinker/include/mcld/LD/
H A DBranchIslandFactory.h50 /// @return - return the pair of <fwd island, bwd island>
51 std::pair<BranchIsland*, BranchIsland*> getIslands(const Fragment& pFragment);
/frameworks/volley/src/com/android/volley/toolbox/
H A DHttpHeaderParser.java126 String[] pair = params[i].trim().split("=");
127 if (pair.length == 2) {
128 if (pair[0].equals("charset")) {
129 return pair[1];
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DSmsMessageBodyTest.java390 LanguagePair pair = mCounters[i];
401 if (pair.length > (SmsConstants.MAX_USER_DATA_SEPTETS - udhLength)) {
407 int msgCount = (pair.length + septetsPerPart - 1) / septetsPerPart;
408 numSeptetsWithHeader = udhLength * msgCount + pair.length;
410 numSeptetsWithHeader = udhLength + pair.length;
414 if (pair.missingChars7bit < minNumMissingChars || (pair.missingChars7bit ==
416 minNumSeptets = pair.length;
418 minNumMissingChars = pair.missingChars7bit;
419 langIndex = pair
[all...]
/frameworks/base/core/java/android/view/textservice/
H A DSpellCheckerSubtype.java98 final String[] pair = pairs[i].split(EXTRA_VALUE_KEY_VALUE_SEPARATOR);
99 if (pair.length == 1) {
100 mExtraValueHashMapCache.put(pair[0], null);
101 } else if (pair.length > 1) {
102 if (pair.length > 2) {
105 mExtraValueHashMapCache.put(pair[0], pair[1]);
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/binding/
H A DFakeAdapter.java114 Pair<View, Boolean> pair = AdapterHelper.getView(item, null /*parentGroup*/, parent,
116 mSkipCallbackParser = pair.getSecond();
117 return pair.getFirst();
H A DFakeExpandableAdapter.java137 Pair<View, Boolean> pair = AdapterHelper.getView(item, null /*parentItem*/, parent,
139 mSkipCallbackParser = pair.getSecond();
140 return pair.getFirst();
149 Pair<View, Boolean> pair = AdapterHelper.getView(item, parentItem, parent, mCallback,
151 mSkipCallbackParser = pair.getSecond();
152 return pair.getFirst();
/frameworks/base/keystore/tests/src/android/security/
H A DAndroidKeyPairGeneratorTest.java151 final KeyPair pair = mGenerator.generateKeyPair();
152 assertNotNull("The KeyPair returned should not be null", pair);
154 assertKeyPairCorrect(pair, TEST_ALIAS_1, "RSA", 2048, null, TEST_DN_1, TEST_SERIAL_1, NOW,
168 final KeyPair pair = mGenerator.generateKeyPair();
169 assertNotNull("The KeyPair returned should not be null", pair);
171 assertKeyPairCorrect(pair, TEST_ALIAS_1, "DSA", 1024, null, TEST_DN_1, TEST_SERIAL_1, NOW,
187 final KeyPair pair = mGenerator.generateKeyPair();
188 assertNotNull("The KeyPair returned should not be null", pair);
190 assertKeyPairCorrect(pair, TEST_ALIAS_1, "DSA", 2048, null, TEST_DN_1, TEST_SERIAL_1, NOW,
312 final KeyPair pair
465 assertKeyPairCorrect(KeyPair pair, String alias, String keyType, int keySize, AlgorithmParameterSpec spec, X500Principal dn, BigInteger serial, Date start, Date end) argument
[all...]
/frameworks/base/core/java/android/view/inputmethod/
H A DInputMethodSubtype.java414 final String[] pair = pairs[i].split(EXTRA_VALUE_KEY_VALUE_SEPARATOR);
415 if (pair.length == 1) {
416 mExtraValueHashMapCache.put(pair[0], null);
417 } else if (pair.length > 1) {
418 if (pair.length > 2) {
421 mExtraValueHashMapCache.put(pair[0], pair[1]);
/frameworks/compile/libbcc/bcinfo/BitReader_2_7/
H A DBitcodeReader.h50 typedef std::vector<std::pair<Constant*, unsigned> > ResolveConstantsTy;
145 std::vector<std::pair<GlobalVariable*, unsigned> > GlobalInits;
146 std::vector<std::pair<GlobalAlias*, unsigned> > AliasInits;
166 typedef std::vector<std::pair<Function*, Function*> > UpgradedIntrinsicMap;
184 typedef std::pair<unsigned, GlobalVariable*> BlockAddrRefTy;
276 /// getValueTypePair - Read a value/type pair out of the specified record from
/frameworks/compile/libbcc/bcinfo/BitReader_3_0/
H A DBitcodeReader.h50 typedef std::vector<std::pair<Constant*, unsigned> > ResolveConstantsTy;
145 std::vector<std::pair<GlobalVariable*, unsigned> > GlobalInits;
146 std::vector<std::pair<GlobalAlias*, unsigned> > AliasInits;
166 typedef std::vector<std::pair<Function*, Function*> > UpgradedIntrinsicMap;
184 typedef std::pair<unsigned, GlobalVariable*> BlockAddrRefTy;
271 /// getValueTypePair - Read a value/type pair out of the specified record from

Completed in 536 milliseconds

1234