Home
last modified time | relevance | path

Searched refs:getComponent (Results 1 – 25 of 161) sorted by relevance

1234567

/packages/apps/Settings/src/com/android/settings/applications/specialaccess/deviceadmin/
DDeviceAdminAdd.java421 && mDeviceAdmin.getComponent().equals(mDPM.getProfileOwner())) { in onCreate()
444 mDPM.getRemoveWarning(mDeviceAdmin.getComponent(), in onCreate()
471 && mDeviceAdmin.getComponent().equals(mDPM.getProfileOwner())) { in showPolicyTransparencyDialogIfRequired()
496 logSpecialPermissionChange(true, mDeviceAdmin.getComponent().getPackageName()); in addAndFinish()
497 mDPM.setActiveAdmin(mDeviceAdmin.getComponent(), mRefreshing); in addAndFinish()
508 + mDeviceAdmin.getComponent(), e); in addAndFinish()
509 if (mDPM.isAdminActive(mDeviceAdmin.getComponent())) { in addAndFinish()
515 mDPM.setProfileOwner(mDeviceAdmin.getComponent(), in addAndFinish()
526 final String packageName = mDeviceAdmin.getComponent().getPackageName(); in unrestrictAppIfPossible()
540 logSpecialPermissionChange(false, mDeviceAdmin.getComponent().getPackageName()); in continueRemoveAction()
[all …]
DDeviceAdminListItem.java44 mKey = mUserHandle.getIdentifier() + "@" + mInfo.getComponent().flattenToString(); in DeviceAdminListItem()
74 return mDPM.isAdminActiveAsUser(mInfo.getComponent(), getUserIdFromDeviceAdminInfo(mInfo)); in isActive()
82 return !mDPM.isRemovingAdmin(mInfo.getComponent(), getUserIdFromDeviceAdminInfo(mInfo)); in isEnabled()
91 .putExtra(DevicePolicyManager.EXTRA_DEVICE_ADMIN, mInfo.getComponent()); in getLaunchIntent()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/deviceadmin/
DDeviceAdminAdd.java292 logSpecialPermissionChange(true, mDeviceAdmin.getComponent().getPackageName()); in addAndFinish()
293 mDPM.setActiveAdmin(mDeviceAdmin.getComponent(), mRefreshing); in addAndFinish()
302 + mDeviceAdmin.getComponent(), e); in addAndFinish()
303 if (mDPM.isAdminActive(mDeviceAdmin.getComponent())) { in addAndFinish()
309 mDPM.setProfileOwner(mDeviceAdmin.getComponent(), in addAndFinish()
425 mDPM.getRemoveWarning(mDeviceAdmin.getComponent(), in createAddDeviceAdminUi()
467 && mDPM.isAdminActive(mDeviceAdmin.getComponent())) { in updateInterface()
470 mDeviceAdmin.getComponent().equals(mDPM.getProfileOwner()); in updateInterface()
484 } else if (isProfileOwner || mDeviceAdmin.getComponent().equals( in updateInterface()
509 mDeviceAdmin.getComponent(), UserHandle.myUserId()); in updateInterface()
[all …]
DDeviceAdminListItem.java49 mKey = mUserHandle.getIdentifier() + "@" + mInfo.getComponent().flattenToString(); in DeviceAdminListItem()
79 return mDPM.isAdminActiveAsUser(mInfo.getComponent(), getUserIdFromDeviceAdminInfo(mInfo)); in isActive()
87 return !mDPM.isRemovingAdmin(mInfo.getComponent(), getUserIdFromDeviceAdminInfo(mInfo)); in isEnabled()
96 .putExtra(DevicePolicyManager.EXTRA_DEVICE_ADMIN, mInfo.getComponent()); in getLaunchIntent()
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DRegisteredAidCache.java85 "service=" + service.getComponent() + in toString()
233 return service.equals(resolveInfo.defaultService.getComponent()); in isDefaultServiceForAid()
235 return service.equals(resolveInfo.services.get(0).getComponent()); in isDefaultServiceForAid()
268 if (serviceAidInfo.service.getComponent().equals(mPreferredForegroundService)) { in resolveAidConflictLocked()
274 } else if (serviceAidInfo.service.getComponent().equals(mPreferredPaymentService) && in resolveAidConflictLocked()
285 serviceAidInfo.service.getComponent() + in resolveAidConflictLocked()
307 resolveInfo.services.get(0).getComponent() + " default."); in resolveAidConflictLocked()
328 if (serviceAidInfo.service.getComponent().equals(mPreferredForegroundService)) { in findDefaultServices()
330 } else if (serviceAidInfo.service.getComponent().equals(mPreferredPaymentService) && in findDefaultServices()
353 aidDefaultInfo.foregroundDefault.service.getComponent() + " has foreground" + in resolveAidConflictLocked()
[all …]
DRegisteredNfcFServicesCache.java191 if (service.getComponent().equals(componentName)) return true; in containsServiceLocked()
316 userServices.services.put(service.getComponent(), service); in invalidateCache()
317 if (DBG) Log.d(TAG, "Added service: " + service.getComponent()); in invalidateCache()
320 userServices.services.remove(service.getComponent()); in invalidateCache()
321 if (DBG) Log.d(TAG, "Removed service: " + service.getComponent()); in invalidateCache()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DGLView.java132 public GLView getComponent(int index) { in getComponent() method in GLView
236 renderChild(canvas, getComponent(i)); in render()
333 GLView component = getComponent(i); in dispatchTouchEvent()
424 GLView child = getComponent(i); in onVisibilityChanged()
434 getComponent(i).onAttachToRoot(root); in onAttachToRoot()
440 getComponent(i).onDetachFromRoot(); in onDetachFromRoot()
462 getComponent(i).dumpTree(prefix + "...."); in dumpTree()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DInCallControllerTests.java356 assertEquals(SYS_PKG, bindIntent.getComponent().getPackageName()); in testBindToService_NoServicesFound_IncomingCall()
357 assertEquals(SYS_CLASS, bindIntent.getComponent().getClassName()); in testBindToService_NoServicesFound_IncomingCall()
391 assertEquals(SYS_PKG, bindIntent.getComponent().getPackageName()); in testBindToService_NoServicesFound_OutgoingCall()
392 assertEquals(SYS_CLASS, bindIntent.getComponent().getClassName()); in testBindToService_NoServicesFound_OutgoingCall()
444 assertEquals(DEF_PKG, bindIntent.getComponent().getPackageName()); in testBindToService_DefaultDialer_NoEmergency()
445 assertEquals(DEF_CLASS, bindIntent.getComponent().getClassName()); in testBindToService_DefaultDialer_NoEmergency()
504 assertEquals(SYS_PKG, bindIntent.getComponent().getPackageName()); in testBindToService_SystemDialer_Emergency()
505 assertEquals(SYS_CLASS, bindIntent.getComponent().getClassName()); in testBindToService_SystemDialer_Emergency()
583 assertEquals(SYS_PKG, bindIntent.getComponent().getPackageName()); in testBindToService_SystemDialer_Crash()
584 assertEquals(SYS_CLASS, bindIntent.getComponent().getClassName()); in testBindToService_SystemDialer_Crash()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/icons/
DComponentWithLabel.java27 ComponentName getComponent(); in getComponent() method
45 public ComponentName getComponent(T object) { in getComponent() method in ComponentWithLabel.ComponentCachingLogic
46 return object.getComponent(); in getComponent()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DOverviewComponentObserver.java94 mFallbackIntent.getComponent(), 0 /* flags */); in OverviewComponentObserver()
134 mIsDefaultHome = Objects.equals(mMyHomeIntent.getComponent(), defaultHome); in updateOverviewTargets()
146 defaultHome = mMyHomeIntent.getComponent(); in updateOverviewTargets()
155 mCurrentHomeIntent.setComponent(mMyHomeIntent.getComponent()); in updateOverviewTargets()
/packages/apps/Messaging/tests/src/com/android/messaging/
DFakeContext.java70 } else if (intent.getComponent() != null && in startService()
71 intent.getComponent().getClassName().equals(mService.getServiceClassName())) { in startService()
80 return new ComponentName(this, intent.getComponent().getClassName()); in startService()
/packages/apps/Settings/tests/robotests/src/com/android/settings/password/
DChooseLockSettingsHelperTest.java56 startedIntent.getComponent()); in testLaunchConfirmationActivityWithExternal()
88 startedIntent.getComponent()); in testLaunchConfirmationActivityInternal()
140 startedIntent.getComponent()); in launchConfirmPattern_ForceVerify_shouldLaunchInternalActivity()
160 startedIntent.getComponent()); in launchConfirmPassword_ForceVerify_shouldLaunchInternalActivity()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/pm/
DVendorServiceInfoTest.java63 assertThat(info.getIntent().getComponent()) in testServiceNameWithDefaults()
77 assertThat(info.getIntent().getComponent()) in startService()
144 assertThat(info.getIntent().getComponent()) in allArgs()
DVendorServiceControllerTest.java208 assertWithMessage("Wrong component %s", action).that(intents.get(0).getComponent()) in assertHasService()
249 return service.getComponent(); in startServiceAsUser()
259 conn.onServiceConnected(service.getComponent(), null); in bindServiceAsUser()
299 String serviceName = service.getComponent().flattenToShortString(); in countdown()
/packages/apps/Settings/tests/robotests/src/com/android/settings/biometrics/fingerprint/
DFingerprintEnrollFindSensorTest.java97 assertThat(startedActivity.intent.getComponent()) in enrollFingerprint_shouldProceed()
112 assertThat(startedActivity.intent.getComponent()) in enrollFingerprintTwice_shouldStartOneEnrolling()
134 assertThat(startedActivity.intent.getComponent()) in layoutWithoutAnimation_shouldNotCrash()
/packages/apps/Car/Settings/src/com/android/car/settings/enterprise/
DDeviceAdminAddActionPreferenceController.java66 ComponentName admin = mDeviceAdminInfo.getComponent(); in handlePreferenceClicked()
82 ComponentName admin = mDeviceAdminInfo.getComponent(); in setIsActive()
/packages/apps/Settings/src/com/android/settings/dashboard/
DCategoryManager.java102 if (tileDenylist.contains(tile.getIntent().getComponent())) { in updateCategoryFromDenylist()
119 result.put(tile.getIntent().getComponent(), tile); in getTileByComponentMap()
247 final ComponentName tileComponent = tile.getIntent().getComponent(); in filterDuplicateTiles()
DDashboardFeatureProviderImpl.java119 final ComponentName component = tile.getIntent().getComponent(); in getDashboardKeyForTile()
179 skipOffsetPackageName, tile.getIntent().getComponent().getPackageName()); in bindPreferenceToTileAndGetObservers()
373 } else if (intent.getComponent() != null) {
374 packageName = intent.getComponent().getPackageName();
/packages/apps/Launcher3/src/com/android/launcher3/provider/
DImportDataTask.java249 if (intent.getComponent() != null) { in importWorkspaceItems()
250 intent.setPackage(intent.getComponent().getPackageName()); in importWorkspaceItems()
306 return intent.getComponent() != null ? intent.getComponent().getPackageName() in getPackage()
/packages/apps/Dialer/java/com/android/dialer/calldetails/
DOldCallDetailsActivity.java45 return intent.getComponent() != null in isLaunchIntent()
46 && OldCallDetailsActivity.class.getName().equals(intent.getComponent().getClassName()); in isLaunchIntent()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DAppSettingPreferenceControllerTest.java111 assertThat(Shadows.shadowOf(mActivity).getNextStartedActivity().getComponent()) in clickPreference_hasAppSetting_shouldLaunchIntent()
112 .isEqualTo(TEST_INTENT.getComponent()); in clickPreference_hasAppSetting_shouldLaunchIntent()
/packages/apps/Settings/src/com/android/settings/backup/
DUserBackupSettingsActivity.java70 intent.getComponent(), in onCreate()
74 Log.w(TAG, "Trying to enable activity " + intent.getComponent() + " but couldn't: " in onCreate()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DMobileNetworkSummaryControllerTest.java162 assertThat(intent.getComponent().getClassName()).isEqualTo( in getSummary_oneSubscription_correctSummaryAndClickHandler()
206 assertThat(intent.getComponent().getClassName()).isEqualTo( in getSummary_oneInactivePSim_canDisablePsim_correctSummaryAndClickHandler()
253 assertThat(intentCaptor.getValue().getComponent().getClassName()).isEqualTo( in getSummaryAfterUpdate_twoSubscriptionsBecomesOne_correctSummaryAndFragment()
277 assertThat(intentCaptor.getValue().getComponent().getClassName()).isEqualTo( in getSummaryAfterUpdate_oneSubscriptionBecomesTwo_correctSummaryAndFragment()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DItemInstallQueue.java358 return intent.getComponent() == null in getIntentPackage()
359 ? intent.getPackage() : intent.getComponent().getPackageName(); in getIntentPackage()
380 if (info == null || !info.provider.equals(intent.getComponent()) in decode()
/packages/apps/Settings/tests/unit/src/com/android/settings/enterprise/
DActionDisabledLearnMoreButtonLauncherImplTest.java121 assertThat(intent.getComponent().getClassName()) in assertDeviceAdminSettingsActivity()
126 assertThat(intent.getComponent().getClassName()) in assertDeviceAdminAddIntent()

1234567