auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testAesCbcHmacSha384Tcp6 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.getKey ( 256 ) ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA384 , android.net.cts.IpSecManagerTest.getKey ( 384 ) , 192 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth , null , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth , null , false , 1 , true ) ; }

Target:
public void testAesCbcHmacSha384Udp4 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA384 , getAuthKey ( 384 ) , 192 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , false , 1 , true ) ; }
Source:
public void visitRuntimeInvisibleParameterAnnotationsAttribute ( proguard.classfile.editor.Clazz clazz , proguard.classfile.editor.Method method , proguard.classfile.editor.RuntimeInvisibleParameterAnnotationsAttribute runtimeInvisibleParameterAnnotationsAttribute ) { proguard.classfile.editor.RuntimeInvisibleParameterAnnotationsAttribute newParameterAnnotationsAttribute = new proguard.classfile.editor.RuntimeInvisibleParameterAnnotationsAttribute ( constantAdder.addConstant ( clazz , runtimeInvisibleParameterAnnotationsAttribute.u2attributeNameIndex ) , 0 , new int [ runtimeInvisibleParameterAnnotationsAttribute.u2parametersCount ] , new proguard.classfile.editor.Annotation [ runtimeInvisibleParameterAnnotationsAttribute.u2parametersCount ] [ ] ) ; runtimeInvisibleParameterAnnotationsAttribute.annotationsAccept ( clazz , method , new proguard.classfile.editor.AnnotationAdder ( targetClass , newParameterAnnotationsAttribute ) ) ; attributesEditor.addAttribute ( newParameterAnnotationsAttribute ) ; }

Target:
public void visitRuntimeInvisibleParameterAnnotationsAttribute ( proguard.classfile.editor.Clazz clazz , proguard.classfile.editor.Method method , proguard.classfile.editor.RuntimeInvisibleParameterAnnotationsAttribute runtimeInvisibleParameterAnnotationsAttribute ) { proguard.classfile.editor.Annotation [ ] [ ] parameterAnnotations = new proguard.classfile.editor.Annotation [ runtimeInvisibleParameterAnnotationsAttribute.u1parametersCount ] [ ] ; java.util.Arrays.fill ( parameterAnnotations , proguard.classfile.editor.AttributeAdder.EMPTY_ANNOTATIONS ) ; proguard.classfile.editor.RuntimeInvisibleParameterAnnotationsAttribute newParameterAnnotationsAttribute = new proguard.classfile.editor.RuntimeInvisibleParameterAnnotationsAttribute ( constantAdder.addConstant ( clazz , runtimeInvisibleParameterAnnotationsAttribute.u2attributeNameIndex ) , 0 , new int [ runtimeInvisibleParameterAnnotationsAttribute.u1parametersCount ] , parameterAnnotations ) ; runtimeInvisibleParameterAnnotationsAttribute.annotationsAccept ( clazz , method , new proguard.classfile.editor.AnnotationAdder ( targetClass , newParameterAnnotationsAttribute ) ) ; attributesEditor.addAttribute ( newParameterAnnotationsAttribute ) ; }
Source:
protected void onPreHandleMessage ( android.os.Message msg ) { if ( ( ( msg.obj ) != null ) && ( ( msg.obj ) instanceof com.android.server.telecom.Session ) ) { java.lang.String messageCodeName = com.android.server.telecom.CallAudioRouteStateMachine.MESSAGE_CODE_TO_NAME.get ( msg.what , "unknown" ) ; com.android.server.telecom.Log.continueSession ( ( ( com.android.server.telecom.Session ) ( msg.obj ) ) , ( "CARSM.pM_" + messageCodeName ) ) ; com.android.server.telecom.Log.i ( this , "Message received: %s=%d" , messageCodeName , msg.what ) ; } }

Target:
protected void onPreHandleMessage ( android.os.Message msg ) { if ( ( ( msg.obj ) != null ) && ( ( msg.obj ) instanceof android.telecom.Logging.Session ) ) { java.lang.String messageCodeName = com.android.server.telecom.CallAudioRouteStateMachine.MESSAGE_CODE_TO_NAME.get ( msg.what , "unknown" ) ; android.telecom.Log.continueSession ( ( ( android.telecom.Logging.Session ) ( msg.obj ) ) , ( "CARSM.pM_" + messageCodeName ) ) ; android.telecom.Log.i ( this , "Message received: %s=%d" , messageCodeName , msg.what ) ; } }
Source:
private void handleDisable ( ) { synchronized ( mConnection ) { if ( ( ( mBluetooth ) != null ) && ( ! ( mConnection.isGetNameAddressOnly ( ) ) ) ) { if ( com.android.server.BluetoothManagerService.DBG ) android.util.Log.d ( com.android.server.BluetoothManagerService.TAG , "Sending off request." ) ; try { if ( ! ( mBluetooth.disable ( ) ) ) { android.util.Log.e ( com.android.server.BluetoothManagerService.TAG , "IBluetooth.disable() returned false" ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.e ( com.android.server.BluetoothManagerService.TAG , "Unable to call disable()" , e ) ; } } } }

Target:
private void handleDisable ( ) { try { mBluetoothLock.readLock ( ) . lock ( ) ; if ( ( mBluetooth ) != null ) { if ( com.android.server.BluetoothManagerService.DBG ) android.util.Log.d ( com.android.server.BluetoothManagerService.TAG , "Sending off request." ) ; if ( ! ( mBluetooth.disable ( ) ) ) { android.util.Log.e ( com.android.server.BluetoothManagerService.TAG , "IBluetooth.disable() returned false" ) ; } } } catch ( android.os.RemoteException e ) { android.util.Log.e ( com.android.server.BluetoothManagerService.TAG , "Unable to call disable()" , e ) ; } finally { mBluetoothLock.readLock ( ) . unlock ( ) ; } }
Source:
public void endVisit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface type ) { java.lang.String binaryName = remapper.mapValue ( formatter.getName ( type ) ) ; java.lang.String simpleName = com.android.jack.util.NamingTools.getSimpleClassNameFromBinaryName ( binaryName ) ; type.setName ( simpleName ) ; type.getEnclosingPackage ( ) . remove ( type ) ; java.lang.String packageName = com.android.jack.util.NamingTools.getPackageNameFromBinaryName ( binaryName ) ; com.android.jack.ir.ast.JPackage newPackage = lookup.getOrCreatePackage ( packageName ) ; type.setEnclosingPackage ( newPackage ) ; newPackage.addType ( type ) ; }

Target:
public void endVisit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface type ) { java.lang.String binaryName = remapper.mapValue ( formatter.getName ( type ) ) ; java.lang.String simpleName = com.android.jack.util.NamingTools.getSimpleClassNameFromBinaryName ( binaryName ) ; type.setName ( simpleName ) ; java.lang.String packageName = com.android.jack.util.NamingTools.getPackageNameFromBinaryName ( binaryName ) ; com.android.jack.ir.ast.JPackage newPackage = lookup.getOrCreatePackage ( packageName ) ; lookup.clear ( ) ; request.append ( new com.android.jack.transformations.request.ChangeEnclosingPackage ( type , newPackage ) ) ; }
Source:
public boolean initializeSupplicantHal ( ) { if ( ! ( com.android.server.wifi.WifiNative.HIDL_ENABLE ) ) { return true ; } if ( ( mSupplicantP2pIfaceHal ) != null ) { if ( ! ( mSupplicantP2pIfaceHal.initialize ( ) ) ) { return false ; } } return mSupplicantStaIfaceHal.initialize ( ) ; }

