Home
last modified time | relevance | path

Searched refs:association (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/services/companion/java/com/android/server/companion/
DCompanionDeviceManagerService.java252 for (AssociationInfo association : allAssociations) { in loadAssociationsFromDisk()
253 if (!association.isRevoked()) { in loadAssociationsFromDisk()
254 activeAssociations.add(association); in loadAssociationsFromDisk()
255 } else if (maybeRemoveRoleHolderForAssociation(association)) { in loadAssociationsFromDisk()
258 usersToPersistStateFor.add(association.getUserId()); in loadAssociationsFromDisk()
260 addToPendingRoleHolderRemoval(association); in loadAssociationsFromDisk()
307 final AssociationInfo association = mAssociationStore.getAssociationsForPackageWithAddress( in getAssociationWithCallerChecks() local
309 return sanitizeWithCallerChecks(getContext(), association); in getAssociationWithCallerChecks()
314 final AssociationInfo association = mAssociationStore.getAssociationById(associationId); in getAssociationWithCallerChecks() local
315 return sanitizeWithCallerChecks(getContext(), association); in getAssociationWithCallerChecks()
[all …]
DAssociationStoreImpl.java75 void addAssociation(@NonNull AssociationInfo association) { in addAssociation() argument
77 checkNotRevoked(association); in addAssociation()
79 final int id = association.getId(); in addAssociation()
82 Log.i(TAG, "addAssociation() " + association.toShortString()); in addAssociation()
83 Log.d(TAG, " association=" + association); in addAssociation()
91 mIdMap.put(id, association); in addAssociation()
93 final MacAddress address = association.getDeviceMacAddress(); in addAssociation()
98 invalidateCacheForUserLocked(association.getUserId()); in addAssociation()
101 broadcastChange(CHANGE_TYPE_ADDED, association); in addAssociation()
157 final AssociationInfo association; in removeAssociation() local
[all …]
DAssociationStore.java52 @ChangeType int changeType, AssociationInfo association) { in onAssociationChanged() argument
55 onAssociationAdded(association); in onAssociationChanged()
59 onAssociationRemoved(association); in onAssociationChanged()
63 onAssociationUpdated(association, true); in onAssociationChanged()
67 onAssociationUpdated(association, false); in onAssociationChanged()
72 default void onAssociationAdded(AssociationInfo association) {} in onAssociationAdded() argument
74 default void onAssociationRemoved(AssociationInfo association) {} in onAssociationRemoved() argument
76 default void onAssociationUpdated(AssociationInfo association, boolean addressChanged) {} in onAssociationUpdated() argument
DCompanionDeviceShellCommand.java55 for (AssociationInfo association : associationsForUser) { in onCommand()
58 out.println(association.getPackageName() + " " in onCommand()
59 + association.getDeviceMacAddress()); in onCommand()
76 final AssociationInfo association = in onCommand() local
78 if (association != null) { in onCommand()
79 mService.disassociateInternal(association.getId()); in onCommand()
DCompanionApplicationController.java194 void notifyCompanionApplicationDeviceAppeared(AssociationInfo association) { in notifyCompanionApplicationDeviceAppeared() argument
195 final int userId = association.getUserId(); in notifyCompanionApplicationDeviceAppeared()
196 final String packageName = association.getPackageName(); in notifyCompanionApplicationDeviceAppeared()
198 Log.i(TAG, "notifyDevice_Appeared() id=" + association.getId() + " u" + userId in notifyCompanionApplicationDeviceAppeared()
213 primaryServiceConnector.postOnDeviceAppeared(association); in notifyCompanionApplicationDeviceAppeared()
216 void notifyCompanionApplicationDeviceDisappeared(AssociationInfo association) { in notifyCompanionApplicationDeviceDisappeared() argument
217 final int userId = association.getUserId(); in notifyCompanionApplicationDeviceDisappeared()
218 final String packageName = association.getPackageName(); in notifyCompanionApplicationDeviceDisappeared()
220 Log.i(TAG, "notifyDevice_Disappeared() id=" + association.getId() + " u" + userId in notifyCompanionApplicationDeviceDisappeared()
235 primaryServiceConnector.postOnDeviceDisappeared(association); in notifyCompanionApplicationDeviceDisappeared()
DAssociationRequestsProcessor.java248 final AssociationInfo association = createAssociationAndNotifyApplication( in processAssociationRequestApproval() local
254 data.putParcelable(EXTRA_ASSOCIATION, association); in processAssociationRequestApproval()
261 final AssociationInfo association; in createAssociationAndNotifyApplication() local
264 association = mService.createAssociation(userId, packageName, macAddress, in createAssociationAndNotifyApplication()
271 callback.onAssociationCreated(association); in createAssociationAndNotifyApplication()
274 return association; in createAssociationAndNotifyApplication()
356 for (AssociationInfo association : associationForPackage) { in mayAssociateWithoutPrompt()
358 now - association.getTimeApprovedMs() < ASSOCIATE_WITHOUT_PROMPT_WINDOW_MS; in mayAssociateWithoutPrompt()
DPermissionsUtils.java195 @Nullable AssociationInfo association) { in sanitizeWithCallerChecks() argument
196 if (association == null) return null; in sanitizeWithCallerChecks()
198 final int userId = association.getUserId(); in sanitizeWithCallerChecks()
199 final String packageName = association.getPackageName(); in sanitizeWithCallerChecks()
204 return association; in sanitizeWithCallerChecks()
DPersistentDataStore.java211 for (AssociationInfo association : associationsForUser) { in readStateForUsers()
212 final int id = association.getId(); in readStateForUsers()
495 for (AssociationInfo association : associations) { in writeAssociations()
496 writeAssociation(serializer, association); in writeAssociations()
/frameworks/base/services/companion/java/com/android/server/companion/presence/
DBluetoothCompanionDeviceConnectionListener.java125 for (AssociationInfo association : associations) { in onDeviceConnectivityChanged()
126 final int id = association.getId(); in onDeviceConnectivityChanged()
136 public void onAssociationAdded(AssociationInfo association) { in onAssociationAdded() argument
137 if (DEBUG) Log.d(TAG, "onAssociation_Added() " + association); in onAssociationAdded()
139 if (mAllConnectedDevices.containsKey(association.getDeviceMacAddress())) { in onAssociationAdded()
140 mCallback.onBluetoothCompanionDeviceConnected(association.getId()); in onAssociationAdded()
145 public void onAssociationRemoved(AssociationInfo association) { in onAssociationRemoved() argument
151 public void onAssociationUpdated(AssociationInfo association, boolean addressChanged) { in onAssociationUpdated() argument
154 + " " + association); in onAssociationUpdated()
DBleCompanionDeviceScanner.java144 public void onAssociationChanged(@ChangeType int changeType, AssociationInfo association) { in onAssociationChanged() argument
204 for (AssociationInfo association : mAssociationStore.getAssociations()) { in startScan()
205 if (!association.isNotifyOnDeviceNearby()) continue; in startScan()
209 final String macAddress = association.getDeviceMacAddressAsString(); in startScan()
279 for (AssociationInfo association : associations) { in notifyDeviceFound()
280 mCallback.onBleCompanionDeviceFound(association.getId()); in notifyDeviceFound()
292 for (AssociationInfo association : associations) { in notifyDeviceLost()
293 mCallback.onBleCompanionDeviceLost(association.getId()); in notifyDeviceLost()
DCompanionDevicePresenceMonitor.java274 public void onAssociationRemoved(@NonNull AssociationInfo association) { in onAssociationRemoved() argument
275 final int id = association.getId(); in onAssociationRemoved()
278 Log.d(TAG, " > association=" + association); in onAssociationRemoved()
/frameworks/base/services/core/java/com/android/server/am/
DContentProviderConnection.java39 public AssociationState.SourceState association; field in ContentProviderConnection
79 && association == null && provider.proc != null in startAssociationIfNeeded()
93 association = holder.pkg.getAssociationStateLocked(holder.state, in startAssociationIfNeeded()
105 if (association != null) { in trackProcState()
107 association.trackProcState(procState, seq, SystemClock.uptimeMillis()); in trackProcState()
113 if (association != null) { in stopAssociation()
115 association.stop(); in stopAssociation()
117 association = null; in stopAssociation()
DConnectionRecord.java50 public AssociationState.SourceState association; // Association tracking field in ConnectionRecord
140 && association == null && binding.service.app != null in startAssociationIfNeeded()
154 association = holder.pkg.getAssociationStateLocked(holder.state, in startAssociationIfNeeded()
163 if (association != null) { in trackProcState()
165 association.trackProcState(procState, seq, SystemClock.uptimeMillis()); in trackProcState()
171 if (association != null) { in stopAssociation()
173 association.stop(); in stopAssociation()
175 association = null; in stopAssociation()
/frameworks/base/core/proto/android/service/
Dprocstats.proto178 // each entry here is one association.
193 // Total count of the times this association appeared.
196 // Uptime total duration in seconds this association was around.
250 // Total count of the times this association appeared.
253 // Millisecond uptime total duration this association was around.
256 // Total count of the times this association became actively impacting its target process.
259 // Information on one source in this association.
280 // Total count of the times this association appeared.
283 // Millisecond uptime total duration this association was around.
286 // Total count of the times this association became actively impacting its target process.
[all …]
/frameworks/base/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/
DCompanionDeviceActivity.java341 private void onAssociationCreated(@NonNull AssociationInfo association) { in onAssociationCreated() argument
342 if (DEBUG) Log.i(TAG, "onAssociationCreated(), association=" + association); in onAssociationCreated()
345 setResultAndFinish(association, RESULT_OK); in onAssociationCreated()
390 private void setResultAndFinish(@Nullable AssociationInfo association, int resultCode) { in setResultAndFinish() argument
391 if (DEBUG) Log.i(TAG, "setResultAndFinish(), association=" + association); in setResultAndFinish()
394 if (association != null) { in setResultAndFinish()
395 data.putExtra(CompanionDeviceManager.EXTRA_ASSOCIATION, association); in setResultAndFinish()
396 if (!association.isSelfManaged()) { in setResultAndFinish()
634 final AssociationInfo association = data.getParcelable(EXTRA_ASSOCIATION);
635 requireNonNull(association);
[all …]
/frameworks/av/media/extractors/mp4/include/
DItemTable.h98 void attachProperty(const AssociationEntry &association);
/frameworks/base/core/java/android/companion/
DCompanionDeviceManager.java911 public void onAssociationCreated(@NonNull AssociationInfo association) { in onAssociationCreated() argument
912 execute(mCallback::onAssociationCreated, association); in onAssociationCreated()
/frameworks/av/media/extractors/mp4/
DItemTable.cpp1524 void ItemTable::attachProperty(const AssociationEntry &association) { in attachProperty() argument
1525 ssize_t itemIndex = mItemIdToItemMap.indexOfKey(association.itemId); in attachProperty()
1532 uint16_t propertyIndex = association.index; in attachProperty()
1539 propertyIndex, association.itemId); in attachProperty()
/frameworks/proto_logging/stats/
Datoms.proto1168 * Logs association between processes.
1192 // Number of times this association was established.
8430 // each entry here is one association.
8445 // Total count of the times this association (service binding) appeared.
8448 // Uptime total duration in seconds this association (service binding) was around.
8490 // Total count of the times this association appeared.
8493 // Millisecond uptime total duration this association was around.
8496 // Total count of the times this association became actively impacting its target process.
8499 // Information on one source in this association.
8514 // Information on one source in this association.
[all …]