Home
last modified time | relevance | path

Searched refs:appType (Results 1 – 14 of 14) sorted by relevance

/packages/services/Car/service/src/com/android/car/
DAppFocusService.java68 public void registerFocusListener(IAppFocusListener listener, int appType) { in registerFocusListener() argument
73 Binder.getCallingPid(), appType); in registerFocusListener()
76 info.addAppType(appType); in registerFocusListener()
82 public void unregisterFocusListener(IAppFocusListener listener, int appType) { in unregisterFocusListener() argument
88 info.removeAppType(appType); in unregisterFocusListener()
103 public boolean isOwningFocus(IAppFocusOwnershipCallback callback, int appType) { in isOwningFocus() argument
110 return info.getOwnedAppTypes().contains(appType); in isOwningFocus()
115 public int requestAppFocus(IAppFocusOwnershipCallback callback, int appType) { in requestAppFocus() argument
125 if (!alreadyOwnedAppTypes.contains(appType)) { in requestAppFocus()
126 OwnershipClientInfo ownerInfo = mFocusOwners.get(appType); in requestAppFocus()
[all …]
/packages/services/Car/car-lib/src/android/car/
DCarAppFocusManager.java49 void onAppFocusChanged(@AppFocusType int appType, boolean active); in onAppFocusChanged() argument
63 void onAppFocusOwnershipLost(@AppFocusType int appType); in onAppFocusOwnershipLost() argument
72 void onAppFocusOwnershipGranted(@AppFocusType int appType); in onAppFocusOwnershipGranted() argument
136 public void addFocusListener(OnAppFocusChangedListener listener, @AppFocusType int appType) { in addFocusListener() argument
147 binder.addAppType(appType); in addFocusListener()
150 mService.registerFocusListener(binder, appType); in addFocusListener()
161 public void removeFocusListener(OnAppFocusChangedListener listener, @AppFocusType int appType) { in removeFocusListener() argument
170 mService.unregisterFocusListener(binder, appType); in removeFocusListener()
175 binder.removeAppType(appType); in removeFocusListener()
196 for (Integer appType : binder.getAppTypes()) { in removeFocusListener()
[all …]
DIAppFocus.aidl24 void registerFocusListener(IAppFocusListener callback, int appType) = 0; in registerFocusListener() argument
25 void unregisterFocusListener(IAppFocusListener callback, int appType) = 1; in unregisterFocusListener() argument
28 boolean isOwningFocus(IAppFocusOwnershipCallback callback, int appType) = 3; in isOwningFocus() argument
30 int requestAppFocus(IAppFocusOwnershipCallback callback, int appType) = 4; in requestAppFocus() argument
32 void abandonAppFocus(IAppFocusOwnershipCallback callback, int appType) = 5; in abandonAppFocus() argument
DIAppFocusOwnershipCallback.aidl21 void onAppFocusOwnershipLost(int appType) = 0; in onAppFocusOwnershipLost() argument
22 void onAppFocusOwnershipGranted(int appType) = 1; in onAppFocusOwnershipGranted() argument
DIAppFocusListener.aidl21 void onAppFocusChanged(int appType, boolean active) = 0; in onAppFocusChanged() argument
/packages/services/Car/tests/carservice_test/src/com/android/car/
DAppFocusTest.java71 public void onAppFocusChanged(int appType, boolean active) { in onAppFocusChanged() argument
72 Log.i(TAG, "onAppFocusChanged appType=" + appType + " active=" + active); in onAppFocusChanged()
73 mLastChangeAppType = appType; in onAppFocusChanged()
106 public void onAppFocusOwnershipLost(int appType) { in onAppFocusOwnershipLost() argument
107 Log.i(TAG, "onAppFocusOwnershipLost " + appType); in onAppFocusOwnershipLost()
108 mLastLossEvent = appType; in onAppFocusOwnershipLost()
113 public void onAppFocusOwnershipGranted(int appType) { in onAppFocusOwnershipGranted() argument
114 Log.i(TAG, "onAppFocusOwnershipGranted " + appType); in onAppFocusOwnershipGranted()
115 mLastGrantEvent = appType; in onAppFocusOwnershipGranted()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapAccountItem.java45 Drawable icon, BluetoothMapUtils.TYPE appType, String uci, String uciPrefix) { in BluetoothMapAccountItem() argument
51 this.mType = appType; in BluetoothMapAccountItem()
59 String authority, Drawable icon, BluetoothMapUtils.TYPE appType) { in create() argument
60 return new BluetoothMapAccountItem(id, name, packageName, authority, icon, appType, null, in create()
65 String authority, Drawable icon, BluetoothMapUtils.TYPE appType, String uci, in create() argument
67 return new BluetoothMapAccountItem(id, name, packageName, authority, icon, appType, uci, in create()
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarAppFocusManagerTest.java321 public void onAppFocusChanged(int appType, boolean active) { in onAppFocusChanged() argument
323 mLastChangeAppType = appType; in onAppFocusChanged()
355 public void onAppFocusOwnershipLost(int appType) { in onAppFocusOwnershipLost() argument
356 Log.i(TAG, "onAppFocusOwnershipLost " + appType); in onAppFocusOwnershipLost()
358 mLastLossEvent = appType; in onAppFocusOwnershipLost()
363 public void onAppFocusOwnershipGranted(int appType) { in onAppFocusOwnershipGranted() argument
364 Log.i(TAG, "onAppFocusOwnershipGranted " + appType); in onAppFocusOwnershipGranted()
365 mLastGrantEvent = appType; in onAppFocusOwnershipGranted()
DCarNavigationManagerTest.java128 public void onAppFocusChanged(int appType, boolean active) { in testSendEvent()
/packages/services/Car/service/src/com/android/car/cluster/
DInstrumentClusterService.java167 public void onFocusAcquired(int appType, int uid, int pid) { in onFocusAcquired() argument
168 changeNavContextOwner(appType, uid, pid, true); in onFocusAcquired()
172 public void onFocusAbandoned(int appType, int uid, int pid) { in onFocusAbandoned() argument
173 changeNavContextOwner(appType, uid, pid, false); in onFocusAbandoned()
176 private void changeNavContextOwner(int appType, int uid, int pid, boolean acquire) { in changeNavContextOwner() argument
177 if (appType != CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION) { in changeNavContextOwner()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/cluster/
DInstrumentClusterFragment.java95 public void onAppFocusOwnershipLost(@CarAppFocusManager.AppFocusType int appType) {
97 Log.d(TAG, "onAppFocusOwnershipLost, appType: " + appType);
105 @CarAppFocusManager.AppFocusType int appType) {
107 Log.d(TAG, "onAppFocusOwnershipGranted, appType: " + appType);
112 (appType, active) -> {
114 Log.d(TAG, "onAppFocusChanged, appType: " + appType + " active: " + active);
/packages/services/Telephony/src/com/android/phone/
DPhoneInterfaceManager.java957 Integer appType = (Integer) request.argument; in handleMessage() local
958 UiccCardApplication uiccApp = uiccCard.getApplicationByType(appType); in handleMessage()
961 + appType); in handleMessage()
967 + " specified type -- " + appType); in handleMessage()
3970 public String[] getForbiddenPlmns(int subId, int appType, String callingPackage) { in getForbiddenPlmns() argument
3978 if (appType != TelephonyManager.APPTYPE_USIM in getForbiddenPlmns()
3979 && appType != TelephonyManager.APPTYPE_SIM) { in getForbiddenPlmns()
3984 CMD_GET_FORBIDDEN_PLMNS, new Integer(appType), subId); in getForbiddenPlmns()
5799 public String getAidForAppType(int subId, int appType) { in getAidForAppType() argument
5811 .getApplicationByType(appType).getAid(); in getAidForAppType()
/packages/apps/Car/Cluster/src/android/car/cluster/
DClusterViewModel.java102 (appType, active) -> setNavigationFocus(active), in registerAppFocusListener()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/
DAudioTestFragment.java134 public void onAppFocusChanged(int appType, boolean active) { in connectCar()