auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void setRingerMode ( int ringerMode ) { if ( ! ( android.media.AudioManager.isValidRingerMode ( ringerMode ) ) ) { return ; } android.media.IAudioService service = android.media.AudioManager.getService ( ) ; try { service.setRingerModeExternal ( ringerMode , getContext ( ) . getOpPackageName ( ) ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.media.AudioManager.TAG , "Dead object in setRingerMode" , e ) ; } }

Target:
public void setRingerMode ( int ringerMode ) { if ( ! ( android.media.AudioManager.isValidRingerMode ( ringerMode ) ) ) { return ; } android.media.IAudioService service = android.media.AudioManager.getService ( ) ; try { service.setRingerModeExternal ( ringerMode , mApplicationContext.getOpPackageName ( ) ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.media.AudioManager.TAG , "Dead object in setRingerMode" , e ) ; } }
Source:
public java.lang.Object invokeWithArguments ( java.lang.Object ... arguments ) throws java.lang.Throwable { throw new java.lang.UnsupportedOperationException ( "invokeWithArguments(Object...)" ) ; }

Target:
public java.lang.Object invokeWithArguments ( java.lang.Object ... arguments ) throws java.lang.Throwable { java.lang.invoke.MethodHandle invoker = null ; synchronized ( this ) { if ( ( cachedSpreadInvoker ) == null ) { cachedSpreadInvoker = java.lang.invoke.MethodHandles.spreadInvoker ( this . type ( ) , 0 ) ; } invoker = cachedSpreadInvoker ; } return invoker.invoke ( this , arguments ) ; }
Source:
public void run ( ) { android.renderscript.RenderScript pRS = android.renderscript.RenderScript.create ( mCtx ) ; com.android.rs.test.ScriptC_check_dims s = new com.android.rs.test.ScriptC_check_dims ( pRS ) ; pRS.setMessageHandler ( mRsMessage ) ; initializeGlobals ( pRS , s ) ; s.forEach_root ( mA ) ; s.invoke_check_dims_test ( ) ; pRS.finish ( ) ; waitForMessage ( ) ; pRS.destroy ( ) ; }

Target:
public void run ( ) { android.renderscript.RenderScript pRS = android.renderscript.RenderScript.create ( mCtx ) ; com.android.rs.test.ScriptC_check_dims s = new com.android.rs.test.ScriptC_check_dims ( pRS ) ; pRS.setMessageHandler ( mRsMessage ) ; initializeGlobals ( pRS , s ) ; s.forEach_root ( mA ) ; s.invoke_check_dims_test ( ) ; pRS.finish ( ) ; waitForMessage ( ) ; mAFailed.destroy ( ) ; mA.destroy ( ) ; s.destroy ( ) ; pRS.destroy ( ) ; }
Source:
public void testReadAfterWriteWithNoUserStore ( ) throws java.lang.Exception { com.android.server.wifi.WifiConfigStoreData writeData = createSingleOpenNetworkStoreData ( ) ; mWifiConfigStore.write ( true , writeData ) ; com.android.server.wifi.WifiConfigStoreData readData = mWifiConfigStore.read ( ) ; com.android.server.wifi.WifiConfigStoreDataTest.assertConfigStoreDataEqual ( writeData , readData ) ; }

Target:
public void testBufferedWrite ( ) throws java.lang.Exception { mWifiConfigStore.switchUserStoreAndRead ( mUserStore ) ; mWifiConfigStore.write ( false ) ; assertTrue ( mAlarmManager.isPending ( WifiConfigStore.BUFFERED_WRITE_ALARM_TAG ) ) ; assertFalse ( mSharedStore.isStoreWritten ( ) ) ; assertFalse ( mUserStore.isStoreWritten ( ) ) ; mAlarmManager.dispatch ( WifiConfigStore.BUFFERED_WRITE_ALARM_TAG ) ; mLooper.dispatchAll ( ) ; assertTrue ( mSharedStore.isStoreWritten ( ) ) ; assertTrue ( mUserStore.isStoreWritten ( ) ) ; }
Source:
public void shareBufferQueue ( android.renderscript.Allocation alloc ) { mRS.validate ( ) ; if ( ( ( mUsage ) & ( android.renderscript.Allocation.USAGE_IO_INPUT ) ) == 0 ) { throw new android.renderscript.RSInvalidStateException ( "Allocation is not USAGE_IO_INPUT." ) ; } mGetSurfaceSurface = alloc.getSurface ( ) ; mRS.nAllocationShareBufferQueue ( getID ( mRS ) , alloc.getID ( mRS ) ) ; }

Target:
public long getStride ( ) { if ( ( mByteBufferStride ) == ( - 1 ) ) { getByteBuffer ( ) ; } return mByteBufferStride ; }
Source:
public static void $noinline$stackOverflow ( Main m , boolean isSecondInvocation ) { if ( ! ( Main.ensureInInterpreter ( ) ) ) { return ; } Main.ensureHasProfilingInfo ( ) ; if ( isSecondInvocation ) { while ( ! ( Main.ensureInOsrCode ( ) ) ) { } } for ( int i = 0 ; i < ( isSecondInvocation ? 10000000 : 1 ) ; ++ i ) { m.otherInlineCache ( ) ; } }

Target:
public static void $noinline$stackOverflow ( Main m , boolean isSecondInvocation ) { if ( ! ( Main.isInInterpreter ( "$noinline$stackOverflow" ) ) ) { return ; } Main.ensureHasProfilingInfo ( ) ; if ( isSecondInvocation ) { while ( ! ( Main.isInOsrCode ( "$noinline$stackOverflow" ) ) ) { } } for ( int i = 0 ; i < ( isSecondInvocation ? 10000000 : 1 ) ; ++ i ) { m.otherInlineCache ( ) ; } }
Source:
public boolean setNetworkRSSIStats ( int networkId , int numUserTriggeredWifiDisableLowRSSI , int numUserTriggeredWifiDisableBadRSSI , int numUserTriggeredWifiDisableNotHighRSSI , int numTicksAtLowRSSI , int numTicksAtBadRSSI , int numTicksAtNotHighRSSI ) { android.net.wifi.WifiConfiguration config = getInternalConfiguredNetwork ( networkId ) ; if ( config == null ) { return false ; } config.numUserTriggeredWifiDisableLowRSSI = numUserTriggeredWifiDisableLowRSSI ; config.numUserTriggeredWifiDisableBadRSSI = numUserTriggeredWifiDisableBadRSSI ; config.numUserTriggeredWifiDisableNotHighRSSI = numUserTriggeredWifiDisableNotHighRSSI ; config.numTicksAtLowRSSI = numTicksAtLowRSSI ; config.numTicksAtBadRSSI = numTicksAtBadRSSI ; config.numTicksAtNotHighRSSI = numTicksAtNotHighRSSI ; return true ; }

