auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public java.util.List < android.content.pm.ResolveInfo > queryIntent ( android.content.Intent intent , java.lang.String resolvedType , int flags ) { mFlags = flags ; return super . queryIntent ( intent , resolvedType , ( ( flags & ( android.content.pm.PackageManager.MATCH_DEFAULT_ONLY ) ) != 0 ) ) ; }

Target:
public java.util.List < android.content.pm.ResolveInfo > queryIntent ( android.content.Intent intent , java.lang.String resolvedType , int flags , int userId ) { if ( ! ( com.android.server.pm.PackageManagerService.sUserManager.exists ( userId ) ) ) return null ; mFlags = flags ; return super . queryIntent ( intent , resolvedType , ( ( flags & ( android.content.pm.PackageManager.MATCH_DEFAULT_ONLY ) ) != 0 ) , userId ) ; }
Source:
public boolean contains ( java.lang.Object element ) { try { @ java.lang.SuppressWarnings ( value = "unchecked" ) E e = ( ( E ) ( element ) ) ; return ( predicate.apply ( e ) ) && ( unfiltered.contains ( element ) ) ; } catch ( java.lang.NullPointerException e ) { return false ; } catch ( java.lang.ClassCastException e ) { return false ; } }

Target:
public boolean contains ( @ javax.annotation.Nullable java.lang.Object element ) { if ( com.google.common.collect.Collections2.safeContains ( unfiltered , element ) ) { @ java.lang.SuppressWarnings ( value = "unchecked" ) E e = ( ( E ) ( element ) ) ; return predicate.apply ( e ) ; } return false ; }
Source:
public com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.Builder setSuitePlan ( java.lang.String value ) { if ( value == null ) { throw new java.lang.NullPointerException ( ) ; } bitField0_ |= 16 ; suitePlan_ = value ; onChanged ( ) ; return this ; }

Target:
public java.lang.String getSuiteName ( ) { java.lang.Object ref = suiteName_ ; if ( ! ( ref instanceof java.lang.String ) ) { com.android.vts.proto.ByteString bs = ( ( com.android.vts.proto.ByteString ) ( ref ) ) ; java.lang.String s = bs.toStringUtf8 ( ) ; if ( bs.isValidUtf8 ( ) ) { suiteName_ = s ; } return s ; } else { return ( ( java.lang.String ) ( ref ) ) ; } }
Source:
public android.hardware.cts.helpers.TestSensorEvent [ ] collectEvents ( int eventCount ) { if ( ( mTestSensorEventListener ) != null ) { android.util.Log.w ( android.hardware.cts.helpers.TestSensorManager.LOG_TAG , "Listener already registered, returning." ) ; return null ; } try { registerListener ( ) ; return getEvents ( eventCount ) ; } finally { unregisterListener ( ) ; } }

Target:
public void waitForEvents ( int eventCount ) { if ( ( mTestSensorEventListener ) == null ) { android.util.Log.w ( android.hardware.cts.helpers.TestSensorManager.LOG_TAG , "No listener registered, returning." ) ; return ; } mTestSensorEventListener.waitForEvents ( eventCount ) ; }
Source:
public void test_getResourceAsStreamLjava_lang_String ( ) { java.io.InputStream is = null ; assertNotNull ( "Failed to find resource: hyts_Foo.c" , ( is = java.lang.ClassLoader.getSystemClassLoader ( ) . getResourceAsStream ( "hyts_Foo.c" ) ) ) ; try { is.close ( ) ; } catch ( java.io.IOException e ) { fail ( ( "Exception during getResourceAsStream: " + ( e.toString ( ) ) ) ) ; } }

Target:
public void test_testClassLoader_getResourceLjava_lang_String ( ) { java.lang.ClassLoader parentClassLoader = testClassLoader.getParent ( ) ; assertNull ( parentClassLoader.getResource ( org.apache.harmony.tests.java.lang.ClassLoaderTest.TEST_RESOURCE_NAME ) ) ; org.apache.harmony.tests.java.lang.ClassLoaderTest.assertGetResourceIsValid ( parentClassLoader , org.apache.harmony.tests.java.lang.ClassLoaderTest.BOOT_RESOURCE_NAME ) ; org.apache.harmony.tests.java.lang.ClassLoaderTest.assertGetResourceIsValid ( testClassLoader , org.apache.harmony.tests.java.lang.ClassLoaderTest.TEST_RESOURCE_NAME ) ; org.apache.harmony.tests.java.lang.ClassLoaderTest.assertGetResourceIsValid ( testClassLoader , org.apache.harmony.tests.java.lang.ClassLoaderTest.BOOT_RESOURCE_NAME ) ; }
Source:
public final short getShort ( int index ) { checkIndex ( index , SizeOf.SHORT ) ; return this . block.peekShort ( ( ( offset ) + index ) , order ) ; }

Target:
public java.nio.ByteBuffer putShort ( int index , short value ) { checkNotFreed ( ) ; if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } checkIndex ( index , SizeOf.SHORT ) ; this . block.pokeShort ( ( ( offset ) + index ) , value , order ) ; return this ; }
Source:
public static com.google.common.io.OutputSupplier < java.io.FileOutputStream > newOutputStreamSupplier ( final java.io.File file , final boolean append ) { com.google.common.base.Preconditions.checkNotNull ( file ) ; return new com.google.common.io.OutputSupplier < java.io.FileOutputStream > ( ) { @ java.lang.Override public java.io.FileOutputStream getOutput ( ) throws java.io.IOException { return new java.io.FileOutputStream ( file , append ) ; } } ; }

Target:
static byte [ ] readFile ( java.io.InputStream in , long expectedSize ) throws java.io.IOException { if ( expectedSize > ( java.lang.Integer.MAX_VALUE ) ) { throw new java.lang.OutOfMemoryError ( ( ( "file is too large to fit in a byte array: " + expectedSize ) + " bytes" ) ) ; } return expectedSize == 0 ? com.google.common.io.ByteStreams.toByteArray ( in ) : com.google.common.io.ByteStreams.toByteArray ( in , ( ( int ) ( expectedSize ) ) ) ; }
Source:
public static java.lang.String formatProgressText ( long totalBytes , long currentBytes ) { if ( totalBytes <= 0 ) { return "0%" ; } long progress = ( currentBytes * 100 ) / totalBytes ; java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; sb.append ( progress ) ; sb.append ( '%' ) ; return sb.toString ( ) ; }

Target:
static boolean isInExternalStorageDir ( android.net.Uri uri ) { if ( ! ( ContentResolver.SCHEME_FILE.equals ( uri.getScheme ( ) ) ) ) { android.util.Log.e ( com.android.bluetooth.opp.BluetoothOppUtility.TAG , ( "Not a file URI: " + uri ) ) ; return false ; } final java.io.File file = new java.io.File ( uri.getCanonicalUri ( ) . getPath ( ) ) ; return com.android.bluetooth.opp.BluetoothOppUtility.isSameOrSubDirectory ( android.os.Environment.getExternalStorageDirectory ( ) , file ) ; }
Source:
private int deleteAttribute ( int attributesCount , proguard.classfile.editor.Attribute [ ] attributes , java.lang.String attributeName ) { int index = findAttribute ( attributesCount , attributes , attributeName ) ; if ( index < 0 ) { return attributesCount ; } java.lang.System.arraycopy ( attributes , ( index + 1 ) , attributes , index , ( ( attributesCount - index ) - 1 ) ) ; attributes [ ( -- attributesCount ) ] = null ; return attributesCount ; }