Target:
public boolean migrateNetworksFromSupplicant ( java.util.Map < java.lang.String , android.net.wifi.WifiConfiguration > configs , android.util.SparseArray < java.util.Map < java.lang.String , java.lang.String > > networkExtras ) { if ( com.android.server.wifi.WifiNative.HIDL_SUP_ENABLE ) { return mSupplicantStaIfaceHal.loadNetworks ( configs , networkExtras ) ; } else { mWifiSupplicantControl.loadNetworks ( configs , networkExtras ) ; return true ; } }
Source:
void baseStart ( ) { if ( android.media.PlayerBase.DEBUG ) { android.util.Log.v ( android.media.PlayerBase.TAG , ( "baseStart() piid=" + ( mPlayerIId ) ) ) ; } try { synchronized ( mLock ) { mState = AudioPlaybackConfiguration.PLAYER_STATE_STARTED ; android.media.PlayerBase.getService ( ) . playerEvent ( mPlayerIId , mState ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.media.PlayerBase.TAG , "Error talking to audio service, STARTED state will not be tracked" , e ) ; } synchronized ( mLock ) { if ( isRestricted_sync ( ) ) { playerSetVolume ( true , 0 , 0 ) ; } } }

Target:
private void updateState ( int state ) { final int piid ; synchronized ( mLock ) { mState = state ; piid = mPlayerIId ; } try { android.media.PlayerBase.getService ( ) . playerEvent ( piid , state ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.media.PlayerBase.TAG , ( ( ( "Error talking to audio service, " + ( android.media.AudioPlaybackConfiguration.toLogFriendlyPlayerState ( state ) ) ) + " state will not be tracked for piid=" ) + piid ) , e ) ; } }
Source:
public void testDensityOnlyWithNoMatch ( ) { java.util.List < com.android.build.VariantOutput > list = com.google.common.collect.Lists.newArrayList ( ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getDensityOutput ( 320 , 1 ) ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getDensityOutput ( 480 , 2 ) ) ; java.util.List < com.android.build.OutputFile > result = com.android.ide.common.build.SplitOutputMatcherTest.computeBestOutput ( list , 160 , "foo" ) ; assertEquals ( 0 , result.size ( ) ) ; }

Target:
public void testDensityOnlyWithNoMatch ( ) throws com.android.ide.common.process.ProcessException { java.util.List < com.android.build.VariantOutput > list = com.google.common.collect.Lists.newArrayList ( ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getDensityOutput ( 320 , 1 ) ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getDensityOutput ( 480 , 2 ) ) ; java.util.List < java.io.File > result = com.android.ide.common.build.SplitOutputMatcherTest.computeBestOutput ( list , 160 , "foo" ) ; assertEquals ( 0 , result.size ( ) ) ; }
Source:
private synchronized void onConnectStateChanged ( byte [ ] address , int state ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , ( ( ( "onConnectStateChanged(): address=" + ( java.util.Arrays.toString ( address ) ) ) + " state=" ) + state ) ) ; } android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.hid.HidDeviceService.MESSAGE_CONNECT_STATE_CHANGED ) ; msg.obj = address ; msg.arg1 = state ; mHandler.sendMessage ( msg ) ; }

Target:
synchronized void onApplicationStateChangedFromNative ( android.bluetooth.BluetoothDevice device , boolean registered ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , ( "onApplicationStateChanged(): registered=" + registered ) ) ; } android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.hid.HidDeviceService.MESSAGE_APPLICATION_STATE_CHANGED ) ; msg.obj = device ; msg.arg1 = ( registered ) ? 1 : 0 ; mHandler.sendMessage ( msg ) ; }
Source:
private static void doFollowReferencesTestImpl ( Main.A root , int stopAfter , int followSet , java.lang.Object asRoot , Main.Verifier v , java.lang.String additionalEnabled ) { java.lang.String [ ] lines = Main.followReferences ( 0 , null , root , stopAfter , followSet , asRoot ) ; v.process ( lines , additionalEnabled ) ; }

Target:
private void doFollowReferencesTestImpl ( Main.A root , int stopAfter , int followSet , java.lang.Object asRoot , Main.Verifier v , java.lang.String additionalEnabled ) { java.lang.String [ ] lines = Main.followReferences ( heapFilter , klass , root , stopAfter , followSet , asRoot ) ; v.process ( lines , additionalEnabled , ( ( ( heapFilter ) != 0 ) || ( ( klass ) != null ) ) ) ; }
Source:
public void registerProductFlavorSourceProvider ( @ com.android.annotations.NonNull java.lang.String name , @ com.android.annotations.NonNull com.android.build.gradle.internal.dsl.ProductFlavor productFlavor , @ com.android.annotations.NonNull com.android.builder.model.SourceProvider sourceProvider ) { if ( ( extraArtifactMap.get ( name ) ) == null ) { throw new java.lang.IllegalArgumentException ( "Artifact with name $name is not yet registered. Use registerArtifactType()" ) ; } extraProductFlavorSourceProviders.put ( productFlavor.getName ( ) , new com.android.build.gradle.internal.variant.DefaultSourceProviderContainer ( name , sourceProvider ) ) ; }

Target:
public void registerProductFlavorSourceProvider ( @ com.android.annotations.NonNull java.lang.String name , @ com.android.annotations.NonNull com.android.build.gradle.internal.dsl.ProductFlavor productFlavor , @ com.android.annotations.NonNull com.android.builder.model.SourceProvider sourceProvider ) { if ( ( extraArtifactMap.get ( name ) ) == null ) { throw new java.lang.IllegalArgumentException ( java.lang.String.format ( "Artifact with name %1$s is not yet registered. Use registerArtifactType()" , name ) ) ; } extraProductFlavorSourceProviders.put ( productFlavor.getName ( ) , new com.android.build.gradle.internal.variant.DefaultSourceProviderContainer ( name , sourceProvider ) ) ; }
Source:
public void report ( java.util.List < java.lang.String > dexPaths ) { if ( dexPaths.isEmpty ( ) ) { return ; } java.lang.String packageName = android.app.ActivityThread.currentPackageName ( ) ; try { android.app.ActivityThread.getPackageManager ( ) . notifyDexLoad ( packageName , dexPaths , dalvik.system.VMRuntime.getRuntime ( ) . vmInstructionSet ( ) ) ; } catch ( android.os.RemoteException re ) { android.util.Slog.e ( android.app.DexLoadReporter.TAG , ( "Failed to notify PM about dex load for package " + packageName ) , re ) ; } }

