HomeSort by relevance Sort by last modified time
    Searched refs:SecurityException (Results 1 - 25 of 1022) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /libcore/ojluni/src/main/java/java/lang/
SecurityException.java 34 public class SecurityException extends RuntimeException {
39 * Constructs a <code>SecurityException</code> with no detail message.
41 public SecurityException() {
46 * Constructs a <code>SecurityException</code> with the specified
51 public SecurityException(String s) {
56 * Creates a <code>SecurityException</code> with the specified
66 public SecurityException(String message, Throwable cause) {
71 * Creates a <code>SecurityException</code> with the specified cause
81 public SecurityException(Throwable cause) {
  /libcore/ojluni/src/main/java/java/security/
Guard.java 48 * Otherwise, throws a SecurityException.
52 * @exception SecurityException if access is denied.
55 void checkGuard(Object object) throws SecurityException;
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
SecurityExceptionTest.java 27 * java.lang.SecurityException#SecurityException()
30 SecurityException e = new SecurityException();
37 * java.lang.SecurityException#SecurityException(java.lang.String)
40 SecurityException e = new SecurityException("fixture");
46 * java.lang.SecurityException#SecurityException(String, Throwable
    [all...]
  /cts/tests/tests/permission/src/android/permission/cts/
NoWifiStatePermissionTest.java 49 fail("WifiManager.getWifiState didn't throw SecurityException as expected");
50 } catch (SecurityException e) {
63 fail("WifiManager.getConfiguredNetworks didn't throw SecurityException as expected");
64 } catch (SecurityException e) {
77 fail("WifiManager.getConnectionInfo didn't throw SecurityException as expected");
78 } catch (SecurityException e) {
91 fail("WifiManager.getScanResults didn't throw SecurityException as expected");
92 } catch (SecurityException e) {
105 fail("WifiManager.getDhcpInfo didn't throw SecurityException as expected");
106 } catch (SecurityException e)
    [all...]
TelephonyManagerPermissionTest.java 62 } catch (SecurityException e) {
68 } catch (SecurityException e) {
88 } catch (SecurityException e) {
108 } catch (SecurityException e) {
128 } catch (SecurityException e) {
148 } catch (SecurityException e) {
181 fail("SecurityException expected!");
182 } catch (SecurityException e) {}
186 fail("SecurityException expected!");
187 } catch (SecurityException e) {
    [all...]
ContactsProviderTest.java 40 fail("query(ContactsContract.Contacts.CONTENT_URI) did not throw SecurityException"
42 } catch (SecurityException se) {
58 fail("insert(ContactsContract.Contacts.CONTENT_URI) did not throw SecurityException"
60 } catch (SecurityException se) {
76 fail("query(ContactsContract.Profile.CONTENT_URI) did not throw SecurityException"
78 } catch (SecurityException se) {
87 * SecurityException anyway.
96 fail("insert(ContactsContract.Profile.CONTENT_URI) did not throw SecurityException "
98 } catch (SecurityException se) {
114 fail("update(ContactsContract.Profile.CONTENT_URI) did not throw SecurityException"
    [all...]
NoSystemFunctionPermissionTest.java 52 fail("ActivityManager.restartPackage() didn't throw SecurityException as expected.");
53 } catch (SecurityException e) {
72 fail("AlarmManager.setTimeZone() did not throw SecurityException as expected.");
73 } catch (SecurityException e) {
90 fail("Context.setWallpaper(BitMap) did not throw SecurityException as expected.");
91 } catch (SecurityException e) {
97 fail("Context.setWallpaper(InputStream) did not throw SecurityException as expected.");
98 } catch (SecurityException e) {
104 fail("Context.clearWallpaper() did not throw SecurityException as expected.");
105 } catch (SecurityException e)
    [all...]
NoNetworkStatePermissionTest.java 50 fail("ConnectivityManager.getActiveNetworkInfo didn't throw SecurityException as"
52 } catch (SecurityException e) {
66 fail("ConnectivityManager.getNetworkInfo didn't throw SecurityException as"
68 } catch (SecurityException e) {
82 fail("ConnectivityManager.getAllNetworkInfo didn't throw SecurityException as"
84 } catch (SecurityException e) {
94 } catch (SecurityException expected) {
NoBroadcastPackageRemovedPermissionTest.java 41 fail("Context.sendStickyBroadcast did not throw SecurityException as expected");
42 } catch (SecurityException e) {
48 fail("Context.removeStickyBroadcast did not throw SecurityException as expected");
49 } catch (SecurityException e) {
68 fail("Context.sendBroadcast did not throw SecurityException as expected");
69 } catch (SecurityException e) {
76 fail("Context.sendBroadcast did not throw SecurityException as expected");
77 } catch (SecurityException e) {
84 fail("Context.sendOrderedBroadcast did not throw SecurityException as expected");
85 } catch (SecurityException e)
    [all...]
PackageManagerRequiringPermissionsTest.java 52 fail("PackageManager.setApplicationEnabledSetting did not throw SecurityException as"
54 } catch (SecurityException e) {
70 " SecurityException as expected");
71 } catch (SecurityException e) {
84 fail("PackageManager.clearPackagePreferredActivities did not throw SecurityException"
86 } catch (SecurityException e) {
99 fail("PackageManager.verifyPendingInstall did not throw SecurityException"
101 } catch (SecurityException e) {
114 fail("PackageManager.extendVerificationTimeout did not throw SecurityException"
116 } catch (SecurityException e)
    [all...]
NoKeyPermissionTest.java 47 fail("KeyguardManager.KeyguardLock.disableKeyguard did not throw SecurityException as"
49 } catch (SecurityException e) {
63 fail("KeyguardManager.KeyguardLock.reenableKeyguard did not throw SecurityException as"
65 } catch (SecurityException e) {
79 fail("KeyguardManager.exitKeyguardSecurely did not throw SecurityException as"
81 } catch (SecurityException e) {
NoLocationPermissionTest.java 83 " throw SecurityException as expected");
84 } catch (SecurityException e) {
90 fail("TelephonyManager.getCellLocation did not throw SecurityException as expected");
91 } catch (SecurityException e) {
114 fail("TelephonyManager.getNeighbouringCellInfo did not throw SecurityException as expected");
115 } catch (SecurityException e) {
121 fail("TelephonyManager.getAllCellInfo did not throw SecurityException as expected");
122 } catch (SecurityException e) {
129 * provider throws SecurityException.
144 " throw SecurityException as expected")
    [all...]
  /cts/tests/tests/telephony/src/android/telephony/cts/
SimRestrictedApisTest.java 42 * a SecurityException since the test apk is not signed by a certificate on the SIM.
48 fail("Expected SecurityException. App doesn't have carrier privileges.");
50 } catch (SecurityException expected) {
56 * setLine1NumberForDisplay() API and expects a SecurityException since the test apk is not
63 fail("Expected SecurityException. App doesn't have carrier privileges.");
65 } catch (SecurityException expected) {
71 * call to setLine1NumberForDisplay() API and expects a SecurityException since the test apk is
78 fail("Expected SecurityException. App doesn't have carrier privileges.");
80 } catch (SecurityException expected) {
86 * iccOpenLogicalChannel() API and expects a SecurityException since the test apk is not signe
    [all...]
  /frameworks/base/tests/permission/src/com/android/framework/permission/tests/
WindowManagerPermissionTests.java 46 fail("IWindowManager.pauseKeyDispatching did not throw SecurityException as"
48 } catch (SecurityException e) {
56 fail("IWindowManager.resumeKeyDispatching did not throw SecurityException as"
58 } catch (SecurityException e) {
66 fail("IWindowManager.setEventDispatching did not throw SecurityException as"
68 } catch (SecurityException e) {
76 fail("IWindowManager.addWindowToken did not throw SecurityException as"
78 } catch (SecurityException e) {
86 fail("IWindowManager.removeWindowToken did not throw SecurityException as"
88 } catch (SecurityException e)
    [all...]
ActivityManagerPermissionTests.java 43 fail("IActivityManager.moveTaskToFront did not throw SecurityException as"
45 } catch (SecurityException e) {
53 fail("IActivityManager.moveTaskToFront did not throw SecurityException as"
55 } catch (SecurityException e) {
66 fail("IActivityManager.updateConfiguration did not throw SecurityException as"
68 } catch (SecurityException e) {
79 fail("IActivityManager.setDebugApp did not throw SecurityException as"
81 } catch (SecurityException e) {
92 fail("IActivityManager.setProcessLimit did not throw SecurityException as"
94 } catch (SecurityException e)
    [all...]
PmPermissionsTests.java 46 "did not throw SecurityException as expected");
47 } catch (SecurityException e) {
61 "did not throw SecurityException as expected");
62 } catch (SecurityException e) {
80 "did not throw SecurityException as expected");
81 } catch (SecurityException e) {
95 "did not throw SecurityException as expected");
96 } catch (SecurityException e) {
110 " did not throw SecurityException as expected");
111 } catch (SecurityException e)
    [all...]
SmsManagerPermissionTest.java 45 fail("SmsManager.sendTextMessage did not throw SecurityException as expected");
46 } catch (SecurityException e) {
61 fail("SmsManager.sendDataMessage did not throw SecurityException as expected");
62 } catch (SecurityException e) {
80 fail("SmsManager.sendMultipartTextMessage did not throw SecurityException as expected");
81 } catch (SecurityException e) {
VibratorServicePermissionTest.java 53 fail("vibrate did not throw SecurityException as expected");
54 } catch (SecurityException e) {
70 fail("vibratePattern did not throw SecurityException as expected");
71 } catch (SecurityException e) {
85 fail("cancelVibrate did not throw SecurityException as expected");
86 } catch (SecurityException e) {
  /cts/hostsidetests/devicepolicy/app/ProfileOwner/src/com/android/cts/profileowner/
WifiTest.java 23 } catch (SecurityException e) {
  /cts/tests/admin/src/android/admin/cts/
DevicePolicyManagerTest.java 119 fail("did not throw expected SecurityException");
120 } catch (SecurityException e) {
132 fail("did not throw expected SecurityException");
133 } catch (SecurityException e) {
145 fail("did not throw expected SecurityException");
146 } catch (SecurityException e) {
158 fail("did not throw expected SecurityException");
159 } catch (SecurityException e) {
171 fail("did not throw expected SecurityException");
172 } catch (SecurityException e)
    [all...]
  /external/jetty/src/java/org/eclipse/jetty/util/resource/
BadResource.java 96 throws java.io.IOException, SecurityException
104 throws SecurityException
106 throw new SecurityException(_message);
112 throws SecurityException
114 throw new SecurityException(_message);
129 throw new SecurityException(_message);
  /libcore/ojluni/src/main/java/java/lang/reflect/
AccessibleObject.java 69 * <p>A {@code SecurityException} is raised if {@code flag} is
73 * java.lang.Class}). In the event of such a SecurityException, the
82 * @throws SecurityException if the request is denied.
87 throws SecurityException {
104 * <p>A {@code SecurityException} is raised if {@code flag} is
109 * <p>A {@code SecurityException} is raised if this object is a {@link
114 * @throws SecurityException if the request is denied.
118 public void setAccessible(boolean flag) throws SecurityException {
124 throws SecurityException
130 throw new SecurityException("Can not make a java.lang.Class"
    [all...]
  /frameworks/base/services/core/java/com/android/server/
HardwarePropertiesManagerService.java 54 throws SecurityException {
62 public CpuUsageInfo[] getCpuUsages(String callingPackage) throws SecurityException {
70 public float[] getFanSpeeds(String callingPackage) throws SecurityException {
78 * Throws SecurityException if the calling package is not allowed to retrieve information
83 * @throws SecurityException if something other than the profile or device owner, or the
87 throws SecurityException {
93 throw new SecurityException("The caller has faked the package name.");
96 throw new SecurityException("The caller has faked the package name.");
104 throw new SecurityException("The caller is not a device or profile owner or bound "
  /cts/tests/tests/accounts/src/android/accounts/cts/
AccountManagerUnaffiliatedAuthenticatorTests.java 79 } catch (SecurityException expected) {}
90 } catch (SecurityException expected) {
102 } catch (SecurityException expected) {}
112 } catch (SecurityException expected) {}
123 } catch (SecurityException expected) {}
131 } catch (SecurityException expected) {}
139 } catch (SecurityException expected) {}
148 } catch (SecurityException expected) {}
156 } catch (SecurityException expected) {}
165 } catch (SecurityException expected) {
    [all...]
  /libcore/ojluni/src/main/java/java/util/logging/
Handler.java 97 * @exception SecurityException if a security manager exists and if
100 public abstract void close() throws SecurityException;
110 * @exception SecurityException if a security manager exists and if
113 public void setFormatter(Formatter newFormatter) throws SecurityException {
136 * @exception SecurityException if a security manager exists and if
142 throws SecurityException, java.io.UnsupportedEncodingException {
174 * @exception SecurityException if a security manager exists and if
177 public void setFilter(Filter newFilter) throws SecurityException {
198 * @exception SecurityException if a security manager exists and if
212 * @exception SecurityException if a security manager exists and i
    [all...]

Completed in 1908 milliseconds

1 2 3 4 5 6 7 8 91011>>