Target:
private boolean replaceAttribute ( int attributesCount , proguard.classfile.editor.Attribute [ ] attributes , proguard.classfile.editor.Attribute attribute ) { int index = findAttributeIndex ( attributesCount , attributes , attribute.getAttributeName ( targetClass ) ) ; if ( index < 0 ) { return false ; } attributes [ index ] = attribute ; return true ; }
Source:
synchronized boolean unplug ( ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) android.util.Log.v ( com.android.bluetooth.hid.HidDevService.TAG , "unplug()" ) ; return unplugNative ( ) ; }

Target:
public int getConnectionState ( android.bluetooth.BluetoothDevice device ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) android.util.Log.v ( com.android.bluetooth.hid.HidDevService.BluetoothHidDeviceBinder.TAG , ( "getConnectionState(): device=" + device ) ) ; com.android.bluetooth.hid.HidDevService service = getService ( ) ; if ( service == null ) { return android.bluetooth.BluetoothInputHost.STATE_DISCONNECTED ; } return service.getConnectionState ( device ) ; }
Source:
private static java.lang.String toTelecomDisconnectReason ( android.content.Context context , int telephonyDisconnectCause , java.lang.String reason ) { if ( context == null ) { return "" ; } switch ( telephonyDisconnectCause ) { case android.telecom.DisconnectCause.POWER_OFF : case android.telecom.DisconnectCause.OUT_OF_SERVICE : if ( com.android.phone.ImsUtil.shouldPromoteWfc ( context ) ) { return android.telecom.DisconnectCause.REASON_WIFI_ON_BUT_WFC_OFF ; } break ; } java.lang.String causeAsString = android.telephony.DisconnectCause.toString ( telephonyDisconnectCause ) ; if ( reason == null ) { return causeAsString ; } else { return ( reason + ", " ) + causeAsString ; } }

Target:
private static java.lang.String toTelecomDisconnectReason ( android.content.Context context , int telephonyDisconnectCause , java.lang.String reason ) { if ( context == null ) { return "" ; } switch ( telephonyDisconnectCause ) { case android.telecom.DisconnectCause.POWER_OFF : case android.telecom.DisconnectCause.OUT_OF_SERVICE : if ( com.android.phone.ImsUtil.shouldPromoteWfc ( context ) ) { return android.telecom.DisconnectCause.REASON_WIFI_ON_BUT_WFC_OFF ; } break ; case android.telecom.DisconnectCause.IMS_ACCESS_BLOCKED : return android.telecom.DisconnectCause.REASON_IMS_ACCESS_BLOCKED ; } java.lang.String causeAsString = android.telephony.DisconnectCause.toString ( telephonyDisconnectCause ) ; if ( reason == null ) { return causeAsString ; } else { return ( reason + ", " ) + causeAsString ; } }
Source:
private com.android.server.audio.AudioService.ScoClient getScoClient ( android.os.IBinder cb , boolean create ) { synchronized ( mScoClients ) { com.android.server.audio.AudioService.ScoClient client = null ; int size = mScoClients.size ( ) ; for ( int i = 0 ; i < size ; i ++ ) { client = mScoClients.get ( i ) ; if ( ( client.getBinder ( ) ) == cb ) return client ; } if ( create ) { client = new com.android.server.audio.AudioService.ScoClient ( cb ) ; mScoClients.add ( client ) ; } return client ; } }

Target:
public void clearAllScoClients ( int exceptPid , boolean stopSco ) { synchronized ( mScoClients ) { com.android.server.audio.AudioService.ScoClient savedClient = null ; for ( com.android.server.audio.AudioService.ScoClient cl : mScoClients ) { if ( ( cl.getPid ( ) ) != exceptPid ) { cl.clearCount ( stopSco ) ; } else { savedClient = cl ; } } mScoClients.clear ( ) ; if ( savedClient != null ) { mScoClients.add ( savedClient ) ; } } }
Source:
public void testAttachNoIdentity ( ) { if ( ! ( android.net.wifi.aware.cts.TestUtils.shouldTestWifiAware ( getContext ( ) ) ) ) { return ; } android.net.wifi.aware.cts.SingleDeviceTest.AttachCallbackTest attachCb = new android.net.wifi.aware.cts.SingleDeviceTest.AttachCallbackTest ( ) ; mWifiAwareManager.attach ( attachCb , null ) ; int cbCalled = attachCb.waitForAnyCallback ( ) ; assertEquals ( "Wi-Fi Aware attach" , android.net.wifi.aware.cts.SingleDeviceTest.AttachCallbackTest.ATTACHED , cbCalled ) ; android.net.wifi.aware.WifiAwareSession session = attachCb.getSession ( ) ; assertNotNull ( "Wi-Fi Aware session" , session ) ; session.destroy ( ) ; }

Target:
android.net.wifi.aware.WifiAwareSession attachAndGetSession ( ) { android.net.wifi.aware.cts.SingleDeviceTest.AttachCallbackTest attachCb = new android.net.wifi.aware.cts.SingleDeviceTest.AttachCallbackTest ( ) ; mWifiAwareManager.attach ( attachCb , null ) ; int cbCalled = attachCb.waitForAnyCallback ( ) ; assertEquals ( "Wi-Fi Aware attach" , android.net.wifi.aware.cts.SingleDeviceTest.AttachCallbackTest.ATTACHED , cbCalled ) ; android.net.wifi.aware.WifiAwareSession session = attachCb.getSession ( ) ; assertNotNull ( "Wi-Fi Aware session" , session ) ; return session ; }
Source:
public void turnOffProximitySensor ( boolean screenOnImmediately ) { try { com.android.server.telecom.Log.startSession ( "ICA.tOffPS" , mOwnerComponentName ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( mLock ) { mCallsManager.turnOffProximitySensor ( screenOnImmediately ) ; } } finally { android.os.Binder.restoreCallingIdentity ( token ) ; } } finally { com.android.server.telecom.Log.endSession ( ) ; } }

Target:
public void turnOffProximitySensor ( boolean screenOnImmediately ) { try { android.telecom.Log.startSession ( "ICA.tOffPS" , mOwnerComponentName ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( mLock ) { mCallsManager.turnOffProximitySensor ( screenOnImmediately ) ; } } finally { android.os.Binder.restoreCallingIdentity ( token ) ; } } finally { android.telecom.Log.endSession ( ) ; } }
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 { long time = org.conscrypt.NativeCrypto.SSL_SESSION_get_time ( session ) ; assertTrue ( ( time != 0 ) ) ; assertTrue ( ( time < ( java.lang.System.currentTimeMillis ( ) ) ) ) ; super . afterHandshake ( session , s , c , sock , fd , callback ) ; }

