/frameworks/base/tests/SoundTriggerTestApp/src/com/android/test/soundtrigger/ |
D | SoundTriggerUtil.java | 85 public GenericSoundModel getSoundModel(UUID modelId) { in getSoundModel() argument 88 model = mSoundTriggerService.getSoundModel(new ParcelUuid(modelId)); in getSoundModel() 108 public boolean deleteSoundModel(UUID modelId) { in deleteSoundModel() argument 110 mSoundTriggerService.deleteSoundModel(new ParcelUuid(modelId)); in deleteSoundModel() 117 public void deleteSoundModelUsingManager(UUID modelId) { in deleteSoundModelUsingManager() argument 118 mSoundTriggerManager.deleteModel(modelId); in deleteSoundModelUsingManager() 121 public SoundTriggerDetector createSoundTriggerDetector(UUID modelId, in createSoundTriggerDetector() argument 123 return mSoundTriggerManager.createSoundTriggerDetector(modelId, callback, null); in createSoundTriggerDetector()
|
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/ |
D | SoundTriggerHelper.java | 138 int startGenericRecognition(UUID modelId, GenericSoundModel soundModel, in startGenericRecognition() argument 141 if (modelId == null || soundModel == null || callback == null || in startGenericRecognition() 148 ModelData modelData = getOrCreateGenericModelDataLocked(modelId); in startGenericRecognition() 336 int stopGenericRecognition(UUID modelId, IRecognitionStatusCallback callback) { in stopGenericRecognition() argument 339 if (callback == null || modelId == null) { in stopGenericRecognition() 341 modelId); in stopGenericRecognition() 345 ModelData modelData = mModelDataMap.get(modelId); in stopGenericRecognition() 347 Slog.w(TAG, "Attempting stopRecognition on invalid model with id:" + modelId); in stopGenericRecognition() 517 int unloadGenericSoundModel(UUID modelId) { in unloadGenericSoundModel() argument 520 if (modelId == null || mModule == null) { in unloadGenericSoundModel() [all …]
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/ |
D | ModelBackedDocumentsAdapter.java | 113 String modelId = mModelIds.get(position); in onBindViewHolder() local 114 Cursor cursor = mEnv.getModel().getItem(modelId); in onBindViewHolder() 115 holder.bind(cursor, modelId, mEnv.getDisplayState()); in onBindViewHolder() 121 boolean selected = mEnv.isSelected(modelId); in onBindViewHolder() 126 holder.setSelected(mEnv.isSelected(modelId), false); in onBindViewHolder()
|
D | GridDirectoryHolder.java | 64 public void bind(Cursor cursor, String modelId, State state) { in bind() argument 67 this.modelId = modelId; in bind()
|
D | Model.java | 368 public @Nullable Cursor getItem(String modelId) { in getItem() argument 369 Integer pos = mPositions.get(modelId); in getItem() 371 if (DEBUG) Log.d(TAG, "Unabled to find cursor position for modelId: " + modelId); in getItem() 377 "Unabled to move cursor to position " + pos + " for modelId: " + modelId); in getItem() 396 for (String modelId: items.getAll()) { in getDocuments() 397 final Cursor cursor = getItem(modelId); in getDocuments() 400 "Skipping document. Unabled to obtain cursor for modelId: " + modelId); in getDocuments()
|
D | DocumentsAdapter.java | 91 String modelId = getModelIds().get(position); in isDirectory() local 92 Cursor cursor = model.getItem(modelId); in isDirectory()
|
D | DirectoryFragment.java | 477 public boolean onBeforeItemStateChange(String modelId, boolean selected) { in onBeforeItemStateChange() argument 479 final Cursor cursor = mModel.getItem(modelId); in onBeforeItemStateChange() 481 Log.w(TAG, "Can't obtain cursor for modelId: " + modelId); in onBeforeItemStateChange() 504 public void onItemStateChanged(String modelId, boolean selected) { in onItemStateChanged() argument 505 final Cursor cursor = mModel.getItem(modelId); in onItemStateChanged() 507 Log.w(TAG, "Model returned null cursor for document: " + modelId in onItemStateChanged() 1312 return ((DocumentHolder) vh).modelId; in getModelId() 1329 return ((DocumentHolder) vh).modelId; in getModelId() 1336 String modelId = getModelId(currentItemView); in getDraggableDocuments() local 1337 if (modelId == null) { in getDraggableDocuments() [all …]
|
D | GridDocumentHolder.java | 116 public void bind(Cursor cursor, String modelId, State state) { in bind() argument 119 this.modelId = modelId; in bind()
|
D | ListDocumentHolder.java | 112 public void bind(Cursor cursor, String modelId, State state) { in bind() argument 115 this.modelId = modelId; in bind()
|
D | DocumentHolder.java | 41 public @Nullable String modelId; field in DocumentHolder 75 public abstract void bind(Cursor cursor, String modelId, State state); in bind() argument
|
D | FocusManager.java | 479 String modelId = mAdapter.getModelId(i); in buildIndex() local 480 Cursor cursor = mModel.getItem(modelId); in buildIndex() 481 if (modelId != null && cursor != null) { in buildIndex()
|
D | MultiSelectManager.java | 363 public void toggleSelection(String modelId) { in toggleSelection() argument 364 assert(modelId != null); in toggleSelection() 367 if (mSelection.contains(modelId)) { in toggleSelection() 368 changed = attemptDeselect(modelId); in toggleSelection() 370 changed = attemptSelect(modelId); in toggleSelection() 471 private boolean selectAndNotify(String modelId) { in selectAndNotify() argument 472 boolean changed = mSelection.add(modelId); in selectAndNotify() 474 notifyItemStateChanged(modelId, true); in selectAndNotify()
|
D | SectionBreakDocumentsAdapterWrapper.java | 242 public void bind(Cursor cursor, String modelId, State state) {
|
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/dirlist/ |
D | MultiSelectManagerTest.java | 385 public void onItemStateChanged(String modelId, boolean selected) {} in onItemStateChanged() argument 388 public boolean onBeforeItemStateChange(String modelId, boolean selected) { in onBeforeItemStateChange() argument 389 return !ignored.contains(modelId); in onBeforeItemStateChange()
|
D | DocumentHolderTest.java | 45 public void bind(Cursor cursor, String modelId, State state) {} in setUp()
|