/frameworks/base/core/java/android/content/ |
D | UndoManager.java | 101 UndoOwner owner = mOwners.get(tag); in getOwner() local 102 if (owner != null) { in getOwner() 103 if (owner.mData != data) { in getOwner() 104 if (owner.mData != null) { in getOwner() 105 throw new IllegalStateException("Owner " + owner + " already exists with data " in getOwner() 106 + owner.mData + " but giving different data " + data); in getOwner() 108 owner.mData = data; in getOwner() 110 return owner; in getOwner() 113 owner = new UndoOwner(tag, this); in getOwner() 114 owner.mData = data; in getOwner() [all …]
|
D | UndoOperation.java | 40 public UndoOperation(UndoOwner owner) { in UndoOperation() argument 41 mOwner = owner; in UndoOperation() 71 public boolean matchOwner(UndoOwner owner) { in matchOwner() argument 72 return owner == getOwner(); in matchOwner()
|
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/create/ |
D | CreateInfo.java | 407 public boolean isNeeded(String owner, String name, String desc, String sourceClass) { in isNeeded() argument 408 return LINKED_HASH_MAP.equals(owner) && in isNeeded() 416 mi.owner = Type.getInternalName(LinkedHashMap_Delegate.class); in replace() 435 public boolean isNeeded(String owner, String name, String desc, String sourceClass) { in isNeeded() argument 436 return owner.equals("android/content/Context") && in isNeeded() 450 public boolean isNeeded(String owner, String name, String desc, String sourceClass) { in isNeeded() argument 451 … return Type.getInternalName(System.class).equals(owner) && name.equals("currentTimeMillis"); in isNeeded() 457 mi.owner = "com/android/internal/lang/System_Delegate"; in replace() 463 public boolean isNeeded(String owner, String name, String desc, String sourceClass) { in isNeeded() argument 464 return Type.getInternalName(System.class).equals(owner) && name.equals("nanoTime"); in isNeeded() [all …]
|
D | ReplaceMethodCallsAdapter.java | 55 public void visitMethodInsn(int opcode, String owner, String name, String desc, in visitMethodInsn() argument 58 if (replacer.isNeeded(owner, name, desc, mOriginalClassName)) { in visitMethodInsn() 59 MethodInformation mi = new MethodInformation(opcode, owner, name, desc); in visitMethodInsn() 62 owner = mi.owner; in visitMethodInsn() 68 super.visitMethodInsn(opcode, owner, name, desc, itf); in visitMethodInsn()
|
D | ICreateInfo.java | 140 boolean isNeeded(String owner, String name, String desc, String sourceClass); in isNeeded() argument 161 public String owner; field in ICreateInfo.MethodInformation 165 public MethodInformation(int opcode, String owner, String name, String desc) { in MethodInformation() argument 167 this.owner = owner; in MethodInformation()
|
D | AbstractClassAdapter.java | 190 public void visitOuterClass(String owner, String name, String desc) { in visitOuterClass() argument 191 super.visitOuterClass(renameInternalType(owner), name, renameTypeDesc(desc)); in visitOuterClass() 259 public void visitFieldInsn(int opcode, String owner, String name, String desc) { in visitFieldInsn() argument 260 owner = renameInternalType(owner); in visitFieldInsn() 263 super.visitFieldInsn(opcode, owner, name, desc); in visitFieldInsn() 267 public void visitMethodInsn(int opcode, String owner, String name, String desc, in visitMethodInsn() argument 270 if (owner.indexOf(';') > 0) { in visitMethodInsn() 271 owner = renameTypeDesc(owner); in visitMethodInsn() 273 owner = renameInternalType(owner); in visitMethodInsn() 277 super.visitMethodInsn(opcode, owner, name, desc, itf); in visitMethodInsn()
|
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/framework/common/ |
D | SettingsEntryBuilder.kt | 30 class SettingsEntryBuilder(private val name: String, private val owner: SettingsPage) { in <lambda>() constant in com.android.settingslib.spa.framework.common.SettingsEntryBuilder 48 val page = fromPage ?: owner in <lambda>() 51 id = genEntryId(name, owner, fromPage, toPage), in <lambda>() 53 owner = owner, in <lambda>() 138 fun create(entryName: String, owner: SettingsPage): SettingsEntryBuilder { in <lambda>() 139 return SettingsEntryBuilder(entryName, owner) in <lambda>() 142 fun createLinkFrom(entryName: String, owner: SettingsPage): SettingsEntryBuilder { in <lambda>() 143 return create(entryName, owner).setLink(fromPage = owner) in <lambda>() 146 fun createLinkTo(entryName: String, owner: SettingsPage): SettingsEntryBuilder { in <lambda>() 147 return create(entryName, owner).setLink(toPage = owner) in <lambda>() [all …]
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | CloseGuardTest.java | 47 ResourceOwner owner = new ResourceOwner(); in testEnabled_NotOpen() local 48 assertUnreleasedResources(owner, 0); in testEnabled_NotOpen() 53 ResourceOwner owner = new ResourceOwner(); in testEnabled_OpenNotClosed() local 54 owner.open(); in testEnabled_OpenNotClosed() 55 assertUnreleasedResources(owner, 1); in testEnabled_OpenNotClosed() 60 ResourceOwner owner = new ResourceOwner(); in testEnabled_OpenThenClosed() local 61 owner.open(); in testEnabled_OpenThenClosed() 62 owner.close(); in testEnabled_OpenThenClosed() 63 assertUnreleasedResources(owner, 0); in testEnabled_OpenThenClosed() 72 private void assertUnreleasedResources(ResourceOwner owner, int expectedCount) in assertUnreleasedResources() argument [all …]
|
/frameworks/base/packages/SettingsLib/Spa/tests/src/com/android/settingslib/spa/framework/common/ |
D | SettingsEntryTest.kt | 68 val owner = createSettingsPage("mySpp") in testBuildBasic() constant 69 val entry = SettingsEntryBuilder.create(owner, "myEntry").build() in testBuildBasic() 70 assertThat(entry.id).isEqualTo(genEntryId("myEntry", owner)) in testBuildBasic() 72 assertThat(entry.owner.sppName).isEqualTo("mySpp") in testBuildBasic() 73 assertThat(entry.owner.displayName).isEqualTo("mySpp") in testBuildBasic() 84 val owner = createSettingsPage("mySpp") in testBuildWithLink() constant 88 SettingsEntryBuilder.createLinkFrom("myEntry", owner).setLink(toPage = toPage).build() in testBuildWithLink() 89 assertThat(entryFrom.id).isEqualTo(genEntryId("myEntry", owner, owner, toPage)) in testBuildWithLink() 95 SettingsEntryBuilder.createLinkTo("myEntry", owner).setLink(fromPage = fromPage).build() in testBuildWithLink() 96 assertThat(entryTo.id).isEqualTo(genEntryId("myEntry", owner, fromPage, owner)) in testBuildWithLink() [all …]
|
/frameworks/base/packages/SettingsLib/Spa/gallery/src/com/android/settingslib/spa/gallery/home/ |
D | HomePageProvider.kt | 55 private val owner = createSettingsPage() constant 59 PreferenceMainPageProvider.buildInjectEntry().setLink(fromPage = owner).build(), in buildEntry() 60 OperateListPageProvider.buildInjectEntry().setLink(fromPage = owner).build(), in buildEntry() 61 ArgumentPageProvider.buildInjectEntry("foo")!!.setLink(fromPage = owner).build(), in buildEntry() 62 SearchScaffoldPageProvider.buildInjectEntry().setLink(fromPage = owner).build(), in buildEntry() 63 SuwScaffoldPageProvider.buildInjectEntry().setLink(fromPage = owner).build(), in buildEntry() 64 SliderPageProvider.buildInjectEntry().setLink(fromPage = owner).build(), in buildEntry() 65 SpinnerPageProvider.buildInjectEntry().setLink(fromPage = owner).build(), in buildEntry() 66 PagerMainPageProvider.buildInjectEntry().setLink(fromPage = owner).build(), in buildEntry() 67 FooterPageProvider.buildInjectEntry().setLink(fromPage = owner).build(), in buildEntry() [all …]
|
/frameworks/base/packages/SettingsLib/Spa/gallery/src/com/android/settingslib/spa/gallery/preference/ |
D | PreferenceMainPageProvider.kt | 32 private val owner = createSettingsPage() constant 36 PreferencePageProvider.buildInjectEntry().setLink(fromPage = owner).build(), in buildEntry() 37 SwitchPreferencePageProvider.buildInjectEntry().setLink(fromPage = owner).build(), in buildEntry() 38 MainSwitchPreferencePageProvider.buildInjectEntry().setLink(fromPage = owner).build(), in buildEntry() 39 ListPreferencePageProvider.buildInjectEntry().setLink(fromPage = owner).build(), in buildEntry() 41 .setLink(fromPage = owner).build(), in buildEntry() 46 return SettingsEntryBuilder.createInject(owner = owner) in buildInjectEntry()
|
/frameworks/base/services/core/java/com/android/server/uri/ |
D | UriPermission.java | 127 boolean grantModes(int modeFlags, @Nullable UriPermissionOwner owner) { in grantModes() argument 136 if (owner == null) { in grantModes() 140 addReadOwner(owner); in grantModes() 143 addWriteOwner(owner); in grantModes() 259 private void addReadOwner(UriPermissionOwner owner) { in addReadOwner() argument 265 if (mReadOwners.add(owner)) { in addReadOwner() 266 owner.addReadPermission(this); in addReadOwner() 273 void removeReadOwner(UriPermissionOwner owner) { in removeReadOwner() argument 274 if (mReadOwners == null || !mReadOwners.remove(owner)) { in removeReadOwner() 275 Slog.wtf(TAG, "Unknown read owner " + owner + " in " + this); in removeReadOwner() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | CallbackControllerTest.java | 48 LifecycleOwner owner = () -> lifecycle; in testAddCallback() local 55 controller.observe(owner, callback); in testAddCallback() 59 observer.getValue().onStateChanged(owner, Event.ON_RESUME); in testAddCallback() 66 LifecycleOwner owner = () -> lifecycle; in testRemoveCallback() local 73 controller.observe(owner, callback); in testRemoveCallback() 77 observer.getValue().onStateChanged(owner, Event.ON_PAUSE); in testRemoveCallback() 83 SimpleLifecycleOwner owner = new SimpleLifecycleOwner(); in testCallbackIsRemovedOnDestroy() local 87 controller.observe(owner, callback); in testCallbackIsRemovedOnDestroy() 89 owner.setState(Lifecycle.State.RESUMED); in testCallbackIsRemovedOnDestroy() 92 owner.setState(Lifecycle.State.DESTROYED); in testCallbackIsRemovedOnDestroy()
|
/frameworks/av/media/module/libmediatranscoding/ |
D | TranscodingClientManager.cpp | 86 const std::weak_ptr<TranscodingClientManager>& owner); 108 const std::string& opPackageName, const std::weak_ptr<TranscodingClientManager>& owner) in ClientImpl() argument 116 mOwner(owner) {} in ClientImpl() 123 std::shared_ptr<TranscodingClientManager> owner; in submitRequest() local 124 if (mAbandoned || (owner = mOwner.lock()) == nullptr) { in submitRequest() 143 } else if (in_clientUid != callingUid && !owner->isTrustedCaller(callingPid, callingUid)) { in submitRequest() 159 } else if (in_clientPid != callingPid && !owner->isTrustedCaller(callingPid, callingUid)) { in submitRequest() 171 *_aidl_return = owner->mSessionController->submit(mClientId, sessionId, callingUid, in submitRequest() 189 std::shared_ptr<TranscodingClientManager> owner; in cancelSession() local 190 if (mAbandoned || (owner = mOwner.lock()) == nullptr) { in cancelSession() [all …]
|
/frameworks/base/packages/SettingsLib/Spa/gallery/src/com/android/settingslib/spa/gallery/itemList/ |
D | OperateListPage.kt | 32 private val owner = createSettingsPage() constant 36 ItemListPageProvider.buildInjectEntry("opPiP")!!.setLink(fromPage = owner).build(), in buildEntry() 37 ItemListPageProvider.buildInjectEntry("opInstall")!!.setLink(fromPage = owner).build(), in buildEntry() 38 ItemListPageProvider.buildInjectEntry("opDnD")!!.setLink(fromPage = owner).build(), in buildEntry() 39 ItemListPageProvider.buildInjectEntry("opConnect")!!.setLink(fromPage = owner).build(), in buildEntry() 48 return SettingsEntryBuilder.createInject(owner = owner) in buildInjectEntry()
|
/frameworks/base/packages/SettingsLib/Spa/gallery/src/com/android/settingslib/spa/gallery/editor/ |
D | EditorMainPageProvider.kt | 32 private val owner = createSettingsPage() constant 36 SettingsOutlinedTextFieldPageProvider.buildInjectEntry().setLink(fromPage = owner) in buildEntry() 38 SettingsDropdownBoxPageProvider.buildInjectEntry().setLink(fromPage = owner) in buildEntry() 40 SettingsDropdownCheckBoxProvider.buildInjectEntry().setLink(fromPage = owner) in buildEntry() 42 SettingsTextFieldPasswordPageProvider.buildInjectEntry().setLink(fromPage = owner) in buildEntry() 48 return SettingsEntryBuilder.createInject(owner = owner) in buildInjectEntry()
|
/frameworks/base/packages/SettingsLib/Spa/tests/src/com/android/settingslib/spa/tests/testutils/ |
D | SpaEnvironmentForTest.kt | 90 val owner = this.createSettingsPage() in buildEntry() constant 92 SppLayer1.buildInject().setLink(fromPage = owner).build(), in buildEntry() 93 SppDialog.buildInject().setLink(fromPage = owner).build(), in buildEntry() 108 val owner = this.createSettingsPage() in buildEntry() constant 110 SppLayer1.buildInject().setLink(fromPage = owner).build(), in buildEntry() 133 val owner = this.createSettingsPage() in buildEntry() constant 135 SettingsEntryBuilder.create(owner, "Layer1Entry1").build(), in buildEntry() 136 SppLayer2.buildInject().setLink(fromPage = owner).build(), in buildEntry() 137 SettingsEntryBuilder.create(owner, "Layer1Entry2").build(), in buildEntry() 150 val owner = this.createSettingsPage() in buildEntry() constant [all …]
|
/frameworks/base/packages/SettingsLib/Spa/gallery/src/com/android/settingslib/spa/gallery/scaffold/ |
D | PagerMainPageProvider.kt | 29 private val owner = createSettingsPage() constant 33 NonScrollablePagerPageProvider.buildInjectEntry().setLink(fromPage = owner).build(), in buildEntry() 34 ScrollablePagerPageProvider.buildInjectEntry().setLink(fromPage = owner).build(), in buildEntry() 37 fun buildInjectEntry() = SettingsEntryBuilder.createInject(owner = owner) in buildEntry()
|
/frameworks/base/packages/SettingsLib/Spa/gallery/src/com/android/settingslib/spa/gallery/page/ |
D | ArgumentPage.kt | 43 private fun createEntry(owner: SettingsPage, entry: EntryEnum): SettingsEntryBuilder { in createEntry() 44 return SettingsEntryBuilder.create(owner, entry.name, entry.displayName) in createEntry() 54 val owner = createSettingsPage(arguments) in buildEntry() constant 57 createEntry(owner, EntryEnum.STRING_PARAM) in buildEntry() 68 createEntry(owner, EntryEnum.INT_PARAM) in buildEntry() 78 entryList.add(buildInjectEntry("foo")!!.setLink(fromPage = owner).build()) in buildEntry() 79 entryList.add(buildInjectEntry("bar")!!.setLink(fromPage = owner).build()) in buildEntry() 89 owner = createSettingsPage(arguments), in buildInjectEntry()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/policy/ |
D | PolicyRequestProcessor.kt | 93 updates.owner, in <lambda>() 101 updates.owner, in <lambda>() 124 owner = defaultOwner, in <lambda>() 132 owner: UserHandle, in <lambda>() 136 Log.i(TAG, "Capturing task snapshot: $componentName / $owner") in <lambda>() 141 userHandle = owner, in <lambda>() 151 owner: UserHandle?, in <lambda>() 155 Log.i(TAG, "Capturing screenshot: $componentName / $owner") in <lambda>() 160 userHandle = owner, in <lambda>()
|
/frameworks/base/packages/SettingsLib/Spa/gallery/src/com/android/settingslib/spa/gallery/ui/ |
D | CategoryPage.kt | 40 private val owner = createSettingsPage() constant 43 return SettingsEntryBuilder.createInject(owner) in buildInjectEntry() 60 SettingsEntryBuilder.create("Preference 1", owner) in buildEntry() 65 SettingsEntryBuilder.create("Preference 2", owner) in buildEntry() 70 SettingsEntryBuilder.create("Preference 3", owner) in buildEntry() 76 SettingsEntryBuilder.create("Preference 4", owner) in buildEntry()
|
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/face/aidl/ |
D | FaceInternalCleanupClient.java | 44 @NonNull Supplier<AidlSession> lazyDaemon, int userId, @NonNull String owner, in FaceInternalCleanupClient() argument 48 super(context, lazyDaemon, userId, owner, sensorId, logger, biometricContext, in FaceInternalCleanupClient() 54 Supplier<AidlSession> lazyDaemon, IBinder token, int userId, String owner, in getEnumerateClient() argument 57 return new FaceInternalEnumerateClient(context, lazyDaemon, token, userId, owner, in getEnumerateClient() 64 int biometricId, int userId, String owner, BiometricUtils<Face> utils, int sensorId, in getRemovalClient() argument 70 null /* ClientMonitorCallbackConverter */, new int[] {biometricId}, userId, owner, in getRemovalClient()
|
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/fingerprint/aidl/ |
D | FingerprintInternalCleanupClient.java | 47 int userId, @NonNull String owner, int sensorId, in FingerprintInternalCleanupClient() argument 50 super(context, lazyDaemon, userId, owner, sensorId, logger, biometricContext, in FingerprintInternalCleanupClient() 56 Supplier<AidlSession> lazyDaemon, IBinder token, int userId, String owner, in getEnumerateClient() argument 59 return new FingerprintInternalEnumerateClient(context, lazyDaemon, token, userId, owner, in getEnumerateClient() 68 String owner, BiometricUtils<Fingerprint> utils, int sensorId, in getRemovalClient() argument 72 null /* ClientMonitorCallbackConverter */, new int[] {biometricId}, userId, owner, in getRemovalClient()
|
/frameworks/wilhelm/src/ |
D | locks.cpp | 83 pthread_t owner = thiz->mOwner; in object_lock_exclusive_() local 85 pid_t ownerTid = LIKELY_VALID(owner) ? pthread_gettid_np(owner) : -1; in object_lock_exclusive_() 88 *(void **)&owner, ownerTid, thiz->mFile, thiz->mLine); in object_lock_exclusive_() 103 pthread_t owner = thiz->mOwner; in object_lock_exclusive_() local 104 pid_t ownerTid = LIKELY_VALID(owner) ? pthread_gettid_np(owner) : -1; in object_lock_exclusive_() 105 if (pthread_equal(pthread_self(), owner)) { in object_lock_exclusive_() 108 *(void **)&owner, ownerTid, thiz->mFile, thiz->mLine); in object_lock_exclusive_() 112 thiz, *(void **)&owner, ownerTid, thiz->mFile, thiz->mLine); in object_lock_exclusive_()
|
/frameworks/base/core/java/android/app/ |
D | AutomaticZenRule.java | 147 private ComponentName owner; field in AutomaticZenRule 186 public AutomaticZenRule(String name, ComponentName owner, Uri conditionId, in AutomaticZenRule() argument 188 this(name, owner, null, conditionId, null, interruptionFilter, enabled); in AutomaticZenRule() 218 public AutomaticZenRule(@NonNull String name, @Nullable ComponentName owner, in AutomaticZenRule() argument 222 this.owner = getTrimmedComponentName(owner); in AutomaticZenRule() 234 public AutomaticZenRule(String name, ComponentName owner, ComponentName configurationActivity, in AutomaticZenRule() argument 237 this(name, owner, configurationActivity, conditionId, policy, interruptionFilter, enabled); in AutomaticZenRule() 248 owner = getTrimmedComponentName( in AutomaticZenRule() 269 return owner; in getOwner() 540 dest.writeParcelable(owner, 0); in writeToParcel() [all …]
|