Target:
public void handleUserUnlock ( int userId ) { if ( mVerboseLoggingEnabled ) { android.util.Log.v ( com.android.server.wifi.WifiConfigManager.TAG , ( "Handling user unlock for " + userId ) ) ; } if ( ( userId == ( mCurrentUserId ) ) && ( mPendingUnlockStoreRead ) ) { handleUserUnlockOrSwitch ( mCurrentUserId ) ; } }
Source:
public java.util.Iterator < com.android.sched.vfs.InputVFile > iterator ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType ) { java.util.List < com.android.sched.vfs.InputVFile > inputVFiles = new java.util.ArrayList < com.android.sched.vfs.InputVFile > ( ) ; fillFiles ( libraryVDir , fileType , inputVFiles ) ; return inputVFiles.iterator ( ) ; }

Target:
public java.util.Iterator < com.android.sched.vfs.InputVFile > iterator ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType ) { if ( ! ( containsFileType ( fileType ) ) ) { return com.google.common.collect.Iterators.emptyIterator ( ) ; } java.util.List < com.android.sched.vfs.InputVFile > inputVFiles = new java.util.ArrayList < com.android.sched.vfs.InputVFile > ( ) ; fillFiles ( libraryVDir , fileType , inputVFiles ) ; return inputVFiles.iterator ( ) ; }
Source:
private static java.lang.String decodeUtf16 ( byte [ ] data , int offset , int numFields ) throws com.android.internal.telephony.cdma.sms.BearerData.CodingException { int byteCount = numFields * 2 ; if ( ( byteCount < 0 ) || ( ( byteCount + offset ) > ( data.length ) ) ) { throw new com.android.internal.telephony.cdma.sms.BearerData.CodingException ( "UTF-16 decode failed: offset or length out of range" ) ; } try { return new java.lang.String ( data , offset , byteCount , "utf-16be" ) ; } catch ( java.io.UnsupportedEncodingException ex ) { throw new com.android.internal.telephony.cdma.sms.BearerData.CodingException ( ( "UTF-16 decode failed: " + ex ) ) ; } }

Target:
private static java.lang.String decodeUtf16 ( byte [ ] data , int offset , int numFields ) throws com.android.internal.telephony.cdma.sms.BearerData.CodingException { int padding = offset % 2 ; numFields -= ( offset + padding ) / 2 ; return com.android.internal.telephony.cdma.sms.BearerData.decodeCharset ( data , offset , numFields , 2 , "utf-16be" ) ; }
Source:
public void sendMessage ( @ android.annotation.NonNull android.net.wifi.aware.WifiAwareManager.PeerHandle peerHandle , int messageId , @ android.annotation.Nullable byte [ ] message , int retryCount ) { if ( mTerminated ) { android.util.Log.w ( android.net.wifi.aware.WifiAwareDiscoveryBaseSession.TAG , "sendMessage: called on terminated session" ) ; return ; } else { android.net.wifi.aware.WifiAwareManager mgr = mMgr.get ( ) ; if ( mgr == null ) { android.util.Log.w ( android.net.wifi.aware.WifiAwareDiscoveryBaseSession.TAG , "sendMessage: called post GC on WifiAwareManager" ) ; return ; } mgr.sendMessage ( mClientId , mSessionId , peerHandle , message , messageId , retryCount ) ; } }

Target:
public void sendMessage ( @ android.annotation.NonNull android.net.wifi.aware.PeerHandle peerHandle , int messageId , @ android.annotation.Nullable byte [ ] message , int retryCount ) { if ( mTerminated ) { android.util.Log.w ( android.net.wifi.aware.DiscoverySession.TAG , "sendMessage: called on terminated session" ) ; return ; } else { android.net.wifi.aware.WifiAwareManager mgr = mMgr.get ( ) ; if ( mgr == null ) { android.util.Log.w ( android.net.wifi.aware.DiscoverySession.TAG , "sendMessage: called post GC on WifiAwareManager" ) ; return ; } mgr.sendMessage ( mClientId , mSessionId , peerHandle , message , messageId , retryCount ) ; } }
Source:
public java.lang.String createNetworkSpecifier ( @ android.net.wifi.nan.WifiNanManager.DataPathRole int role , @ android.annotation.Nullable byte [ ] peer , @ android.annotation.Nullable byte [ ] token ) { android.net.wifi.nan.WifiNanManager mgr = mMgr.get ( ) ; if ( mgr == null ) { android.util.Log.e ( android.net.wifi.nan.WifiNanSession.TAG , "createNetworkSpecifier: called post GC on WifiNanManager" ) ; return "" ; } if ( mTerminated ) { android.util.Log.e ( android.net.wifi.nan.WifiNanSession.TAG , "createNetworkSpecifier: called after termination" ) ; return "" ; } return mgr.createNetworkSpecifier ( mClientId , role , peer , token ) ; }

Target:
public java.lang.String createNetworkSpecifier ( @ android.net.wifi.aware.WifiAwareManager.DataPathRole int role , @ android.annotation.Nullable byte [ ] peer , @ android.annotation.Nullable byte [ ] token ) { android.net.wifi.aware.WifiAwareManager mgr = mMgr.get ( ) ; if ( mgr == null ) { android.util.Log.e ( android.net.wifi.aware.WifiAwareSession.TAG , "createNetworkSpecifier: called post GC on WifiAwareManager" ) ; return "" ; } if ( mTerminated ) { android.util.Log.e ( android.net.wifi.aware.WifiAwareSession.TAG , "createNetworkSpecifier: called after termination" ) ; return "" ; } return mgr.createNetworkSpecifier ( mClientId , role , peer , token ) ; }
Source:
public void action ( com.android.ide.common.api.MenuAction action , final java.lang.String valueId , java.lang.Boolean newValue ) { java.lang.String actionId = action.getId ( ) ; final com.android.ide.common.api.INode node = selectedNode ; if ( actionId.equals ( "_orientation" ) ) { node.editXml ( ( "Change LinearLayout " + ( com.android.ide.common.layout.LayoutConstants.ATTR_ORIENTATION ) ) , new com.android.ide.common.api.INodeHandler ( ) { public void handle ( com.android.ide.common.api.INode n ) { node.setAttribute ( com.android.ide.common.layout.LayoutConstants.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_ORIENTATION , valueId ) ; } } ) ; } }

