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

12345

/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...]
/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.cpp27 using std::pair;
80 float MulticlassPA::SparseScore(const vector<pair<int, float> >& inputs,
100 const vector<pair<int, float> >& inputs) const {
141 const vector<pair<int, float> >& inputs, int target) {
173 float MulticlassPA::Train(const vector<pair<vector<float>, int> >& data,
186 const vector<pair<vector<pair<int, float> >, int> >& data,
212 int MulticlassPA::SparseGetClass(const vector<pair<int, float> >& inputs) {
226 float MulticlassPA::Test(const vector<pair<vector<float>, int> >& data) {
239 const vector<pair<vecto
[all...]
/frameworks/compile/slang/
H A Dslang_pragma_list.h26 typedef std::list< std::pair<std::string, std::string> > PragmaList;
/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/base/tools/aapt2/util/
H A DImmutableMap.h32 std::vector<std::pair<TKey, TValue>> mData;
34 explicit ImmutableMap(std::vector<std::pair<TKey, TValue>> data) : mData(std::move(data)) {
47 std::initializer_list<std::pair<TKey, TValue>> list) {
48 return ImmutableMap(std::vector<std::pair<TKey, TValue>>(list.begin(), list.end()));
52 std::initializer_list<std::pair<TKey, TValue>> list) {
53 std::vector<std::pair<TKey, TValue>> data(list.begin(), list.end());
61 auto cmp = [](const std::pair<TKey, TValue>& candidate, const TKey2& target) -> bool {
/frameworks/base/core/java/android/util/
H A DKeyValueListParser.java53 for (String pair : mSplitter) {
54 int sep = pair.indexOf('=');
58 "'" + pair + "' in '" + str + "' is not a valid key-value pair");
60 mValues.put(pair.substring(0, sep).trim(), pair.substring(sep + 1).trim());
/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/compile/mclinker/lib/Object/
H A DObjectBuilder.cpp40 SectionMap::const_mapping pair = local
43 std::string output_name = (pair.first == NULL) ? pName : pair.first->name();
57 SectionMap::mapping pair = m_Module.getScript().sectionMap().find( local
60 if (pair.first != NULL && pair.first->isDiscard()) {
66 (pair.first == NULL) ? pInputSection.name() : pair.first->name();
106 if (pair.first != NULL) {
107 assert(pair
[all...]
/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/tools/aapt2/filter/
H A DConfigFilter.h55 std::set<std::pair<ConfigDescription, uint32_t>> mConfigs;
/frameworks/base/keystore/tests/src/android/security/keystore/
H A DAndroidKeyPairGeneratorTest.java157 final KeyPair pair = mGenerator.generateKeyPair();
158 assertNotNull("The KeyPair returned should not be null", pair);
160 assertKeyPairCorrect(pair, TEST_ALIAS_1, "RSA", 2048, null, TEST_DN_1, TEST_SERIAL_1, NOW,
176 final KeyPair pair = generator.generateKeyPair();
177 assertNotNull("The KeyPair returned should not be null", pair);
179 assertKeyPairCorrect(pair, TEST_ALIAS_1, "EC", 256, null, TEST_DN_1, TEST_SERIAL_1, NOW,
194 final KeyPair pair = mGenerator.generateKeyPair();
195 assertNotNull("The KeyPair returned should not be null", pair);
197 assertKeyPairCorrect(pair, TEST_ALIAS_1, "EC", 256, null, TEST_DN_1, TEST_SERIAL_1, NOW,
212 final KeyPair pair
330 assertKeyPairCorrect(KeyPair pair, String alias, String keyType, int keySize, AlgorithmParameterSpec spec, X500Principal dn, BigInteger serial, Date start, Date end) argument
[all...]
/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/av/include/media/stagefright/foundation/
H A DALookup.h28 ALookup(std::initializer_list<std::pair<T, U>> list);
40 std::vector<std::pair<T, U>> mTable;
44 ALookup<T, U>::ALookup(std::initializer_list<std::pair<T, U>> list)
/frameworks/compile/mclinker/include/mcld/LD/
H A DBranchIslandFactory.h48 /// @return - return the pair of <fwd island, bwd island>
49 std::pair<BranchIsland*, BranchIsland*> getIslands(const Fragment& pFragment);
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DSmsMessageBodyTest.java391 LanguagePair pair = mCounters[i];
402 if (pair.length > (SmsConstants.MAX_USER_DATA_SEPTETS - udhLength)) {
408 int msgCount = (pair.length + septetsPerPart - 1) / septetsPerPart;
409 numSeptetsWithHeader = udhLength * msgCount + pair.length;
411 numSeptetsWithHeader = udhLength + pair.length;
415 if (pair.missingChars7bit < minNumMissingChars || (pair.missingChars7bit ==
417 minNumSeptets = pair.length;
419 minNumMissingChars = pair.missingChars7bit;
420 langIndex = pair
[all...]
/frameworks/av/media/utils/include/mediautils/
H A DBatteryNotifier.h63 std::map<std::pair<String8, int>, bool> mFlashlightState;
64 std::map<std::pair<String8, int>, bool> mCameraState;
/frameworks/base/core/java/android/view/textservice/
H A DSpellCheckerSubtype.java163 final String[] pair = pairs[i].split(EXTRA_VALUE_KEY_VALUE_SEPARATOR);
164 if (pair.length == 1) {
165 mExtraValueHashMapCache.put(pair[0], null);
166 } else if (pair.length > 1) {
167 if (pair.length > 2) {
170 mExtraValueHashMapCache.put(pair[0], pair[1]);
/frameworks/base/services/core/java/com/android/server/wm/
H A DKeyguardDisableHandler.java65 final Pair<IBinder, String> pair = (Pair<IBinder, String>)msg.obj;
66 mKeyguardTokenWatcher.acquire(pair.first, pair.second);
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/binding/
H A DFakeAdapter.java114 Pair<View, Boolean> pair = AdapterHelper.getView(item, null, parent, mCallback,
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/volley/src/main/java/com/android/volley/toolbox/
H A DHttpHeaderParser.java149 String[] pair = params[i].trim().split("=");
150 if (pair.length == 2) {
151 if (pair[0].equals("charset")) {
152 return pair[1];
/frameworks/compile/libbcc/include/bcc/Renderscript/
H A DRSCompilerDriver.h154 const std::list<std::list<std::pair<int, int>>>& toFuse,
156 const std::list<std::list<std::pair<int, int>>>& invokes,
/frameworks/compile/mclinker/include/mcld/Object/
H A DSectionMap.h33 typedef std::vector<std::pair<Fragment*, Assignment> > DotAssignments;
145 typedef std::pair<const Output*, const Input*> const_mapping;
146 typedef std::pair<Output*, Input*> mapping;
167 std::pair<mapping, bool> insert(
171 std::pair<mapping, bool> insert(const InputSectDesc& pInputDesc,

Completed in 7754 milliseconds

12345