/frameworks/base/core/jni/android/graphics/ |
H A D | PathMeasure.cpp | 24 /* 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 D | multiclass_pa.h | 51 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 D | multiclass_pa.cpp | 27 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 D | slang_pragma_list.h | 26 typedef std::list< std::pair<std::string, std::string> > PragmaList;
|
/frameworks/base/tools/aapt/tests/ |
H A D | FileFinder_test.cpp | 17 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 D | MockDirectoryWalker.h | 13 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 D | ImmutableMap.h | 32 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 D | KeyValueListParser.java | 53 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 D | FeatureAssembly.java | 89 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 D | ObjectBuilder.cpp | 40 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 D | AudioParameter.cpp | 43 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 D | ConfigFilter.h | 55 std::set<std::pair<ConfigDescription, uint32_t>> mConfigs;
|
/frameworks/base/keystore/tests/src/android/security/keystore/ |
H A D | AndroidKeyPairGeneratorTest.java | 157 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 D | jni_multiclass_pa.cpp | 24 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 D | ALookup.h | 28 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 D | BranchIslandFactory.h | 48 /// @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 D | SmsMessageBodyTest.java | 391 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 D | BatteryNotifier.h | 63 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 D | SpellCheckerSubtype.java | 163 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 D | KeyguardDisableHandler.java | 65 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 D | FakeAdapter.java | 114 Pair<View, Boolean> pair = AdapterHelper.getView(item, null, parent, mCallback, 116 mSkipCallbackParser = pair.getSecond(); 117 return pair.getFirst();
|
H A D | FakeExpandableAdapter.java | 137 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 D | HttpHeaderParser.java | 149 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 D | RSCompilerDriver.h | 154 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 D | SectionMap.h | 33 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,
|