Target:
public void run ( long sslSession ) throws java.lang.Exception { try { org.conscrypt.NativeCrypto.SSL_shutdown ( sslSession , org.conscrypt.NativeCryptoTest.INVALID_FD , null ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } }
Source:
public void testDefaultConstructor ( ) { android.telephony.CellIdentityTdscdma ci = new android.telephony.CellIdentityTdscdma ( com.android.internal.telephony.CellIdentityTdscdmaTest.MCC_STR , com.android.internal.telephony.CellIdentityTdscdmaTest.MNC_STR , com.android.internal.telephony.CellIdentityTdscdmaTest.LAC , com.android.internal.telephony.CellIdentityTdscdmaTest.CID , com.android.internal.telephony.CellIdentityTdscdmaTest.CPID ) ; assertEquals ( com.android.internal.telephony.CellIdentityTdscdmaTest.MCC_STR , ci.getMccStr ( ) ) ; assertEquals ( com.android.internal.telephony.CellIdentityTdscdmaTest.MNC_STR , ci.getMncStr ( ) ) ; assertEquals ( com.android.internal.telephony.CellIdentityTdscdmaTest.LAC , ci.getLac ( ) ) ; assertEquals ( com.android.internal.telephony.CellIdentityTdscdmaTest.CID , ci.getCid ( ) ) ; assertEquals ( com.android.internal.telephony.CellIdentityTdscdmaTest.CPID , ci.getCpid ( ) ) ; }

Target:
public void testDefaultConstructor ( ) { android.telephony.CellIdentityTdscdma ci = new android.telephony.CellIdentityTdscdma ( com.android.internal.telephony.CellIdentityTdscdmaTest.MCC_STR , com.android.internal.telephony.CellIdentityTdscdmaTest.MNC_STR , com.android.internal.telephony.CellIdentityTdscdmaTest.LAC , com.android.internal.telephony.CellIdentityTdscdmaTest.CID , com.android.internal.telephony.CellIdentityTdscdmaTest.CPID ) ; assertEquals ( com.android.internal.telephony.CellIdentityTdscdmaTest.MCC_STR , ci.getMccString ( ) ) ; assertEquals ( com.android.internal.telephony.CellIdentityTdscdmaTest.MNC_STR , ci.getMncString ( ) ) ; assertEquals ( com.android.internal.telephony.CellIdentityTdscdmaTest.LAC , ci.getLac ( ) ) ; assertEquals ( com.android.internal.telephony.CellIdentityTdscdmaTest.CID , ci.getCid ( ) ) ; assertEquals ( com.android.internal.telephony.CellIdentityTdscdmaTest.CPID , ci.getCpid ( ) ) ; }
Source:
private void msgDeviceBrowseConnect ( android.bluetooth.BluetoothDevice device ) { android.util.Log.d ( com.android.bluetooth.a2dpsink.mbs.A2dpMediaBrowserService.TAG , ( "msgDeviceBrowseConnect device " + device ) ) ; if ( ! ( device.equals ( mA2dpDevice ) ) ) { android.util.Log.e ( com.android.bluetooth.a2dpsink.mbs.A2dpMediaBrowserService.TAG , ( ( ( "Browse connected over different device a2dp " + ( mA2dpDevice ) ) + " browse " ) + device ) ) ; return ; } mBrowseConnected = true ; notifyChildrenChanged ( "__ROOT__" ) ; }

Target:
private void msgDeviceBrowseConnect ( android.bluetooth.BluetoothDevice device ) { if ( com.android.bluetooth.a2dpsink.mbs.A2dpMediaBrowserService.DBG ) android.util.Log.d ( com.android.bluetooth.a2dpsink.mbs.A2dpMediaBrowserService.TAG , ( "msgDeviceBrowseConnect device " + device ) ) ; if ( ! ( device.equals ( mA2dpDevice ) ) ) { android.util.Log.e ( com.android.bluetooth.a2dpsink.mbs.A2dpMediaBrowserService.TAG , ( ( ( "Browse connected over different device a2dp " + ( mA2dpDevice ) ) + " browse " ) + device ) ) ; return ; } mBrowseConnected = true ; notifyChildrenChanged ( "__ROOT__" ) ; }
Source:
public boolean enableSupplicant ( ) { if ( ( mClientInterface ) == null ) { android.util.Log.e ( com.android.server.wifi.WificondControl.TAG , "No valid wificond client interface handler" ) ; return false ; } try { return mClientInterface.disableSupplicant ( ) ; } catch ( android.os.RemoteException e ) { return false ; } }

Target:
public boolean enableSupplicant ( ) { if ( ( mClientInterface ) == null ) { android.util.Log.e ( com.android.server.wifi.WificondControl.TAG , "No valid wificond client interface handler" ) ; return false ; } try { return mClientInterface.enableSupplicant ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( com.android.server.wifi.WificondControl.TAG , "Failed to enable supplicant due to remote exception" ) ; } return false ; }
Source:
public void writeToParcel ( android.os.Parcel dest , int flags ) { dest.writeInt ( mTransportType ) ; dest.writeInt ( mDomain ) ; dest.writeInt ( mRegState ) ; dest.writeInt ( mAccessNetworkTechnology ) ; dest.writeInt ( mReasonForDenial ) ; dest.writeBoolean ( mEmergencyOnly ) ; dest.writeIntArray ( mAvailableServices ) ; dest.writeParcelable ( mCellIdentity , 0 ) ; }

Target:
public void writeToParcel ( android.os.Parcel dest , int flags ) { dest.writeInt ( mTransportType ) ; dest.writeInt ( mDomain ) ; dest.writeInt ( mRegState ) ; dest.writeInt ( mAccessNetworkTechnology ) ; dest.writeInt ( mReasonForDenial ) ; dest.writeBoolean ( mEmergencyOnly ) ; dest.writeIntArray ( mAvailableServices ) ; dest.writeParcelable ( mCellIdentity , 0 ) ; dest.writeParcelable ( mVoiceSpecificStates , 0 ) ; dest.writeParcelable ( mDataSpecificStates , 0 ) ; }
Source:
private org.eclipse.jface.text.hyperlink.IHyperlink [ ] createTypeLink ( org.eclipse.jdt.core.IJavaElement element , org.eclipse.jdt.core.IJavaElement type , org.eclipse.jface.text.IRegion wordRegion , boolean isFrameworkResource ) { java.lang.String typeName = type.getElementName ( ) ; if ( isFrameworkResource ) { typeName = ( ( com.android.ide.eclipse.adt.AndroidConstants.ANDROID_PKG ) + ':' ) + typeName ; } java.lang.String elementName = element.getElementName ( ) ; java.lang.String url = ( ( '@' + typeName ) + '/' ) + elementName ; return com.android.ide.eclipse.adt.internal.editors.xml.Hyperlinks.getResourceLinks ( wordRegion , url ) ; }

Target:
private org.eclipse.jface.text.hyperlink.IHyperlink [ ] createTypeLink ( org.eclipse.jdt.core.IJavaElement element , org.eclipse.jdt.core.IJavaElement type , org.eclipse.jface.text.IRegion wordRegion , boolean isFrameworkResource ) { java.lang.String typeName = type.getElementName ( ) ; if ( isFrameworkResource ) { typeName = ( ( com.android.ide.eclipse.adt.AdtConstants.ANDROID_PKG ) + ':' ) + typeName ; } java.lang.String elementName = element.getElementName ( ) ; java.lang.String url = ( ( '@' + typeName ) + '/' ) + elementName ; return com.android.ide.eclipse.adt.internal.editors.xml.Hyperlinks.getResourceLinks ( wordRegion , url ) ; }
Source:
protected org.eclipse.core.runtime.IStatus run ( org.eclipse.core.runtime.IProgressMonitor monitor ) { com.android.sdkstats.SdkStatsService stats = new com.android.sdkstats.SdkStatsService ( ) ; java.lang.String sdkPath = com.android.ide.eclipse.monitor.MonitorPlugin.getDefault ( ) . getSdkPath ( ) ; if ( sdkPath == null ) { return org.eclipse.core.runtime.Status.OK_STATUS ; } java.lang.String toolsPath = new org.eclipse.core.runtime.Path ( sdkPath ) . append ( SdkConstants.FD_TOOLS ) . toString ( ) ; com.android.ide.eclipse.monitor.MonitorStartup.ping ( stats , toolsPath ) ; return org.eclipse.core.runtime.Status.OK_STATUS ; }

Target:
protected org.eclipse.core.runtime.IStatus run ( org.eclipse.core.runtime.IProgressMonitor monitor ) { com.android.sdkstats.SdkStatsService stats = new com.android.sdkstats.SdkStatsService ( ) ; java.io.File sdkFolder = com.android.ide.eclipse.monitor.MonitorPlugin.getDefault ( ) . getSdkFolder ( ) ; if ( sdkFolder == null ) { return org.eclipse.core.runtime.Status.OK_STATUS ; } java.lang.String toolsPath = new java.io.File ( sdkFolder , com.android.SdkConstants.FD_TOOLS ) . getAbsolutePath ( ) ; com.android.ide.eclipse.monitor.MonitorStartup.ping ( stats , toolsPath ) ; return org.eclipse.core.runtime.Status.OK_STATUS ; }
Source:
public void testConstructor_CaliperBenchmark_Profile ( ) throws java.lang.Exception { vogar.target.TestRunner runner = testRunnerRule.createTestRunner ( "-i" , "runtime" ) ; runner.run ( ) ; java.lang.String out = ios.contents ( Stream.OUT ) ; org.junit.Assert.assertTrue ( out.startsWith ( "Profiling is disabled: " ) ) ; out = out.replaceAll ( "^Profiling is disabled:[^\n]+\\n" , "" ) ; out = out.replaceAll ( "\t[^\n]+\\n" , "" ) ; org.junit.Assert.assertEquals ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "" + "//00xx{\"outcome\":\"" ) + ( vogar.target.TestRunnerTest.CaliperBenchmark.class . getName ( ) ) ) + "\"," ) + "\"runner\":\"" ) + ( vogar.target.CaliperRunner.class . getName ( ) ) ) + "\"}\n" ) + "Experiment selection: \n" ) + " Benchmark Methods: [timeMethod]\n" ) + " Instruments: [runtime]\n" ) + " User parameters: {}\n" ) + " Virtual machines: [default]\n" ) + " Selection type: Full cartesian product\n" ) + "\n" ) + "This selection yields 1 experiments.\n" ) + ( com.google.caliper.runner.UserCodeException.class . getName ( ) ) ) + ": An exception was thrown from the benchmark code\n" ) + "Caused by: " ) + ( java.lang.IllegalStateException.class . getName ( ) ) ) + ": " ) + ( vogar.target.TestRunnerTest.CaliperBenchmark.CALIPER_BENCHMARK_MESSAGE ) ) + "\n" ) + "//00xx{\"result\":\"SUCCESS\"}\n" ) + "//00xx{\"completedNormally\":true}\n" ) , out ) ; }

