Home
last modified time | relevance | path

Searched refs:before (Results 1 – 25 of 255) sorted by relevance

1234567891011

/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/parsing/library/
DApexSharedLibraryUpdaterTest.java91 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in checkNoChanges() local
100 checkBackwardsCompatibility(before, after); in checkNoChanges()
105 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in testBcpSince30Applied() local
118 checkBackwardsCompatibility(before, after); in testBcpSince30Applied()
123 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in testBcpSinceFutureNotAppliedWithoutLibrary() local
134 checkBackwardsCompatibility(before, after); in testBcpSinceFutureNotAppliedWithoutLibrary()
139 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in testBcpSinceFutureNotAppliedWithLibrary() local
154 checkBackwardsCompatibility(before, after); in testBcpSinceFutureNotAppliedWithLibrary()
159 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in testBcpBefore30NotApplied() local
169 checkBackwardsCompatibility(before, after); in testBcpBefore30NotApplied()
[all …]
DRemoveUnnecessaryOrgApacheHttpLegacyLibraryTest.java48 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O() local
58 checkBackwardsCompatibility(before, after); in targeted_at_O()
63 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_not_empty_usesLibraries() local
75 checkBackwardsCompatibility(before, after); in targeted_at_O_not_empty_usesLibraries()
80 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_in_usesLibraries() local
92 checkBackwardsCompatibility(before, after); in targeted_at_O_in_usesLibraries()
97 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_in_usesOptionalLibraries() local
109 checkBackwardsCompatibility(before, after); in targeted_at_O_in_usesOptionalLibraries()
114 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesLibraries() local
126 checkBackwardsCompatibility(before, after); in in_usesLibraries()
[all …]
DRemoveUnnecessaryAndroidTestBaseLibraryTest.java48 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O() local
58 checkBackwardsCompatibility(before, after); in targeted_at_O()
63 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_not_empty_usesLibraries() local
75 checkBackwardsCompatibility(before, after); in targeted_at_O_not_empty_usesLibraries()
80 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_in_usesLibraries() local
92 checkBackwardsCompatibility(before, after); in targeted_at_O_in_usesLibraries()
97 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_in_usesOptionalLibraries() local
109 checkBackwardsCompatibility(before, after); in targeted_at_O_in_usesOptionalLibraries()
114 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesLibraries() local
124 checkBackwardsCompatibility(before, after); in in_usesLibraries()
[all …]
DAndroidHidlUpdaterTest.java47 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_P() local
57 checkBackwardsCompatibility(before, after); in targeted_at_P()
62 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_P_system() local
76 checkBackwardsCompatibility(before, after); in targeted_at_P_system()
81 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_P_not_empty_usesLibraries() local
93 checkBackwardsCompatibility(before, after); in targeted_at_P_not_empty_usesLibraries()
98 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_P_not_empty_usesLibraries_system() local
115 checkBackwardsCompatibility(before, after); in targeted_at_P_not_empty_usesLibraries_system()
120 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_P_in_usesLibraries() local
132 checkBackwardsCompatibility(before, after); in targeted_at_P_in_usesLibraries()
[all …]
DAndroidTestBaseUpdaterTest.java46 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_Q() local
57 checkBackwardsCompatibility(before, after); in targeted_at_Q()
62 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_Q_not_empty_usesLibraries() local
76 checkBackwardsCompatibility(before, after); in targeted_at_Q_not_empty_usesLibraries()
81 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_Q_in_usesLibraries() local
94 checkBackwardsCompatibility(before, after); in targeted_at_Q_in_usesLibraries()
99 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_Q_in_usesOptionalLibraries() local
112 checkBackwardsCompatibility(before, after); in targeted_at_Q_in_usesOptionalLibraries()
117 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesLibraries() local
130 checkBackwardsCompatibility(before, after); in in_usesLibraries()
[all …]
DOrgApacheHttpLegacyUpdaterTest.java46 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O() local
57 checkBackwardsCompatibility(before, after); in targeted_at_O()
62 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_not_empty_usesLibraries() local
76 checkBackwardsCompatibility(before, after); in targeted_at_O_not_empty_usesLibraries()
81 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_in_usesLibraries() local
94 checkBackwardsCompatibility(before, after); in targeted_at_O_in_usesLibraries()
99 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_in_usesOptionalLibraries() local
112 checkBackwardsCompatibility(before, after); in targeted_at_O_in_usesOptionalLibraries()
117 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesLibraries() local
130 checkBackwardsCompatibility(before, after); in in_usesLibraries()
[all …]
DPackageSharedLibraryUpdaterTest.java33 static void checkBackwardsCompatibility(ParsedPackage before, AndroidPackage after, in checkBackwardsCompatibility() argument
35 updaterSupplier.get().updatePackage(before, false); in checkBackwardsCompatibility()
36 check(before.hideAsFinal(), after); in checkBackwardsCompatibility()
39 private static void check(AndroidPackage before, AndroidPackage after) { in check() argument
42 before.getTargetSdkVersion()); in check()
45 before.getUsesLibraries()); in check()
48 before.getUsesOptionalLibraries()); in check()
DPackageBackwardCompatibilityTest.java49 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in null_usesLibraries_and_usesOptionalLibraries() local
58 checkBackwardsCompatibility(before, after); in null_usesLibraries_and_usesOptionalLibraries()
82 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O() local
96 checkBackwardsCompatibility(before, ((ParsedPackage) after.hideAsParsed()).hideAsFinal()); in targeted_at_O()
113 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in android_test_base_in_usesLibraries() local
125 checkBackwardsCompatibility(before, after); in android_test_base_in_usesLibraries()
137 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in android_test_runner_in_usesLibraries() local
150 checkBackwardsCompatibility(before, ((ParsedPackage) after.hideAsParsed()).hideAsFinal()); in android_test_runner_in_usesLibraries()
159 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in com_google_android_maps_in_usesLibraries() local
167 checkBackwardsCompatibility(before, ((ParsedPackage) after.hideAsParsed()).hideAsFinal()); in com_google_android_maps_in_usesLibraries()
[all …]
DComGoogleAndroidMapsUpdaterTest.java42 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in otherUsesLibraries() local
54 checkBackwardsCompatibility(before, after); in otherUsesLibraries()
59 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesLibraries() local
71 checkBackwardsCompatibility(before, after); in in_usesLibraries()
76 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesOptionalLibraries() local
88 checkBackwardsCompatibility(before, after); in in_usesOptionalLibraries()
91 private void checkBackwardsCompatibility(ParsedPackage before, AndroidPackage after) { in checkBackwardsCompatibility() argument
92 checkBackwardsCompatibility(before, after, ComGoogleAndroidMapsUpdater::new); in checkBackwardsCompatibility()
DAndroidNetIpSecIkeUpdaterTest.java42 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in otherUsesLibraries() local
54 checkBackwardsCompatibility(before, after); in otherUsesLibraries()
59 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesLibraries() local
69 checkBackwardsCompatibility(before, after); in in_usesLibraries()
74 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesOptionalLibraries() local
84 checkBackwardsCompatibility(before, after); in in_usesOptionalLibraries()
87 private void checkBackwardsCompatibility(ParsedPackage before, AndroidPackage after) { in checkBackwardsCompatibility() argument
88 checkBackwardsCompatibility(before, after, AndroidNetIpSecIkeUpdater::new); in checkBackwardsCompatibility()
DAndroidTestRunnerSplitUpdaterTest.java46 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in android_test_runner_in_usesOptionalLibraries() local
58 checkBackwardsCompatibility(before, after); in android_test_runner_in_usesOptionalLibraries()
63 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in android_test_runner_in_usesLibraries_android_test_mock_in_usesOptionalLibraries() local
76 checkBackwardsCompatibility(before, after); in android_test_runner_in_usesLibraries_android_test_mock_in_usesOptionalLibraries()
79 private void checkBackwardsCompatibility(ParsedPackage before, AndroidPackage after) { in checkBackwardsCompatibility() argument
80 checkBackwardsCompatibility(before, after, AndroidTestRunnerSplitUpdater::new); in checkBackwardsCompatibility()
/frameworks/av/media/libnbaio/include_mono/media/nbaio/
DSingleStateQueue.h127 int32_t before = shared->mSequence; in poll() local
128 if (before == mSequence) { in poll()
133 if (before & 1) { in poll()
137 before = shared->mSequence; in poll()
142 if (after == before) { in poll()
144 shared->mAck = before; in poll()
145 mSequence = before; // mSequence is even after poll success in poll()
151 before = after; in poll()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DDropBoxTest.java94 long before = System.currentTimeMillis(); in testAddText() local
105 DropBoxManager.Entry e0 = dropbox.getNextEntry("DropBoxTest", before); in testAddText()
110 assertTrue(e0.getTimeMillis() > before); in testAddText()
131 long before = System.currentTimeMillis();
137 DropBoxManager.Entry e = dropbox.getNextEntry("DropBoxTest", before);
142 assertTrue(e.getTimeMillis() >= before);
154 long before = System.currentTimeMillis();
187 DropBoxManager.Entry e0 = dropbox.getNextEntry("DropBoxTest", before);
193 assertTrue(e0.getTimeMillis() > before);
224 long before = System.currentTimeMillis(); in testAddEntry_Success() local
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/soundtrigger_middleware/
DUptimeTimerTest.java39 boolean before = taskRan.get(); in testBasic()
42 assertFalse(before); in testBasic()
52 boolean before = taskRan.get(); in testCancel()
56 assertFalse(before); in testCancel()
/frameworks/base/tests/StagedInstallTest/src/com/android/tests/stagedinstallinternal/host/
DStagedInstallInternalTest.java276 List<String> before = getStagingDirectories(); in testAbandonStagedSessionShouldCleanUp() local
280 assertThat(after).isEqualTo(before); in testAbandonStagedSessionShouldCleanUp()
287 List<String> before = getStagingDirectories(); in testStagedSessionShouldCleanUpOnVerificationFailure() local
290 assertThat(after).isEqualTo(before); in testStagedSessionShouldCleanUpOnVerificationFailure()
296 List<String> before = getStagingDirectories(); in testStagedSessionShouldCleanUpOnOnSuccess() local
298 assertThat(getStagingDirectories()).isNotEqualTo(before); in testStagedSessionShouldCleanUpOnOnSuccess()
302 assertThat(after).isEqualTo(before); in testStagedSessionShouldCleanUpOnOnSuccess()
308 List<String> before = getStagingDirectories(); in testStagedSessionShouldCleanUpOnOnSuccessMultiPackage() local
310 assertThat(getStagingDirectories()).isNotEqualTo(before); in testStagedSessionShouldCleanUpOnOnSuccessMultiPackage()
314 assertThat(after).isEqualTo(before); in testStagedSessionShouldCleanUpOnOnSuccessMultiPackage()
[all …]
/frameworks/base/core/java/com/android/internal/accessibility/util/
DAccessibilityUtils.java207 public static int textOrSpanChanged(CharSequence before, CharSequence after) { in textOrSpanChanged() argument
208 if (!TextUtils.equals(before, after)) { in textOrSpanChanged()
211 if (before instanceof Spanned || after instanceof Spanned) { in textOrSpanChanged()
212 if (!parcelableSpansEquals(before, after)) { in textOrSpanChanged()
219 private static boolean parcelableSpansEquals(CharSequence before, CharSequence after) { in parcelableSpansEquals() argument
224 if (before instanceof Spanned) { in parcelableSpansEquals()
225 a = (Spanned) before; in parcelableSpansEquals()
/frameworks/native/libs/cputimeinstate/
Dtesttimeinstate.cpp158 void TestCheckUpdate(const std::vector<std::vector<uint64_t>> &before, in TestCheckUpdate() argument
160 ASSERT_EQ(before.size(), after.size()); in TestCheckUpdate()
162 for (size_t i = 0; i < before.size(); ++i) { in TestCheckUpdate()
163 ASSERT_EQ(before[i].size(), after[i].size()); in TestCheckUpdate()
164 for (size_t j = 0; j < before[i].size(); ++j) { in TestCheckUpdate()
166 ASSERT_LE(before[i][j], after[i][j]); in TestCheckUpdate()
168 sumBefore += std::accumulate(before[i].begin(), before[i].end(), (uint64_t)0); in TestCheckUpdate()
334 void TestCheckDelta(uint64_t before, uint64_t after) { in TestCheckDelta() argument
336 ASSERT_LE(before, after); in TestCheckDelta()
338 ASSERT_LE(after - before, NSEC_PER_SEC * 2 * get_nprocs_conf()); in TestCheckDelta()
[all …]
/frameworks/base/libs/androidfw/tests/
DCursorWindow_test.cpp93 auto before = w->freeSpace(); in TEST() local
95 ASSERT_LT(w->freeSpace(), before); in TEST()
101 ASSERT_EQ(w->freeSpace(), before); in TEST()
202 auto before = w->size(); in TEST() local
215 ASSERT_EQ(w->size(), before); in TEST()
223 ASSERT_GT(w->size(), before); in TEST()
283 auto before = w->size(); in TEST() local
296 ASSERT_EQ(w->size(), before); in TEST()
300 ASSERT_EQ(w->size(), before); in TEST()
/frameworks/av/media/libaaudio/src/utility/
DAAudioUtilities.h241 int before; in read() local
246 before = mCounter.load(); in read()
247 int index = (before & 1) ^ 1; in read()
250 } while ((after != before) && (after > 0) && (--timeout > 0)); in read()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/stack/
DNotificationTargetsHelperTest.kt57 before = children.notificationHeaderWrapper, // group header in targetsForFirstNotificationInGroup()
79 before = children.attachedChildren[0], in targetsForMiddleNotificationInGroup()
101 before = children.attachedChildren[1], in targetsForLastNotificationInGroup()
/frameworks/base/services/core/java/com/android/server/uri/
DUriPermission.java165 final int before = persistedModeFlags; in takePersistableModes() local
173 return persistedModeFlags != before; in takePersistableModes()
180 final int before = persistedModeFlags; in releasePersistableModes() local
188 return persistedModeFlags != before; in releasePersistableModes()
199 final int before = persistedModeFlags; in revokeModes() local
235 return persistedModeFlags != before; in revokeModes()
/frameworks/base/tests/RenderThreadTest/src/com/example/renderthread/
DSubActivity.java30 long before = SystemClock.currentThreadTimeMillis(); in onCreate() local
34 while (SystemClock.currentThreadTimeMillis() - before < 100) { in onCreate()
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/parsing/parcelling/
DParcelableComponentTest.kt299 val before = initialObject() in <lambda>() constant
301 params.forEach { it.setFunction(arrayOf(before, it.value())) } in <lambda>()
304 writeToParcel(parcel, before) in <lambda>()
318 runAssertions(params, before, after) in <lambda>()
373 private fun runAssertions(params: List<Param>, before: Parcelable, after: Parcelable) { in <lambda>()
383 extraAssertions(before, after) in <lambda>()
401 open fun extraAssertions(before: Parcelable, after: Parcelable) {} in <lambda>()
DParsedIntentInfoTest.kt58 override fun extraAssertions(before: Parcelable, after: Parcelable) { in extraAssertions()
59 super.extraAssertions(before, after) in extraAssertions()
/frameworks/native/libs/binder/tests/
DbinderAllocationLimits.cpp91 MallocHooks before = MallocHooks::save(); in OnMalloc() local
94 return DestructionAction([before]() { in OnMalloc()
95 before.overwrite(); in OnMalloc()

1234567891011