Target:
public java.util.List < com.android.ide.common.api.MenuAction > getContextMenu ( final com.android.ide.common.api.INode selectedNode ) { if ( supportsOrientation ( ) ) { java.lang.String current = getCurrentOrientation ( selectedNode ) ; com.android.ide.common.api.IMenuCallback onChange = new com.android.ide.common.layout.PropertyCallback ( java.util.Collections.singletonList ( selectedNode ) , "Change LinearLayout Orientation" , com.android.ide.common.layout.LayoutConstants.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_ORIENTATION ) ; return concatenate ( super . getContextMenu ( selectedNode ) , new com.android.ide.common.api.MenuAction.Choices ( com.android.ide.common.layout.LinearLayoutRule.ACTION_ORIENTATION , "Orientation" , mapify ( "horizontal" , "Horizontal" , "vertical" , "Vertical" ) , current , onChange ) ) ; } else { return super . getContextMenu ( selectedNode ) ; } }
Source:
private native boolean getFolderItemsRspNative ( byte [ ] address , int rspStatus , short uidCounter , byte scope , int numItems , byte [ ] folderTypes , byte [ ] playable , byte [ ] itemTypes , byte [ ] itemUidArray , java.lang.String [ ] textArray , int [ ] AttributesNum , int [ ] AttributesIds , java.lang.String [ ] attributesArray ) ;

Target:
private native boolean getFolderItemsRspNative ( byte [ ] address , int rspStatus , short uidCounter , byte scope , int numItems , byte [ ] folderTypes , byte [ ] playable , byte [ ] itemTypes , byte [ ] itemUidArray , java.lang.String [ ] textArray , int [ ] attributesNum , int [ ] attributesIds , java.lang.String [ ] attributesArray ) ;
Source:
private final void logStartActivity ( int tag , com.android.server.am.ActivityRecord r , com.android.server.am.TaskRecord task ) { android.util.EventLog.writeEvent ( tag , java.lang.System.identityHashCode ( r ) , task.taskId , r.shortComponentName , r.intent.getAction ( ) , r.intent.getType ( ) , r.intent.getDataString ( ) , r.intent.getFlags ( ) ) ; }

Target:
static final void logStartActivity ( int tag , com.android.server.am.ActivityRecord r , com.android.server.am.TaskRecord task ) { final android.net.Uri data = r.intent.getData ( ) ; final java.lang.String strData = ( data != null ) ? data.toSafeString ( ) : null ; android.util.EventLog.writeEvent ( tag , r.userId , java.lang.System.identityHashCode ( r ) , task.taskId , r.shortComponentName , r.intent.getAction ( ) , r.intent.getType ( ) , strData , r.intent.getFlags ( ) ) ; }
Source:
private static int linearWithVeryLargePositiveStride ( ) { int [ ] x = new int [ ] { 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 } ; int result = 0 ; int k = 0 ; for ( int i = 1 ; i < 2147483647 ; i += 195225786 ) { result += x [ ( k ++ ) ] ; } return result ; }

Target:
private static int linearWithVeryLargePositiveStride ( ) { int [ ] x = new int [ ] { 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 } ; int result = 0 ; int k = 0 ; for ( int i = 1 ; i < ( java.lang.Integer.MAX_VALUE ) ; i += 195225786 ) { result += x [ ( k ++ ) ] ; } return result ; }
Source:
private static android.net.IpSecTransform buildIpSecTransform ( android.content.Context mContext , android.net.IpSecManager.SecurityParameterIndex spi , android.net.IpSecManager.UdpEncapsulationSocket encapSocket , java.net.InetAddress remoteAddr ) throws java.lang.Exception { java.lang.String localAddr = ( remoteAddr instanceof java.net.Inet4Address ) ? android.net.cts.IpSecManagerTest.IPV4_LOOPBACK : android.net.cts.IpSecManagerTest.IPV6_LOOPBACK ; return new android.net.IpSecTransform.Builder ( mContext ) . setEncryption ( new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ) . setAuthentication ( new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA256 , android.net.cts.IpSecManagerTest.AUTH_KEY , ( ( android.net.cts.IpSecManagerTest.AUTH_KEY.length ) * 4 ) ) ) . setIpv4Encapsulation ( encapSocket , encapSocket.getPort ( ) ) . buildTransportModeTransform ( java.net.InetAddress.getByName ( localAddr ) , spi ) ; }

Target:
public void testAesCbcHmacSha512Udp4UdpEncap ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA512 , getKey ( 512 ) , 256 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IPV4_LOOPBACK , crypt , auth , null , true , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IPV4_LOOPBACK , crypt , auth , null , true , 1 , true ) ; }
Source:
public com.ibm.icu.util.CurrencyAmount parseCurrency ( java.lang.CharSequence text , java.text.ParsePosition parsePosition ) { try { com.ibm.icu.util.CurrencyAmount result = com.ibm.icu.impl.number.Parse.parseCurrency ( text , parsePosition , properties , symbols ) ; if ( result == null ) return null ; java.lang.Number number = result.getNumber ( ) ; if ( number instanceof java.math.BigDecimal ) { number = new com.ibm.icu.math.BigDecimal ( ( ( java.math.BigDecimal ) ( number ) ) ) ; result = new com.ibm.icu.util.CurrencyAmount ( number , result.getCurrency ( ) ) ; } return result ; } catch ( java.text.ParseException e ) { return null ; } }

Target:
private java.lang.Number safeConvertBigDecimal ( java.math.BigDecimal number ) { try { return new com.ibm.icu.math.BigDecimal ( number ) ; } catch ( java.lang.NumberFormatException e ) { if ( ( ( number.signum ( ) ) > 0 ) && ( ( number.scale ( ) ) < 0 ) ) { return java.lang.Double.POSITIVE_INFINITY ; } else if ( ( number.scale ( ) ) < 0 ) { return java.lang.Double.NEGATIVE_INFINITY ; } else if ( ( number.signum ( ) ) < 0 ) { return - 0.0 ; } else { return 0.0 ; } } }
Source:
public void setCLIR ( int clirMode , android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_SET_CLIR , result ) ; rr.mParcel.writeInt ( 1 ) ; rr.mParcel.writeInt ( clirMode ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) + " " ) + clirMode ) ) ; send ( rr ) ; }

