Home
last modified time | relevance | path

Searched refs:isAvailable (Results 1 – 25 of 139) sorted by relevance

123456

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
DUsimServiceTableTest.java40 assertFalse(testTable1.isAvailable(UsimServiceTable.UsimService.PHONEBOOK)); in testUsimServiceTable()
41 assertFalse(testTable1.isAvailable(UsimServiceTable.UsimService.FDN)); in testUsimServiceTable()
42 assertFalse(testTable1.isAvailable(UsimServiceTable.UsimService.NAS_CONFIG_BY_USIM)); in testUsimServiceTable()
45 assertTrue(testTable2.isAvailable(UsimServiceTable.UsimService.PHONEBOOK)); in testUsimServiceTable()
46 assertFalse(testTable2.isAvailable(UsimServiceTable.UsimService.FDN)); in testUsimServiceTable()
47 assertFalse(testTable2.isAvailable(UsimServiceTable.UsimService.NAS_CONFIG_BY_USIM)); in testUsimServiceTable()
50 assertFalse(testTable3.isAvailable(UsimServiceTable.UsimService.PHONEBOOK)); in testUsimServiceTable()
51 assertFalse(testTable3.isAvailable(UsimServiceTable.UsimService.BDN_EXTENSION)); in testUsimServiceTable()
52 assertTrue(testTable3.isAvailable(UsimServiceTable.UsimService.OUTGOING_CALL_INFO)); in testUsimServiceTable()
53 assertFalse(testTable3.isAvailable(UsimServiceTable.UsimService.INCOMING_CALL_INFO)); in testUsimServiceTable()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DIccServiceTableTest.java41 public boolean isAvailable(TestIccService service) { in isAvailable() method in IccServiceTableTest.TestIccServiceTable
42 return super.isAvailable(service.ordinal()); in isAvailable()
64 assertFalse(testTable1.isAvailable(TestIccServiceTable.TestIccService.SERVICE1)); in testIccServiceTable()
65 assertFalse(testTable1.isAvailable(TestIccServiceTable.TestIccService.SERVICE2)); in testIccServiceTable()
66 assertFalse(testTable1.isAvailable(TestIccServiceTable.TestIccService.SERVICE3)); in testIccServiceTable()
67 assertFalse(testTable1.isAvailable(TestIccServiceTable.TestIccService.SERVICE4)); in testIccServiceTable()
70 assertTrue(testTable2.isAvailable(TestIccServiceTable.TestIccService.SERVICE1)); in testIccServiceTable()
71 assertFalse(testTable2.isAvailable(TestIccServiceTable.TestIccService.SERVICE2)); in testIccServiceTable()
72 assertFalse(testTable2.isAvailable(TestIccServiceTable.TestIccService.SERVICE3)); in testIccServiceTable()
73 assertFalse(testTable2.isAvailable(TestIccServiceTable.TestIccService.SERVICE4)); in testIccServiceTable()
[all …]
/frameworks/base/core/java/android/net/
DEthernetManager.java52 boolean isAvailable = (msg.arg1 == 1);
54 listener.onAvailabilityChanged((String) msg.obj, isAvailable);
63 public void onAvailabilityChanged(String iface, boolean isAvailable) {
65 MSG_AVAILABILITY_CHANGED, isAvailable ? 1 : 0, 0, iface).sendToTarget();
81 void onAvailabilityChanged(String iface, boolean isAvailable); in onAvailabilityChanged() argument
128 public boolean isAvailable() { in isAvailable() method in EthernetManager
139 public boolean isAvailable(String iface) { in isAvailable() method in EthernetManager
141 return mService.isAvailable(iface); in isAvailable()
DIEthernetServiceListener.aidl22 void onAvailabilityChanged(String iface, boolean isAvailable); in onAvailabilityChanged() argument
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/core/
DAbstractPreferenceControllerTest.java59 mTestPrefController.isAvailable = true; in displayPref_ifAvailable()
68 mTestPrefController.isAvailable = true; in displayPref_noKey_shouldDoNothing()
91 mTestPrefController.isAvailable = false; in doNotDisplayPref_ifNotAvailable()
108 public boolean isAvailable; field in AbstractPreferenceControllerTest.TestPrefController
122 public boolean isAvailable() { in isAvailable() method in AbstractPreferenceControllerTest.TestPrefController
123 return isAvailable; in isAvailable()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/development/
DDeveloperOptionsPreferenceController.java46 public boolean isAvailable() { in isAvailable() method in DeveloperOptionsPreferenceController
60 if (isAvailable()) { in onDeveloperOptionsEnabled()
69 if (isAvailable()) { in onDeveloperOptionsDisabled()
DAbstractEnableAdbPreferenceController.java56 if (isAvailable()) { in displayPreference()
62 public boolean isAvailable() { in isAvailable() method in AbstractEnableAdbPreferenceController
83 if (isAvailable()) { in enablePreference()
DAbstractLogpersistPreferenceController.java72 if (isAvailable() && lifecycle != null) { in AbstractLogpersistPreferenceController()
78 public boolean isAvailable() { in isAvailable() method in AbstractLogpersistPreferenceController
90 if (isAvailable()) { in displayPreference()
117 if (isAvailable()) { in enablePreference()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/deviceinfo/
DImsStatusPreferenceControllerTest.java75 imsStatusPreferenceController.isAvailable()).isTrue(); in testIsAvailable()
80 .that(imsStatusPreferenceController.isAvailable()).isFalse(); in testIsAvailable()
85 .that(imsStatusPreferenceController.isAvailable()).isFalse(); in testIsAvailable()
90 .that(imsStatusPreferenceController.isAvailable()).isFalse(); in testIsAvailable()
DSimStatusImeiInfoPreferenceControllerTest.java63 assertThat(mController.isAvailable()).isTrue(); in testIsAvailable_isAdminAndHasMobile_shouldReturnTrue()
75 assertThat(mController.isAvailable()).isFalse(); in testIsAvailable_isAdminButNoMobile_shouldReturnFalse()
84 assertThat(mController.isAvailable()).isFalse(); in testIsAvailable_isNotAdmin_shouldReturnFalse()
DSerialNumberPreferenceControllerTest.java59 assertThat(mController.isAvailable()).isFalse(); in testIsAvaiable_noSerial_shouldReturnFalse()
66 assertThat(mController.isAvailable()).isTrue(); in testIsAvailable_hasSerial_shouldReturnTrue()
DBluetoothAddressPreferenceControllerTest.java74 .that(bluetoothAddressPreferenceController.isAvailable()) in testNoBluetooth()
84 .that(bluetoothAddressPreferenceController.isAvailable()) in testHasBluetooth()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiSettingsStore.java116 synchronized void handleWifiScanAlwaysAvailableToggled(boolean isAvailable) { in handleWifiScanAlwaysAvailableToggled() argument
117 persistScanAlwaysAvailableState(isAvailable); in handleWifiScanAlwaysAvailableToggled()
131 private void persistScanAlwaysAvailableState(boolean isAvailable) { in persistScanAlwaysAvailableState() argument
133 WifiSettingsConfigStore.WIFI_SCAN_ALWAYS_AVAILABLE, isAvailable); in persistScanAlwaysAvailableState()
DWifiScanAlwaysAvailableSettingsCompatibility.java97 public void handleWifiScanAlwaysAvailableToggled(boolean isAvailable) { in handleWifiScanAlwaysAvailableToggled() argument
99 mContentResolver, SETTINGS_GLOBAL_WIFI_SCAN_ALWAYS_AVAILABLE, isAvailable ? 1 : 0); in handleWifiScanAlwaysAvailableToggled()
/frameworks/base/core/java/android/hardware/display/
DWifiDisplay.java48 boolean isAvailable = (in.readInt() != 0);
52 isAvailable, canConnect, isRemembered);
109 public boolean isAvailable() { in isAvailable() method in WifiDisplay
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/development/
DLogpersistPreferenceControllerTest.java84 assertThat(mController.isAvailable()).isFalse(); in testAvailable()
86 assertThat(mController.isAvailable()).isTrue(); in testAvailable()
88 assertThat(mController.isAvailable()).isFalse(); in testAvailable()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/
DAbstractPreferenceController.java33 if (isAvailable()) { in displayPreference()
71 public abstract boolean isAvailable(); in isAvailable() method in AbstractPreferenceController
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/
DAbstractWifiMacAddressPreferenceController.java60 public boolean isAvailable() { in isAvailable() method in AbstractWifiMacAddressPreferenceController
72 if (isAvailable()) { in displayPreference()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DOutputPort.java55 public boolean isAvailable() { in isAvailable() method in OutputPort
184 return !mWaitsUntilAvailable || isAvailable(); in conditionsMet()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DUsimServiceTable.java146 public boolean isAvailable(UsimService service) { in isAvailable() method in UsimServiceTable
147 return super.isAvailable(service.ordinal()); in isAvailable()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareNativeManager.java247 public void onAvailabilityChanged(boolean isAvailable) { in onAvailabilityChanged() argument
249 Log.d(TAG, "Interface availability = " + isAvailable + ", mWifiNanIface=" in onAvailabilityChanged()
253 if (isAvailable) { in onAvailabilityChanged()
/frameworks/base/core/java/android/view/
DTextureView.java577 if (isAvailable() && width > 0 && height > 0) { in getBitmap()
608 if (bitmap != null && isAvailable()) { in getBitmap()
632 public boolean isAvailable() { in isAvailable() method in TextureView
686 if (!isAvailable()) return null; in lockCanvas()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DWorkModeTile.java63 public boolean isAvailable() { in isAvailable() method in WorkModeTile
85 if (!isAvailable()) { in handleUpdateState()
/frameworks/base/wifi/java/android/net/wifi/rtt/
DWifiRttManager.java95 public boolean isAvailable() { in isAvailable() method in WifiRttManager
97 return mService.isAvailable(); in isAvailable()
/frameworks/base/services/core/jni/BroadcastRadio/
DTunerCallback.cpp119 virtual Return<void> backgroundScanAvailable(bool isAvailable);
295 Return<void> NativeCallback::backgroundScanAvailable(bool isAvailable) { in backgroundScanAvailable() argument
296 ALOGV("%s(%d)", __func__, isAvailable); in backgroundScanAvailable()
298 mCallbackThread.enqueue([this, isAvailable](JNIEnv *env) { in backgroundScanAvailable()
300 gjni.TunerCallback.onBackgroundScanAvailabilityChange, isAvailable); in backgroundScanAvailable()

123456