Target:
public void testConstructor_CaliperBenchmark ( ) throws java.lang.Exception { vogar.target.TestRunner runner = testRunnerRule.createTestRunner ( "-i" , "runtime" ) ; runner.run ( ) ; java.lang.String out = ios.contents ( Stream.OUT ) ; out = out.replaceAll ( "\t[^\n]+\\n" , "" ) ; org.junit.Assert.assertEquals ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "" + "//00xx{\"outcome\":\"" ) + ( vogar.target.TestRunnerTest.CaliperBenchmark.class . getName ( ) ) ) + "\"}\n" ) + "Experiment selection: \n" ) + " Benchmark Methods: [timeMethod]\n" ) + " Instruments: [runtime]\n" ) + " User parameters: {}\n" ) + " Virtual machines: [default]\n" ) + " Selection type: Full cartesian product\n" ) + "\n" ) + "This selection yields 1 experiments.\n" ) + ( com.google.caliper.runner.UserCodeException.class . getName ( ) ) ) + ": An exception was thrown from the benchmark code\n" ) + "Caused by: " ) + ( java.lang.IllegalStateException.class . getName ( ) ) ) + ": " ) + ( vogar.target.TestRunnerTest.CaliperBenchmark.CALIPER_BENCHMARK_MESSAGE ) ) + "\n" ) + "//00xx{\"result\":\"SUCCESS\"}\n" ) + "//00xx{\"completedNormally\":true}\n" ) , out ) ; }
Source:
public void printPlan ( @ javax.annotation.Nonnull com.android.sched.scheduler.Plan < ? > plan ) throws com.android.sched.util.file.CannotWriteException { com.android.sched.util.stream.ExtendedPrintWriter writer = null ; try { writer = planFile.getPrintWriter ( ) ; printSubPlan ( plan , writer ) ; } finally { if ( writer != null ) { writer.close ( ) ; try { writer.throwPendingException ( ) ; } catch ( java.io.IOException e ) { throw new com.android.sched.util.file.CannotWriteException ( planFile.getLocation ( ) , e ) ; } } } }

Target:
public void printPlan ( @ javax.annotation.Nonnull com.android.sched.scheduler.Plan < ? > plan ) throws com.android.sched.util.file.CannotWriteException { com.android.sched.util.stream.CustomPrintWriter writer = null ; try { writer = planFile.getPrintWriter ( ) ; printSubPlan ( plan , writer ) ; } finally { if ( writer != null ) { writer.close ( ) ; try { writer.throwPendingException ( ) ; } catch ( java.io.IOException e ) { throw new com.android.sched.util.file.CannotWriteException ( planFile.getLocation ( ) , e ) ; } } } }
Source:
public synchronized void fillSwitchMapClass ( @ javax.annotation.Nonnull com.android.jack.transformations.enums.OptimizationUtil supportUtil , @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedEnum enumType , @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClass switchMapClass ) { this . enumType = enumType ; this . supportUtil = supportUtil ; this . switchMapClass = switchMapClass ; com.android.jack.transformations.request.TransformationRequest transformRequest = new com.android.jack.transformations.request.TransformationRequest ( switchMapClass ) ; if ( com.android.jack.transformations.enums.opt.SyntheticClassManager.isSyntheticSwitchMapClass ( switchMapClass ) ) { createInstanceInitIfNotExists ( transformRequest ) ; } if ( ! ( addSyntheticInitializerIfNotExists ( transformRequest ) ) ) { throw new java.lang.AssertionError ( ( "Fails adding synthetic switch map initializer to class: " + switchMapClass ) ) ; } transformRequest.commit ( ) ; }