Target:
public void setNetworkSelectionModeAutomatic ( android.os.Message result ) { android.hardware.radio.V1_0.IRadio radioProxy = getRadioProxy ( result ) ; if ( radioProxy != null ) { com.android.internal.telephony.RILRequest rr = obtainRequest ( com.android.internal.telephony.RIL_REQUEST_SET_NETWORK_SELECTION_AUTOMATIC , result , mRILDefaultWorkSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; try { radioProxy.setNetworkSelectionModeAutomatic ( rr.mSerial ) ; } catch ( android.os.RemoteException | java.lang.RuntimeException e ) { handleRadioProxyExceptionForRR ( rr , "setNetworkSelectionModeAutomatic" , e ) ; } } }
Source:
public void onSuccess ( ) { android.telecom.Log.d ( this , "Adding simService %s" , currentSimService.getComponentName ( ) ) ; simServiceComponentNames.add ( currentSimService.getComponentName ( ) ) ; simServiceBinders.add ( currentSimService.mServiceInterface.asBinder ( ) ) ; maybeComplete ( ) ; }

Target:
public void onSuccess ( ) { final java.lang.String callId = mCallIdMapper.getCallId ( call ) ; if ( ( callId != null ) && ( isServiceValid ( "handoverComplete" ) ) ) { try { mServiceInterface.handoverComplete ( callId , android.telecom.Log.getExternalSession ( ) ) ; } catch ( android.os.RemoteException e ) { } } }
Source:
public void bootAnimationComplete ( ) { final boolean callFinishBooting ; synchronized ( this ) { callFinishBooting = mCallFinishBooting ; mBootAnimationComplete = true ; } if ( callFinishBooting ) { finishBooting ( ) ; } }

Target:
final void ensureBootCompleted ( ) { boolean booting ; boolean enableScreen ; synchronized ( this ) { booting = mBooting ; mBooting = false ; enableScreen = ! ( mBooted ) ; mBooted = true ; } if ( booting ) { android.os.Trace.traceBegin ( Trace.TRACE_TAG_ACTIVITY_MANAGER , "FinishBooting" ) ; finishBooting ( ) ; android.os.Trace.traceEnd ( Trace.TRACE_TAG_ACTIVITY_MANAGER ) ; } if ( enableScreen ) { enableScreenAfterBoot ( ) ; } }
Source:
public com.android.dx.merge.TypeList readTypeList ( ) { int size = readInt ( ) ; short [ ] types = new short [ size ] ; for ( int i = 0 ; i < size ; i ++ ) { types [ i ] = readShort ( ) ; } alignToFourBytes ( ) ; return new com.android.dx.merge.TypeList ( this , types ) ; }

Target:
public com.android.dex.TypeList readTypeList ( ) { int size = readInt ( ) ; short [ ] types = new short [ size ] ; for ( int i = 0 ; i < size ; i ++ ) { types [ i ] = readShort ( ) ; } alignToFourBytes ( ) ; return new com.android.dex.TypeList ( this , types ) ; }
Source:
public boolean visitMethodInvocation ( lombok.ast.MethodInvocation node ) { if ( ( node.astName ( ) . astValue ( ) . equals ( methodName ) ) && ( ( node.astOperand ( ) ) instanceof lombok.ast.Super ) ) { result.set ( true ) ; } return super . visitMethodInvocation ( node ) ; }

Target:
public boolean visitSuper ( lombok.ast.Super node ) { com.android.tools.lint.client.api.JavaParser.ResolvedNode resolved = null ; if ( ( node.getParent ( ) ) instanceof lombok.ast.MethodInvocation ) { resolved = mContext.resolve ( node.getParent ( ) ) ; } if ( resolved == null ) { resolved = mContext.resolve ( node ) ; } if ( mMethod.equals ( resolved ) ) { mCallsSuper = true ; return true ; } return false ; }
Source:
public void testDockActivity ( ) throws java.lang.Exception { launchActivityInDockStack ( android.server.cts.ActivityManagerDockedStackTests.TEST_ACTIVITY_NAME ) ; mAmWmState.computeState ( mDevice , new java.lang.String [ ] { android.server.cts.ActivityManagerDockedStackTests.TEST_ACTIVITY_NAME } ) ; mAmWmState.assertContainsStack ( "Must contain home stack." , android.server.cts.HOME_STACK_ID ) ; mAmWmState.assertContainsStack ( "Must contain docked stack." , android.server.cts.DOCKED_STACK_ID ) ; }

Target:
public void testDockActivity ( ) throws java.lang.Exception { if ( ! ( supportsMultiWindowMode ( ) ) ) { com.android.tradefed.log.LogUtil.CLog.logAndDisplay ( LogLevel.INFO , "Skipping test: no multi-window support" ) ; return ; } launchActivityInDockStack ( android.server.cts.ActivityManagerDockedStackTests.TEST_ACTIVITY_NAME ) ; mAmWmState.computeState ( mDevice , new java.lang.String [ ] { android.server.cts.ActivityManagerDockedStackTests.TEST_ACTIVITY_NAME } ) ; mAmWmState.assertContainsStack ( "Must contain home stack." , android.server.cts.HOME_STACK_ID ) ; mAmWmState.assertContainsStack ( "Must contain docked stack." , android.server.cts.DOCKED_STACK_ID ) ; }
Source:
public void testSSLException06 ( ) { javax.net.ssl.SSLException sE ; for ( int i = 0 ; i < ( tests.api.javax.net.ssl.SSLExceptionTest.msgs.length ) ; i ++ ) { sE = new javax.net.ssl.SSLException ( tests.api.javax.net.ssl.SSLExceptionTest.msgs [ i ] , null ) ; assertEquals ( "getMessage() must return: " . concat ( tests.api.javax.net.ssl.SSLExceptionTest.msgs [ i ] ) , sE.getMessage ( ) , tests.api.javax.net.ssl.SSLExceptionTest.msgs [ i ] ) ; assertNull ( "getCause() must return null" , sE.getCause ( ) ) ; } }

Target:
public void testSSLException06 ( ) { javax.net.ssl.SSLException sE ; for ( int i = 0 ; i < ( org.apache.harmony.tests.javax.net.ssl.SSLExceptionTest.msgs.length ) ; i ++ ) { sE = new javax.net.ssl.SSLException ( org.apache.harmony.tests.javax.net.ssl.SSLExceptionTest.msgs [ i ] , null ) ; assertEquals ( "getMessage() must return: " . concat ( org.apache.harmony.tests.javax.net.ssl.SSLExceptionTest.msgs [ i ] ) , sE.getMessage ( ) , org.apache.harmony.tests.javax.net.ssl.SSLExceptionTest.msgs [ i ] ) ; assertNull ( "getCause() must return null" , sE.getCause ( ) ) ; } }
Source:
private java.util.List < com.android.bluetooth.avrcp.MediaController > getActiveControllersList ( ) { java.util.List < com.android.bluetooth.avrcp.MediaController > controllersList = new java.util.ArrayList < com.android.bluetooth.avrcp.MediaController > ( ) ; controllersList = mMediaSessionManager.getActiveSessions ( null ) ; android.util.Log.i ( com.android.bluetooth.avrcp.Avrcp.TAG , ( ( "getActiveControllersList: " + ( controllersList.size ( ) ) ) + " controllers" ) ) ; return controllersList ; }

Target:
private java.util.List < com.android.bluetooth.avrcp.MediaController > getActiveControllersList ( ) { java.util.List < com.android.bluetooth.avrcp.MediaController > controllersList = new java.util.ArrayList < com.android.bluetooth.avrcp.MediaController > ( ) ; if ( ( mMediaSessionManager ) != null ) { controllersList = mMediaSessionManager.getActiveSessions ( null ) ; } android.util.Log.i ( com.android.bluetooth.avrcp.Avrcp.TAG , ( ( "getActiveControllersList: " + ( controllersList.size ( ) ) ) + " controllers" ) ) ; return controllersList ; }
Source:
synchronized void nAllocationData2D ( int dstAlloc , int dstXoff , int dstYoff , int dstMip , int dstFace , int width , int height , int srcAlloc , int srcXoff , int srcYoff , int srcMip , int srcFace ) { validate ( ) ; rsnAllocationData2D ( mContext , dstAlloc , dstXoff , dstYoff , dstMip , dstFace , width , height , srcAlloc , srcXoff , srcYoff , srcMip , srcFace ) ; }

Target:
synchronized void nAllocationData2D ( long dstAlloc , int dstXoff , int dstYoff , int dstMip , int dstFace , int width , int height , long srcAlloc , int srcXoff , int srcYoff , int srcMip , int srcFace ) { validate ( ) ; rsnAllocationData2D ( mContext , dstAlloc , dstXoff , dstYoff , dstMip , dstFace , width , height , srcAlloc , srcXoff , srcYoff , srcMip , srcFace ) ; }
Source:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.WhileStatement x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { try { com.android.jack.ir.sourceinfo.SourceInfo info = makeSourceInfo ( x ) ; com.android.jack.ir.ast.JStatement action = pop ( x.action ) ; com.android.jack.ir.ast.JExpression condition = pop ( x.condition ) ; if ( action == null ) { action = new com.android.jack.ir.ast.JBlock ( info ) ; } push ( new com.android.jack.ir.ast.JWhileStatement ( info , condition , action ) ) ; } catch ( java.lang.Throwable e ) { throw translateException ( x , e ) ; } }

Target:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.WhileStatement x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { try { com.android.jack.ir.sourceinfo.SourceInfo info = makeSourceInfo ( x ) ; com.android.jack.ir.ast.JStatement action = pop ( x.action ) ; com.android.jack.ir.ast.JExpression condition = pop ( x.condition ) ; if ( action == null ) { action = new com.android.jack.ir.ast.JBlock ( info ) ; } push ( new com.android.jack.ir.ast.JWhileStatement ( info , condition , action ) ) ; } catch ( java.lang.RuntimeException e ) { throw translateException ( x , e ) ; } }
Source:
public java.lang.CharSequence getSimCarrierIdName ( ) { try { com.android.internal.telephony.ITelephony service = getITelephony ( ) ; if ( service != null ) { return service.getSubscriptionCarrierName ( getSubId ( ) ) ; } } catch ( android.os.RemoteException ex ) { ex.rethrowAsRuntimeException ( ) ; } return null ; }

Target:
public java.lang.CharSequence getSimCarrierIdName ( ) { try { com.android.internal.telephony.ITelephony service = getITelephony ( ) ; if ( service != null ) { return service.getSubscriptionCarrierName ( getSubId ( ) ) ; } } catch ( android.os.RemoteException ex ) { } return null ; }
Source:
public void visitProgramMethod ( proguard.shrink.ProgramClass programClass , proguard.shrink.ProgramMethod programMethod ) { if ( ( usageMarker.isUsed ( programMethod ) ) ^ ( printUnusedItems ) ) { printClassNameHeader ( ) ; ps.print ( "====" ) ; ps.print ( " " ) ; programMethod.attributesAccept ( programClass , this ) ; ps.println ( proguard.shrink.ClassUtil.externalFullMethodDescription ( programClass.getName ( ) , programMethod.getAccessFlags ( ) , programMethod.getName ( programClass ) , programMethod.getDescriptor ( programClass ) ) ) ; } }

Target:
public void visitProgramMethod ( proguard.shrink.ProgramClass programClass , proguard.shrink.ProgramMethod programMethod ) { if ( ( usageMarker.isUsed ( programMethod ) ) ^ ( printUnusedItems ) ) { printClassNameHeader ( ) ; ps.print ( " " ) ; programMethod.attributesAccept ( programClass , this ) ; ps.println ( proguard.shrink.ClassUtil.externalFullMethodDescription ( programClass.getName ( ) , programMethod.getAccessFlags ( ) , programMethod.getName ( programClass ) , programMethod.getDescriptor ( programClass ) ) ) ; } }
Source:
public void testConstructor5 ( ) { java.lang.Integer [ ] ints = new java.lang.Integer [ SIZE ] ; for ( int i = 0 ; i < ( ( SIZE ) - 1 ) ; ++ i ) ints [ i ] = i ; java.util.Collection < java.lang.Integer > elements = java.util.Arrays.asList ( ints ) ; try { new java.util.concurrent.ArrayBlockingQueue ( SIZE , false , java.util.Arrays.asList ( ints ) ) ; shouldThrow ( ) ; } catch ( java.lang.NullPointerException success ) { } }

Target:
public void testConstructor5 ( ) { java.lang.Integer [ ] ints = new java.lang.Integer [ SIZE ] ; for ( int i = 0 ; i < ( ( SIZE ) - 1 ) ; ++ i ) ints [ i ] = i ; java.util.Collection < java.lang.Integer > elements = java.util.Arrays.asList ( ints ) ; try { new java.util.concurrent.ArrayBlockingQueue ( SIZE , false , elements ) ; shouldThrow ( ) ; } catch ( java.lang.NullPointerException success ) { } }
Source:
public void onAvailable ( android.net.Network network ) { android.net.NetworkCapabilities networkCapabilities = mConnectivityManager.getNetworkCapabilities ( network ) ; if ( com.android.systemui.statusbar.policy.SecurityControllerImpl.DEBUG ) android.util.Log.d ( com.android.systemui.statusbar.policy.SecurityControllerImpl.TAG , ( ( ( "onAvailable " + ( network.netId ) ) + " : " ) + networkCapabilities ) ) ; if ( networkCapabilities.hasTransport ( NetworkCapabilities.TRANSPORT_VPN ) ) { setCurrentNetid ( network.netId ) ; } }

Target:
public void onAvailable ( android.net.Network network ) { android.net.NetworkCapabilities networkCapabilities = mConnectivityManager.getNetworkCapabilities ( network ) ; if ( com.android.systemui.statusbar.policy.SecurityControllerImpl.DEBUG ) android.util.Log.d ( com.android.systemui.statusbar.policy.SecurityControllerImpl.TAG , ( ( ( "onAvailable " + ( network.netId ) ) + " : " ) + networkCapabilities ) ) ; if ( ( networkCapabilities != null ) && ( networkCapabilities.hasTransport ( NetworkCapabilities.TRANSPORT_VPN ) ) ) { setCurrentNetid ( network.netId ) ; } }
Source:
public void testAvailableEmptySource ( ) throws java.lang.Exception { byte [ ] deflated = new byte [ ] { 120 , - 100 , 3 , 0 , 0 , 0 , 0 , 1 } ; java.io.InputStream in = new java.util.zip.InflaterInputStream ( new java.io.ByteArrayInputStream ( deflated ) ) ; assertEquals ( ( - 1 ) , in.read ( ) ) ; assertEquals ( ( - 1 ) , in.read ( ) ) ; assertEquals ( 0 , in.available ( ) ) ; }

Target:
public void testAvailableEmptySource ( ) throws java.lang.Exception { byte [ ] deflated = new byte [ ] { 120 , - 100 , 3 , 0 , 0 , 0 , 0 , 1 } ; try ( java.io.InputStream in = new java.util.zip.InflaterInputStream ( new java.io.ByteArrayInputStream ( deflated ) ) ) { assertEquals ( ( - 1 ) , in.read ( ) ) ; assertEquals ( ( - 1 ) , in.read ( ) ) ; assertEquals ( 0 , in.available ( ) ) ; } }
Source:
public com.android.dx.cf.code.LocalVariableList.Item pcAndIndexToLocal ( int pc , int index ) { if ( ! ( isSorted ( ) ) ) { throw new java.lang.AssertionError ( "local variable list should be sorted" ) ; } int sz = size ( ) ; for ( int i = 0 ; i < sz ; i ++ ) { com.android.dx.cf.code.LocalVariableList.Item one = ( ( com.android.dx.cf.code.LocalVariableList.Item ) ( get0 ( i ) ) ) ; if ( ( one != null ) && ( one.matchesPcAndIndex ( pc , index ) ) ) { return one ; } } return null ; }

Target:
public com.android.dx.cf.code.LocalVariableList.Item pcAndIndexToLocal ( int pc , int index ) { int sz = size ( ) ; for ( int i = 0 ; i < sz ; i ++ ) { com.android.dx.cf.code.LocalVariableList.Item one = ( ( com.android.dx.cf.code.LocalVariableList.Item ) ( get0 ( i ) ) ) ; if ( ( one != null ) && ( one.matchesPcAndIndex ( pc , index ) ) ) { return one ; } } return null ; }
Source:
static void native_setSinCos ( int native_object , float sinValue , float cosValue , float px , float py ) { android.graphics.Matrix_Delegate d = android.graphics.Matrix_Delegate.sManager.getDelegate ( native_object ) ; if ( d == null ) { return ; } android.graphics.Matrix_Delegate.setTranslate ( d.mValues , ( - px ) , ( - py ) ) ; d.postTransform ( android.graphics.Matrix_Delegate.getRotate ( sinValue , cosValue ) ) ; d.postTransform ( android.graphics.Matrix_Delegate.getTranslate ( px , py ) ) ; }

Target:
static void native_setSinCos ( long native_object , float sinValue , float cosValue , float px , float py ) { android.graphics.Matrix_Delegate d = android.graphics.Matrix_Delegate.sManager.getDelegate ( native_object ) ; if ( d == null ) { return ; } android.graphics.Matrix_Delegate.setTranslate ( d.mValues , ( - px ) , ( - py ) ) ; d.postTransform ( android.graphics.Matrix_Delegate.getRotate ( sinValue , cosValue ) ) ; d.postTransform ( android.graphics.Matrix_Delegate.getTranslate ( px , py ) ) ; }
Source:
public int changeEncryptionPassword ( int type , java.lang.String password ) { mContext.enforceCallingOrSelfPermission ( Manifest.permission.CRYPT_KEEPER , "no permission to access the crypt keeper" ) ; waitForReady ( ) ; if ( com.android.server.MountService.DEBUG_EVENTS ) { android.util.Slog.i ( com.android.server.MountService.TAG , "changing encryption password..." ) ; } try { com.android.server.NativeDaemonEvent event = mConnector.execute ( "cryptfs" , "changepw" , com.android.server.MountService.CRYPTO_TYPES [ type ] , new com.android.server.NativeDaemonConnector.SensitiveArg ( toHex ( password ) ) ) ; return java.lang.Integer.parseInt ( event.getMessage ( ) ) ; } catch ( com.android.server.NativeDaemonConnectorException e ) { return e.getCode ( ) ; } }

Target:
public int changeEncryptionPassword ( int type , java.lang.String password ) { mContext.enforceCallingOrSelfPermission ( Manifest.permission.CRYPT_KEEPER , "no permission to access the crypt keeper" ) ; waitForReady ( ) ; if ( com.android.server.MountService.DEBUG_EVENTS ) { android.util.Slog.i ( com.android.server.MountService.TAG , "changing encryption password..." ) ; } try { com.android.server.NativeDaemonEvent event = mConnector.execute ( "cryptfs" , "changepw" , com.android.server.MountService.CRYPTO_TYPES [ type ] , new com.android.server.NativeDaemonConnector.SensitiveArg ( com.android.server.MountService.toHex ( password ) ) ) ; return java.lang.Integer.parseInt ( event.getMessage ( ) ) ; } catch ( com.android.server.NativeDaemonConnectorException e ) { return e.getCode ( ) ; } }
Source:
private void rescale ( int direction ) { double s = mCanvasViewer.getCanvas ( ) . getScale ( ) ; if ( direction > 0 ) { s = s * 2 ; } else { s = s / 2 ; } mCanvasViewer.getCanvas ( ) . setScale ( s ) ; }

Target:
private void rescale ( int direction ) { double s = mCanvasViewer.getCanvas ( ) . getScale ( ) ; if ( direction > 0 ) { s = s * 2 ; } else { s = s / 2 ; } mCanvasViewer.getCanvas ( ) . setScale ( s , true ) ; }
Source:
public E getLast ( ) { E x = elements [ ( ( ( tail ) - 1 ) & ( ( elements.length ) - 1 ) ) ] ; if ( x == null ) throw new java.util.NoSuchElementException ( ) ; return x ; }

Target:
public E getLast ( ) { @ java.lang.SuppressWarnings ( value = "unchecked" ) E result = ( ( E ) ( elements [ ( ( ( tail ) - 1 ) & ( ( elements.length ) - 1 ) ) ] ) ) ; if ( result == null ) throw new java.util.NoSuchElementException ( ) ; return result ; }
Source:
public void testDestroyDoesNotLeak ( ) throws java.io.IOException { libcore.dalvik.system.CloseGuardTester closeGuardTester = new libcore.dalvik.system.CloseGuardTester ( ) ; try { java.lang.Process process = new java.lang.ProcessBuilder ( libcore.java.lang.ProcessBuilderTest.shell ( ) , "-c" , "echo out; echo err 1>&2" ) . start ( ) ; process.destroy ( ) ; closeGuardTester.assertEverythingWasClosed ( ) ; } finally { closeGuardTester.close ( ) ; } }

Target:
public void testDestroyDoesNotLeak ( ) throws java.io.IOException { java.lang.Process process = new java.lang.ProcessBuilder ( libcore.java.lang.ProcessBuilderTest.shell ( ) , "-c" , "echo out; echo err 1>&2" ) . start ( ) ; process.destroy ( ) ; }
Source:
public static java.lang.String string ( long myJavaStart , long myJavaEnd , long myRsStart , long myCopyStart , long myKernelStart , long myRsEnd , com.android.rs.test.Allocation ... myInputs ) { return new com.android.rs.test.UT_reduce.timing ( myJavaStart , myJavaEnd , myRsStart , myCopyStart , myKernelStart , myRsEnd , myInputs ) . string ( ) ; }

Target:
public static java.lang.String string ( long myJavaStart , long myJavaEnd , long myRsStart , long myCopyStart , long myKernelStart , long myRsEnd , android.renderscript.Allocation ... myInputs ) { return new com.android.rs.test.UT_reduce.timing ( myJavaStart , myJavaEnd , myRsStart , myCopyStart , myKernelStart , myRsEnd , myInputs ) . string ( ) ; }
Source:
PackageParser.Package findSharedNonSystemLibrary ( java.lang.String libName ) { synchronized ( mPackages ) { com.android.server.pm.PackageManagerService.SharedLibraryEntry lib = mSharedLibraries.get ( libName ) ; if ( ( lib != null ) && ( ( lib.apk ) != null ) ) { return mPackages.get ( lib.apk ) ; } } return null ; }

Target:
private PackageParser.Package findSharedNonSystemLibrary ( java.lang.String libName ) { synchronized ( mPackages ) { com.android.server.pm.PackageManagerService.SharedLibraryEntry lib = mSharedLibraries.get ( libName ) ; if ( ( lib != null ) && ( ( lib.apk ) != null ) ) { return mPackages.get ( lib.apk ) ; } } return null ; }
Source:
public void configure ( java.lang.String [ ] argv ) { super . configure ( argv ) ; checkedClasspaths = new org.eclipse.jdt.internal.compiler.batch.FileSystem.Classpath [ ] { new com.android.jack.ecj.loader.jast.JAstClasspath ( "<jack-logical-entry>" , session.getLookup ( ) , null ) } ; java.util.List < java.lang.String > fileNamesToCompile = session.getInputFilter ( ) . getFileNamesToCompile ( ) ; filenames = fileNamesToCompile.toArray ( new java.lang.String [ fileNamesToCompile.size ( ) ] ) ; }

Target:
public void configure ( java.lang.String [ ] argv ) { super . configure ( argv ) ; checkedClasspaths = new org.eclipse.jdt.internal.compiler.batch.FileSystem.Classpath [ ] { new com.android.jack.ecj.loader.jast.JAstClasspath ( "<jack-logical-entry>" , session.getLookup ( ) , null ) } ; java.util.Set < java.lang.String > fileNamesToCompile = session.getInputFilter ( ) . getFileNamesToCompile ( ) ; filenames = fileNamesToCompile.toArray ( new java.lang.String [ fileNamesToCompile.size ( ) ] ) ; }
Source:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) throws java.lang.Exception { if ( ( ( ( method.getEnclosingType ( ) . isExternal ( ) ) || ( method.isNative ( ) ) ) || ( method.isAbstract ( ) ) ) || ( ! ( filter.accept ( this . getClass ( ) , method ) ) ) ) { return ; } new com.android.jack.transformations.ast.switches.UselessCaseRemover.Remover ( ) . accept ( method ) ; }