Target:
public void report ( java.util.List < java.lang.String > dexPaths ) { if ( dexPaths.isEmpty ( ) ) { return ; } notifyPackageManager ( dexPaths ) ; registerSecondaryDexForProfiling ( dexPaths ) ; }
Source:
private void getAllDexFilesFromDir ( @ javax.annotation.Nonnull com.android.sched.vfs.InputVDir dexFileVDir , @ javax.annotation.Nonnull java.util.List < com.android.sched.vfs.InputVFile > dexFiles ) { for ( com.android.sched.vfs.InputVElement subFile : dexFileVDir.list ( ) ) { if ( subFile.isVDir ( ) ) { getAllDexFilesFromDir ( ( ( com.android.sched.vfs.InputVDir ) ( subFile ) ) , dexFiles ) ; } else if ( BinaryKind.DEX.isBinaryFile ( ( ( com.android.sched.vfs.InputVFile ) ( subFile ) ) ) ) { dexFiles.add ( ( ( com.android.sched.vfs.InputOutputVFile ) ( subFile ) ) ) ; } } }

Target:
private void getAllDexFilesFromDir ( @ javax.annotation.Nonnull com.android.sched.vfs.InputVDir dexFileVDir , @ javax.annotation.Nonnull java.util.List < com.android.sched.vfs.InputVFile > dexFiles ) { for ( com.android.sched.vfs.InputVElement subFile : dexFileVDir.list ( ) ) { if ( subFile.isVDir ( ) ) { getAllDexFilesFromDir ( ( ( com.android.sched.vfs.InputVDir ) ( subFile ) ) , dexFiles ) ; } else if ( FileType.DEX.isOfType ( ( ( com.android.sched.vfs.InputVFile ) ( subFile ) ) ) ) { dexFiles.add ( ( ( com.android.sched.vfs.InputOutputVFile ) ( subFile ) ) ) ; } } }
Source:
private static java.util.List < com.android.jack.optimizations.DefUsesChainsSimplifier.OptInfo > collectCandidates ( @ javax.annotation.Nonnull java.util.Map < com.android.jack.ir.ast.JVariable , com.android.jack.optimizations.DefUsesChainsSimplifier.VarInfo > definitions ) { java.util.ArrayList < com.android.jack.optimizations.DefUsesChainsSimplifier.OptInfo > result = new java.util.ArrayList < > ( ) ; for ( java.util.Map.Entry < com.android.jack.ir.ast.JVariable , com.android.jack.optimizations.DefUsesChainsSimplifier.VarInfo > entry : definitions.entrySet ( ) ) { com.android.jack.optimizations.DefUsesChainsSimplifier.OptInfo info = com.android.jack.optimizations.DefUsesChainsSimplifier.considerCandidate ( entry.getKey ( ) , entry.getValue ( ) ) ; if ( info != null ) { result.add ( info ) ; } } return result ; }

Target:
private static java.util.LinkedHashMap < com.android.jack.ir.ast.JVariable , com.android.jack.optimizations.DefUsesChainsSimplifier.OptInfo > collectCandidates ( @ javax.annotation.Nonnull java.util.LinkedHashMap < com.android.jack.ir.ast.JVariable , com.android.jack.optimizations.DefUsesChainsSimplifier.VarInfo > definitions ) { java.util.LinkedHashMap < com.android.jack.ir.ast.JVariable , com.android.jack.optimizations.DefUsesChainsSimplifier.OptInfo > result = com.google.common.collect.Maps.newLinkedHashMap ( ) ; for ( java.util.Map.Entry < com.android.jack.ir.ast.JVariable , com.android.jack.optimizations.DefUsesChainsSimplifier.VarInfo > info : definitions.entrySet ( ) ) { com.android.jack.optimizations.DefUsesChainsSimplifier.OptInfo opt = com.android.jack.optimizations.DefUsesChainsSimplifier.considerCandidate ( info.getValue ( ) ) ; if ( opt != null ) { result.put ( opt.aVarInfo.var , opt ) ; } } return result ; }
Source:
private static boolean isTransactionCommitMethodCall ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.NonNull lombok.ast.MethodInvocation call ) { java.lang.String methodName = call.astName ( ) . astValue ( ) ; return ( ( com.android.tools.lint.checks.CleanupDetector.COMMIT.equals ( methodName ) ) || ( com.android.tools.lint.checks.CleanupDetector.COMMIT_ALLOWING_LOSS.equals ( methodName ) ) ) && ( com.android.tools.lint.checks.CleanupDetector.isMethodOnFragmentClass ( context , call , com.android.tools.lint.checks.CleanupDetector.FRAGMENT_TRANSACTION_CLS , com.android.tools.lint.checks.CleanupDetector.FRAGMENT_TRANSACTION_V4_CLS , true ) ) ; }

Target:
private static boolean isTransactionCommitMethodCall ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.NonNull com.intellij.psi.PsiMethodCallExpression call ) { java.lang.String methodName = call.getMethodExpression ( ) . getReferenceName ( ) ; return ( ( com.android.tools.lint.checks.CleanupDetector.COMMIT.equals ( methodName ) ) || ( com.android.tools.lint.checks.CleanupDetector.COMMIT_ALLOWING_LOSS.equals ( methodName ) ) ) && ( com.android.tools.lint.checks.CleanupDetector.isMethodOnFragmentClass ( context , call , com.android.tools.lint.checks.CleanupDetector.FRAGMENT_TRANSACTION_CLS , com.android.tools.lint.checks.CleanupDetector.FRAGMENT_TRANSACTION_V4_CLS , true ) ) ; }
Source:
protected void onVisibilityChanged ( android.view.View changedView , int visibility ) { super . onVisibilityChanged ( changedView , visibility ) ; if ( ( mSurface ) != null ) { if ( visibility == ( VISIBLE ) ) { mSurface.setOnFrameAvailableListener ( mUpdateListener ) ; updateLayerAndInvalidate ( ) ; } else { mSurface.setOnFrameAvailableListener ( null ) ; } } }

