/frameworks/base/core/jni/android/graphics/ |
D | PathMeasure.cpp | 59 PathMeasurePair* pair; in create() local 61 pair = new PathMeasurePair(*path, forceClosed); in create() 63 pair = new PathMeasurePair; in create() 64 return reinterpret_cast<jlong>(pair); in create() 69 PathMeasurePair* pair = reinterpret_cast<PathMeasurePair*>(pairHandle); in setPath() local 74 pair->fPath.reset(); in setPath() 76 pair->fPath = *path; in setPath() 78 pair->fMeasure.setPath(&pair->fPath, forceClosed); in setPath() 82 PathMeasurePair* pair = reinterpret_cast<PathMeasurePair*>(pairHandle); in getLength() local 83 return static_cast<jfloat>(SkScalarToFloat(pair->fMeasure.getLength())); in getLength() [all …]
|
D | Region.cpp | 285 RgnIterPair* pair = reinterpret_cast<RgnIterPair*>(pairHandle); in RegionIter_destructor() local 286 SkASSERT(pair); in RegionIter_destructor() 287 delete pair; in RegionIter_destructor() 292 RgnIterPair* pair = reinterpret_cast<RgnIterPair*>(pairHandle); in RegionIter_next() local 294 SkASSERT(pair); in RegionIter_next() 297 if (!pair->fIter.done()) { in RegionIter_next() 298 GraphicsJNI::irect_to_jrect(pair->fIter.rect(), env, rectObject); in RegionIter_next() 299 pair->fIter.next(); in RegionIter_next()
|
/frameworks/ml/bordeaux/learning/multiclass_pa/native/ |
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<int, float> >, int> >& data);
|
D | multiclass_pa.cpp | 27 using std::pair; 80 float MulticlassPA::SparseScore(const vector<pair<int, float> >& inputs, in SparseScore() 100 const vector<pair<int, float> >& inputs) const { in SparseL2NormSquare() 141 const vector<pair<int, float> >& inputs, int target) { in SparseTrainOneExample() 173 float MulticlassPA::Train(const vector<pair<vector<float>, int> >& data, in Train() 186 const vector<pair<vector<pair<int, float> >, int> >& data, in SparseTrain() 212 int MulticlassPA::SparseGetClass(const vector<pair<int, float> >& inputs) { in SparseGetClass() 226 float MulticlassPA::Test(const vector<pair<vector<float>, int> >& data) { in Test() 239 const vector<pair<vector<pair<int, float> >, int> >& data) { in SparseTest()
|
/frameworks/compile/mclinker/lib/Object/ |
D | ObjectBuilder.cpp | 40 SectionMap::const_mapping pair = in CreateSection() local 43 std::string output_name = (pair.first == NULL) ? pName : pair.first->name(); in CreateSection() 57 SectionMap::mapping pair = m_Module.getScript().sectionMap().find( in MergeSection() local 60 if (pair.first != NULL && pair.first->isDiscard()) { in MergeSection() 66 (pair.first == NULL) ? pInputSection.name() : pair.first->name(); in MergeSection() 106 if (pair.first != NULL) { in MergeSection() 107 assert(pair.second != NULL); in MergeSection() 108 data = pair.second->getSection()->getSectionData(); in MergeSection() 111 if (pair.first->prolog().hasSubAlign()) { in MergeSection() 112 pInputSection.setAlign(pair.second->getSection()->align()); in MergeSection()
|
/frameworks/base/keystore/tests/src/android/security/keystore/ |
D | AndroidKeyPairGeneratorTest.java | 157 final KeyPair pair = mGenerator.generateKeyPair(); in testKeyPairGenerator_GenerateKeyPair_Encrypted_Success() local 158 assertNotNull("The KeyPair returned should not be null", pair); in testKeyPairGenerator_GenerateKeyPair_Encrypted_Success() 160 assertKeyPairCorrect(pair, TEST_ALIAS_1, "RSA", 2048, null, TEST_DN_1, TEST_SERIAL_1, NOW, in testKeyPairGenerator_GenerateKeyPair_Encrypted_Success() 176 final KeyPair pair = generator.generateKeyPair(); in testKeyPairGenerator_GenerateKeyPair_EC_Unencrypted_Success() local 177 assertNotNull("The KeyPair returned should not be null", pair); in testKeyPairGenerator_GenerateKeyPair_EC_Unencrypted_Success() 179 assertKeyPairCorrect(pair, TEST_ALIAS_1, "EC", 256, null, TEST_DN_1, TEST_SERIAL_1, NOW, in testKeyPairGenerator_GenerateKeyPair_EC_Unencrypted_Success() 194 final KeyPair pair = mGenerator.generateKeyPair(); in testKeyPairGenerator_Legacy_GenerateKeyPair_EC_Unencrypted_Success() local 195 assertNotNull("The KeyPair returned should not be null", pair); in testKeyPairGenerator_Legacy_GenerateKeyPair_EC_Unencrypted_Success() 197 assertKeyPairCorrect(pair, TEST_ALIAS_1, "EC", 256, null, TEST_DN_1, TEST_SERIAL_1, NOW, in testKeyPairGenerator_Legacy_GenerateKeyPair_EC_Unencrypted_Success() 212 final KeyPair pair = mGenerator.generateKeyPair(); in testKeyPairGenerator_GenerateKeyPair_EC_P521_Unencrypted_Success() local [all …]
|
/frameworks/base/tools/aapt/tests/ |
D | FileFinder_test.cpp | 17 using std::pair; 33 Vector< pair<String8,time_t> > data; in main() 34 data.push( pair<String8,time_t>(String8("hello.png"),3) ); in main() 35 data.push( pair<String8,time_t>(String8("world.PNG"),3) ); in main() 36 data.push( pair<String8,time_t>(String8("foo.pNg"),3) ); in main() 38 data.push( pair<String8,time_t>(String8("hello.jpg"),3) ); in main() 39 data.push( pair<String8,time_t>(String8(".hidden.png"),3)); in main()
|
D | MockDirectoryWalker.h | 13 using std::pair; 24 StringDirectoryWalker(String8& path, Vector< pair<String8,time_t> >& data) in StringDirectoryWalker() 82 Vector< pair<String8,time_t> > mData;
|
/frameworks/base/tools/aapt2/util/ |
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)) { in ImmutableMap() 47 std::initializer_list<std::pair<TKey, TValue>> list) { in createPreSorted() 48 return ImmutableMap(std::vector<std::pair<TKey, TValue>>(list.begin(), list.end())); in createPreSorted() 52 std::initializer_list<std::pair<TKey, TValue>> list) { in createAndSort() 53 std::vector<std::pair<TKey, TValue>> data(list.begin(), list.end()); in createAndSort() 61 auto cmp = [](const std::pair<TKey, TValue>& candidate, const TKey2& target) -> bool { in find()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | SmsMessageBodyTest.java | 391 LanguagePair pair = mCounters[i]; in fillData() local 402 if (pair.length > (SmsConstants.MAX_USER_DATA_SEPTETS - udhLength)) { in fillData() 408 int msgCount = (pair.length + septetsPerPart - 1) / septetsPerPart; in fillData() 409 numSeptetsWithHeader = udhLength * msgCount + pair.length; in fillData() 411 numSeptetsWithHeader = udhLength + pair.length; in fillData() 415 if (pair.missingChars7bit < minNumMissingChars || (pair.missingChars7bit == in fillData() 417 minNumSeptets = pair.length; in fillData() 419 minNumMissingChars = pair.missingChars7bit; in fillData() 420 langIndex = pair.langTableIndex; in fillData() 421 langShiftIndex = pair.langShiftTableIndex; in fillData() [all …]
|
/frameworks/av/media/libmedia/ |
D | AudioParameter.cpp | 43 char *pair = strtok_r(str, ";", &last); in AudioParameter() local 44 while (pair != NULL) { in AudioParameter() 45 if (strlen(pair) != 0) { in AudioParameter() 46 size_t eqIdx = strcspn(pair, "="); in AudioParameter() 47 String8 key = String8(pair, eqIdx); in AudioParameter() 49 if (eqIdx == strlen(pair)) { in AudioParameter() 52 value = String8(pair + eqIdx + 1); in AudioParameter() 62 pair = strtok_r(NULL, ";", &last); in AudioParameter()
|
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/ |
D | FeatureAssembly.java | 89 Pair<String, String> pair = (Pair<String, String>) itr.next(); in getFeatureMap() local 90 if (featureMap.containsKey(pair.first) && in getFeatureMap() 91 featureMap.containsKey(pair.second)) { in getFeatureMap() 92 String key = pair.first + Predictor.FEATURE_SEPARATOR + pair.second; in getFeatureMap() 93 String value = featureMap.get(pair.first) + Predictor.FEATURE_SEPARATOR + in getFeatureMap() 94 featureMap.get(pair.second); in getFeatureMap()
|
/frameworks/base/core/java/android/util/ |
D | KeyValueListParser.java | 53 for (String pair : mSplitter) { in setString() 54 int sep = pair.indexOf('='); in setString() 58 "'" + pair + "' in '" + str + "' is not a valid key-value pair"); in setString() 60 mValues.put(pair.substring(0, sep).trim(), pair.substring(sep + 1).trim()); in setString()
|
/frameworks/ml/bordeaux/learning/multiclass_pa/jni/ |
D | jni_multiclass_pa.cpp | 24 using std::pair; 27 const int length, vector<pair<int, float> >* pairs) { in CreateIndexValuePairs() 31 pair<int, float> new_pair(indices[i], values[i]); in CreateIndexValuePairs() 72 vector<pair<int, float> > inputs; in Java_android_bordeaux_learning_MulticlassPA_nativeSparseTrainOneExample() 105 vector<pair<int, float> > inputs; in Java_android_bordeaux_learning_MulticlassPA_nativeSparseGetClass()
|
/frameworks/base/core/java/android/view/textservice/ |
D | SpellCheckerSubtype.java | 163 final String[] pair = pairs[i].split(EXTRA_VALUE_KEY_VALUE_SEPARATOR); in getExtraValueHashMap() local 164 if (pair.length == 1) { in getExtraValueHashMap() 165 mExtraValueHashMapCache.put(pair[0], null); in getExtraValueHashMap() 166 } else if (pair.length > 1) { in getExtraValueHashMap() 167 if (pair.length > 2) { in getExtraValueHashMap() 170 mExtraValueHashMapCache.put(pair[0], pair[1]); in getExtraValueHashMap()
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/binding/ |
D | FakeExpandableAdapter.java | 137 Pair<View, Boolean> pair = AdapterHelper.getView(item, null /*parentItem*/, parent, in getGroupView() local 139 mSkipCallbackParser = pair.getSecond(); in getGroupView() 140 return pair.getFirst(); in getGroupView() 149 Pair<View, Boolean> pair = AdapterHelper.getView(item, parentItem, parent, mCallback, in getChildView() local 151 mSkipCallbackParser = pair.getSecond(); in getChildView() 152 return pair.getFirst(); in getChildView()
|
D | FakeAdapter.java | 114 Pair<View, Boolean> pair = AdapterHelper.getView(item, null, parent, mCallback, in getView() local 116 mSkipCallbackParser = pair.getSecond(); in getView() 117 return pair.getFirst(); in getView()
|
/frameworks/volley/src/main/java/com/android/volley/toolbox/ |
D | HttpHeaderParser.java | 149 String[] pair = params[i].trim().split("="); in parseCharset() local 150 if (pair.length == 2) { in parseCharset() 151 if (pair[0].equals("charset")) { in parseCharset() 152 return pair[1]; in parseCharset()
|
/frameworks/av/include/media/stagefright/foundation/ |
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) in ALookup()
|
/frameworks/compile/mclinker/include/mcld/Object/ |
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,
|
/frameworks/base/media/java/android/media/midi/ |
D | MidiDeviceServer.java | 182 ParcelFileDescriptor[] pair = ParcelFileDescriptor.createSocketPair( 184 MidiOutputPort outputPort = new MidiOutputPort(pair[0], portNumber); 193 return pair[1]; 215 ParcelFileDescriptor[] pair = ParcelFileDescriptor.createSocketPair( 217 MidiInputPort inputPort = new MidiInputPort(pair[0], portNumber); 231 return pair[1];
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | KeyguardDisableHandler.java | 65 final Pair<IBinder, String> pair = (Pair<IBinder, String>)msg.obj; in handleMessage() local 66 mKeyguardTokenWatcher.acquire(pair.first, pair.second); in handleMessage()
|
/frameworks/av/media/utils/ |
D | BatteryNotifier.cpp | 111 std::pair<String8, int> k = std::make_pair(id, uid); in noteFlashlightOn() 124 std::pair<String8, int> k = std::make_pair(id, uid); in noteFlashlightOff() 145 std::pair<String8, int> k = std::make_pair(id, uid); in noteStartCamera() 157 std::pair<String8, int> k = std::make_pair(id, uid); in noteStopCamera()
|
/frameworks/base/core/java/android/view/inputmethod/ |
D | InputMethodSubtype.java | 528 final String[] pair = pairs[i].split(EXTRA_VALUE_KEY_VALUE_SEPARATOR); in getExtraValueHashMap() local 529 if (pair.length == 1) { in getExtraValueHashMap() 530 mExtraValueHashMapCache.put(pair[0], null); in getExtraValueHashMap() 531 } else if (pair.length > 1) { in getExtraValueHashMap() 532 if (pair.length > 2) { in getExtraValueHashMap() 535 mExtraValueHashMapCache.put(pair[0], pair[1]); in getExtraValueHashMap()
|
/frameworks/base/libs/hwui/tests/unit/ |
D | LinearAllocatorTests.cpp | 38 auto pair = la.create<SimplePair>(); in TEST() local 41 EXPECT_EQ(1, pair->one); in TEST() 42 EXPECT_EQ(2, pair->two); in TEST()
|