Home
last modified time | relevance | path

Searched refs:second (Results 1 – 25 of 217) sorted by relevance

123456789

/frameworks/ml/bordeaux/learning/stochastic_linear_ranker/native/
Dsparse_weight_vector.cpp41 if (isnanf(iter->second) || __isinff(iter->second)) in IsValid()
55 w_[iter->first] += ((multiplier * iter->second) / w1.normalizer_ in AdditiveWeightUpdate()
69 w_[iter->first] += ((multiplier * iter->second * iter->second) / in AdditiveSquaredWeightUpdate()
84 if(iter->second > 0.0) { in AdditiveInvSqrtWeightUpdate()
86 (sqrt(iter->second)) in AdditiveInvSqrtWeightUpdate()
103 w_[iter->first] += ((multiplier * iter->second) / w1.normalizer_ in AdditiveWeightUpdateBounded()
127 iter->second *= w1.GetElement(iter->first); in MultWeightUpdate()
143 iter->second *= w1.GetElement(iter->first); in MultWeightUpdateBounded()
146 if ((iter->second / normalizer_) < min_bound) { in MultWeightUpdateBounded()
147 iter->second = min_bound*normalizer_; in MultWeightUpdateBounded()
[all …]
/frameworks/base/test-runner/src/android/test/
DViewAsserts.java116 static public void assertBaselineAligned(View first, View second) { in assertBaselineAligned() argument
121 second.getLocationOnScreen(xy); in assertBaselineAligned()
122 int secondTop = xy[1] + second.getBaseline(); in assertBaselineAligned()
134 static public void assertRightAligned(View first, View second) { in assertRightAligned() argument
139 second.getLocationOnScreen(xy); in assertRightAligned()
140 int secondRight = xy[0] + second.getMeasuredWidth(); in assertRightAligned()
153 static public void assertRightAligned(View first, View second, int margin) { in assertRightAligned() argument
158 second.getLocationOnScreen(xy); in assertRightAligned()
159 int secondRight = xy[0] + second.getMeasuredWidth(); in assertRightAligned()
171 static public void assertLeftAligned(View first, View second) { in assertLeftAligned() argument
[all …]
/frameworks/base/core/java/android/util/
DPair.java28 public final S second; field in Pair
36 public Pair(F first, S second) { in Pair() argument
38 this.second = second; in Pair()
55 return Objects.equal(p.first, first) && Objects.equal(p.second, second); in equals()
65 return (first == null ? 0 : first.hashCode()) ^ (second == null ? 0 : second.hashCode()); in hashCode()
/frameworks/ex/chips/tests/src/com/android/ex/chips/
DChipsTest.java175 String second = (String) mTokenizer.terminateToken("SECOND"); in testSanitizeBetween() local
178 mEditable.append(first + extra + second); in testSanitizeBetween()
181 int secondStart = mEditable.toString().indexOf(second); in testSanitizeBetween()
182 int secondEnd = secondStart + second.trim().length(); in testSanitizeBetween()
189 assertEquals(editableString.indexOf(second), secondStart - extra.length()); in testSanitizeBetween()
190 assertEquals(editableString, (first + second)); in testSanitizeBetween()
212 String second = (String) mTokenizer.terminateToken("SECOND"); in testSanitizeEnd() local
215 mEditable.append(first + second); in testSanitizeEnd()
218 int secondStart = mEditable.toString().indexOf(second); in testSanitizeEnd()
219 int secondEnd = secondStart + second.trim().length(); in testSanitizeEnd()
[all …]
/frameworks/base/services/java/com/android/server/accessibility/
DGestureUtils.java26 private static boolean eventsWithinTimeAndDistanceSlop(MotionEvent first, MotionEvent second, in eventsWithinTimeAndDistanceSlop() argument
28 if (isTimedOut(first, second, timeout)) { in eventsWithinTimeAndDistanceSlop()
31 final double deltaMove = computeDistance(first, second, actionIndex); in eventsWithinTimeAndDistanceSlop()
38 public static double computeDistance(MotionEvent first, MotionEvent second, int pointerIndex) { in computeDistance() argument
40 second.getX(pointerIndex), second.getY(pointerIndex)); in computeDistance()
48 public static boolean isSamePointerContext(MotionEvent first, MotionEvent second) { in isSamePointerContext() argument
49 return (first.getPointerIdBits() == second.getPointerIdBits() in isSamePointerContext()
51 == second.getPointerId(second.getActionIndex())); in isSamePointerContext()
/frameworks/base/media/mca/filterfw/native/core/
Dgl_env.cpp48 eglDestroySurface(display(), it->second.first); in ~GLEnv()
49 if (it->second.second) { in ~GLEnv()
50 it->second.second->Destroy(); in ~GLEnv()
51 delete it->second.second; in ~GLEnv()
61 eglDestroyContext(display(), it->second); in ~GLEnv()
229 if (surface_window_pair->second) { in ReleaseSurfaceId()
230 surface_window_pair->second->Destroy(); in ReleaseSurfaceId()
231 delete surface_window_pair->second; in ReleaseSurfaceId()
246 surface_window_pair->second->InternalHandle()); in SetSurfaceTimestamp()
258 const WindowHandle* my_handle = it->second.second; in FindSurfaceIdForWindow()
/frameworks/compile/libbcc/lib/Renderscript/
DRSInfo.cpp118 if (::memcmp(cache_libbcc_dep.second, LibBCCSHA1, SHA1_DIGEST_LENGTH) != 0) { in CheckDependency()
123 cache_libbcc_dep.second); in CheckDependency()
128 if (::memcmp(cache_libRS_dep.second, LibRSSHA1, SHA1_DIGEST_LENGTH) != 0) { in CheckDependency()
133 cache_libRS_dep.second); in CheckDependency()
138 if (::memcmp(cache_libclcore_dep.second, LibCLCoreSHA1, in CheckDependency()
144 cache_libclcore_dep.second); in CheckDependency()
150 if (::memcmp(cache_libclcore_neon_dep.second, LibCLCoreNEONSHA1, in CheckDependency()
156 cache_libclcore_neon_dep.second); in CheckDependency()
166 (::memcmp(pDeps[i].second, cache_dep.second, in CheckDependency()
170 PRINT_DEPENDENCY("given - ", pDeps[i].first, pDeps[i].second); in CheckDependency()
[all …]
DRSInfoWriter.cpp41 pInfo.getStringIdxInPool(reinterpret_cast<const char *>(pItem->second)); in helper_adapt_list_item()
64 pResult.value = pInfo.getStringIdxInPool(pItem->second); in helper_adapt_list_item()
73 pItem->second); in helper_adapt_list_item()
127 pResult.signature = pItem->second; in helper_adapt_list_item()
/frameworks/ml/bordeaux/learning/multiclass_pa/native/
Dmulticlass_pa.cpp84 result += inputs[i].second * parameters[inputs[i].first]; in SparseScore()
101 norm += inputs[i].second * inputs[i].second; in SparseL2NormSquare()
162 parameters_[target][inputs[i].first] += rate * inputs[i].second; in SparseTrainOneExample()
164 parameters_[other_class][inputs[i].first] -= rate * inputs[i].second; in SparseTrainOneExample()
177 float loss_t = TrainOneExample(data[index].first, data[index].second); in Train()
190 float loss_t = SparseTrainOneExample(data[index].first, data[index].second); in SparseTrain()
229 if (best_class != data[t].second) { in Test()
242 if (best_class != data[t].second) { in SparseTest()
/frameworks/base/graphics/java/android/graphics/
DSumPathEffect.java25 public SumPathEffect(PathEffect first, PathEffect second) { in SumPathEffect() argument
27 second.native_instance); in SumPathEffect()
30 private static native int nativeCreate(int first, int second); in nativeCreate() argument
/frameworks/base/core/java/android/text/format/
DTime.java61 public int second; field in Time
276 this.second = 0; in clear()
558 this.second = that.second; in set()
574 public void set(int second, int minute, int hour, int monthDay, int month, int year) { in set() argument
576 this.second = second; in set()
599 this.second = 0; in set()
774 second = 0; in setJulianDay()
/frameworks/compile/mclinker/include/mcld/Support/
DUniqueGCFactory.h49 return dataIter->second; in find()
56 return dataIter->second; in find()
64 return dataIter->second; in produce()
77 return dataIter->second; in produce()
/frameworks/base/core/java/com/android/internal/http/
DHttpDateTime.java77 this.second = s; in TimeOfDay()
82 int second; field in HttpDateTime.TimeOfDay
119 time.set(timeOfDay.second, timeOfDay.minute, timeOfDay.hour, date, in parse()
220 int second = (timeString.charAt(i++) - '0') * 10 in getTime() local
223 return new TimeOfDay(hour, minute, second); in getTime()
/frameworks/av/media/mtp/
DMtpUtils.cpp37 int year, month, day, hour, minute, second; in parseDateTime() local
41 &year, &month, &day, &hour, &minute, &second) != 6) in parseDateTime()
54 tm.tm_sec = second; in parseDateTime()
/frameworks/base/media/mca/filterfw/native/base/
Dutilities.h65 delete i->second; in STLDeleteValues()
81 return &it->second; in FindOrNull()
135 return it->second; in FindPtrOrNull()
154 return ret.second; in InsertIfNotPresent()
/frameworks/base/media/mca/filterpacks/native/base/
Dutilities.h65 delete i->second; in STLDeleteValues()
81 return &it->second; in FindOrNull()
135 return it->second; in FindPtrOrNull()
154 return ret.second; in InsertIfNotPresent()
/frameworks/opt/calendar/src/com/android/calendarcommon2/
DRecurrenceProcessor.java276 iterator.second, in filter()
882 int iteratorSecond = iterator.second; in expand()
970 int second = usebysecond in expand() local
973 if (SPEW) Log.i(TAG, " second=" + second); in expand()
978 … generated.set(second, minute, hour, day, month, iteratorYear); in expand()
1073 iterator.second += value; in expand()
1137 int second = date.second; in unsafeNormalize() local
1144 int addMinutes = ((second < 0) ? (second - 59) : second) / 60; in unsafeNormalize()
1145 second -= addMinutes * 60; in unsafeNormalize()
1203 date.second = second; in unsafeNormalize()
[all …]
/frameworks/base/core/java/android/net/
DNetworkPolicyManager.java166 cycle.hour = cycle.minute = cycle.second = 0; in computeLastCycleBoundary()
173 lastMonth.hour = lastMonth.minute = lastMonth.second = 0; in computeLastCycleBoundary()
196 cycle.hour = cycle.minute = cycle.second = 0; in computeNextCycleBoundary()
203 nextMonth.hour = nextMonth.minute = nextMonth.second = 0; in computeNextCycleBoundary()
226 time.second = -1; in snapToCycleDay()
/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListItemRequestRectAboveThinFirstItemTest.java59 final View second = mListView.getChildAt(1); in testSecondItemRequestRectAboveTop() local
61 second.getDrawingRect(rect); in testSecondItemRequestRectAboveTop()
62 rect.offset(0, -2 * second.getBottom()); in testSecondItemRequestRectAboveTop()
/frameworks/compile/slang/
Dslang_rs_metadata_spec_encoder.cpp136 return (I->second + 1); in joinString()
142 if (!Res.second) in joinString()
150 return (Res.first->second + 1); in joinString()
163 return (I->second + 1); in encodeTypeBaseAsKey()
169 if (!Res.second) in encodeTypeBaseAsKey()
225 return (I->second + 1); in encodeRecordType()
243 if (!Res.second) in encodeRecordType()
290 return (Res.first->second + 1); in encodeRecordType()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DRetryManager.java201 defaultRandomization = value.second; in configure()
208 mMaxRetryCount = value.second; in configure()
225 rr.mDelayTime = value.second; in configure()
233 rr.mRandomizationTime = value.second; in configure()
372 + retVal.first + ", " + retVal.second); in parseNonNegativeInt()
/frameworks/opt/telephony/src/java/android/telephony/
DSmsCbEtwsInfo.java141 int second = IccUtils.gsmBcdByteToInt(mWarningSecurityInformation[5]); in getPrimaryNotificationTimestamp() local
163 time.second = second; in getPrimaryNotificationTimestamp()
/frameworks/compile/slang/BitWriter_2_9_func/
DValueEnumerator.cpp99 EnumerateMetadata(MDs[i].second); in ValueEnumerator()
117 return I->second; in getInstructionID()
128 return I->second-1; in getValueID()
133 return I->second-1; in getValueID()
185 return LHS.second > RHS.second; in operator ()()
262 MDValues[MDValueID-1].second++; in EnumerateMetadata()
286 MDValues[MDValueID-1].second++; in EnumerateFunctionLocalMetadata()
316 Values[ValueID-1].second++; in EnumerateValue()
492 MDNode *N = MDs[i].second; in incorporateFunction()
/frameworks/compile/slang/BitWriter_2_9/
DValueEnumerator.cpp99 EnumerateMetadata(MDs[i].second); in ValueEnumerator()
117 return I->second; in getInstructionID()
128 return I->second-1; in getValueID()
133 return I->second-1; in getValueID()
185 return LHS.second > RHS.second; in operator ()()
262 MDValues[MDValueID-1].second++; in EnumerateMetadata()
286 MDValues[MDValueID-1].second++; in EnumerateFunctionLocalMetadata()
316 Values[ValueID-1].second++; in EnumerateValue()
492 MDNode *N = MDs[i].second; in incorporateFunction()
/frameworks/base/media/libdrm/mobile1/src/jni/
Ddrm1_jni.c316 uint32_t hour, uint32_t minute, uint32_t second) in mkgmtime() argument
328 && second < 60); in mkgmtime()
338 SECONDS_PER_HOUR * hour + SECONDS_PER_MINUTE * minute + second)); in mkgmtime()
356 int32_t year, month, day, hour, minute, second; in computeTime() local
363 second = time % 100; in computeTime()
375 if (second < 0) second = 0; in computeTime()
376 if (second > 59) second = 59; in computeTime()
378 return mkgmtime(year, month, day, hour, minute, second) * 1000; in computeTime()
399 int32_t year, month, day, hour, minute, second; in computeInterval() local
407 second = time % 100; in computeInterval()
[all …]

123456789