Target:
protected void onVisibilityChanged ( android.view.View changedView , int visibility ) { super . onVisibilityChanged ( changedView , visibility ) ; if ( ( mSurface ) != null ) { if ( visibility == ( VISIBLE ) ) { if ( ( mLayer ) != null ) { mSurface.setOnFrameAvailableListener ( mUpdateListener , mAttachInfo.mHandler ) ; } updateLayerAndInvalidate ( ) ; } else { mSurface.setOnFrameAvailableListener ( null ) ; } } }
Source:
public static com.intellij.execution.testframework.ui.BaseTestsOutputConsoleView createConsole ( @ org.jetbrains.annotations.NotNull final java.lang.String testFrameworkName , @ org.jetbrains.annotations.NotNull final com.intellij.execution.testframework.TestConsoleProperties consoleProperties , com.intellij.execution.runners.ExecutionEnvironment environment ) { return com.google.gct.testing.results.GoogleCloudTestResultsConnectionUtil.createConsoleWithCustomLocator ( testFrameworkName , consoleProperties , environment , null ) ; }

Target:
public static com.intellij.execution.ui.ConsoleView createConsole ( @ org.jetbrains.annotations.NotNull final java.lang.String testFrameworkName , @ org.jetbrains.annotations.NotNull final com.intellij.execution.configurations.CommandLineState commandLineState , @ org.jetbrains.annotations.NotNull final com.intellij.execution.configurations.ModuleRunConfiguration config , @ org.jetbrains.annotations.NotNull final com.intellij.execution.Executor executor , @ org.jetbrains.annotations.NotNull final com.google.gct.testing.CloudMatrixExecutionCancellator matrixExecutionCancellator ) throws com.intellij.execution.ExecutionException { final com.intellij.execution.testframework.TestConsoleProperties consoleProperties = new com.intellij.execution.testframework.sm.runner.SMTRunnerConsoleProperties ( config , testFrameworkName , executor ) ; return com.google.gct.testing.results.GoogleCloudTestResultsConnectionUtil.createConsole ( testFrameworkName , consoleProperties , commandLineState.getEnvironment ( ) , matrixExecutionCancellator ) ; }
Source:
private static void applyDefaults ( org.jetbrains.idea.maven.project.MavenWorkspaceSettings settings ) { if ( com.intellij.openapi.util.text.StringUtil.isEmptyOrSpaces ( settings.generalSettings.getMavenHome ( ) ) ) { if ( org.jetbrains.idea.maven.server.MavenServerManager.getInstance ( ) . isUsedMaven2ForProjectImport ( ) ) { settings.generalSettings.setMavenHome ( MavenServerManager.BUNDLED_MAVEN_2 ) ; } else { settings.generalSettings.setMavenHome ( MavenServerManager.BUNDLED_MAVEN_3 ) ; } } }

Target:
private static void applyDefaults ( org.jetbrains.idea.maven.project.MavenWorkspaceSettings settings ) { if ( com.intellij.openapi.util.text.StringUtil.isEmptyOrSpaces ( settings.generalSettings.getMavenHome ( ) ) ) { if ( ( org.jetbrains.idea.maven.server.MavenServerManager.getInstance ( ) . isUsedMaven2ForProjectImport ( ) ) || ( com.intellij.openapi.application.ApplicationManager.getApplication ( ) . isUnitTestMode ( ) ) ) { settings.generalSettings.setMavenHome ( MavenServerManager.BUNDLED_MAVEN_2 ) ; } else { settings.generalSettings.setMavenHome ( MavenServerManager.BUNDLED_MAVEN_3 ) ; } } }
Source:
private static boolean shouldShowNumber ( com.android.incallui.incall.protocol.PrimaryInfo primaryInfo , boolean isIncoming ) { if ( primaryInfo.nameIsNumber ) { return false ; } if ( ( ( primaryInfo.location ) == null ) && isIncoming ) { return false ; } if ( android.text.TextUtils.isEmpty ( primaryInfo.number ) ) { return false ; } return true ; }

Target:
private static boolean shouldShowNumber ( com.android.incallui.incall.protocol.PrimaryInfo primaryInfo , boolean isIncoming ) { if ( primaryInfo.nameIsNumber ) { return false ; } if ( ( ( primaryInfo.location ) == null ) && isIncoming ) { return false ; } if ( ( primaryInfo.isLocalContact ) && ( ! isIncoming ) ) { return false ; } if ( android.text.TextUtils.isEmpty ( primaryInfo.number ) ) { return false ; } return true ; }
Source:
private static void onSubscribeTerminated ( int subscribeId , int status ) { if ( com.android.server.wifi.aware.WifiAwareNative.VDBG ) { android.util.Log.v ( com.android.server.wifi.aware.WifiAwareNative.TAG , ( ( ( "onSubscribeTerminated: subscribeId=" + subscribeId ) + ", status=" ) + status ) ) ; } com.android.server.wifi.aware.WifiAwareStateManager.getInstance ( ) . onSessionTerminatedNotification ( subscribeId , com.android.server.wifi.aware.WifiAwareNative.translateHalStatusToAwareSessionCallbackTerminate ( status ) , false ) ; }

Target:
private static void onSubscribeTerminated ( int subscribeId , int status ) { if ( com.android.server.wifi.aware.WifiAwareNative.VDBG ) { android.util.Log.v ( com.android.server.wifi.aware.WifiAwareNative.TAG , ( ( ( "onSubscribeTerminated: subscribeId=" + subscribeId ) + ", status=" ) + status ) ) ; } com.android.server.wifi.aware.WifiAwareStateManager.getInstance ( ) . onSessionTerminatedNotification ( subscribeId , ( status == ( com.android.server.wifi.aware.WifiAwareNative.AWARE_STATUS_SUCCESS ) ? android.net.wifi.aware.WifiAwareDiscoverySessionCallback.TERMINATE_REASON_DONE : android.net.wifi.aware.WifiAwareDiscoverySessionCallback.TERMINATE_REASON_FAIL ) , false ) ; }
Source:
private void checkNullHandling ( android.aidl.tests.ITestService service ) throws android.aidl.tests.TestServiceClient.TestFailException { mLog.log ( "Checking that sending null strings reports an error..." ) ; try { java.lang.String response = service.RepeatString ( null ) ; mLog.logAndThrow ( "Expected to fail on null string input!" ) ; } catch ( java.lang.NullPointerException ex ) { mLog.log ( "Caught an exception on null string parameter (expected)" ) ; mLog.log ( "null strings behave as expected" ) ; return ; } catch ( java.lang.Exception ex ) { mLog.logAndThrow ( ( ( "Expected to receive NullPointerException on " + "null parameter, but got " ) + ( ex.toString ( ) ) ) ) ; } mLog.logAndThrow ( ( "Expected to receive NullPointerException on " + "null parameter, but nothing was thrown??" ) ) ; }