Target:
public synchronized void fillSwitchMapClass ( @ javax.annotation.Nonnull com.android.jack.transformations.enums.OptimizationUtil supportUtil , @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedEnum enumType , @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClass switchMapClass ) { this . enumType = enumType ; this . supportUtil = supportUtil ; this . switchMapClass = switchMapClass ; com.android.jack.transformations.request.TransformationRequest transformRequest = new com.android.jack.transformations.request.TransformationRequest ( switchMapClass ) ; if ( com.android.jack.transformations.enums.opt.SyntheticClassManager.isSyntheticSwitchMapClass ( switchMapClass ) ) { createInstanceInitIfNotExists ( transformRequest ) ; } createOrUpdateSyntheticInitializer ( transformRequest ) ; transformRequest.commit ( ) ; }
Source:
public boolean equals ( java.lang.Object obj ) { if ( ! ( obj instanceof android.net.LinkAddress ) ) { return false ; } android.net.LinkAddress linkAddress = ( ( android.net.LinkAddress ) ( obj ) ) ; return ( this . address.equals ( linkAddress.address ) ) && ( ( this . prefixLength ) == ( linkAddress.prefixLength ) ) ; }

Target:
public boolean equals ( java.lang.Object obj ) { if ( ! ( obj instanceof android.net.LinkAddress ) ) { return false ; } android.net.LinkAddress linkAddress = ( ( android.net.LinkAddress ) ( obj ) ) ; return ( ( ( this . address.equals ( linkAddress.address ) ) && ( ( this . prefixLength ) == ( linkAddress.prefixLength ) ) ) && ( ( this . flags ) == ( linkAddress.flags ) ) ) && ( ( this . scope ) == ( linkAddress.scope ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { org.mockito.MockitoAnnotations.initMocks ( this ) ; mPreparer.setCmdUtil ( mCmdUtil ) ; com.android.tradefed.config.OptionSetter setter = new com.android.tradefed.config.OptionSetter ( mPreparer ) ; setter.setOptionValue ( "adapter-binary-name" , TEST_HAL_ADAPTER_BINARY ) ; setter.setOptionValue ( "hal-package-name" , TEST_HAL_PACKAGE ) ; doReturn ( true ) . when ( mDevice ) . waitForBootComplete ( FRAMEWORK_START_TIMEOUT ) ; doReturn ( "64" ) . when ( mAbi ) . getBitness ( ) ; }

Target:
public java.io.File getTestsDir ( ) throws java.io.FileNotFoundException { return mTestDir ; }
Source:
private void startAsyncQuery ( ) { try { setTitle ( getString ( R.string.refreshing ) ) ; setProgressBarIndeterminateVisibility ( true ) ; com.android.mms.data.Conversation.startQueryForAll ( mQueryHandler , com.android.mms.ui.ConversationList.THREAD_LIST_QUERY_TOKEN ) ; com.android.mms.data.Conversation.startQuery ( mQueryHandler , com.android.mms.ui.ConversationList.UNREAD_THREADS_QUERY_TOKEN , ( ( android.provider.Telephony.Threads.READ ) + "=0" ) ) ; } catch ( android.database.sqlite.SQLiteException e ) { android.database.sqlite.SqliteWrapper.checkSQLiteException ( this , e ) ; } }

Target:
private void startAsyncQuery ( ) { try { ( ( android.widget.TextView ) ( getListView ( ) . getEmptyView ( ) ) ) . setText ( R.string.loading_conversations ) ; com.android.mms.data.Conversation.startQueryForAll ( mQueryHandler , com.android.mms.ui.ConversationList.THREAD_LIST_QUERY_TOKEN ) ; com.android.mms.data.Conversation.startQuery ( mQueryHandler , com.android.mms.ui.ConversationList.UNREAD_THREADS_QUERY_TOKEN , ( ( android.provider.Telephony.Threads.READ ) + "=0" ) ) ; } catch ( android.database.sqlite.SQLiteException e ) { android.database.sqlite.SqliteWrapper.checkSQLiteException ( this , e ) ; } }
Source:
private android.hardware.cts.helpers.sensorverification.MagnitudeVerification getVerification ( float expected , float threshold , float [ ] ... values ) { android.hardware.cts.helpers.sensorverification.MagnitudeVerification verification = new android.hardware.cts.helpers.sensorverification.MagnitudeVerification ( expected , threshold ) ; for ( float [ ] value : values ) { verification.addSensorEvent ( new android.hardware.cts.helpers.TestSensorEvent ( null , 0 , 0 , value ) ) ; } return verification ; }

Target:
private static android.hardware.cts.helpers.sensorverification.MagnitudeVerification getVerification ( float expected , float threshold , float [ ] ... values ) { java.util.Collection < android.hardware.cts.helpers.TestSensorEvent > events = new java.util.ArrayList < > ( values.length ) ; for ( float [ ] value : values ) { events.add ( new android.hardware.cts.helpers.TestSensorEvent ( null , 0 , 0 , value ) ) ; } android.hardware.cts.helpers.sensorverification.MagnitudeVerification verification = new android.hardware.cts.helpers.sensorverification.MagnitudeVerification ( expected , threshold ) ; verification.addSensorEvents ( events ) ; return verification ; }
Source:
static boolean containsKeyImpl ( java.util.Map < ? , ? > map , @ javax.annotation.Nullable java.lang.Object key ) { for ( java.util.Map.Entry < ? , ? > entry : map.entrySet ( ) ) { if ( com.google.common.base.Objects.equal ( entry.getKey ( ) , key ) ) { return true ; } } return false ; }

Target:
public boolean equals ( @ javax.annotation.Nullable java.lang.Object object ) { if ( object instanceof com.google.common.collect.Maps.BiMapConverter ) { com.google.common.collect.Maps.BiMapConverter < ? , ? > that = ( ( com.google.common.collect.Maps.BiMapConverter < ? , ? > ) ( object ) ) ; return this . bimap.equals ( that.bimap ) ; } return false ; }
Source:
public void testGetDeviceIdForSlot ( ) { java.lang.String deviceId = mTelephonyManager.getDeviceId ( mTelephonyManager.getDefaultSim ( ) ) ; verifyDeviceId ( deviceId ) ; for ( int i = - 1 ; i <= ( mTelephonyManager.getPhoneCount ( ) ) ; i ++ ) { mTelephonyManager.getDeviceId ( i ) ; } }

Target:
public void testGetDeviceIdForSlot ( ) { java.lang.String deviceId = mTelephonyManager.getDeviceId ( mTelephonyManager.getSlotIndex ( ) ) ; verifyDeviceId ( deviceId ) ; for ( int i = - 1 ; i <= ( mTelephonyManager.getPhoneCount ( ) ) ; i ++ ) { mTelephonyManager.getDeviceId ( i ) ; } }
Source:
public boolean sendReport ( int id , byte [ ] data ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) android.util.Log.v ( com.android.bluetooth.hid.HidDevService.BluetoothHidDeviceBinder.TAG , ( "sendReport(): id=" + id ) ) ; com.android.bluetooth.hid.HidDevService service = getService ( ) ; if ( service == null ) { return false ; } return service.sendReport ( id , data ) ; }

Target:
synchronized boolean unplug ( android.bluetooth.BluetoothDevice device ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) android.util.Log.v ( com.android.bluetooth.hid.HidDevService.TAG , ( "unplug(): device=" + device ) ) ; if ( ! ( checkDevice ( device ) ) ) { return false ; } return unplugNative ( ) ; }
Source:
private void maybeStartSearch ( com.android.incallui.call.DialerCall call , boolean isPrimary ) { if ( ( call != null ) && ( ! ( call.isConferenceCall ( ) ) ) ) { startContactInfoSearch ( call , isPrimary , ( ( call.getState ( ) ) == ( com.android.incallui.call.DialerCall.State.INCOMING ) ) ) ; } }

Target:
private void maybeStartSearch ( com.android.incallui.call.DialerCall call , boolean isPrimary ) { if ( ( call != null ) && ( ! ( call.isConferenceCall ( ) ) ) ) { startContactInfoSearch ( call , isPrimary , ( ( call.getState ( ) ) == ( com.android.incallui.call.state.DialerCallState.INCOMING ) ) ) ; } }
Source:
public void testTypeText_NonEnglish ( ) { try { java.lang.String toType = "在一个月之内的话" ; android.support.test.espresso.Espresso.onView ( org.hamcrest.Matchers.allOf ( android.support.test.espresso.matcher.ViewMatchers.withParent ( android.support.test.espresso.matcher.ViewMatchers.withId ( R.id.delegating_edit_text ) ) , android.support.test.espresso.matcher.ViewMatchers.withId ( R.id.delegate_edit_text ) ) ) . perform ( android.support.test.espresso.action.ViewActions.scrollTo ( ) , android.support.test.espresso.action.ViewActions.typeText ( toType ) ) ; fail ( "expected the action above to fail." ) ; } catch ( java.lang.RuntimeException expected ) { } }

Target:
public void testTypeText_NonEnglish ( ) { expectedException.expect ( java.lang.RuntimeException.class ) ; java.lang.String toType = "在一个月之内的话" ; android.support.test.espresso.Espresso.onView ( org.hamcrest.Matchers.allOf ( android.support.test.espresso.matcher.ViewMatchers.withParent ( android.support.test.espresso.matcher.ViewMatchers.withId ( R.id.delegating_edit_text ) ) , android.support.test.espresso.matcher.ViewMatchers.withId ( R.id.delegate_edit_text ) ) ) . perform ( android.support.test.espresso.action.ViewActions.scrollTo ( ) , android.support.test.espresso.action.ViewActions.typeText ( toType ) ) ; }
Source:
public com.android.jack.ir.ast.JDefinedClass create ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JPackage enclosingPackage , @ javax.annotation.Nonnull com.android.jack.jayce.JayceClassOrInterfaceLoader loader ) { assert ( signature ) != null ; assert ( sourceInfo ) != null ; java.lang.String binaryName = com.android.jack.util.NamingTools.getClassBinaryNameFromDescriptor ( signature ) ; java.lang.String simpleName = com.android.jack.util.NamingTools.getSimpleClassNameFromBinaryName ( binaryName ) ; com.android.jack.ir.sourceinfo.SourceInfo jSourceInfo = sourceInfo.exportAsJast ( new com.android.jack.jayce.v0002.io.ExportSession ( loader.getLookup ( ) , enclosingPackage.getSession ( ) , com.android.jack.jayce.NodeLevel.STRUCTURE ) ) ; com.android.jack.ir.ast.JDefinedClass jClassType = new com.android.jack.ir.ast.JDefinedClass ( jSourceInfo , simpleName , modifiers , enclosingPackage , loader ) ; return jClassType ; }

