/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/pm/parsing/library/ |
H A D | AndroidHidlUpdaterTest.java | 47 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() 93 checkBackwardsCompatibility(before, after); in targeted_at_P_not_empty_usesLibraries() 115 checkBackwardsCompatibility(before, after); in targeted_at_P_not_empty_usesLibraries_system() 132 checkBackwardsCompatibility(before, after); in targeted_at_P_in_usesLibraries() 154 checkBackwardsCompatibility(before, after); in targeted_at_P_in_usesLibraries_system() 171 checkBackwardsCompatibility(before, after); in in_usesLibraries() 188 checkBackwardsCompatibility(before, after); in in_usesOptionalLibraries() [all …]
|
H A D | RemoveUnnecessaryAndroidTestBaseLibraryTest.java | 48 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() 109 checkBackwardsCompatibility(before, after); in targeted_at_O_in_usesOptionalLibraries() 124 checkBackwardsCompatibility(before, after); in in_usesLibraries() 141 checkBackwardsCompatibility(before, after); in in_usesOptionalLibraries() 159 checkBackwardsCompatibility(before, after); in in_bothLibraries() [all …]
|
H A D | RemoveUnnecessaryOrgApacheHttpLegacyLibraryTest.java | 48 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() 109 checkBackwardsCompatibility(before, after); in targeted_at_O_in_usesOptionalLibraries() 126 checkBackwardsCompatibility(before, after); in in_usesLibraries() 143 checkBackwardsCompatibility(before, after); in in_usesOptionalLibraries() 161 checkBackwardsCompatibility(before, after); in in_bothLibraries() [all …]
|
H A D | AndroidTestBaseUpdaterTest.java | 46 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() 130 checkBackwardsCompatibility(before, after); in in_usesLibraries() 148 checkBackwardsCompatibility(before, after); in in_usesOptionalLibraries() [all …]
|
H A D | OrgApacheHttpLegacyUpdaterTest.java | 46 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 …]
|
H A D | PackageBackwardCompatibilityTest.java | 47 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in null_usesLibraries_and_usesOptionalLibraries() local 56 checkBackwardsCompatibility(before, after); in null_usesLibraries_and_usesOptionalLibraries() 80 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O() local 94 checkBackwardsCompatibility(before, ((ParsedPackage) after.hideAsParsed()).hideAsFinal()); in targeted_at_O() 111 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in android_test_base_in_usesLibraries() local 123 checkBackwardsCompatibility(before, after); in android_test_base_in_usesLibraries() 135 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in android_test_runner_in_usesLibraries() local 157 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in com_google_android_maps_in_usesLibraries() local 174 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in android_net_ipsec_ike_in_usesLibraries() local 185 private void checkBackwardsCompatibility(ParsedPackage before, AndroidPackage after) { in checkBackwardsCompatibility() argument [all …]
|
H A D | PackageSharedLibraryUpdaterTest.java | 33 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()
|
H A D | AndroidNetIpSecIkeUpdaterTest.java | 42 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()
|
H A D | ComGoogleAndroidMapsUpdaterTest.java | 42 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()
|
H A D | AndroidTestRunnerSplitUpdaterTest.java | 46 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()
|
/aosp12/packages/apps/Contacts/tests/src/com/android/contacts/model/ |
H A D | RawContactDeltaTests.java | 74 final RawContact before = new RawContact(contact); in getRawContact() local 75 before.addDataItemValues(phone); in getRawContact() 76 return before; in getRawContact() 88 final RawContactDelta dest = RawContactDelta.fromBefore(before); in testParcelChangesNone() 98 final RawContactDelta dest = RawContactDelta.fromBefore(before); in testParcelChangesInsert() 116 final RawContactDelta dest = RawContactDelta.fromBefore(before); in testParcelChangesUpdate() 130 final RawContactDelta dest = RawContactDelta.fromBefore(before); in testParcelChangesDelete() 141 final ContentValues before = new ContentValues(); in testValuesDiffDelete() local 142 before.put(Data._ID, TEST_PHONE_ID); in testValuesDiffDelete() 143 before.put(Phone.NUMBER, TEST_PHONE_NUMBER_1); in testValuesDiffDelete() [all …]
|
H A D | ValuesDeltaTests.java | 63 final ContentValues before = new ContentValues(); in testValuesDiffNone() local 64 before.put(Data._ID, TEST_PHONE_ID); in testValuesDiffNone() 65 before.put(Phone.NUMBER, TEST_PHONE_NUMBER_1); in testValuesDiffNone() 67 final ValuesDelta values = ValuesDelta.fromBefore(before); in testValuesDiffNone() 75 final ContentValues before = new ContentValues(); in testValuesDiffUpdate() local 76 before.put(Data._ID, TEST_PHONE_ID); in testValuesDiffUpdate() 77 before.put(Phone.NUMBER, TEST_PHONE_NUMBER_1); in testValuesDiffUpdate() 79 final ValuesDelta values = ValuesDelta.fromBefore(before); in testValuesDiffUpdate()
|
/aosp12/frameworks/av/media/libnbaio/include_mono/media/nbaio/ |
H A D | SingleStateQueue.h | 127 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()
|
/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
H A D | ScoringParamsTest.java | 117 String before = mScoringParams.toString(); 119 assertFalse(before.contains(partial)); 132 String before = mScoringParams.toString(); 148 assertEquals(before, mScoringParams.toString()); 157 String before = mScoringParams.toString(); 160 assertEquals(before, mScoringParams.toString()); 169 String before = mScoringParams.toString(); 175 assertEquals(before, mScoringParams.toString()); 217 String before = mScoringParams.toString(); 220 assertEquals(before, mScoringParams.toString()); [all …]
|
/aosp12/system/extras/ioshark/ |
H A D | ioshark_bench_subr.c | 508 read_disk_util_state(&before); in capture_util_state_before() 509 read_cpu_util_state(&before); in capture_util_state_before() 524 tot1 = before.user_cpu_ticks + before.nice_cpu_ticks + in report_cpu_disk_util() 525 before.system_cpu_ticks + before.hardirq_cpu_ticks + in report_cpu_disk_util() 526 before.softirq_cpu_ticks; in report_cpu_disk_util() 529 tot1 += before.iowait_cpu_ticks + before.idle_cpu_ticks; in report_cpu_disk_util() 538 (before.user_cpu_ticks + before.nice_cpu_ticks); in report_cpu_disk_util() 546 (before.system_cpu_ticks + before.hardirq_cpu_ticks + in report_cpu_disk_util() 547 before.softirq_cpu_ticks); in report_cpu_disk_util() 555 (after.uptime - before.uptime); in report_cpu_disk_util() [all …]
|
/aosp12/packages/apps/Settings/ |
H A D | wrap_alpha.py | 9 for before in files: 10 if "_alpha.png" in before: continue 11 if not before.startswith("ic_settings_"): continue 13 after = before.replace(".png", "_alpha.png") 14 os.rename(os.path.join(root, before), os.path.join(root, after))
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/ |
H A D | DropBoxTest.java | 94 long before = System.currentTimeMillis(); in testAddText() local 110 assertTrue(e0.getTimeMillis() > before); in testAddText() 131 long before = System.currentTimeMillis(); 142 assertTrue(e.getTimeMillis() >= before); 154 long before = System.currentTimeMillis(); 193 assertTrue(e0.getTimeMillis() > before); 224 long before = System.currentTimeMillis(); in testAddEntry_Success() local 334 e0 = dropbox.getNextEntry(null, before); in testAddEntriesInTheFuture() 827 int before = countOpenFiles(); in testDropBoxEntrySerializationDoesntLeakFileDescriptors() local 828 assertTrue(before > 0); in testDropBoxEntrySerializationDoesntLeakFileDescriptors() [all …]
|
/aosp12/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
H A D | BatteryStatsManagerTest.java | 226 private static boolean cellularBatteryStatsIncreased(CellularBatteryStats before, in cellularBatteryStatsIncreased() argument 228 return (after.getNumBytesTx() > before.getNumBytesTx()) in cellularBatteryStatsIncreased() 229 && (after.getNumBytesRx() > before.getNumBytesRx()) in cellularBatteryStatsIncreased() 230 && (after.getNumPacketsTx() > before.getNumPacketsTx()) in cellularBatteryStatsIncreased() 231 && (after.getNumPacketsRx() > before.getNumPacketsRx()); in cellularBatteryStatsIncreased() 234 private static boolean wifiBatteryStatsIncreased(WifiBatteryStats before, in wifiBatteryStatsIncreased() argument 236 return (after.getNumBytesTx() > before.getNumBytesTx()) in wifiBatteryStatsIncreased() 237 && (after.getNumBytesRx() > before.getNumBytesRx()) in wifiBatteryStatsIncreased() 238 && (after.getNumPacketsTx() > before.getNumPacketsTx()) in wifiBatteryStatsIncreased() 239 && (after.getNumPacketsRx() > before.getNumPacketsRx()); in wifiBatteryStatsIncreased()
|
/aosp12/packages/apps/DocumentsUI/src/com/android/documentsui/roots/ |
H A D | RootCursorWrapper.java | 70 final String[] before = cursor.getColumnNames(); in RootCursorWrapper() local 73 mColumnNames = new String[before.length + 3]; in RootCursorWrapper() 74 System.arraycopy(before, 0, mColumnNames, 0, before.length); in RootCursorWrapper() 75 mAuthorityIndex = before.length; in RootCursorWrapper() 76 mRootIdIndex = before.length + 1; in RootCursorWrapper() 77 mUserIdIndex = before.length + 2; in RootCursorWrapper()
|
/aosp12/build/soong/cuj/ |
H A D | cuj.go | 38 before func() error member 191 before: touchIntentFile, 196 before: touchIntentFile, 201 before: touchIntentFile, 206 before: touchIntentFile, 211 before: touchIntentFile, 221 if t.before != nil { 222 if err := t.before(); err != nil {
|
/aosp12/system/sepolicy/prebuilts/api/27.0/private/ |
H A D | seapp_contexts | 32 # (1) isSystemServer=true before isSystemServer=false. 33 # (2) Specified isEphemeralApp= before unspecified isEphemeralApp= boolean. 34 # (3) Specified isV2App= before unspecified isV2App= boolean. 35 # (4) Specified isOwner= before unspecified isOwner= boolean. 36 # (5) Specified user= string before unspecified user= string. 37 # (6) Fixed user= string before user= prefix (i.e. ending in *). 38 # (7) Longer user= prefix before shorter user= prefix. 39 # (8) Specified seinfo= string before unspecified seinfo= string. 41 # (9) Specified name= string before unspecified name= string. 42 # (10) Specified path= string before unspecified path= string. [all …]
|
/aosp12/system/sepolicy/prebuilts/api/26.0/private/ |
H A D | seapp_contexts | 32 # (1) isSystemServer=true before isSystemServer=false. 33 # (2) Specified isEphemeralApp= before unspecified isEphemeralApp= boolean. 34 # (3) Specified isV2App= before unspecified isV2App= boolean. 35 # (4) Specified isOwner= before unspecified isOwner= boolean. 36 # (5) Specified user= string before unspecified user= string. 37 # (6) Fixed user= string before user= prefix (i.e. ending in *). 38 # (7) Longer user= prefix before shorter user= prefix. 39 # (8) Specified seinfo= string before unspecified seinfo= string. 41 # (9) Specified name= string before unspecified name= string. 42 # (10) Specified path= string before unspecified path= string. [all …]
|
/aosp12/system/sepolicy/prebuilts/api/28.0/private/ |
H A D | seapp_contexts | 32 # (1) isSystemServer=true before isSystemServer=false. 33 # (2) Specified isEphemeralApp= before unspecified isEphemeralApp= boolean. 34 # (3) Specified isV2App= before unspecified isV2App= boolean. 35 # (4) Specified isOwner= before unspecified isOwner= boolean. 36 # (5) Specified user= string before unspecified user= string. 37 # (6) Fixed user= string before user= prefix (i.e. ending in *). 38 # (7) Longer user= prefix before shorter user= prefix. 39 # (8) Specified seinfo= string before unspecified seinfo= string. 41 # (9) Specified name= string before unspecified name= string. 42 # (10) Specified path= string before unspecified path= string. [all …]
|
/aosp12/art/runtime/ |
H A D | class_table-inl.h | 137 const uint32_t before = data_.load(std::memory_order_relaxed); in Read() local 138 const ObjPtr<mirror::Class> before_ptr(ExtractPtr(before)); in Read() 144 data_.CompareAndSetStrongRelease(before, Encode(after_ptr, MaskHash(before))); in Read() 151 const uint32_t before = data_.load(std::memory_order_relaxed); in VisitRoot() local 152 ObjPtr<mirror::Class> before_ptr(ExtractPtr(before)); in VisitRoot() 159 data_.CompareAndSetStrongRelease(before, Encode(after_ptr, MaskHash(before))); in VisitRoot()
|
/aosp12/packages/inputmethods/LatinIME/native/jni/src/utils/ |
H A D | autocorrection_threshold_utils.cpp | 32 /* static */ int AutocorrectionThresholdUtils::editDistance(const int *before, in editDistance() argument 35 before, beforeLength, after, afterLength); in editDistance() 70 /* static */ float AutocorrectionThresholdUtils::calcNormalizedScore(const int *before, in calcNormalizedScore() argument 75 const int distance = editDistance(before, beforeLength, after, afterLength); in calcNormalizedScore()
|