Target:
private void checkNullHandling ( android.aidl.tests.ITestService service ) throws android.aidl.tests.TestFailException { mLog.log ( "Checking that sending null strings reports an error..." ) ; try { java.lang.String response = service.RepeatString ( null ) ; mLog.logAndThrow ( "Expected to fail on null string input!" ) ; } catch ( java.lang.NullPointerException ex ) { mLog.log ( "Caught an exception on null string parameter (expected)" ) ; mLog.log ( "null strings behave as expected" ) ; return ; } catch ( java.lang.Exception ex ) { mLog.logAndThrow ( ( ( "Expected to receive NullPointerException on " + "null parameter, but got " ) + ( ex.toString ( ) ) ) ) ; } mLog.logAndThrow ( ( "Expected to receive NullPointerException on " + "null parameter, but nothing was thrown??" ) ) ; }
Source:
com.google.common.cache.LocalCache.ReferenceEntry < K , V > newEntry ( K key , int hash , @ javax.annotation.Nullable com.google.common.cache.LocalCache.ReferenceEntry < K , V > next ) { return segmentFor ( hash ) . newEntry ( key , hash , next ) ; }

Target:
com.google.common.cache.LocalCache.ReferenceEntry < K , V > newEntry ( K key , int hash , @ javax.annotation.Nullable com.google.common.cache.LocalCache.ReferenceEntry < K , V > next ) { com.google.common.cache.LocalCache.Segment < K , V > segment = segmentFor ( hash ) ; segment.lock ( ) ; try { return segment.newEntry ( key , hash , next ) ; } finally { segment.unlock ( ) ; } }
Source:
public void loadInstanceState ( android.os.Bundle savedInstanceState ) { mGroupName = savedInstanceState.getString ( com.android.packageinstaller.permission.ui.GrantPermissionsViewHandlerImpl.ARG_GROUP_NAME ) ; mGroupMessage = savedInstanceState.getCharSequence ( com.android.packageinstaller.permission.ui.GrantPermissionsViewHandlerImpl.ARG_GROUP_MESSAGE ) ; mGroupIcon = savedInstanceState.getParcelable ( com.android.packageinstaller.permission.ui.GrantPermissionsViewHandlerImpl.ARG_GROUP_ICON ) ; mGroupCount = savedInstanceState.getInt ( com.android.packageinstaller.permission.ui.GrantPermissionsViewHandlerImpl.ARG_GROUP_COUNT ) ; mGroupIndex = savedInstanceState.getInt ( com.android.packageinstaller.permission.ui.GrantPermissionsViewHandlerImpl.ARG_GROUP_INDEX ) ; mShowDonNotAsk = savedInstanceState.getBoolean ( com.android.packageinstaller.permission.ui.GrantPermissionsViewHandlerImpl.ARG_GROUP_SHOW_DO_NOT_ASK ) ; mDoNotAskChecked = savedInstanceState.getBoolean ( com.android.packageinstaller.permission.ui.GrantPermissionsViewHandlerImpl.ARG_GROUP_DO_NOT_ASK_CHECKED ) ; }

Target:
public void loadInstanceState ( android.os.Bundle savedInstanceState ) { mGroupName = savedInstanceState.getString ( com.android.packageinstaller.permission.ui.GrantPermissionsDefaultViewHandler.ARG_GROUP_NAME ) ; mGroupMessage = savedInstanceState.getCharSequence ( com.android.packageinstaller.permission.ui.GrantPermissionsDefaultViewHandler.ARG_GROUP_MESSAGE ) ; mGroupIcon = savedInstanceState.getParcelable ( com.android.packageinstaller.permission.ui.GrantPermissionsDefaultViewHandler.ARG_GROUP_ICON ) ; mGroupCount = savedInstanceState.getInt ( com.android.packageinstaller.permission.ui.GrantPermissionsDefaultViewHandler.ARG_GROUP_COUNT ) ; mGroupIndex = savedInstanceState.getInt ( com.android.packageinstaller.permission.ui.GrantPermissionsDefaultViewHandler.ARG_GROUP_INDEX ) ; mShowDonNotAsk = savedInstanceState.getBoolean ( com.android.packageinstaller.permission.ui.GrantPermissionsDefaultViewHandler.ARG_GROUP_SHOW_DO_NOT_ASK ) ; mDoNotAskChecked = savedInstanceState.getBoolean ( com.android.packageinstaller.permission.ui.GrantPermissionsDefaultViewHandler.ARG_GROUP_DO_NOT_ASK_CHECKED ) ; }
Source:
private void addMetaToOutputJackLib ( com.android.jack.meta.Meta meta , com.android.jack.library.OutputJackLibrary ojl ) throws java.io.IOException { com.android.sched.vfs.InputVFile inputFile = meta.getVFile ( ) ; com.android.sched.vfs.VPath path = meta.getPath ( ) ; com.android.sched.vfs.OutputVFile outputFile = ojl.createFile ( FileType.JPP , path ) ; java.io.InputStream is = null ; try { is = inputFile.getInputStream ( ) ; com.android.sched.util.stream.ByteStreamSucker sucker = new com.android.sched.util.stream.ByteStreamSucker ( is , outputFile.getOutputStream ( ) , true ) ; sucker.suck ( ) ; } finally { if ( is != null ) { is.close ( ) ; } } }

Target:
private void addMetaToOutputJackLib ( com.android.jack.meta.Meta meta , com.android.jack.library.OutputJackLibrary ojl ) throws java.io.IOException { com.android.sched.vfs.InputVFile inputFile = meta.getVFile ( ) ; com.android.sched.vfs.VPath path = meta.getPath ( ) ; com.android.sched.vfs.OutputVFile outputFile = ojl.createFile ( FileType.META , path ) ; java.io.InputStream is = null ; try { is = inputFile.getInputStream ( ) ; com.android.sched.util.stream.ByteStreamSucker sucker = new com.android.sched.util.stream.ByteStreamSucker ( is , outputFile.getOutputStream ( ) , true ) ; sucker.suck ( ) ; } finally { if ( is != null ) { is.close ( ) ; } } }
Source:
private void formatError ( java.lang.String message , java.lang.Object ... args ) { if ( ( args != null ) && ( ( args.length ) > 0 ) ) { message = java.lang.String.format ( message , args ) ; } message = "Failed to parse lint.xml configuration file: " + message ; mClient.report ( new com.android.tools.lint.detector.api.Context ( null , mProject , mProject , mConfigFile ) , IssueRegistry.LINT_ERROR , mProject.getConfiguration ( ) . getSeverity ( IssueRegistry.LINT_ERROR ) , com.android.tools.lint.detector.api.Location.create ( mConfigFile ) , message , null ) ; }

Target:
public java.util.List < com.android.tools.lint.detector.api.Issue > getIssues ( ) { return java.util.Collections.emptyList ( ) ; }
Source:
private void handleSetCdmaRoamingPreference ( android.os.Message msg ) { android.os.AsyncResult ar = ( ( android.os.AsyncResult ) ( msg.obj ) ) ; if ( ( ar.exception ) == null ) { int cdmaRoamingMode = java.lang.Integer.valueOf ( mButtonCdmaRoam.getValue ( ) ) . intValue ( ) ; android.provider.Settings.System.putInt ( mPhone.getContext ( ) . getContentResolver ( ) , android.provider.Settings.System.CDMA_ROAMING_MODE , cdmaRoamingMode ) ; } else { mPhone.queryCdmaRoamingPreference ( obtainMessage ( com.android.phone.CdmaOptions.MyHandler.MESSAGE_QUERY_ROAMING_PREFERENCE ) ) ; } }

