Home
last modified time | relevance | path

Searched refs:record (Results 1 – 25 of 341) sorted by relevance

12345678910>>...14

/frameworks/base/tests/Internal/src/com/android/internal/os/
DTimeoutRecordTest.java45 TimeoutRecord record = TimeoutRecord.forBroadcastReceiver(intent); in forBroadcastReceiver_returnsCorrectTimeoutRecord() local
47 assertNotNull(record); in forBroadcastReceiver_returnsCorrectTimeoutRecord()
48 assertEquals(record.mKind, TimeoutRecord.TimeoutKind.BROADCAST_RECEIVER); in forBroadcastReceiver_returnsCorrectTimeoutRecord()
49 assertEquals(record.mReason, in forBroadcastReceiver_returnsCorrectTimeoutRecord()
52 assertTrue(record.mEndTakenBeforeLocks); in forBroadcastReceiver_returnsCorrectTimeoutRecord()
58 TimeoutRecord record = TimeoutRecord.forBroadcastReceiver(intent, in forBroadcastReceiver_withPackageAndClass_returnsCorrectTimeoutRecord() local
61 assertNotNull(record); in forBroadcastReceiver_withPackageAndClass_returnsCorrectTimeoutRecord()
62 assertEquals(record.mKind, TimeoutRecord.TimeoutKind.BROADCAST_RECEIVER); in forBroadcastReceiver_withPackageAndClass_returnsCorrectTimeoutRecord()
63 assertEquals(record.mReason, in forBroadcastReceiver_withPackageAndClass_returnsCorrectTimeoutRecord()
66 assertTrue(record.mEndTakenBeforeLocks); in forBroadcastReceiver_withPackageAndClass_returnsCorrectTimeoutRecord()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DViewInfoStore.java67 InfoRecord record = mLayoutHolderMap.get(holder); in addToPreLayout() local
68 if (record == null) { in addToPreLayout()
69 record = InfoRecord.obtain(); in addToPreLayout()
70 mLayoutHolderMap.put(holder, record); in addToPreLayout()
72 record.preInfo = info; in addToPreLayout()
73 record.flags |= FLAG_PRE; in addToPreLayout()
77 final InfoRecord record = mLayoutHolderMap.get(holder); in isDisappearing() local
78 return record != null && ((record.flags & FLAG_DISAPPEARED) != 0); in isDisappearing()
108 final InfoRecord record = mLayoutHolderMap.valueAt(index); in popFromLayoutStep() local
109 if (record != null && (record.flags & flag) != 0) { in popFromLayoutStep()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationRecordTest.java287 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); in testSound_default_preUpgradeUsesNotification() local
288 assertEquals(Settings.System.DEFAULT_NOTIFICATION_URI, record.getSound()); in testSound_default_preUpgradeUsesNotification()
289 assertEquals(Notification.AUDIO_ATTRIBUTES_DEFAULT, record.getAudioAttributes()); in testSound_default_preUpgradeUsesNotification()
300 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); in testSound_custom_preUpgradeUsesNotification() local
301 assertEquals(CUSTOM_SOUND, record.getSound()); in testSound_custom_preUpgradeUsesNotification()
302 assertEquals(CUSTOM_ATTRIBUTES, record.getAudioAttributes()); in testSound_custom_preUpgradeUsesNotification()
314 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); in testSound_default_userLocked_preUpgrade() local
315 assertEquals(CUSTOM_SOUND, record.getSound()); in testSound_default_userLocked_preUpgrade()
316 assertEquals(CUSTOM_ATTRIBUTES, record.getAudioAttributes()); in testSound_default_userLocked_preUpgrade()
326 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); in testSound_noSound_preUpgrade() local
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationAttentionHelper.java229 record -> mPackageManager.checkPermission( in createPolitenessStrategy()
231 record.getSbn().getPackageName()) == PERMISSION_GRANTED); in createPolitenessStrategy()
247 record -> mPackageManager.checkPermission( in createPolitenessStrategy()
249 record.getSbn().getPackageName()) == PERMISSION_GRANTED); in createPolitenessStrategy()
364 int buzzBeepBlinkLocked(NotificationRecord record, Signals signals) { in buzzBeepBlinkLocked() argument
372 final String key = record.getKey(); in buzzBeepBlinkLocked()
375 Log.d(TAG, "buzzBeepBlinkLocked " + record); in buzzBeepBlinkLocked()
378 if (isPoliteNotificationFeatureEnabled(record)) { in buzzBeepBlinkLocked()
379 mStrategy.onNotificationPosted(record); in buzzBeepBlinkLocked()
385 ? record.getImportance() > NotificationManager.IMPORTANCE_DEFAULT in buzzBeepBlinkLocked()
[all …]
DZenModeFiltering.java139 private static Bundle extras(NotificationRecord record) { in extras() argument
140 … return record != null && record.getSbn() != null && record.getSbn().getNotification() != null in extras()
141 ? record.getSbn().getNotification().extras : null; in extras()
144 protected void recordCall(NotificationRecord record) { in recordCall() argument
145 REPEAT_CALLERS.recordCall(mContext, extras(record), record.getPhoneNumbers()); in recordCall()
153 private boolean canRecordBypassDnd(NotificationRecord record, in canRecordBypassDnd() argument
155 boolean inPriorityChannel = record.getPackagePriority() == Notification.PRIORITY_MAX; in canRecordBypassDnd()
166 NotificationRecord record) { in shouldIntercept() argument
171 if (isCritical(record)) { in shouldIntercept()
173 maybeLogInterceptDecision(record, false, "criticalNotification"); in shouldIntercept()
[all …]
DBadgeExtractor.java37 public RankingReconsideration process(NotificationRecord record) { in process() argument
38 if (record == null || record.getNotification() == null) { in process()
47 boolean userWantsBadges = mConfig.badgingEnabled(record.getSbn().getUser()); in process()
49 mConfig.canShowBadge(record.getSbn().getPackageName(), record.getSbn().getUid()); in process()
51 record.setShowBadge(false); in process()
53 if (record.getChannel() != null) { in process()
54 record.setShowBadge(record.getChannel().canShowBadge() && appCanShowBadge); in process()
56 record.setShowBadge(appCanShowBadge); in process()
60 if (record.isIntercepted() in process()
61 && (record.getSuppressedVisualEffects() & SUPPRESSED_EFFECT_BADGE) != 0) { in process()
[all …]
DNotificationIntrusivenessExtractor.java44 public RankingReconsideration process(NotificationRecord record) { in process() argument
45 if (record == null || record.getNotification() == null) { in process()
50 if (record.getFreshnessMs(System.currentTimeMillis()) < HANG_TIME_MS in process()
51 && record.getImportance() >= NotificationManager.IMPORTANCE_DEFAULT) { in process()
52 if (record.getSound() != null && record.getSound() != Uri.EMPTY) { in process()
53 record.setRecentlyIntrusive(true); in process()
55 if (record.getVibration() != null) { in process()
56 record.setRecentlyIntrusive(true); in process()
58 if (record.getNotification().fullScreenIntent != null) { in process()
59 record.setRecentlyIntrusive(true); in process()
[all …]
DNotificationComparator.java148 private boolean isImportantColorized(NotificationRecord record) { in isImportantColorized() argument
149 if (record.getImportance() < NotificationManager.IMPORTANCE_LOW) { in isImportantColorized()
152 return record.getNotification().isColorized(); in isImportantColorized()
155 private boolean isImportantOngoing(NotificationRecord record) { in isImportantOngoing() argument
156 if (record.getImportance() < NotificationManager.IMPORTANCE_LOW) { in isImportantOngoing()
159 if (isCallStyle(record)) { in isImportantOngoing()
162 if (!record.getNotification().isFgsOrUij()) { in isImportantOngoing()
165 return isCallCategory(record) || isMediaNotification(record); in isImportantOngoing()
168 protected boolean isImportantPeople(NotificationRecord record) { in isImportantPeople() argument
169 if (record.getImportance() < NotificationManager.IMPORTANCE_LOW) { in isImportantPeople()
[all …]
DBubbleExtractor.java63 public RankingReconsideration process(NotificationRecord record) { in process() argument
64 if (record == null || record.getNotification() == null) { in process()
79 boolean notifCanPresentAsBubble = canPresentAsBubble(record) in process()
81 && record.isConversation() in process()
82 && record.getShortcutInfo() != null in process()
83 && !record.getNotification().isFgsOrUij(); in process()
85 boolean userEnabledBubbles = mConfig.bubblesEnabled(record.getUser()); in process()
88 record.getSbn().getPackageName(), record.getSbn().getUid()); in process()
89 NotificationChannel recordChannel = record.getChannel(); in process()
93 record.setAllowBubble(false); in process()
[all …]
DNotificationChannelExtractor.java63 public RankingReconsideration process(NotificationRecord record) { in process() argument
64 if (record == null || record.getNotification() == null) { in process()
74 record.getSbn().getPackageName(), in process()
75 record.getSbn().getUid(), record.getChannel().getId(), in process()
76 record.getSbn().getShortcutId(), true, false); in process()
77 record.updateNotificationChannel(updatedChannel); in process()
81 AudioAttributes attributes = record.getChannel().getAudioAttributes(); in process()
84 && !record.getNotification().isStyle(Notification.CallStyle.class) in process()
89 && record.getNotification().category != CATEGORY_ALARM in process()
101 reportAudioAttributesChanged(record.getUid()); in process()
[all …]
DVisibilityExtractor.java40 public RankingReconsideration process(NotificationRecord record) { in process() argument
41 if (record == null || record.getNotification() == null) { in process()
51 int userId = record.getUserId(); in process()
54 record.setPackageVisibilityOverride(record.getChannel().getLockscreenVisibility()); in process()
60 boolean channelCanShowNotifications = record.getChannel().getLockscreenVisibility() in process()
65 record.setPackageVisibilityOverride(Notification.VISIBILITY_SECRET); in process()
73 boolean channelCanShowContents = record.getChannel().getLockscreenVisibility() in process()
77 record.setPackageVisibilityOverride(Notification.VISIBILITY_PRIVATE); in process()
79 record.setPackageVisibilityOverride(NotificationManager.VISIBILITY_NO_OVERRIDE); in process()
/frameworks/base/services/core/java/com/android/server/media/
DMediaSessionStack.java84 public void addSession(MediaSessionRecordImpl record) { in addSession() argument
87 record in addSession()
89 mSessions.add(record); in addSession()
90 clearCache(record.getUserId()); in addSession()
103 public void removeSession(MediaSessionRecordImpl record) { in removeSession() argument
106 record in removeSession()
108 mSessions.remove(record); in removeSession()
109 if (mMediaButtonSession == record) { in removeSession()
116 clearCache(record.getUserId()); in removeSession()
122 public boolean contains(MediaSessionRecordImpl record) { in contains() argument
[all …]
/frameworks/av/media/utils/tests/
Dinplace_function_tests.cpp74 friend std::ostream& operator<<(std::ostream& os, const Record& record) { in operator <<() argument
75 return os << "Record, moves: " << record.move_called << ", copies: " << record.copy_called in operator <<()
76 << ", dtor: " << record.dtor_called << '\n'; in operator <<()
88 Noisy(Record& record, size_t val) : ref(record), state(val) {} in Noisy()
98 Record record; in TEST() local
99 Noisy noisy{record, 17}; in TEST()
101 EXPECT_EQ(record, Record(0, 1, 0)); // move, copy, dtor in TEST()
112 Record record; in TEST() local
113 Noisy noisy{record, 17}; in TEST()
115 EXPECT_EQ(record, Record(0, 1, 0)); // move, copy, dtor in TEST()
[all …]
/frameworks/native/libs/input/tests/
DMotionPredictor_test.cpp184 predictor.record(getMotionEvent(DOWN, 0, 1, 30ms)); in TEST()
185 predictor.record(getMotionEvent(MOVE, 0, 1, 35ms)); // No movement. in TEST()
193 predictor.record(getMotionEvent(DOWN, 0, 1, 30ms)); in TEST()
194 predictor.record(getMotionEvent(MOVE, 0, 5, 35ms)); // Move enough to overcome the noise floor. in TEST()
203 predictor.record(getMotionEvent(DOWN, 3.75, 3, 20ms)); in TEST()
204 predictor.record(getMotionEvent(MOVE, 4.8, 3, 30ms)); in TEST()
205 predictor.record(getMotionEvent(MOVE, 6.2, 3, 40ms)); in TEST()
206 predictor.record(getMotionEvent(MOVE, 8, 3, 50ms)); in TEST()
209 predictor.record(getMotionEvent(UP, 10.25, 3, 60ms)); in TEST()
217 ASSERT_TRUE(predictor.record(getMotionEvent(DOWN, 1, 3, 0ms, /*deviceId=*/0)).ok()); in TEST()
[all …]
/frameworks/base/core/java/android/view/accessibility/
DAccessibilityEvent.java1074 for (AccessibilityRecord record : event.mRecords) { in init()
1075 final AccessibilityRecord recordClone = new AccessibilityRecord(record); in init()
1094 for (AccessibilityRecord record : records) { in setSealed()
1095 record.setSealed(sealed); in setSealed()
1116 public void appendRecord(AccessibilityRecord record) { in appendRecord() argument
1121 mRecords.add(record); in appendRecord()
1574 AccessibilityRecord record = mRecords.remove(0); in clear() local
1603 AccessibilityRecord record = new AccessibilityRecord(); in initFromParcel() local
1604 readAccessibilityRecordFromParcel(record, parcel); in initFromParcel()
1605 record.mConnectionId = mConnectionId; in initFromParcel()
[all …]
/frameworks/base/tools/preload/
DRoot.java54 void indexClassOperation(Record record) { in indexClassOperation() argument
55 Proc process = processes.get(record.pid); in indexClassOperation()
59 if (record.processName.equals("dexopt")) { in indexClassOperation()
63 String name = record.className; in indexClassOperation()
67 switch (record.type) { in indexClassOperation()
72 name, record.classLoader == 0); in indexClassOperation()
84 o = process.endOperation(record.tid, record.className, in indexClassOperation()
85 loadedClass, record.time); in indexClassOperation()
91 switch (record.type) { in indexClassOperation()
93 process.startOperation(record.tid, loadedClass, record.time, in indexClassOperation()
[all …]
/frameworks/base/packages/SettingsLib/SpaPrivileged/tests/src/com/android/settingslib/spaprivileged/template/app/
DAppOpPermissionAppListTest.kt67 val record = listModel.transformItem(APP) in transformItem_recordHasCorrectApp() constant
69 assertThat(record.app).isSameInstanceAs(APP) in transformItem_recordHasCorrectApp()
76 val record = listModel.transformItem(APP) in <lambda>() constant
78 assertThat(record.hasRequestPermission).isTrue() in <lambda>()
85 val record = listModel.transformItem(APP) in <lambda>() constant
87 assertThat(record.hasRequestPermission).isFalse() in <lambda>()
97 val record = listModel.transformItem(APP) in <lambda>() constant
99 assertThat(record.hasRequestBroaderPermission).isTrue() in <lambda>()
109 val record = listModel.transformItem(APP) in <lambda>() constant
111 assertThat(record.hasRequestPermission).isFalse() in <lambda>()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DPackageConfigPersister.java188 PackageConfigRecord record = findRecord(mModified, packageName, userId); in updateFromImpl() local
189 if (record != null) { in updateFromImpl()
192 record = findRecordOrCreate(mModified, packageName, userId); in updateFromImpl()
194 boolean isNightModeChanged = updateNightMode(impl.getNightMode(), record); in updateFromImpl()
195 boolean isLocalesChanged = updateLocales(impl.getLocales(), record); in updateFromImpl()
196 boolean isGenderChanged = updateGender(impl.getGrammaticalGender(), record); in updateFromImpl()
198 if ((record.mNightMode == null || record.isResetNightMode()) in updateFromImpl()
199 && (record.mLocales == null || record.mLocales.isEmpty()) in updateFromImpl()
200 && (record.mGrammaticalGender == null in updateFromImpl()
201 || record.mGrammaticalGender == GRAMMATICAL_GENDER_NOT_SPECIFIED)) { in updateFromImpl()
[all …]
/frameworks/base/telecomm/java/android/telecom/
DRemoteConference.java175 for (CallbackRecord<Callback> record : mCallbackRecords) { in setDestroyed()
177 final Callback callback = record.getCallback(); in setDestroyed()
178 record.getHandler().post(new Runnable() { in setDestroyed()
200 for (CallbackRecord<Callback> record : mCallbackRecords) { in setState()
202 final Callback callback = record.getCallback(); in setState()
203 record.getHandler().post(new Runnable() { in setState()
218 for (CallbackRecord<Callback> record : mCallbackRecords) { in addConnection()
220 final Callback callback = record.getCallback(); in addConnection()
221 record.getHandler().post(new Runnable() { in addConnection()
236 for (CallbackRecord<Callback> record : mCallbackRecords) { in removeConnection()
[all …]
DRemoteConnection.java766 for (CallbackRecord record : mCallbackRecords) { in unregisterCallback()
767 if (record.getCallback() == callback) { in unregisterCallback()
768 mCallbackRecords.remove(record); in unregisterCallback()
1304 for (CallbackRecord record: mCallbackRecords) { in setState()
1306 final Callback callback = record.getCallback(); in setState()
1307 record.getHandler().post(new Runnable() { in setState()
1325 for (CallbackRecord record : mCallbackRecords) { in setDisconnected()
1327 final Callback callback = record.getCallback(); in setDisconnected()
1328 record.getHandler().post(new Runnable() { in setDisconnected()
1344 for (CallbackRecord record : mCallbackRecords) { in setRingbackRequested()
[all …]
/frameworks/base/services/core/java/com/android/server/vibrator/
DGroupedAggregatedLogRecords.java59 final synchronized AggregatedLogRecord<T> add(T record) { in add() argument
60 int groupKey = record.getGroupKey(); in add()
67 if (lastAggregatedRecord.mayAggregate(record, mAggregationTimeLimitMs)) { in add()
68 lastAggregatedRecord.record(record); in add()
76 records.addLast(new AggregatedLogRecord<>(record)); in add()
114 AggregatedLogRecord(T record) { in AggregatedLogRecord() argument
115 mLatest = mFirst = record; in AggregatedLogRecord()
123 synchronized boolean mayAggregate(T record, long timeLimitMs) { in mayAggregate() argument
124 long timeDeltaMs = Math.abs(mLatest.getCreateUptimeMs() - record.getCreateUptimeMs()); in mayAggregate()
125 return mLatest.mayAggregate(record) && timeDeltaMs < timeLimitMs; in mayAggregate()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/
DPackageDexUsageTests.java118 assertTrue(record(mFooBaseUser0)); in testRecordPrimary()
128 assertTrue(record(mFooSplit1User0)); in testRecordSplit()
138 assertTrue(record(mFooBaseUser0)); in testRecordSplitPrimarySequence()
139 assertTrue(record(mFooSplit1User0)); in testRecordSplitPrimarySequence()
141 assertFalse(record(mFooBaseUser0)); in testRecordSplitPrimarySequence()
142 assertFalse(record(mFooSplit1User0)); in testRecordSplitPrimarySequence()
150 assertTrue(record(mFooSplit2UsedByOtherApps0)); in testRecordSplitPrimarySequence()
158 assertTrue(record(mFooSecondary1User0)); in testRecordSecondary()
165 assertFalse(record(mFooSecondary1User0)); in testRecordSecondary()
172 assertTrue(record(mFooSplit2UsedByOtherApps0)); in testRecordBaseAndSecondarySequence()
[all …]
/frameworks/base/packages/SystemUI/scripts/token_alignment/helpers/
DmigrationList.ts35 function isMigrationRecord(record: TCSVRecord): record is string[] {
36 return !record.some((value) => typeof value != 'string') || record.length != 5;
43 csv.forEach((record, i) => {
46 if (typeof record[0] != 'string') return;
48 if (!isMigrationRecord(record)) {
49 console.log(`Failed to validade CSV record as string[5].`, record);
53 const [originalToken, materialToken, newDefaultValue, newComment, migrationToken] = record;
/frameworks/base/cmds/incident_helper/src/parsers/
DPageTypeInfoParser.cpp65 record_t record = parseRecord(line, COMMA_DELIMITER); in Parse() local
66 if (migrateTypeSession && record.size() == 3) { in Parse()
69 if (stripPrefix(&record[0], "Node")) { in Parse()
70 proto.write(PageTypeInfoProto::MigrateType::NODE, toInt(record[0])); in Parse()
73 if (stripPrefix(&record[1], "zone")) { in Parse()
74 proto.write(PageTypeInfoProto::MigrateType::ZONE, record[1]); in Parse()
77 if (stripPrefix(&record[2], "type")) { in Parse()
81 record_t pageCounts = parseRecord(record[2]); in Parse()
90 } else if (!blockHeader.empty() && record.size() == 2) { in Parse()
92 if (stripPrefix(&record[0], "Node")) { in Parse()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/legacyhelper/ui/
DLegacyUserUiHelper.kt62 record: UserRecord, in getUserRecordName()
67 val resourceId: Int? = getGuestUserRecordNameResourceId(record) in getUserRecordName()
70 record.info != null -> checkNotNull(record.info.name) in getUserRecordName()
74 isGuest = record.isGuest, in getUserRecordName()
77 isAddUser = record.isAddUser, in getUserRecordName()
78 isAddSupervisedUser = record.isAddSupervisedUser, in getUserRecordName()
80 isManageUsers = record.isManageUsers, in getUserRecordName()
92 fun getGuestUserRecordNameResourceId(record: UserRecord): Int? { in getGuestUserRecordNameResourceId()
94 record.isGuest && record.isCurrent -> in getGuestUserRecordNameResourceId()
96 record.isGuest && record.info != null -> com.android.internal.R.string.guest_name in getGuestUserRecordNameResourceId()

12345678910>>...14