Target:
public com.android.jack.ir.ast.JDefinedClass create ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JPackage enclosingPackage , @ javax.annotation.Nonnull com.android.jack.jayce.JayceClassOrInterfaceLoader loader ) { assert ( signature ) != null ; java.lang.String binaryName = com.android.jack.util.NamingTools.getClassBinaryNameFromDescriptor ( signature ) ; java.lang.String simpleName = com.android.jack.util.NamingTools.getSimpleClassNameFromBinaryName ( binaryName ) ; com.android.jack.ir.ast.JDefinedClass jClassType = new com.android.jack.ir.ast.JDefinedClass ( com.android.jack.ir.sourceinfo.SourceInfo.UNKNOWN , simpleName , modifiers , enclosingPackage , loader ) ; return jClassType ; }
Source:
synchronized void nAllocationData2D ( long id , int xoff , int yoff , int mip , int face , int w , int h , int [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData2D ( mContext , id , xoff , yoff , mip , face , w , h , d , sizeBytes ) ; }

Target:
synchronized void nAllocationRead1D ( long id , int off , int mip , int count , java.lang.Object d , int sizeBytes , android.support.v8.renderscript.Element.DataType dt , int mSize , boolean usePadding ) { validate ( ) ; rsnAllocationRead1D ( mContext , id , off , mip , count , d , sizeBytes , dt.mID , mSize , usePadding ) ; }
Source:
protected void engineUpdate ( byte [ ] arg0 , int arg1 , int arg2 ) throws java.security.SignatureException { spiImpl.engineUpdate ( arg0 , arg1 , arg2 ) ; }

Target:
public java.lang.Object clone ( ) throws java.lang.CloneNotSupportedException { if ( ( spiImpl ) instanceof java.lang.Cloneable ) { java.security.SignatureSpi spi = ( ( java.security.SignatureSpi ) ( spiImpl.clone ( ) ) ) ; return new java.security.Signature.SignatureImpl ( getAlgorithm ( ) , getProvider ( ) , spiImpl ) ; } throw new java.lang.CloneNotSupportedException ( ) ; }
Source:
private java.util.List < java.lang.Integer > readTypeIds ( ) { com.android.jack.dx.io.DexBuffer.Section typeIds = open ( tableOfContents.typeIds.off ) ; java.lang.Integer [ ] result = new java.lang.Integer [ tableOfContents.typeIds.size ] ; for ( int i = 0 ; i < ( tableOfContents.typeIds.size ) ; ++ i ) { result [ i ] = java.lang.Integer.valueOf ( typeIds.readInt ( ) ) ; } return java.util.Arrays.asList ( result ) ; }

Target:
private java.util.List < java.lang.Integer > readTypeIds ( ) { com.android.jack.dx.io.DexBuffer.Section typeIds = openInternal ( tableOfContents.typeIds.off ) ; java.lang.Integer [ ] result = new java.lang.Integer [ tableOfContents.typeIds.size ] ; for ( int i = 0 ; i < ( tableOfContents.typeIds.size ) ; ++ i ) { result [ i ] = java.lang.Integer.valueOf ( typeIds.readInt ( ) ) ; } return java.util.Arrays.asList ( result ) ; }
Source:
public java.lang.Long getResult ( ) { long result = checksum.getValue ( ) ; checksum.reset ( ) ; return result ; }

Target:
public synchronized void reset ( ) throws java.io.IOException { if ( ! ( in.markSupported ( ) ) ) { throw new java.io.IOException ( "Mark not supported" ) ; } if ( ( mark ) == ( - 1 ) ) { throw new java.io.IOException ( "Mark not set" ) ; } in.reset ( ) ; left = mark ; }
Source:
private android.bluetooth.BluetoothHeadsetClientCall getCall ( int ... states ) { android.util.Log.d ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , ( "getFromCallsWithStates states:" + ( java.util.Arrays.toString ( states ) ) ) ) ; for ( android.bluetooth.BluetoothHeadsetClientCall c : mCalls.values ( ) ) { for ( int s : states ) { if ( ( c.getState ( ) ) == s ) { return c ; } } } return null ; }