Target:
private void handleSetCdmaRoamingPreference ( android.os.Message msg ) { mPhone = com.android.internal.telephony.PhoneFactory.getDefaultPhone ( ) ; android.os.AsyncResult ar = ( ( android.os.AsyncResult ) ( msg.obj ) ) ; if ( ( ar.exception ) == null ) { int cdmaRoamingMode = java.lang.Integer.valueOf ( mButtonCdmaRoam.getValue ( ) ) . intValue ( ) ; android.provider.Settings.System.putInt ( mPhone.getContext ( ) . getContentResolver ( ) , android.provider.Settings.System.CDMA_ROAMING_MODE , cdmaRoamingMode ) ; } else { mPhone.queryCdmaRoamingPreference ( obtainMessage ( com.android.phone.CdmaOptions.MyHandler.MESSAGE_QUERY_ROAMING_PREFERENCE ) ) ; } }
Source:
public void setModel ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo rootViewInfo ) { mRootWrapper.setRoot ( rootViewInfo ) ; org.eclipse.jface.viewers.TreeViewer tv = getTreeViewer ( ) ; if ( tv != null ) { java.lang.Object [ ] expanded = tv.getExpandedElements ( ) ; tv.refresh ( ) ; tv.setExpandedElements ( expanded ) ; } }

Target:
public void setModel ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo rootViewInfo ) { mRootWrapper.setRoot ( rootViewInfo ) ; org.eclipse.jface.viewers.TreeViewer tv = getTreeViewer ( ) ; if ( tv != null ) { java.lang.Object [ ] expanded = tv.getExpandedElements ( ) ; tv.refresh ( ) ; tv.setExpandedElements ( expanded ) ; tv.expandToLevel ( rootViewInfo , 2 ) ; } }
Source:
public void afterHandshake ( long session , long s , long c , java.net.Socket sock , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { java.lang.String v = org.conscrypt.NativeCrypto.SSL_SESSION_get_version ( session ) ; assertTrue ( StandardNames.SSL_SOCKET_PROTOCOLS.contains ( v ) ) ; 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.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { byte [ ] id = org.conscrypt.NativeCrypto.SSL_SESSION_session_id ( session ) ; assertNotNull ( id ) ; assertEquals ( 32 , id.length ) ; super . afterHandshake ( session , s , c , sock , fd , callback ) ; }
Source:
public int getConnectionState ( android.bluetooth.BluetoothDevice device ) { synchronized ( this ) { if ( ( ( getState ( ) ) == ( android.bluetooth.BluetoothMap.STATE_CONNECTED ) ) && ( getRemoteDevice ( ) . equals ( device ) ) ) { return android.bluetooth.BluetoothProfile.STATE_CONNECTED ; } else { return android.bluetooth.BluetoothProfile.STATE_DISCONNECTED ; } } }

Target:
public int getConnectionState ( android.bluetooth.BluetoothDevice device ) { synchronized ( this ) { if ( ( ( getState ( ) ) == ( android.bluetooth.BluetoothMap.STATE_CONNECTED ) ) && ( com.android.bluetooth.map.BluetoothMapService.getRemoteDevice ( ) . equals ( device ) ) ) { return android.bluetooth.BluetoothProfile.STATE_CONNECTED ; } else { return android.bluetooth.BluetoothProfile.STATE_DISCONNECTED ; } } }
Source:
public static int available ( java.io.FileDescriptor fd ) throws java.io.IOException { try { android.util.MutableInt available = new android.util.MutableInt ( 0 ) ; Libcore.os.ioctlInt ( fd , libcore.io.FIONREAD , available ) ; if ( ( available.value ) < 0 ) { available.value = 0 ; } return available.value ; } catch ( libcore.io.ErrnoException errnoException ) { if ( ( errnoException.errno ) == ( ENOTTY ) ) { return 0 ; } throw errnoException.rethrowAsIOException ( ) ; } }

Target:
public static int available ( java.io.FileDescriptor fd ) throws java.io.IOException { try { android.util.MutableInt available = new android.util.MutableInt ( 0 ) ; Libcore.os.ioctlInt ( fd , libcore.io.FIONREAD , available ) ; if ( ( available.value ) < 0 ) { available.value = 0 ; } return available.value ; } catch ( android.system.ErrnoException errnoException ) { if ( ( errnoException.errno ) == ( ENOTTY ) ) { return 0 ; } throw errnoException.rethrowAsIOException ( ) ; } }
Source:
public static synchronized int getCacheVersion ( ) { if ( org.apache.harmony.security.fortress.Services.needRefresh ) { ( org.apache.harmony.security.fortress.Services.cacheVersion ) ++ ; synchronized ( org.apache.harmony.security.fortress.Services.services ) { org.apache.harmony.security.fortress.Services.services.clear ( ) ; } org.apache.harmony.security.fortress.Services.cachedSecureRandomService = null ; for ( java.security.Provider p : org.apache.harmony.security.fortress.Services.providers ) { org.apache.harmony.security.fortress.Services.initServiceInfo ( p ) ; } org.apache.harmony.security.fortress.Services.needRefresh = false ; } return org.apache.harmony.security.fortress.Services.cacheVersion ; }

Target:
public static synchronized int getCacheVersion ( ) { if ( org.apache.harmony.security.fortress.Services.needRefresh ) { ( org.apache.harmony.security.fortress.Services.cacheVersion ) ++ ; org.apache.harmony.security.fortress.Services.cachedSecureRandomService = org.apache.harmony.security.fortress.Services.getFirstServiceOfType ( "SecureRandom" ) ; org.apache.harmony.security.fortress.Services.needRefresh = false ; } return org.apache.harmony.security.fortress.Services.cacheVersion ; }
Source:
public boolean clearScores ( ) { if ( ( android.net.NetworkScorerAppManager.isCallerActiveScorer ( mContext , getCallingUid ( ) ) ) || ( ( mContext.checkCallingOrSelfPermission ( permission.BROADCAST_NETWORK_PRIVILEGED ) ) == ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ) ) { clearInternal ( ) ; return true ; } else { throw new java.lang.SecurityException ( "Caller is neither the active scorer nor the scorer manager." ) ; } }

Target:
public boolean clearScores ( ) { if ( ( mNetworkScorerAppManager.isCallerActiveScorer ( getCallingUid ( ) ) ) || ( ( mContext.checkCallingOrSelfPermission ( permission.BROADCAST_NETWORK_PRIVILEGED ) ) == ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ) ) { clearInternal ( ) ; return true ; } else { throw new java.lang.SecurityException ( "Caller is neither the active scorer nor the scorer manager." ) ; } }
Source:
public void test004 ( ) throws java.lang.Exception { java.io.File testFolder = com.android.jack.test.toolchain.AbstractTestTools.getTestRootDir ( "com.android.jack.annotation.test004" ) ; com.android.jack.test.toolchain.IToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( ) ; toolchain.srcToExe ( com.android.jack.test.toolchain.AbstractTestTools.getClasspathAsString ( toolchain.getDefaultBootClasspath ( ) ) , com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) , false , testFolder ) ; }

Target:
public void test004 ( ) throws java.lang.Exception { java.io.File testFolder = com.android.jack.test.toolchain.AbstractTestTools.getTestRootDir ( "com.android.jack.annotation.test004" ) ; com.android.jack.test.toolchain.IToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( ) ; toolchain.addToClasspath ( toolchain.getDefaultBootClasspath ( ) ) . srcToExe ( com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) , false , testFolder ) ; }
Source:
public void testHasType ( ) { android.content.Intent intent = new android.content.Intent ( android.content.Intent.ACTION_VIEW ) ; intent.addCategory ( "category" ) ; intent.setDataAndType ( uri , Context.ACTIVITY_SERVICE ) ; intent.putExtra ( "key1" , "value1" ) ; assertTrue ( android.support.test.espresso.intent.matcher.IntentMatchers.hasType ( Context.ACTIVITY_SERVICE ) . matches ( intent ) ) ; assertTrue ( android.support.test.espresso.intent.matcher.IntentMatchers.hasType ( org.hamcrest.Matchers.equalTo ( Context.ACTIVITY_SERVICE ) ) . matches ( intent ) ) ; }