Target:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) throws java.lang.Exception { if ( ( ( method.isNative ( ) ) || ( method.isAbstract ( ) ) ) || ( ! ( filter.accept ( this . getClass ( ) , method ) ) ) ) { return ; } new com.android.jack.transformations.ast.switches.UselessCaseRemover.Remover ( ) . accept ( method ) ; }
Source:
public void addressUpdated ( java.lang.String address , java.lang.String iface , int flags , int scope ) { if ( mWifiStateMachine.mInterfaceName.equals ( iface ) ) { if ( android.net.wifi.WifiStateMachine.DBG ) { log ( ( ( ( ( ( ( ( "addressUpdated: " + address ) + " on " ) + iface ) + " flags " ) + flags ) + " scope " ) + scope ) ) ; } mWifiStateMachine.sendMessage ( android.net.wifi.WifiStateMachine.CMD_IP_ADDRESS_UPDATED , new android.net.LinkAddress ( address ) ) ; } }

Target:
public void addressUpdated ( android.net.LinkAddress address , java.lang.String iface , int flags , int scope ) { if ( mWifiStateMachine.mInterfaceName.equals ( iface ) ) { if ( android.net.wifi.WifiStateMachine.DBG ) { log ( ( ( ( ( ( ( ( "addressUpdated: " + address ) + " on " ) + iface ) + " flags " ) + flags ) + " scope " ) + scope ) ) ; } mWifiStateMachine.sendMessage ( android.net.wifi.WifiStateMachine.CMD_IP_ADDRESS_UPDATED , address ) ; } }
Source:
public boolean getDataEnabled ( int subId ) { boolean retVal = false ; try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) retVal = telephony.getDataEnabled ( subId ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#getDataEnabled" , e ) ; } catch ( java.lang.NullPointerException e ) { } android.util.Log.d ( android.telephony.TelephonyManager.TAG , ( "getDataEnabled: retVal=" + retVal ) ) ; return retVal ; }

Target:
public boolean getDataEnabled ( int subId ) { boolean retVal = false ; try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) retVal = telephony.getDataEnabled ( subId ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#getDataEnabled" , e ) ; } catch ( java.lang.NullPointerException e ) { } return retVal ; }
Source:
public void test_ConstructorLjava_net_InetAddressILjava_net_InetAddressI ( ) throws java.io.IOException { java.net.ServerSocket server = new java.net.ServerSocket ( 0 ) ; java.net.Socket client = new java.net.Socket ( java.net.InetAddress.getLocalHost ( ) , server.getLocalPort ( ) , java.net.InetAddress.getLocalHost ( ) , 0 ) ; assertNotSame ( "Failed to create socket" , 0 , client.getLocalPort ( ) ) ; }

Target:
public void test_ConstructorLjava_net_InetAddressILjava_net_InetAddressI ( ) throws java.io.IOException { try ( java.net.ServerSocket server = new java.net.ServerSocket ( 0 ) ; java.net.Socket client = new java.net.Socket ( java.net.InetAddress.getLocalHost ( ) , server.getLocalPort ( ) , java.net.InetAddress.getLocalHost ( ) , 0 ) ) { assertNotSame ( "Failed to create socket" , 0 , client.getLocalPort ( ) ) ; } }
Source:
public java.lang.String getOriginalMimeType ( java.lang.String path ) { if ( ( null == path ) || ( path.equals ( "" ) ) ) { throw new java.lang.IllegalArgumentException ( "Given path should be non null" ) ; } else if ( ( getState ( ) ) == ( android.drm.DrmManagerClient.STATE_UNINITIALIZED ) ) { throw new java.lang.IllegalStateException ( "Not Initialized yet" ) ; } return _getOriginalMimeType ( mUniqueId , path ) ; }

Target:
public java.lang.String getOriginalMimeType ( java.lang.String path ) { if ( ( null == path ) || ( path.equals ( "" ) ) ) { throw new java.lang.IllegalArgumentException ( "Given path should be non null" ) ; } else if ( ( android.drm.DrmManagerClient.STATE_UNINITIALIZED ) == ( getState ( ) ) ) { throw new java.lang.IllegalStateException ( "Not Initialized yet" ) ; } return _getOriginalMimeType ( mUniqueId , path ) ; }
Source:
static void goDump ( android.os.IBinder binder , java.io.FileDescriptor out , java.lang.String [ ] args , long timeout ) throws android.os.RemoteException , java.io.IOException { if ( binder instanceof android.os.Binder ) { try { binder.dump ( out , args ) ; } catch ( android.os.RemoteException e ) { } return ; } com.android.internal.os.TransferPipe tp = new com.android.internal.os.TransferPipe ( ) ; try { binder.dumpAsync ( tp.getWriteFd ( ) . getFileDescriptor ( ) , args ) ; tp.go ( out , timeout ) ; } finally { tp.kill ( ) ; } }

Target:
static void goDump ( android.os.IBinder binder , java.io.FileDescriptor out , java.lang.String [ ] args , long timeout ) throws android.os.RemoteException , java.io.IOException { if ( binder instanceof android.os.Binder ) { try { binder.dump ( out , args ) ; } catch ( android.os.RemoteException e ) { } return ; } try ( com.android.internal.os.TransferPipe tp = new com.android.internal.os.TransferPipe ( ) ) { binder.dumpAsync ( tp.getWriteFd ( ) . getFileDescriptor ( ) , args ) ; tp.go ( out , timeout ) ; } }
Source:
public void testSetTestClassWithTestSuite ( ) throws java.lang.Exception { mAndroidTestRunner.setTestClassName ( android.test.AndroidTestRunnerTest.SampleTestSuite.class . getName ( ) , null ) ; java.util.List < junit.framework.TestCase > testCases = mAndroidTestRunner.getTestCases ( ) ; java.util.List < java.lang.String > testNames = com.google.android.collect.Lists.newArrayList ( ) ; for ( junit.framework.TestCase testCase : testCases ) { testNames.add ( testCase.getName ( ) ) ; } assertEquals ( java.util.Arrays.asList ( "testOne" , "testOne" , "testTwo" ) , testNames ) ; }

Target:
public void testSetTestClassWithTestSuite ( ) throws java.lang.Exception { mAndroidTestRunner.setTestClassName ( android.test.AndroidTestRunnerTest.SampleTestSuite.class . getName ( ) , null ) ; java.util.List < junit.framework.TestCase > testCases = mAndroidTestRunner.getTestCases ( ) ; java.util.List < java.lang.String > testNames = new java.util.ArrayList < > ( ) ; for ( junit.framework.TestCase testCase : testCases ) { testNames.add ( testCase.getName ( ) ) ; } assertEquals ( java.util.Arrays.asList ( "testOne" , "testOne" , "testTwo" ) , testNames ) ; }
Source:
public void afterHandshake ( int session , int s , int c , java.net.Socket sock , java.io.FileDescriptor fd , org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { java.lang.String a = org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_SESSION_cipher ( session ) ; assertTrue ( NativeCrypto.OPENSSL_TO_STANDARD_CIPHER_SUITES.containsKey ( a ) ) ; super . afterHandshake ( session , s , c , sock , fd , callback ) ; }

Target:
public void afterHandshake ( long session , long s , long c , java.net.Socket sock , java.io.FileDescriptor fd , org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { java.lang.String a = org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_SESSION_cipher ( session ) ; assertTrue ( NativeCrypto.OPENSSL_TO_STANDARD_CIPHER_SUITES.containsKey ( a ) ) ; super . afterHandshake ( session , s , c , sock , fd , callback ) ; }
Source:
public void onServicesDiscovered ( android.bluetooth.BluetoothGatt gatt , int status ) { if ( com.android.cts.verifier.bluetooth.BleClientService.DEBUG ) android.util.Log.d ( com.android.cts.verifier.bluetooth.BleClientService.TAG , "onServiceDiscovered" ) ; if ( ( status == ( android.bluetooth.BluetoothGatt.GATT_SUCCESS ) ) && ( ( mBluetoothGatt.getService ( com.android.cts.verifier.bluetooth.BleClientService.SERVICE_UUID ) ) != null ) ) { notifyServicesDiscovered ( ) ; sleep ( 1000 ) ; writeCharacteristic ( com.android.cts.verifier.bluetooth.BleClientService.WRITE_VALUE ) ; } }

Target:
public void onServicesDiscovered ( android.bluetooth.BluetoothGatt gatt , int status ) { if ( com.android.cts.verifier.bluetooth.BleClientService.DEBUG ) { android.util.Log.d ( com.android.cts.verifier.bluetooth.BleClientService.TAG , "onServiceDiscovered" ) ; } if ( ( status == ( android.bluetooth.BluetoothGatt.GATT_SUCCESS ) ) && ( ( mBluetoothGatt.getService ( com.android.cts.verifier.bluetooth.BleClientService.SERVICE_UUID ) ) != null ) ) { notifyServicesDiscovered ( ) ; } }
Source:
private void incCallbackHandlerRefCount ( ) { synchronized ( android.net.ConnectivityManager.sCallbackRefCount ) { if ( ( android.net.ConnectivityManager.sCallbackRefCount.incrementAndGet ( ) ) == 1 ) { android.os.HandlerThread callbackThread = new android.os.HandlerThread ( "ConnectivityManager" ) ; callbackThread.start ( ) ; android.net.ConnectivityManager.sCallbackHandler = new android.net.ConnectivityManager.CallbackHandler ( callbackThread.getLooper ( ) , android.net.ConnectivityManager.sNetworkCallback , android.net.ConnectivityManager.sCallbackRefCount , this ) ; } } }

Target:
private void incCallbackHandlerRefCount ( ) { synchronized ( android.net.ConnectivityManager.sCallbackRefCount ) { if ( ( android.net.ConnectivityManager.sCallbackRefCount.incrementAndGet ( ) ) == 1 ) { android.os.HandlerThread callbackThread = new android.os.HandlerThread ( "ConnectivityManager" ) ; callbackThread.start ( ) ; android.net.ConnectivityManager.sCallbackHandler = new android.net.ConnectivityManager.CallbackHandler ( callbackThread.getLooper ( ) ) ; } } }