Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/content/pm/
DMacAuthenticatedInputStreamTest.java70 Mac mac = Mac.getInstance("HMAC-SHA1"); in testString1Authenticate_Success() local
71 mac.init(HMAC_KEY_1); in testString1Authenticate_Success()
73 MacAuthenticatedInputStream is = new MacAuthenticatedInputStream(mTestStream1, mac); in testString1Authenticate_Success()
81 Mac mac = Mac.getInstance("HMAC-SHA1"); in testString1Authenticate_WrongTag_Failure() local
82 mac.init(HMAC_KEY_1); in testString1Authenticate_WrongTag_Failure()
84 MacAuthenticatedInputStream is = new MacAuthenticatedInputStream(mTestStream1, mac); in testString1Authenticate_WrongTag_Failure()
92 Mac mac = Mac.getInstance("HMAC-SHA1"); in testString1Authenticate_NullTag_Failure() local
93 mac.init(HMAC_KEY_1); in testString1Authenticate_NullTag_Failure()
95 MacAuthenticatedInputStream is = new MacAuthenticatedInputStream(mTestStream1, mac); in testString1Authenticate_NullTag_Failure()
103 Mac mac = Mac.getInstance("HMAC-SHA1"); in testString1Authenticate_ReadSingleByte_Success() local
[all …]
/frameworks/base/services/core/java/com/android/server/accounts/
DCryptoHelper.java67 byte[] mac = createMac(encryptedBytes, iv); in encryptBundle()
71 encryptedBundle.putByteArray(KEY_MAC, mac); in encryptBundle()
82 byte[] mac = bundle.getByteArray(KEY_MAC); in decryptBundle()
83 if (!verifyMac(encryptedBytes, iv, mac)) { in decryptBundle()
116 Mac mac = Mac.getInstance(MAC_ALGORITHM); in createMac() local
117 mac.init(mMacKey); in createMac()
118 mac.update(cipher); in createMac()
119 mac.update(iv); in createMac()
120 return mac.doFinal(); in createMac()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/nan/
DWifiNanNative.java556 private static void onDiscoveryEngineEvent(int eventType, byte[] mac) { in onDiscoveryEngineEvent() argument
559 + String.valueOf(HexEncoding.encode(mac))); in onDiscoveryEngineEvent()
563 WifiNanStateManager.getInstance().onInterfaceAddressChange(mac); in onDiscoveryEngineEvent()
566 .onClusterChange(WifiNanClientState.CLUSTER_CHANGE_EVENT_STARTED, mac); in onDiscoveryEngineEvent()
569 .onClusterChange(WifiNanClientState.CLUSTER_CHANGE_EVENT_JOINED, mac); in onDiscoveryEngineEvent()
576 private static void onMatchEvent(int pubSubId, int requestorInstanceId, byte[] mac, in onMatchEvent() argument
581 + requestorInstanceId + ", mac=" + String.valueOf(HexEncoding.encode(mac)) in onMatchEvent()
586 WifiNanStateManager.getInstance().onMatch(pubSubId, requestorInstanceId, mac, in onMatchEvent()
609 private static void onFollowupEvent(int pubSubId, int requestorInstanceId, byte[] mac, in onFollowupEvent() argument
613 + requestorInstanceId + ", mac=" + String.valueOf(HexEncoding.encode(mac)) in onFollowupEvent()
[all …]
DWifiNanClientState.java141 public int onInterfaceAddressChange(byte[] mac) { in onInterfaceAddressChange() argument
155 public int onClusterChange(int flag, byte[] mac) { in onClusterChange() argument
DWifiNanStateManager.java279 public void onInterfaceAddressChange(byte[] mac) { in onInterfaceAddressChange() argument
281 msg.obj = mac; in onInterfaceAddressChange()
872 private void onInterfaceAddressChangeLocal(byte[] mac) { in onInterfaceAddressChangeLocal() argument
874 Log.v(TAG, "onInterfaceAddressChange: mac=" + String.valueOf(HexEncoding.encode(mac))); in onInterfaceAddressChangeLocal()
880 interested += client.onInterfaceAddressChange(mac); in onInterfaceAddressChangeLocal()
/frameworks/av/services/audioflinger/
DAudioResamplerFirProcess.h27 void mac(int32_t& l, int32_t& r, TC coef, const int16_t* samples) in mac() function
36 void mac(int32_t& l, TC coef, const int16_t* samples) in mac() function
44 void mac(float& l, float& r, TC coef, const float* samples) in mac() function
52 void mac(float& l, TC coef, const float* samples) in mac() function
89 mac(value, coef, data++); in acc()
222 mac(l, r, TFUNC::interpolatep(coefsP[0], coefsP[count], lerpP), sP); in ProcessBase()
225 mac(l, r, TFUNC::interpolaten(coefsN[count], coefsN[0], lerpP), sN); in ProcessBase()
234 mac(l, TFUNC::interpolatep(coefsP[0], coefsP[count], lerpP), sP); in ProcessBase()
237 mac(l, TFUNC::interpolaten(coefsN[count], coefsN[0], lerpP), sN); in ProcessBase()
/frameworks/base/packages/Osu/src/com/android/hotspot2/
DUtils.java44 long mac = 0; in parseMac() local
49 mac = (mac << 4) | nibble; in parseMac()
56 return mac; in parseMac()
59 public static String macToString(long mac) { in macToString() argument
60 int len = (mac & ~EUI48Mask) != 0 ? EUI64Length : EUI48Length; in macToString()
69 sb.append(String.format("%02x", (mac >>> n) & Constants.BYTE_MASK)); in macToString()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DUtils.java48 long mac = 0; in parseMac() local
53 mac = (mac << 4) | nibble; in parseMac()
60 return mac; in parseMac()
63 public static String macToString(long mac) { in macToString() argument
64 int len = (mac & ~EUI48Mask) != 0 ? EUI64Length : EUI48Length; in macToString()
74 sb.append(String.format("%02x", (mac >>> n) & Constants.BYTE_MASK)); in macToString()
DNetworkDetail.java518 public static String toMACString(long mac) { in toMACString() argument
527 sb.append(String.format("%02x", (mac >>> (n * Byte.SIZE)) & BYTE_MASK)); in toMACString()
/frameworks/base/core/java/android/content/pm/
DMacAuthenticatedInputStream.java35 public MacAuthenticatedInputStream(InputStream in, Mac mac) { in MacAuthenticatedInputStream() argument
38 mMac = mac; in MacAuthenticatedInputStream()
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/src/
DarmCOMM.c701 OMX_S32 armSatMac_S16S32_S32(OMX_S32 mac, OMX_S32 delayElem, OMX_S16 filTap ) in armSatMac_S16S32_S32() argument
721 mac = armSatAdd_S32(mac,result); in armSatMac_S16S32_S32()
723 return mac; in armSatMac_S16S32_S32()
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/src/
DarmCOMM.c701 OMX_S32 armSatMac_S16S32_S32(OMX_S32 mac, OMX_S32 delayElem, OMX_S16 filTap ) in armSatMac_S16S32_S32() argument
721 mac = armSatAdd_S32(mac,result); in armSatMac_S16S32_S32()
723 return mac; in armSatMac_S16S32_S32()
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm_neon/src/
DarmCOMM.c701 OMX_S32 armSatMac_S16S32_S32(OMX_S32 mac, OMX_S32 delayElem, OMX_S16 filTap ) in armSatMac_S16S32_S32() argument
721 mac = armSatAdd_S32(mac,result); in armSatMac_S16S32_S32()
723 return mac; in armSatMac_S16S32_S32()
/frameworks/base/services/net/java/android/net/dhcp/
DDhcpPacket.java638 public static String macToString(byte[] mac) { in macToString() argument
641 for (int i = 0; i < mac.length; i++) { in macToString()
642 String hexString = "0" + Integer.toHexString(mac[i]); in macToString()
648 if (i != (mac.length - 1)) { in macToString()
1173 byte[] mac, Integer timeout, Inet4Address netMask, Inet4Address bcAddr, in buildOfferPacket() argument
1177 transactionId, (short) 0, broadcast, serverIpAddr, INADDR_ANY, clientIpAddr, mac); in buildOfferPacket()
1193 byte[] mac, Integer timeout, Inet4Address netMask, Inet4Address bcAddr, in buildAckPacket() argument
1197 transactionId, (short) 0, broadcast, serverIpAddr, INADDR_ANY, clientIpAddr, mac); in buildAckPacket()
1212 Inet4Address serverIpAddr, Inet4Address clientIpAddr, byte[] mac) { in buildNakPacket() argument
1214 serverIpAddr, serverIpAddr, serverIpAddr, mac); in buildNakPacket()
/frameworks/support/v4/api23/android/support/v4/hardware/fingerprint/
DFingerprintManagerCompatApi23.java125 public CryptoObject(Mac mac) {
126 mMac = mac;
/frameworks/support/v4/java/android/support/v4/hardware/fingerprint/
DFingerprintManagerCompat.java121 public CryptoObject(Mac mac) { in CryptoObject() argument
122 mMac = mac; in CryptoObject()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/nan/
DWifiNanHalTest.java555 final byte[] mac = HexEncoding.decode("060504030201".toCharArray(), false); in testDiscoveryInterfaceChange()
559 args.putByteArray("data", mac); in testDiscoveryInterfaceChange()
563 verify(mNanStateManager).onInterfaceAddressChange(mac); in testDiscoveryInterfaceChange()
568 final byte[] mac = HexEncoding.decode("060504030201".toCharArray(), false); in testClusterChange()
572 args.putByteArray("data", mac); in testClusterChange()
577 mac); in testClusterChange()
/frameworks/base/core/java/android/hardware/fingerprint/
DFingerprintManager.java215 public CryptoObject(@NonNull Mac mac) { in CryptoObject() argument
216 mCrypto = mac; in CryptoObject()
/frameworks/base/docs/html/ndk/samples/
Dsample_na.jd12 <li><a href="#mac">main.c</a></li>
136 <h2 id="mac">main.c</h2>
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/api/
DarmCOMM.h421 OMX_S32 mac,
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm_neon/api/
DarmCOMM.h421 OMX_S32 mac,
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/api/
DarmCOMM.h421 OMX_S32 mac,
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiServiceImpl.java1277 String mac = tokens[3]; in doInBackground() local
1280 macAddress = mac; in doInBackground()
DWifiStateMachine.java3819 byte[] mac = new byte[6]; in macAddressFromString()
3822 mac[i] = hexVal.byteValue(); in macAddressFromString()
3824 return mac; in macAddressFromString()
3849 String mac = tokens[3]; in macAddressFromRoute() local
3852 macAddress = mac; in macAddressFromRoute()
/frameworks/opt/net/wifi/service/jni/
Dcom_android_server_wifi_WifiNative.cpp1557 char mac[32]; in on_tdls_state_changed() local
1558 sprintf(mac, "%02x:%02x:%02x:%02x:%02x:%02x", addr[0], addr[1], addr[2], addr[3], addr[4], in on_tdls_state_changed()
1561 JNIObject<jstring> mac_address = helper.newStringUTF(mac); in on_tdls_state_changed()