Target:
public void hasTypeTesting ( ) { android.content.Intent intent = new android.content.Intent ( android.content.Intent.ACTION_VIEW ) ; intent.addCategory ( "category" ) ; intent.setDataAndType ( uri , Context.ACTIVITY_SERVICE ) ; intent.putExtra ( "key1" , "value1" ) ; org.junit.Assert.assertTrue ( android.support.test.espresso.intent.matcher.IntentMatchers.hasType ( Context.ACTIVITY_SERVICE ) . matches ( intent ) ) ; org.junit.Assert.assertTrue ( android.support.test.espresso.intent.matcher.IntentMatchers.hasType ( org.hamcrest.Matchers.equalTo ( Context.ACTIVITY_SERVICE ) ) . matches ( intent ) ) ; }
Source:
public android.view.View newView ( android.content.Context context , android.database.Cursor cursor , android.view.ViewGroup parent ) { final android.view.LayoutInflater inflater = android.view.LayoutInflater.from ( context ) ; final android.widget.TextView view = ( ( android.widget.TextView ) ( inflater.inflate ( android.R.layout.simple_dropdown_item_1line , parent , false ) ) ) ; view.setText ( cursor.getString ( 5 ) ) ; return view ; }

Target:
public android.view.View newView ( android.content.Context context , android.database.Cursor cursor , android.view.ViewGroup parent ) { final android.view.LayoutInflater inflater = android.view.LayoutInflater.from ( context ) ; final android.widget.TextView view = ( ( android.widget.TextView ) ( inflater.inflate ( android.R.layout.simple_dropdown_item_1line , parent , false ) ) ) ; view.setText ( cursor.getString ( com.example.android.apis.view.AutoComplete4.COLUMN_DISPLAY_NAME ) ) ; return view ; }
Source:
private void registerForSimRecordEvents ( ) { mIccRecords.registerForNetworkSelectionModeAutomatic ( this , com.android.internal.telephony.gsm.EVENT_SET_NETWORK_AUTOMATIC , null ) ; mIccRecords.registerForNewSms ( this , com.android.internal.telephony.gsm.EVENT_NEW_ICC_SMS , null ) ; mIccRecords.registerForRecordsEvents ( this , com.android.internal.telephony.gsm.EVENT_ICC_RECORD_EVENTS , null ) ; mIccRecords.registerForRecordsLoaded ( this , com.android.internal.telephony.gsm.EVENT_SIM_RECORDS_LOADED , null ) ; }

Target:
private void unregisterForSimRecordEvents ( ) { com.android.internal.telephony.IccRecords r = mIccRecords.get ( ) ; if ( r == null ) { return ; } r.unregisterForNetworkSelectionModeAutomatic ( this ) ; r.unregisterForNewSms ( this ) ; r.unregisterForRecordsEvents ( this ) ; r.unregisterForRecordsLoaded ( this ) ; }
Source:
public void testDescendingAddAll3 ( ) { try { java.util.NavigableSet q = jsr166.ConcurrentSkipListSubSetTest.dset0 ( ) ; java.lang.Integer [ ] ints = new java.lang.Integer [ SIZE ] ; for ( int i = 0 ; i < ( ( SIZE ) - 1 ) ; ++ i ) ints [ i ] = new java.lang.Integer ( ( i + ( SIZE ) ) ) ; q.addAll ( java.util.Arrays.asList ( ints ) ) ; shouldThrow ( ) ; } catch ( java.lang.NullPointerException success ) { } }

Target:
public void testDescendingAddAll1 ( ) { java.util.NavigableSet q = jsr166.ConcurrentSkipListSubSetTest.dset0 ( ) ; try { q.addAll ( null ) ; shouldThrow ( ) ; } catch ( java.lang.NullPointerException success ) { } }
Source:
public void testLibProguardConsumerFile ( ) throws java.lang.Exception { java.io.File project = new java.io.File ( testDir , "libProguardConsumerFiles" ) ; java.io.File debugFileOutput = new java.io.File ( project , "build/bundles/debug" ) ; java.io.File releaseFileOutput = new java.io.File ( project , "build/bundles/release" ) ; runGradleTasks ( sdkDir , BasePlugin.GRADLE_MIN_VERSION , project , "clean" , "build" ) ; com.android.build.gradle.ManualBuildTest.checkFile ( debugFileOutput , "proguard.txt" , new java.lang.String [ ] { "A" } ) ; com.android.build.gradle.ManualBuildTest.checkFile ( releaseFileOutput , "proguard.txt" , new java.lang.String [ ] { "A" , "B" , "C" } ) ; }

