Home
last modified time | relevance | path

Searched refs:throwException (Results 1 – 10 of 10) sorted by relevance

/packages/modules/Connectivity/service/jni/
Dcom_android_server_TestNetworkService.cpp53 static void throwException(JNIEnv* env, int error, const char* action, const char* iface) { in throwException() function
63 throwException(env, errno, "set carrier", iface); in setTunTapCarrierEnabledImpl()
78 throwException(env, EOPNOTSUPP, "IFF_NO_CARRIER not supported", ifr.ifr_name); in createTunTapImpl()
85 throwException(env, errno, "allocating", ifr.ifr_name); in createTunTapImpl()
95 throwException(env, errno, "set IFF_MULTICAST", ifr.ifr_name); in createTunTapImpl()
110 throwException(env, errno, "read flags", iface); in bringUpInterfaceImpl()
115 throwException(env, errno, "set IFF_UP", iface); in bringUpInterfaceImpl()
/packages/modules/NetworkStack/tests/unit/jni/
Dapf_jni.cpp111 static void throwException(JNIEnv* env, const std::string& error) { in throwException() function
125 throwException(env, "pcap_open_dead failed"); in com_android_server_ApfTest_compileToBpf()
132 throwException(env, "pcap_compile failed"); in com_android_server_ApfTest_compileToBpf()
164 throwException(env, "pcap_fopen_offline failed: " + std::string(pcap_error)); in com_android_server_ApfTest_compareBpfApf()
172 throwException(env, "pcap_fopen_offline failed: " + std::string(pcap_error)); in com_android_server_ApfTest_compareBpfApf()
179 throwException(env, "pcap_compile failed"); in com_android_server_ApfTest_compareBpfApf()
185 throwException(env, "pcap_setfilter failed"); in com_android_server_ApfTest_compareBpfApf()
243 throwException(env, "pcap_fopen_offline failed: " + std::string(pcap_error)); in com_android_server_ApfTest_dropsAllPackets()
/packages/modules/NetworkStack/apishim/30/com/android/networkstack/apishim/api30/
DSettingsShimImpl.java52 boolean throwException) { in checkAndNoteWriteSettingsOperation() argument
54 throwException); in checkAndNoteWriteSettingsOperation()
/packages/modules/NetworkStack/apishim/31/com/android/networkstack/apishim/api31/
DSettingsShimImpl.java53 boolean throwException) { in checkAndNoteWriteSettingsOperation() argument
55 callingAttributionTag, throwException); in checkAndNoteWriteSettingsOperation()
/packages/modules/AdServices/adservices/tests/test-util/java/com/android/adservices/common/
DAdServicesTestCase.java125 boolean throwException = in throwExceptionInBgAfterTest()
129 if (!throwException) { in throwExceptionInBgAfterTest()
/packages/modules/AdServices/sdksandbox/tests/testutils/testscenario/testrunner/src/android/app/sdksandbox/testutils/testscenario/
DSdkSandboxTestScenarioRunner.java134 String methodName, boolean throwException, Class<?>... parameterTypes) in findMethodOnTestInstance() argument
139 if (throwException) { in findMethodOnTestInstance()
/packages/modules/NetworkStack/apishim/common/com/android/networkstack/apishim/common/
DSettingsShim.java34 boolean throwException) { in checkAndNoteWriteSettingsOperation() argument
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DMockTetheringService.java49 boolean throwException) { in checkAndNoteWriteSettingsOperation() argument
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DTetheringService.java314 boolean throwException) { in checkAndNoteWriteSettingsOperation() argument
316 callingAttributionTag, throwException); in checkAndNoteWriteSettingsOperation()
/packages/modules/Connectivity/framework/src/android/net/
DConnectivityManager.java2962 boolean throwException) { in checkAndNoteWriteSettingsOperation() argument
2964 callingAttributionTag, throwException); in checkAndNoteWriteSettingsOperation()