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

1234567

/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/native/cmds/lshal/
H A DDebugCommand.cpp45 auto pair = splitFirst(mInterfaceName, '/'); local
47 pair.first, pair.second.empty() ? "default" : pair.second, mOptions,
/frameworks/base/tools/aapt2/util/
H A DImmutableMap.h33 typename std::vector<std::pair<TKey, TValue>>::const_iterator;
39 std::initializer_list<std::pair<TKey, TValue>> list) {
41 std::vector<std::pair<TKey, TValue>>(list.begin(), list.end()));
45 std::initializer_list<std::pair<TKey, TValue>> list) {
46 std::vector<std::pair<TKey, TValue>> data(list.begin(), list.end());
54 auto cmp = [](const std::pair<TKey, TValue>& candidate,
74 explicit ImmutableMap(std::vector<std::pair<TKey, TValue>> data)
77 std::vector<std::pair<TKey, TValue>> data_;
/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/incident_report/
H A Dgeneric_message.cpp33 mNodes.insert(pair<int32_t,Node>(fieldId, node));
42 mNodes.insert(pair<int32_t,Node>(fieldId, node));
52 mNodes.insert(pair<int32_t,Node>(fieldId, node));
62 mNodes.insert(pair<int32_t,Node>(fieldId, node));
/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/base/core/java/android/app/usage/
H A DCacheQuotaService.java79 final Pair<RemoteCallback, List<CacheQuotaHint>> pair =
81 Message msg = mHandler.obtainMessage(ServiceHandler.MSG_SEND_LIST, pair);
98 final Pair<RemoteCallback, List<CacheQuotaHint>> pair =
100 List<CacheQuotaHint> processed = onComputeCacheQuotaHints(pair.second);
104 final RemoteCallback callback = pair.first;
/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/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/base/tools/aapt2/filter/
H A DConfigFilter.h58 std::set<std::pair<ConfigDescription, uint32_t>> configs_;
/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/av/media/libstagefright/foundation/include/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/av/media/libstagefright/include/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/base/tools/aapt2/
H A DSdkConstants.cpp31 static const std::vector<std::pair<uint16_t, ApiVersion>> sAttrIdMap = {
58 static bool less_entry_id(const std::pair<uint16_t, ApiVersion>& p, uint16_t entryId) {
747 std::pair<StringPiece, ApiVersion> GetDevelopmentSdkCodeNameAndVersion() {
H A DSdkConstants.h59 std::pair<android::StringPiece, ApiVersion> GetDevelopmentSdkCodeNameAndVersion();
/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/native/libs/vr/libpdx/private/pdx/
H A Dmessage_reader.h25 using BufferSection = std::pair<const void*, const void*>;
/frameworks/native/libs/vr/libpdx_uds/
H A Dremote_method_tests.cpp175 const std::vector<std::pair<std::string, int>>&));
177 std::pair<int, BufferWrapper<std::uint8_t*>>(
297 const std::vector<std::pair<std::string, int>>& file_specs) {
493 Message&, const std::vector<std::pair<std::string, int>>& file_specs) {
505 std::pair<int, BufferWrapper<std::vector<std::uint8_t>>> OnReadFile(
507 std::pair<int, BufferWrapper<std::vector<std::uint8_t>>> return_value;
791 // std::pair.
793 (IsConvertible<std::pair<int, float>, std::pair<int, float>>::value));
795 (IsConvertible<std::pair<in
[all...]
/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...]

Completed in 329 milliseconds

1234567