Target:
public void DISABLEDtestLibProguardConsumerFile ( ) throws java.lang.Exception { java.io.File project = new java.io.File ( testDir , "libProguardConsumerFiles" ) ; java.io.File debugFileOutput = new java.io.File ( project , "build/bundles/debug" ) ; java.io.File releaseFileOutput = new java.io.File ( project , "build/bundles/release" ) ; runGradleTasks ( sdkDir , BasePlugin.GRADLE_MIN_VERSION , project , "clean" , "build" ) ; com.android.build.gradle.ManualBuildTest.checkFile ( debugFileOutput , "proguard.txt" , new java.lang.String [ ] { "A" } ) ; com.android.build.gradle.ManualBuildTest.checkFile ( releaseFileOutput , "proguard.txt" , new java.lang.String [ ] { "A" , "B" , "C" } ) ; }
Source:
void copy2DRangeFromUnchecked ( int xoff , int yoff , int w , int h , float [ ] data ) { mRS.validate ( ) ; validate2DRange ( xoff , yoff , w , h ) ; mRS.nAllocationData2D ( getIDSafe ( ) , xoff , yoff , mSelectedLOD , mSelectedFace.mID , w , h , data , ( ( data.length ) * 4 ) ) ; }

Target:
public void copy2DRangeFrom ( int xoff , int yoff , int w , int h , float [ ] data ) { validateIsFloat32 ( ) ; copy2DRangeFromUnchecked ( xoff , yoff , w , h , data , Element.DataType.FLOAT_32 , data.length ) ; }
Source:
public void testStateTransitionFromConnectingToConnected ( ) { android.util.Log.i ( com.android.bluetooth.mapclient.MapClientStateMachineTest.TAG , "in testStateTransitionFromConnectingToConnected" ) ; setupSdpRecordReceipt ( ) ; android.os.Message msg = android.os.Message.obtain ( mHandler , MceStateMachine.MSG_MAS_CONNECTED ) ; mMceStateMachine.getCurrentState ( ) . processMessage ( msg ) ; try { mDisconnectedLatch.await ( com.android.bluetooth.mapclient.MapClientStateMachineTest.TIMEOUT , java.util.concurrent.TimeUnit.MILLISECONDS ) ; } catch ( java.lang.InterruptedException e ) { e.printStackTrace ( ) ; } org.junit.Assert.assertNotNull ( mMceStateMachine.getCurrentState ( ) ) ; org.junit.Assert.assertEquals ( BluetoothProfile.STATE_CONNECTED , mMceStateMachine.getState ( ) ) ; }

Target:
public void testStateTransitionFromConnectingToDisconnected ( ) { android.util.Log.i ( com.android.bluetooth.mapclient.MapClientStateMachineTest.TAG , "in testStateTransitionFromConnectingToDisconnected" ) ; setupSdpRecordReceipt ( ) ; android.os.Message msg = android.os.Message.obtain ( mHandler , MceStateMachine.MSG_MAS_DISCONNECTED ) ; mMceStateMachine.getCurrentState ( ) . processMessage ( msg ) ; boolean result = false ; try { result = mDisconnectedLatch.await ( com.android.bluetooth.mapclient.MapClientStateMachineTest.TIMEOUT , java.util.concurrent.TimeUnit.MILLISECONDS ) ; } catch ( java.lang.InterruptedException e ) { e.printStackTrace ( ) ; } org.junit.Assert.assertTrue ( result ) ; }
Source:
private com.android.bluetooth.pbap.BluetoothPbapService getService ( java.lang.String perm ) { if ( ! ( com.android.bluetooth.Utils.checkCaller ( ) ) ) { android.util.Log.w ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , "not allowed for non-active user" ) ; return null ; } if ( ( ( mService ) != null ) && ( mService.isAvailable ( ) ) ) { mService.enforceCallingOrSelfPermission ( perm , ( ( "Need " + perm ) + " permission" ) ) ; return mService ; } return null ; }

Target:
public void disconnect ( android.bluetooth.BluetoothDevice device ) { if ( com.android.bluetooth.pbap.BluetoothPbapService.DEBUG ) { android.util.Log.d ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , "disconnect" ) ; } com.android.bluetooth.pbap.BluetoothPbapService service = getService ( ) ; if ( service == null ) { return ; } service.disconnect ( device ) ; }
Source:
private void sendNotificationThroughDefaultDialer ( com.android.server.telecom.Call call , android.os.UserHandle userHandle ) { int count = mMissedCallCounts.get ( userHandle ) . get ( ) ; android.content.Intent intent = getShowMissedCallIntentForDefaultDialer ( userHandle ) . setFlags ( Intent.FLAG_RECEIVER_FOREGROUND ) . putExtra ( TelecomManager.EXTRA_NOTIFICATION_COUNT , count ) . putExtra ( TelecomManager.EXTRA_NOTIFICATION_PHONE_NUMBER , ( call != null ? call.getPhoneNumber ( ) : null ) ) ; com.android.server.telecom.Log.w ( this , "Showing missed calls through default dialer." ) ; mContext.sendBroadcastAsUser ( intent , userHandle , android.Manifest.permission.READ_PHONE_STATE ) ; }

Target:
private void sendNotificationThroughDefaultDialer ( com.android.server.telecom.ui.CallInfo callInfo , android.os.UserHandle userHandle ) { int count = mMissedCallCounts.get ( userHandle ) . get ( ) ; android.content.Intent intent = getShowMissedCallIntentForDefaultDialer ( userHandle ) . setFlags ( Intent.FLAG_RECEIVER_FOREGROUND ) . putExtra ( TelecomManager.EXTRA_NOTIFICATION_COUNT , count ) . putExtra ( TelecomManager.EXTRA_NOTIFICATION_PHONE_NUMBER , ( callInfo == null ? null : callInfo.getPhoneNumber ( ) ) ) ; android.telecom.Log.w ( this , "Showing missed calls through default dialer." ) ; mContext.sendBroadcastAsUser ( intent , userHandle , android.Manifest.permission.READ_PHONE_STATE ) ; }
Source:
public void testFiveCount_E ( ) throws java.lang.Exception { java.util.TimeZone.setDefault ( java.util.TimeZone.getTimeZone ( "GMT" ) ) ; assertEquals ( "Thu" , formatDate ( java.util.Locale.ENGLISH , "E" ) ) ; assertEquals ( "Thu" , formatDate ( java.util.Locale.ENGLISH , "EE" ) ) ; assertEquals ( "Thu" , formatDate ( java.util.Locale.ENGLISH , "EEE" ) ) ; assertEquals ( "Thursday" , formatDate ( java.util.Locale.ENGLISH , "EEEE" ) ) ; assertEquals ( "T" , formatDate ( java.util.Locale.ENGLISH , "EEEEE" ) ) ; }

Target:
public void testFiveCount_c ( ) throws java.lang.Exception { assertEquals ( "Thu" , formatDateUtc ( java.util.Locale.ENGLISH , "c" ) ) ; assertEquals ( "Thu" , formatDateUtc ( java.util.Locale.ENGLISH , "cc" ) ) ; assertEquals ( "Thu" , formatDateUtc ( java.util.Locale.ENGLISH , "ccc" ) ) ; assertEquals ( "Thursday" , formatDateUtc ( java.util.Locale.ENGLISH , "cccc" ) ) ; assertEquals ( "T" , formatDateUtc ( java.util.Locale.ENGLISH , "ccccc" ) ) ; }