Target:
private android.bluetooth.BluetoothHeadsetClientCall getCall ( int ... states ) { if ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.DBG ) { android.util.Log.d ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , ( "getFromCallsWithStates states:" + ( java.util.Arrays.toString ( states ) ) ) ) ; } for ( android.bluetooth.BluetoothHeadsetClientCall c : mCalls.values ( ) ) { for ( int s : states ) { if ( ( c.getState ( ) ) == s ) { return c ; } } } return null ; }
Source:
private static void asssertContextMenuContainsItemWithEnabledState ( java.lang.String itemLabel , boolean enabled ) { android.widget.espresso.ContextMenuUtils.onContextMenu ( ) . check ( android.support.test.espresso.assertion.ViewAssertions.matches ( android.support.test.espresso.matcher.ViewMatchers.hasDescendant ( org.hamcrest.Matchers.allOf ( android.support.test.espresso.matcher.ViewMatchers.isAssignableFrom ( com.android.internal.view.menu.ListMenuItemView.class ) , ( enabled ? android.support.test.espresso.matcher.ViewMatchers.isEnabled ( ) : org.hamcrest.Matchers.not ( android.support.test.espresso.matcher.ViewMatchers.isEnabled ( ) ) ) , android.support.test.espresso.matcher.ViewMatchers.hasDescendant ( android.support.test.espresso.matcher.ViewMatchers.withText ( itemLabel ) ) ) ) ) ) ; }

Target:
private static org.hamcrest.Matcher < android.view.View > getVisibleMenuItemMatcher ( java.lang.String itemLabel , boolean enabled ) { return org.hamcrest.Matchers.allOf ( android.support.test.espresso.matcher.ViewMatchers.isAssignableFrom ( com.android.internal.view.menu.ListMenuItemView.class ) , android.support.test.espresso.matcher.ViewMatchers.hasDescendant ( android.support.test.espresso.matcher.ViewMatchers.withText ( itemLabel ) ) , ( enabled ? android.support.test.espresso.matcher.ViewMatchers.isEnabled ( ) : org.hamcrest.Matchers.not ( android.support.test.espresso.matcher.ViewMatchers.isEnabled ( ) ) ) , android.support.test.espresso.matcher.ViewMatchers.isDisplayingAtLeast ( 90 ) ) ; }
Source:
private void addFolder ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceRepository resources , com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration config , org.eclipse.core.resources.IFile [ ] memberList ) throws java.lang.Exception { java.lang.String folderName = config.getFolderName ( ResourceFolderType.LAYOUT ) ; org.eclipse.core.resources.IFolder folder = com.android.ide.eclipse.mock.Mocks.createFolder ( folderName , memberList ) ; com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolder resFolder = _addProjectResourceFolder ( resources , config , folder ) ; for ( org.eclipse.core.resources.IFile file : memberList ) { resFolder.addFile ( new com.android.ide.eclipse.adt.internal.resources.manager.SingleResourceFile ( new com.android.ide.eclipse.adt.io.IFileWrapper ( file ) , resFolder ) ) ; } }

Target:
private void addFolder ( com.android.ide.common.resources.ResourceRepository resources , com.android.ide.common.resources.configuration.FolderConfiguration config , org.eclipse.core.resources.IFile [ ] memberList ) throws java.lang.Exception { java.lang.String folderName = config.getFolderName ( ResourceFolderType.LAYOUT ) ; org.eclipse.core.resources.IFolder folder = com.android.ide.eclipse.mock.Mocks.createFolder ( folderName , memberList ) ; com.android.ide.common.resources.ResourceFolder resFolder = _addProjectResourceFolder ( resources , config , folder ) ; for ( org.eclipse.core.resources.IFile file : memberList ) { resFolder.addFile ( new com.android.ide.common.resources.SingleResourceFile ( new com.android.ide.eclipse.adt.io.IFileWrapper ( file ) , resFolder ) ) ; } }
Source:
private boolean isDayFirst ( ) { libcore.icu.LocaleData d = libcore.icu.LocaleData.get ( mContext.getResources ( ) . getConfiguration ( ) . locale ) ; java.lang.String value = d.shortDateFormat4 ; return ( value.indexOf ( 'M' ) ) > ( value.indexOf ( 'd' ) ) ; }

Target:
private boolean isDayFirst ( ) { final java.lang.String value = libcore.icu.LocaleData.get ( getResources ( ) . getConfiguration ( ) . locale ) . getDateFormat ( java.text.DateFormat.SHORT ) ; return ( value.indexOf ( 'M' ) ) > ( value.indexOf ( 'd' ) ) ; }
Source:
public void onClick ( android.view.View v ) { com.android.dialer.common.LogUtil.i ( "VoicemailTosMessageCreator.getPromoMessage" , "open settings" ) ; android.content.Intent intent = new android.content.Intent ( android.content.Intent.ACTION_VIEW ) . setComponent ( new android.content.ComponentName ( context , com.android.dialer.constants.Constants.get ( ) . getSettingsActivity ( ) ) ) . setData ( android.net.Uri.fromParts ( "header" , com.android.dialer.voicemail.settings.VoicemailSettingsFragment.class . getName ( ) , null ) ) ; context.startActivity ( intent ) ; }

