Home
last modified time | relevance | path

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

1234567

/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.java209 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); in testSound_default_preUpgradeUsesNotification() local
210 assertEquals(Settings.System.DEFAULT_NOTIFICATION_URI, record.getSound()); in testSound_default_preUpgradeUsesNotification()
211 assertEquals(Notification.AUDIO_ATTRIBUTES_DEFAULT, record.getAudioAttributes()); in testSound_default_preUpgradeUsesNotification()
222 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); in testSound_custom_preUpgradeUsesNotification() local
223 assertEquals(CUSTOM_SOUND, record.getSound()); in testSound_custom_preUpgradeUsesNotification()
224 assertEquals(CUSTOM_ATTRIBUTES, record.getAudioAttributes()); in testSound_custom_preUpgradeUsesNotification()
236 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); in testSound_default_userLocked_preUpgrade() local
237 assertEquals(CUSTOM_SOUND, record.getSound()); in testSound_default_userLocked_preUpgrade()
238 assertEquals(CUSTOM_ATTRIBUTES, record.getAudioAttributes()); in testSound_default_userLocked_preUpgrade()
248 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); in testSound_noSound_preUpgrade() local
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DZenModeFiltering.java108 private static Bundle extras(NotificationRecord record) { in extras() argument
109 return record != null && record.sbn != null && record.sbn.getNotification() != null in extras()
110 ? record.sbn.getNotification().extras : null; in extras()
113 protected void recordCall(NotificationRecord record) { in recordCall() argument
114 REPEAT_CALLERS.recordCall(mContext, extras(record)); in recordCall()
121 NotificationRecord record) { in shouldIntercept() argument
123 if (zen == ZEN_MODE_OFF || isCritical(record)) { in shouldIntercept()
128 && "android".equals(record.sbn.getPackageName()) in shouldIntercept()
129 && SystemMessageProto.SystemMessage.NOTE_ZEN_UPGRADE == record.sbn.getId()) { in shouldIntercept()
130 ZenLog.traceNotIntercepted(record, "systemDndChangedNotification"); in shouldIntercept()
[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 …]
DBadgeExtractor.java36 public RankingReconsideration process(NotificationRecord record) { in process() argument
37 if (record == null || record.getNotification() == null) { in process()
46 boolean userWantsBadges = mConfig.badgingEnabled(record.sbn.getUser()); in process()
48 mConfig.canShowBadge(record.sbn.getPackageName(), record.sbn.getUid()); in process()
50 record.setShowBadge(false); in process()
52 if (record.getChannel() != null) { in process()
53 record.setShowBadge(record.getChannel().canShowBadge() && appCanShowBadge); in process()
55 record.setShowBadge(appCanShowBadge); in process()
59 if (record.isIntercepted() in process()
60 && (record.getSuppressedVisualEffects() & SUPPRESSED_EFFECT_BADGE) != 0) { in process()
[all …]
DNotificationComparator.java136 private boolean isImportantColorized(NotificationRecord record) { in isImportantColorized() argument
137 if (record.getImportance() < NotificationManager.IMPORTANCE_LOW) { in isImportantColorized()
140 return record.getNotification().isColorized(); in isImportantColorized()
143 private boolean isImportantOngoing(NotificationRecord record) { in isImportantOngoing() argument
144 if (!isOngoing(record)) { in isImportantOngoing()
148 if (record.getImportance() < NotificationManager.IMPORTANCE_LOW) { in isImportantOngoing()
152 return isCall(record) || isMediaNotification(record); in isImportantOngoing()
155 protected boolean isImportantPeople(NotificationRecord record) { in isImportantPeople() argument
156 if (record.getImportance() < NotificationManager.IMPORTANCE_LOW) { in isImportantPeople()
159 if (record.getContactAffinity() > ValidateNotificationPeople.NONE) { in isImportantPeople()
[all …]
DBubbleExtractor.java34 public RankingReconsideration process(NotificationRecord record) { in process() argument
35 if (record == null || record.getNotification() == null) { in process()
45 mConfig.areBubblesAllowed(record.sbn.getPackageName(), record.sbn.getUid()); in process()
47 record.setAllowBubble(false); in process()
49 if (record.getChannel() != null) { in process()
50 record.setAllowBubble(record.getChannel().canBubble() && appCanShowBubble); in process()
52 record.setAllowBubble(appCanShowBubble); in process()
DSnoozeHelper.java132 protected void snooze(NotificationRecord record, long duration) { in snooze() argument
133 snooze(record); in snooze()
134 scheduleRepost(record.sbn.getPackageName(), record.getKey(), record.getUserId(), duration); in snooze()
140 protected void snooze(NotificationRecord record) { in snooze() argument
141 int userId = record.getUser().getIdentifier(); in snooze()
143 Slog.d(TAG, "Snoozing " + record.getKey()); in snooze()
150 ArrayMap<String, NotificationRecord> pkgRecords = records.get(record.sbn.getPackageName()); in snooze()
154 pkgRecords.put(record.getKey(), record); in snooze() local
155 records.put(record.sbn.getPackageName(), pkgRecords); in snooze()
157 mPackages.put(record.getKey(), record.sbn.getPackageName()); in snooze()
[all …]
DZenModeExtractor.java36 public RankingReconsideration process(NotificationRecord record) { in process() argument
37 if (record == null || record.getNotification() == null) { in process()
47 record.setIntercepted(mZenModeHelper.shouldIntercept(record)); in process()
48 if (record.isIntercepted()) { in process()
49 record.setSuppressedVisualEffects( in process()
52 record.setSuppressedVisualEffects(0); in process()
DCriticalNotificationExtractor.java64 public RankingReconsideration process(NotificationRecord record) { in process() argument
69 if (record == null || record.getNotification() == null) { in process()
75 if (record.isCategory(Notification.CATEGORY_CAR_EMERGENCY)) { in process()
76 record.setCriticality(CRITICAL); in process()
77 } else if (record.isCategory(Notification.CATEGORY_CAR_WARNING)) { in process()
78 record.setCriticality(CRITICAL_LOW); in process()
80 record.setCriticality(NORMAL); in process()
DNotificationChannelExtractor.java34 public RankingReconsideration process(NotificationRecord record) { in process() argument
35 if (record == null || record.getNotification() == null) { in process()
45 record.updateNotificationChannel(mConfig.getNotificationChannel(record.sbn.getPackageName(), in process()
46 record.sbn.getUid(), record.getChannel().getId(), false)); in process()
/frameworks/base/core/java/android/view/accessibility/
DAccessibilityEvent.java820 AccessibilityRecord record = records.get(i); in setSealed() local
821 record.setSealed(sealed); in setSealed()
842 public void appendRecord(AccessibilityRecord record) { in appendRecord() argument
847 mRecords.add(record); in appendRecord()
1118 final AccessibilityRecord record = event.mRecords.get(i); in obtain() local
1119 final AccessibilityRecord recordClone = AccessibilityRecord.obtain(record); in obtain()
1171 AccessibilityRecord record = mRecords.remove(0); in clear() local
1172 record.recycle(); in clear()
1200 AccessibilityRecord record = AccessibilityRecord.obtain(); in initFromParcel() local
1201 readAccessibilityRecordFromParcel(record, parcel); in initFromParcel()
[all …]
DAccessibilityRecord.java795 public static AccessibilityRecord obtain(AccessibilityRecord record) { in obtain() argument
797 clone.init(record); in obtain()
810 AccessibilityRecord record = sPool; in obtain() local
813 record.mNext = null; in obtain()
814 record.mIsInPool = false; in obtain()
815 return record; in obtain()
848 void init(AccessibilityRecord record) { in init() argument
849 mSealed = record.mSealed; in init()
850 mBooleanProperties = record.mBooleanProperties; in init()
851 mCurrentItemIndex = record.mCurrentItemIndex; in init()
[all …]
/frameworks/base/telecomm/java/android/telecom/
DRemoteConnection.java754 for (CallbackRecord record : mCallbackRecords) { in unregisterCallback()
755 if (record.getCallback() == callback) { in unregisterCallback()
756 mCallbackRecords.remove(record); in unregisterCallback()
1183 for (CallbackRecord record: mCallbackRecords) { in setState()
1185 final Callback callback = record.getCallback(); in setState()
1186 record.getHandler().post(new Runnable() { in setState()
1204 for (CallbackRecord record : mCallbackRecords) { in setDisconnected()
1206 final Callback callback = record.getCallback(); in setDisconnected()
1207 record.getHandler().post(new Runnable() { in setDisconnected()
1223 for (CallbackRecord record : mCallbackRecords) { in setRingbackRequested()
[all …]
DRemoteConference.java167 for (CallbackRecord<Callback> record : mCallbackRecords) { in setDestroyed()
169 final Callback callback = record.getCallback(); in setDestroyed()
170 record.getHandler().post(new Runnable() { in setDestroyed()
192 for (CallbackRecord<Callback> record : mCallbackRecords) { in setState()
194 final Callback callback = record.getCallback(); in setState()
195 record.getHandler().post(new Runnable() { in setState()
210 for (CallbackRecord<Callback> record : mCallbackRecords) { in addConnection()
212 final Callback callback = record.getCallback(); in addConnection()
213 record.getHandler().post(new Runnable() { in addConnection()
228 for (CallbackRecord<Callback> record : mCallbackRecords) { in removeConnection()
[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/services/core/java/com/android/server/media/
DMediaSessionStack.java106 public void addSession(MediaSessionRecord record) { in addSession() argument
107 mSessions.add(record); in addSession()
108 clearCache(record.getUserId()); in addSession()
121 public void removeSession(MediaSessionRecord record) { in removeSession() argument
122 mSessions.remove(record); in removeSession()
123 if (mMediaButtonSession == record) { in removeSession()
129 clearCache(record.getUserId()); in removeSession()
135 public boolean contains(MediaSessionRecord record) { in contains() argument
136 return mSessions.contains(record); in contains()
146 for (MediaSessionRecord record : mSessions) { in getMediaSessionRecord()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/
DPackageDexUsageTests.java116 assertTrue(record(mFooBaseUser0)); in testRecordPrimary()
126 assertTrue(record(mFooSplit1User0)); in testRecordSplit()
136 assertTrue(record(mFooBaseUser0)); in testRecordSplitPrimarySequence()
138 assertFalse(record(mFooSplit1User0)); in testRecordSplitPrimarySequence()
146 assertTrue(record(mFooSplit2UsedByOtherApps0)); in testRecordSplitPrimarySequence()
154 assertTrue(record(mFooSecondary1User0)); in testRecordSecondary()
161 assertFalse(record(mFooSecondary1User0)); in testRecordSecondary()
168 assertTrue(record(mFooSplit2UsedByOtherApps0)); in testRecordBaseAndSecondarySequence()
170 assertTrue(record(mFooSecondary1User0)); in testRecordBaseAndSecondarySequence()
178 assertTrue(record(mFooSecondary2UsedByOtherApps0)); in testRecordBaseAndSecondarySequence()
[all …]
/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 …]
DProcrankParser.cpp32 record_t record; // retain each record in Parse() local
58 record = parseRecord(line); in Parse()
59 if (record.size() != header.size()) { in Parse()
60 if (record[record.size() - 1] == "TOTAL") { // TOTAL record in Parse()
70 for (int i=0; i<(int)record.size(); i++) { in Parse()
71 if (!table.insertField(&proto, header[i], record[i])) { in Parse()
73 this->name.string(), nline, header[i].c_str(), record[i].c_str()); in Parse()
82 record = parseRecord(total); in Parse()
84 for (int i=(int)record.size(); i>0; i--) { in Parse()
85 … table.insertField(&proto, header[header.size() - i].c_str(), record[record.size() - i].c_str()); in Parse()
DCpuInfoParser.cpp30 record_t record = parseRecord(line, delimiter); in writeSuffixLine() local
32 for (int i=0; i<(int)record.size(); i++) { in writeSuffixLine()
34 if (stripSuffix(&record[i], names[j], true)) { in writeSuffixLine()
35 proto->write(ids[j], toInt(record[i])); in writeSuffixLine()
50 record_t record; in Parse() local
130 record = parseRecordByColumns(line, columnIndices); in Parse()
131 diff = record.size() - header.size(); in Parse()
134 printRecord(record); in Parse()
138 printRecord(record); in Parse()
143 for (int i=0; i<(int)record.size(); i++) { in Parse()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
DCdmaInformationRecords.java22 public Object record; field in CdmaInformationRecords
40 record = obj; in CdmaInformationRecords()
44 record = obj; in CdmaInformationRecords()
48 record = obj; in CdmaInformationRecords()
52 record = obj; in CdmaInformationRecords()
56 record = obj; in CdmaInformationRecords()
60 record = obj; in CdmaInformationRecords()
64 record = obj; in CdmaInformationRecords()
72 record = new CdmaDisplayInfoRec(id, p.readString()); in CdmaInformationRecords()
78 record = new CdmaNumberInfoRec(id, p.readString(), p.readInt(), p.readInt(), in CdmaInformationRecords()
[all …]
/frameworks/native/services/vr/virtual_touchpad/tests/
DVirtualTouchpad_test.cpp91 EvdevInjectorForTesting() { SetUInputForTesting(&record); } in EvdevInjectorForTesting()
93 UInputRecorder record; member in android::dvr::__anonb6efdf4d0111::EvdevInjectorForTesting
172 EXPECT_EQ(expect.GetString(), touchpad->injector[t].record.GetString()); in TEST_F()
183 touchpad->injector[t].record.Reset(); in TEST_F()
186 EXPECT_EQ(expect.GetString(), touchpad->injector[t].record.GetString()); in TEST_F()
197 touchpad->injector[t].record.Reset(); in TEST_F()
200 EXPECT_EQ(expect.GetString(), touchpad->injector[t].record.GetString()); in TEST_F()
210 touchpad->injector[t].record.Reset(); in TEST_F()
213 EXPECT_EQ(expect.GetString(), touchpad->injector[t].record.GetString()); in TEST_F()
219 touchpad->injector[t].record.Reset(); in TEST_F()
[all …]
/frameworks/native/libs/vr/libbroadcastring/
Dbroadcast_ring_test.cc146 Record record; in TYPED_TEST() local
147 EXPECT_FALSE(ring.Get(&sequence, &record)); in TYPED_TEST()
149 EXPECT_EQ(Record(), record); in TYPED_TEST()
155 Record record; in TYPED_TEST() local
156 EXPECT_TRUE(ring.Get(&sequence, &record)); in TYPED_TEST()
158 EXPECT_EQ(original_record, record); in TYPED_TEST()
162 Record record; in TYPED_TEST() local
163 EXPECT_FALSE(ring.Get(&sequence, &record)); in TYPED_TEST()
165 EXPECT_EQ(Record(), record); in TYPED_TEST()
182 Record record; in TYPED_TEST() local
[all …]
/frameworks/base/media/java/android/media/tv/
DTvInputManager.java895 SessionCallbackRecord record = mSessionCallbackRecordMap.get(seq); in TvInputManager()
896 if (record == null) { in TvInputManager()
907 record.postSessionCreated(session); in TvInputManager()
914 SessionCallbackRecord record = mSessionCallbackRecordMap.get(seq); in TvInputManager()
916 if (record == null) { in TvInputManager()
920 record.mSession.releaseInternal(); in TvInputManager()
921 record.postSessionReleased(); in TvInputManager()
928 SessionCallbackRecord record = mSessionCallbackRecordMap.get(seq); in TvInputManager()
929 if (record == null) { in TvInputManager()
933 record.postChannelRetuned(channelUri); in TvInputManager()
[all …]

1234567