Target:
public void onClick ( android.view.View v ) { com.android.dialer.common.LogUtil.i ( "VoicemailTosMessageCreator.getPromoMessage" , "declined transcription" ) ; com.android.voicemail.VoicemailClient voicemailClient = com.android.voicemail.VoicemailComponent.get ( context ) . getVoicemailClient ( ) ; voicemailClient.setVoicemailTranscriptionEnabled ( context , status.getPhoneAccountHandle ( ) , false ) ; }
Source:
public void enter ( ) { removeDeferredMessages ( com.android.bluetooth.a2dp.A2dpStateMachine.CONNECT ) ; log ( ( "Enter Connected: " + ( getCurrentMessage ( ) . what ) ) ) ; broadcastAudioState ( mCurrentDevice , BluetoothA2dp.STATE_NOT_PLAYING , BluetoothA2dp.STATE_PLAYING ) ; }

Target:
public void enter ( ) { removeDeferredMessages ( com.android.bluetooth.a2dp.A2dpStateMachine.CONNECT ) ; log ( ( "Enter Connected: " + ( getCurrentMessage ( ) . what ) ) ) ; if ( ( ( mTargetDevice ) != null ) || ( ( mIncomingDevice ) != null ) ) { loge ( ( ( ( ( ( "ERROR: enter() inconsistent state in Connected: current = " + ( mCurrentDevice ) ) + " target = " ) + ( mTargetDevice ) ) + " incoming = " ) + ( mIncomingDevice ) ) ) ; } broadcastAudioState ( mCurrentDevice , BluetoothA2dp.STATE_NOT_PLAYING , BluetoothA2dp.STATE_PLAYING ) ; }
Source:
public void test_getFirst ( ) { assertTrue ( "Returned incorrect first element" , ll.getFirst ( ) . equals ( objArray [ 0 ] ) ) ; ll.clear ( ) ; try { ll.getFirst ( ) ; fail ( "NoSuchElementException expected" ) ; } catch ( java.util.NoSuchElementException e ) { } }

Target:
public void test_getLast ( ) { assertTrue ( "Returned incorrect first element" , ll.getLast ( ) . equals ( objArray [ ( ( objArray.length ) - 1 ) ] ) ) ; java.util.LinkedList list = new java.util.LinkedList ( ) ; try { list.getLast ( ) ; fail ( "Should throw NoSuchElementException" ) ; } catch ( java.util.NoSuchElementException e ) { } }
Source:
public android.net.IpSecTransform buildTransportModeTransform ( ) throws IpSecManager.ResourceUnavailableException , IpSecManager.SpiUnavailableException , java.io.IOException { mConfig.setMode ( android.net.IpSecTransform.MODE_TRANSPORT ) ; return new android.net.IpSecTransform ( mContext , mConfig ) . activate ( ) ; }

Target:
public android.net.IpSecTransform buildTransportModeTransform ( @ android.annotation.NonNull java.net.InetAddress sourceAddress , @ android.annotation.NonNull android.net.IpSecManager.SecurityParameterIndex spi ) throws IpSecManager.ResourceUnavailableException , IpSecManager.SpiUnavailableException , java.io.IOException { com.android.internal.util.Preconditions.checkNotNull ( sourceAddress ) ; com.android.internal.util.Preconditions.checkNotNull ( spi ) ; if ( ( spi.getResourceId ( ) ) == ( android.net.IpSecManager.INVALID_RESOURCE_ID ) ) { throw new java.lang.IllegalArgumentException ( "Invalid SecurityParameterIndex" ) ; } mConfig.setMode ( android.net.IpSecTransform.MODE_TRANSPORT ) ; mConfig.setSourceAddress ( sourceAddress.getHostAddress ( ) ) ; mConfig.setSpiResourceId ( spi.getResourceId ( ) ) ; return new android.net.IpSecTransform ( mContext , mConfig ) . activate ( ) ; }
Source:
synchronized void nAllocationData3D ( long id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , float [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData3D ( mContext , id , xoff , yoff , zoff , mip , w , h , depth , d , sizeBytes ) ; }

Target:
synchronized void nScriptInvokeV ( long id , int slot , byte [ ] params , boolean mUseInc ) { validate ( ) ; long curCon = mContext ; if ( mUseInc ) { curCon = mIncCon ; } rsnScriptInvokeV ( curCon , id , slot , params , mUseInc ) ; }
Source:
public java.lang.String getText ( java.lang.Object element ) { assert element instanceof com.android.sdkuilib.internal.repository.ArchiveInfo ; com.android.sdkuilib.internal.repository.ArchiveInfo ai = ( ( com.android.sdkuilib.internal.repository.ArchiveInfo ) ( element ) ) ; java.lang.String desc = ai.getShortDescription ( ) ; if ( ai.isDependencyFor ( ) ) { desc += " [*]" ; } return desc ; }

Target:
public java.lang.String getText ( java.lang.Object element ) { if ( element instanceof com.android.sdkuilib.internal.repository.SdkUpdaterChooserDialog.LicenseEntry ) { return ( ( com.android.sdkuilib.internal.repository.SdkUpdaterChooserDialog.LicenseEntry ) ( element ) ) . getLicenseRef ( ) ; } else if ( element instanceof com.android.sdkuilib.internal.repository.ArchiveInfo ) { com.android.sdkuilib.internal.repository.ArchiveInfo ai = ( ( com.android.sdkuilib.internal.repository.ArchiveInfo ) ( element ) ) ; java.lang.String desc = ai.getShortDescription ( ) ; if ( ai.isDependencyFor ( ) ) { desc += " [*]" ; } return desc ; } assert ( element instanceof java.lang.String ) || ( element instanceof com.android.sdkuilib.internal.repository.ArchiveInfo ) ; return null ; }
Source:
public int compareTo ( java.nio.file.attribute.FileTime.DaysAndNanos other ) { if ( ( this . days ) != ( other.days ) ) return ( this . days ) < ( other.days ) ? - 1 : 1 ; return ( this . excessNanos ) < ( other.excessNanos ) ? - 1 : ( this . excessNanos ) == ( other.excessNanos ) ? 0 : 1 ; }

Target:
private java.lang.StringBuilder append ( java.lang.StringBuilder sb , int w , int d ) { while ( w > 0 ) { sb.append ( ( ( char ) ( ( d / w ) + '0' ) ) ) ; d = d % w ; w /= 10 ; } return sb ; }
Source:
public void onPause ( ) { super . onPause ( ) ; if ( ( mBluetoothEnabler ) != null ) { mBluetoothEnabler.pause ( ) ; } mLocalAdapter.setScanMode ( BluetoothAdapter.SCAN_MODE_CONNECTABLE ) ; if ( isUiRestricted ( ) ) { return ; } getActivity ( ) . unregisterReceiver ( mReceiver ) ; }

Target:
public void onStop ( ) { super . onStop ( ) ; mPairedDevicesCategory.removeAll ( ) ; if ( ( mBluetoothEnabler ) != null ) { mBluetoothEnabler.pause ( ) ; } mLocalAdapter.setScanMode ( BluetoothAdapter.SCAN_MODE_CONNECTABLE ) ; if ( isUiRestricted ( ) ) { return ; } getActivity ( ) . unregisterReceiver ( mReceiver ) ; }